Skip to content
AI.info

The Pulse

Axiom Releases Lean Formalization of the Entire Stacks Project

Axiom has released a Lean formalization of the entire Stacks Project, an open-source reference for algebraic geometry spanning roughly 7,500 pages. The formalization spans some 16 million lines of code, the company says, and can be used by researchers and AI agents in new proofs.

Axiom Releases Lean Formalization of the Entire Stacks Project

Axiom has released its Lean formalization of what it describes as the entire Stacks Project, the roughly 7,500-page open-source reference for modern algebraic geometry. The formalization spans some 16 million lines of code and, Axiom says, is the largest integrated, reusable library of formalized mathematics ever built. Researchers and AI agents can import its definitions and theorems into new formal proofs. Permanent Stacks tags link each Lean declaration back to the canonical text.

The roughly 7,500-page Stacks Project is formalized in Lean

The Stacks Project was initiated by Columbia University mathematician Johan de Jong in 2005. Hundreds of mathematicians have contributed proofs, examples and refinements over two decades. The formalization rests equally on the foundations of the Lean and Mathlib communities, Axiom says, and the project was only possible because those communities spent years building a rich mathematical library and the abstractions needed to organize it.

The release is presented as a single machine-checked library. Axiom’s account describes the Stacks Project as a foundation for algebraic geometry, with a long chain of prerequisites across commutative algebra, schemes, sheaves, cohomology and algebraic stacks. Modern algebraic geometry had been far harder to approach this way because the corresponding Lean infrastructure did not exist, Axiom says. The formalization puts the project’s definitions and theorems into a single codebase that researchers and AI agents can reuse.

Coordinated swarms of AI agents worked across a shared dependency graph

Formalizing millions of lines of verified mathematics was as much a software engineering challenge as a mathematical one, Axiom says. The company deployed coordinated swarms of AI agents to translate, prove and integrate thousands of theorems in parallel. Axiom designed a hierarchical system of AI agents with specialized responsibilities and strict coordination protocols. Their work included translating statements, searching Mathlib for existing abstractions, constructing proofs and resolving prerequisites.

Agents worked across the project’s dependency graph while keeping definitions, typeclass interfaces and mathematical abstractions aligned across chapters. The company argues that independently verified proofs can still be difficult to combine if they use incompatible definitions or duplicate infrastructure already present in Mathlib. Its release describes checks for statement faithfulness that include multi-agent auditing, semantic cross-checks against the source text and a strict requirement that definitions and lemmas successfully interface with downstream theorems. Axiom also conducted targeted audits of foundational definitions and landmark theorems.

Formalization exposed dozens of statements needing refinement

The system surfaced dozens of Stacks Project statements that needed local refinement, Axiom says. The company lists missing hypotheses, edge cases in positive characteristic and claims that did not hold in the full generality stated. Its agents constructed counterexamples to show where the original statements broke down. Its agents identified the exact missing hypotheses and formalized corrected theorems alongside the counterexamples.

Where a false supporting lemma created a gap in the proof of a deeper theorem, agents found alternative routes through the literature to establish the main result under its original hypotheses, Axiom says. On October 27, 2026, Axiom released a formalization of the Classification of Finite Simple Groups, which Axiom describes as organized around a single landmark theorem. The Stacks Project’s value lies in thousands of interlocking definitions, constructions and lemmas designed to be reused across future proofs, Axiom says.

Lean formalization is an independent open-source project

In an October 21, 2026 announcement, Johan de Jong requested that AI-generated comments and pull requests not be submitted directly to the upstream Stacks Project repository for the time being. The Stacks Project remains a living text under the stewardship of Johan de Jong and its community of contributors, Axiom says, while the Lean formalization is an independent open-source project maintained by Axiom. The company keeps the formalization, counterexamples and refinements in its own repository. Readers can view the original Stacks Project text alongside the Lean code and explore the dependency graph at stacks.axiommath.ai.

Sources

  1. Original source Axiom axiommath.ai

Related stories

Explore

More articles