The Shulba Sutras or Śulbasūtras (Sanskrit śulba: "string, cord, rope") are sutra texts belonging to the Śrauta ritual and containing geometry related to fire-altar construction.
The Shulba Sutras are part of the larger corpus of texts called the Shrauta Sutras, considered to be appendices to the Vedas. They are the only sources of knowledge of Indian mathematics from the Vedic period. Unique fire-altar shapes were associated with unique gifts from the Gods. For instance, "he who desires heaven is to construct a fire-altar in the form of a falcon"; "a fire-altar in the form of a tortoise is to be constructed by one desiring to win the world of Brahman" and "those who wish to destroy existing and future enemies should construct a fire-altar in the form of a rhombus".
The four major Shulba Sutras, which are mathematically the most significant, are those attributed to Baudhayana, Manava, Apastamba and Katyayana. Their language is late Vedic Sanskrit, pointing to a composition roughly during the 1st millennium BC, The oldest is the sutra attributed to Baudhayana, possibly compiled around 800 BCE to 600 BCE. while the youngest content may date to about 200 CE.
The sutras contain discussion and non-axiomatic demonstrations of cases of the Pythagorean theorem and Pythagorean triples. It is also implied and cases presented in the earlier work of Apastamba and Baudhayana, although there is no consensus on whether or not Apastamba's rule is derived from Mesopotamia. In Baudhayana, the rules are given as follows:
1.9. The diagonal of a square produces double the area [of the square].
[...]
1.12. The areas [of the squares] produced separately by the lengths of the breadth of a rectangle together equal the area [of the square] produced by the diagonal.
1.13. This is observed in rectangles having sides 3 and 4, 12 and 5, 15 and 8, 7 and 24, 12 and 35, 15 and 36.