Axiom: Ramanujan–Petersson formalized in Lean
Result confirmed
The takeaway
On 30 Nov 2026 Axiom Math added a technical report to its GitHub repository AxiomMath/RamanujanPetersson, a Lean 4 formalization of Deligne’s 1974 theorem that Hecke eigen cusp forms of weight k ≥ 2 satisfy |a_p| ≤ 2p^((k−1)/2), for every level and nebentypus. It rests on Axiom’s earlier Lean formalizations of the Stacks project and the Weil conjectures; the report says ‘Axiom Prover quickly formalized the general theorem and supplied its own arithmetic–geometric comparison’. This is a formalization of a known theorem, not a new result; a Mathlib-only challenge file can be checked with the Lean comparator.
Status
- Claim
Result confirmed
- Our reporting
- High confidence
- Verification
- Lean-verified
- Importance
- 3 of 5
- Last verified
- 30 November 2026
Your AI and this story
- GPT-6.2 Astra183 days after its cutoff
- Claude Opus 5.5153 days after its cutoff
- Gemini 4 Hydrogen244 days after its cutoff
- Grok 4.7183 days after its cutoff
None of these four assistants can know about it. The closest, Claude Opus 5.5, stops 153 days before it.
Key facts
- Main results (README): for N ≥ 1, k ≥ 2, a weight-k cusp form on Γ₀(N) with a₁ = 1, eigenform for every T_p (p ∤ N), satisfies |a_p| ≤ 2p^((k−1)/2) for every prime p ∤ N; the same for Γ₁(N) with any nebentypus χ mod N
- Verification (README): ‘A formal challenge file … located at Challenge/Basic.lean … only depends on Mathlib’ and is checked with ‘lake env comparator Comparator/comparator.json’; dependencies: Mathlib, Axiom’s Stacks repository, and the TauCeti library
- AI role (technical report): ‘Axiom Math’s Stacks formalization underlies the formalization of the Weil conjectures. With both developments in place, Axiom Prover quickly formalized the general theorem and supplied its own arithmetic–geometric comparison’
- History (report): Ramanujan’s 1916 prediction |τ(p)| ≤ 2p^(11/2); Petersson’s generalization 1939–1948; Deligne’s 1969 Bourbaki reduction to the Weil conjectures and his 1974 proof of them
- Context: Axiom’s companion work on the extended Riemann hypothesis for Dedekind zeta functions of totally real fields (Hexagon 2611.01389) belongs to the RH story; reported by XenoSpectrum on 30 Nov
- Status: formalization of an established theorem; no independent review of the Lean code found on 30 Nov
What happened
In 1916 Ramanujan predicted that his tau function satisfies |τ(p)| ≤ 2p^(11/2). Petersson extended the prediction to coefficients of all cusp eigenforms, and Pierre Deligne proved it in 1974 as a consequence of his proof of the Weil conjectures. The proof rests on a large body of algebraic geometry and had never been machine-checked.
Axiom Math’s GitHub repository RamanujanPetersson, with code from 12 November and a technical report added on 30 November, gives a Lean 4 proof of the bound for weight at least 2, every level and every character. It builds on Axiom’s Lean formalizations of the Stacks project and the Weil conjectures released earlier in November. According to the report, once those libraries existed “Axiom Prover quickly formalized the general theorem and supplied its own arithmetic–geometric comparison”. A challenge file stating the results with Mathlib definitions only lets anyone check the formalization with the Lean comparator.
Why it matters
It is one of the deepest classical theorems to be formally verified so far, and it shows the earlier Weil-conjectures library being reused for a downstream result. It is a verification of a known theorem, not a new result.
Sources
3 sources from 2 sites. Numbers match the chips in the text.
3 sources: 2 primary, 1 press
Primary
- AxiomMath/RamanujanPetersson (GitHub)github.com, code
- Technical report (PDF)github.com, paper
Press
Changes
- Filed from the repository README and technical report (science agent)