Axiom Conditional ERH Lean Formalization Public Repository: Inside the 1.3-Million-Line Proof
On November 29, 2026, the AI mathematics company Axiom published a pair of public GitHub repositories containing a Lean 4 formalization of the Extended Riemann Hypothesis (ERH) for Dedekind zeta functions of totally real and CM fields, alongside a separate formalization aimed at the generalized Ramanujan–Petersson conjecture. The primary artifact—the Axiom conditional ERH Lean formalization public repository—spans more than 1.3 million lines of code across 3,874 Lean source files and completes seven main theorems. Its description as a proof carries a precise qualifier: the result is conditional on three published theorems that are imported as unformalized axioms, rather than being proved from base axioms inside the repository itself.
The release landed nine days after Anthropic mathematician Levent Alpöge, working with Claude, posted a Lean-verified proof of the classical Riemann Hypothesis. Where that result concerned the distribution of ordinary prime numbers, Axiom's repository extends the question to prime ideals inside richer number systems through Dedekind zeta functions. The distinction is fundamental to number theory: the Riemann Hypothesis tracks how closely primes follow their expected distribution over the rationals, while the ERH asks whether the same regularity survives when higher-degree algebraic roots are adjoined to the rationals and primes split into products of new prime ideals.
What the repository actually proves
The Axiom conditional ERH Lean formalization public repository, hosted under AxiomMath/erh-totally-real on GitHub, states in its README that the Dedekind zeta function of every totally real number field has no zeros with real part greater than 1/2. It also covers L-functions of norm-composed Dirichlet characters over totally real and CM fields. The repository contains 2,613 Lean 4 files completing seven main theorems, addressing two infinite families of fields: totally real fields, where every embedding of the field lands in the real numbers, and CM fields, which are totally imaginary quadratic extensions of totally real fields.
These two families occupy a central place in modern arithmetic geometry because they carry the symmetries behind abelian varieties and Shimura varieties. A machine-checkable ERH statement for them is therefore more than a standalone identity;it is a piece of infrastructure for results that depend on zero-free regions of Dedekind zeta functions. Zero-free regions of these functions control error terms in prime ideal counting and feed into effective forms of the Chebotarev density theorem, which is why a verified statement carries practical weight for downstream arguments. The companion repository, AxiomMath/RamanujanPetersson, adds 1,261 Lean files and targets the generalized Ramanujan–Petersson conjecture for holomorphic cusp forms. Combined, the two repositories total 3,874 files and more than 1.3 million lines of Lean, according to Axiom's announcement and the repository metadata.
The context of the fields also explains why the proof cannot be a trivial translation. When an element such as the imaginary unit is adjoined to the rationals, an ordinary prime like 5 can split into new factors—for example, 5 becomes (2+i)(2−i). The ERH asks whether the zero-free behavior of the corresponding Dedekind zeta function holds uniformly across all such fields in the relevant families.
Why the proof is described as conditional
The word "conditional" in the repository's description is not rhetorical. The proof is not yet fully self-contained from the base axioms underlying mathlib, the Lean mathematical library. A file named external.lean at the repository root imports three major results as unformalized axioms. One is Theorem 1.1 from a 2018 Annals of Mathematics paper by Xinyi Yuan and Shou-Wu Zhang on the average Colmez conjecture, which supplies the precise height formula for CM abelian varieties. The other two come from work on the Brumer–Stark conjecture by Samit Dasgupta, Mahesh Kakde, and collaborators: a 2023 paper and a follow-up preprint by Dasgupta, Kakde, Silliman, and Wang, handling the prime 2 case and the odd prime case respectively.
Because those three theorems enter as axioms, the Lean kernel verifies a reduction rather than an unconditional proof. If the three cited theorems hold—and each is a published or circulated result by established researchers—then the ERH conclusion follows from the repository's definitions and the remaining formalized argument. According to Axiom's public statements, the code contains no other unproved placeholders. The team has indicated that it intends to formalize the three dependencies in Lean as well, which would eventually produce a proof free of external literature imports.
How the formalization was assembled
Axiom's approach combined several previously formalized building blocks. Founder and CEO Carina Hong has described the assembly in terms of a foundation, a borrowed module, and a connection step. The foundation is Axiom's own Cureton–Thorner formalization of the Quasi-Riemann Hypothesis for Dedekind zeta functions, produced by the company's AxiomProver system. The borrowed module is the Lean proof of the Riemann Hypothesis for Dirichlet L-functions that Alpöge and Claude had released nine days earlier. Hong stated that the team used Axiom's Quasi-Riemann Hypothesis result together with the Alpöge–Claude arguments to prove the ERH statement.
The connection is not a mechanical substitution of variables. General totally real and CM fields do not embed naturally into cyclotomic fields, so the proof has to cross obstructions in geometric height estimation and the local annihilation of primes. The three external axioms are precisely what bridge those gaps. AxiomProver then joined the cross-team code bases into the framework that completes the seven main theorems in the erh-totally-real repository.
The RamanujanPetersson repository tells a different story. It was completed by AxiomProver independently, without Claude's code and without introducing new external axioms. Ramanujan observed in 1916 that the Fourier coefficients of modular forms satisfy growth bounds at each prime, and Pierre Deligne proved the classical case in 1974 as a consequence of the Weil conjectures, for which he received the Fields Medal in 1978. Deligne's route requires embedding arithmetic roots into 11-dimensional Kuga–Sato varieties, compactifying modular curve boundaries at cusps, and resolving high-dimensional degenerate singularities—steps that are notoriously difficult to formalize. AxiomProver instead works on non-compactified open modular curves in four steps: arithmetizing modular form coefficients as power sums, aligning arithmetic power sums with the Frobenius geometric traces of elliptic curve families, invoking the purity theorem of Weil conjecture II to control the eigenvalue moduli, and using a Turán averaging argument to derive a contradiction if any eigenvalue exceeds its bound.
The team and the tooling behind the release
Axiom was founded by Carina Hong, who earned dual degrees in mathematics and physics at MIT and held a Rhodes Scholarship at Oxford before leaving a dual doctoral program at Stanford to build the company. In March 2026, Axiom closed a $200 million Series A round at a reported $1.6 billion valuation, and number theorist Ken Ono resigned a tenured position to join full-time. The company's AxiomProver system is the tooling behind both new repositories, and Axiom has positioned its earlier formalizations—including portions of the Stacks Project and the Weil conjectures—as reusable foundations for the ERH work.
What formal verification does and does not guarantee
A public repository is an invitation to audit, and the distinction between logical validity and mathematical faithfulness is central to any serious reading of the result. A Lean kernel check guarantees that the conclusion follows from the stated definitions and the imported axioms. It does not by itself guarantee that the formalized definitions capture every classical edge case of the original statements, nor that the three imported axioms are stated in exactly the form the source papers prove. Community review therefore concentrates on whether the definitions match the intended mathematical objects and whether the external theorem statements align with their published versions.
As of publication, the two code bases had not yet been independently compiled and reproduced by outside parties, and the external axiom interface plus the forthcoming preprint remained subject to peer review. The initial commit, made under the name Ashvin A. Swaminathan on November 29, 2026, carried the message "Publication of files." Axiom has announced plans to release a preprint titled ERH Hexagon, along with explainer videos and a technical blog, supplementing the 10-page technical report that accompanied the code.
What to watch next
The repository's long-term significance depends on what happens after publication. If independent researchers compile the code and confirm that the definitions match the classical statements, the Axiom conditional ERH Lean formalization public repository would rank among the largest machine-checkable number theory artifacts ever released. The first practical checkpoint is external compilation: reproducing the build in a clean environment against the pinned versions of mathlib and Lean, which is the standard way formalization claims are stress-tested before deeper mathematical review. The decisive remaining step is the formalization of the three external theorems, which would convert the conditional proof into a self-contained one.
For the broader field, the release illustrates how formalized mathematics compounds. Axiom's earlier formalization of the Stacks Project and the Weil conjectures, followed by Alpöge and Claude's Riemann proof, became reusable modules in a new proof within days. As Lean matures into shared infrastructure for AI-assisted mathematics, each verified result lowers the cost of the next, a dynamic that now extends from a single conjecture to entire families of number fields.
Frequently Asked Questions
What does "conditional" mean in the Axiom ERH repository?
It means the Lean proof imports three published theorems as unformalized axioms instead of proving them internally. The Lean kernel verifies that the ERH conclusion follows from those theorems and the repository's definitions, but the proof is not yet self-contained from base axioms.
Where is the Axiom conditional ERH Lean formalization public repository available?
The code is public on GitHub under the AxiomMath organization. The main ERH repository is AxiomMath/erh-totally-real, and the companion formalization of the generalized Ramanujan–Petersson conjecture is in AxiomMath/RamanujanPetersson.
Which three theorems does the proof rely on?
The repository's external.lean file imports Theorem 1.1 from Yuan and Zhang's 2018 Annals of Mathematics paper on the average Colmez conjecture, and two results from Dasgupta, Kakde, and collaborators on the Brumer–Stark conjecture, covering the prime 2 and odd prime cases.
Has the proof been independently verified?
As of the publication date, the repositories had not yet been independently compiled and reproduced by outside parties, and the external axiom interface and the forthcoming ERH Hexagon preprint remain subject to academic peer review.
