From Euler to AI: Unifying Formulas for Mathematical Constants
Tomer Raz, Michael Shalyt, Elyasheev Leibtag, Rotem Kalisch, Shachar Weinbaum, Yaron Hadad, Ido Kaminer
TL;DR
This paper tackles the long-standing challenge of unifying mathematical formulas for constants by introducing an automated framework that combines LLM-driven harvesting, LLM-code feedback loops, and a novel symbolic unification algorithm based on Conservative Matrix Fields (CMFs) and coboundary equivalence. Applied to $oldsymbol{\,\pi}$, the pipeline extracts hundreds of formulas, canonicalizes them as recurrences, and proves many equivalences, revealing that a large subset resides on a single CMF. The approach generalizes to other constants such as $oldsymbol{e}$, $oldsymbol{\zeta(3)}$, and Catalan’s constant, highlighting AI-assisted mathematics as a scalable path to uncover hidden structure across domains. These results demonstrate a scalable, data-driven route to unify mathematical knowledge and suggest future extensions to higher CMF dimensions and broader classes of constants with potential impact in both theory and computation.
Abstract
The constant $π$ has fascinated scholars throughout the centuries, inspiring numerous formulas for its evaluation, such as infinite sums and continued fractions. Despite their individual significance, many of the underlying connections among formulas remain unknown, missing unifying theories that could unveil deeper understanding. The absence of a unifying theory reflects a broader challenge across math and science: knowledge is typically accumulated through isolated discoveries, while deeper connections often remain hidden. In this work, we present an automated framework for the unification of mathematical formulas. Our system combines Large Language Models (LLMs) for systematic formula harvesting, an LLM-code feedback loop for validation, and a novel symbolic algorithm for clustering and eventual unification. We demonstrate this methodology on the hallmark case of $π$, an ideal testing ground for symbolic unification. Applying this approach to 455,050 arXiv papers, we validate 385 distinct formulas for $π$ and prove relations between 360 (94%) of them, of which 166 (43%) can be derived from a single mathematical object - linking canonical formulas by Euler, Gauss, Brouncker, and newer ones from algorithmic discoveries by the Ramanujan Machine. Our method generalizes to other constants, including $e$, $ζ(3)$, and Catalan's constant, demonstrating the potential of AI-assisted mathematics to uncover hidden structures and unify knowledge across domains.
