From Euler to AI
formula unification
Models pull pi formulas out of arXiv papers and rewrite them as code; execution errors go back to the model, PSLQ checks each formula numerically, and a symbolic algorithm groups and proves relations between survivors.
In one paragraph
From Euler to AI (2025, mathematics) uses formalize-and-solve, pairing generator GPT-4o and GPT-4o-mini with authority Code execution plus PSLQ integer relation check. From 455,050 arXiv papers, 385 distinct pi formulas were validated and relations were proved between 360 of them, 166 derivable from a single conservative matrix field. Limit: results reflect tested benchmarks, not all possible inputs.
Verified against primary sources on · It matched its sources.
How does From Euler to AI work?
- Proposes
SymPy code for series and continued-fraction formulas extracted from LaTeX by GPT-4o (after GPT-4o-mini classification)
- Judged by
Code execution, then numerical evaluation with the PSLQ integer relation algorithm to confirm the formula computes pi; downstream, recurrence fitting and a symbolic unification algorithm
- Steers
The Python error message and the failed code are sent back to GPT-4o to correct, up to three times; formulas failing PSLQ are dropped
What did From Euler to AI report?
From 455,050 arXiv papers, 385 distinct pi formulas were validated (of 660 candidates) and relations were proved between 360 (94%) of them, 166 (43%) derivable from a single conservative matrix field.
What does From Euler to AI not prove?
The authors report that the error-feedback correction stage is largely insignificant, since GPT-4o rarely produced non-executable code, so most of the work is done by PSLQ filtering and the symbolic unification algorithm rather than an iterative loop.
What a pass means here
The judge is a test, benchmark or score, so a pass means the candidate did well on those checks, not that it is right on every input. The loop runs each time an answer is needed.
See how this kind of check sits among the others: how to validate LLM output with code.
How it generalizes the harness
PSLQ and a symbolic clustering and unification algorithm decide what is a valid formula and how formulas relate; the language model only translates text into code.
Classification
| Classification dimension | Verified value |
|---|---|
| What it proposes | Equation |
| Generative model | GPT-4o and GPT-4o-mini (OpenAI, frozen) |
| Algorithmic authority | Code execution plus PSLQ integer relation check, followed by symbolic canonicalization and unification |
| Feedback | Verifier errors |
| What gets updated | Prompt context |
| When it runs | At inference time |
| Validity | Empirical (measured) |
| Evidence | Code released |
| Lineage | Application |