The Vedas are not speculative, and Sanskrit grammar is arguably superior to mathematics. The Vedas are pure ecstatic knowledge as Kṛṣṇa said in Śrīmad-Bhāgavatam:
SB 11.21.38-40: Just as a spider brings forth from its heart its web and emits it through its mouth, the Supreme Personality of Godhead manifests Himself as the reverberating primeval vital air, comprising all sacred Vedic meters and full of transcendental pleasure. Thus the Lord, from the ethereal sky of His heart, creates the great and limitless Vedic sound by the agency of His mind, which conceives of variegated sounds such as the sparśas. The Vedic sound branches out in thousands of directions, adorned with the different letters expanded from the syllable oṁ: the consonants, vowels, sibilants and semivowels. The Veda is then elaborated by many verbal varieties, expressed in different meters, each having four more syllables than the previous one. Ultimately the Lord again withdraws His manifestation of Vedic sound within Himself.
RE: The True Theory of Everything: Link Compilation