# Axiom Math automatically formalizes the Stacks algebraic geometry project with AI agents

> Axiom Math says it automatically formalized the open-source Stacks project, about 16 million lines of code, nine days after its CFSG announcement.

- Status: reported (One outlet, not independently verified yet.)
- Topic: Research
- Published: 2026-11-18T13:00:03+00:00
- Updated: 2026-11-18T13:12:02.182099+00:00
- Web page: https://ai-news.ikangai.com/story/axiom-math-automatically-formalizes-the-stacks-algebraic-geometry-project-with-a/
- Seen in: IEEE Spectrum
- Change: research (Research)
- Applies to: Stacks Project, StacksCore, StacksFrontier

## What changed

The Stacks Project has been formalized as a Lean library of about 16 million lines of code, released in two tiers, StacksCore and StacksFrontier.

Axiom Math says it has automatically formalized the Stacks Project, the open-source algebraic geometry reference work started in 2005 by Columbia University mathematician Johan de Jong. The company released the result as a Lean library of about 16 million lines of code. The announcement came nine days after its formalization of the Classification of Finite Simple Groups, which runs to about 43 million lines. IEEE Spectrum reported the announcement, and Axiom's own write-up gives the Stacks figures and the method in more detail.

The two projects pose different problems. The CFSG is a single landmark theorem, spread across roughly 15,000 pages and more than 500 journal articles by around 100 authors. The Stacks Project is instead a library of thousands of interlocking definitions, constructions and lemmas that other work is meant to reuse. According to Vasily Ilin, who led the Stacks effort, the challenge was faithfulness and coherence across thousands of interdependent definitions and theorems. Axiom's account explains why this matters: in a tightly interconnected dependency graph, an unfaithful or trivialized formalization is quickly exposed.

To manage that, Axiom says it built a hierarchical system of AI agents that worked in parallel across the dependency graph. The agents translated statements, searched the Mathlib library for existing abstractions, constructed proofs and resolved prerequisites, while keeping definitions and interfaces aligned across chapters. Faithfulness was checked through multi-agent auditing, semantic cross-checks against the source text, and targeted audits of foundational definitions and landmark theorems. The company's write-up adds a detail the IEEE piece leaves out. Rather than treating failed proof attempts as mere obstacles, the agents diagnosed the mathematical obstruction. Over the course of the project, the system surfaced dozens of Stacks statements needing refinement, including missing hypotheses, edge cases in positive characteristic and claims that did not hold in the generality stated. Where a false supporting lemma broke a deeper result, the agents reportedly found other routes through the literature to the main theorem under its original hypotheses.

The IEEE article quotes Ken Ono, Axiom's Founding Mathematician, calling the two formalizations 'the two ways formalization has to scale', but the quoted reactions come from Ono and from the company's own staff. The one outside voice in the reporting, Colva Roney-Dougal of the University of St Andrews, who was not involved in the work, praised the CFSG result and said that the formal proof finds and clears up several mistakes in the original human proof. She also worried that because the verification was done automatically, few mathematicians may be able to extract information from it to share with the community. She said a new generation may have 'missed a chance to gain knowledge from the doing of it'.

The Stacks result also raises a question that the announcement handles differently from the CFSG. The Stacks Project's maintainer, de Jong, posted an October 21, 2026 note asking that AI-generated comments and pull requests not be submitted to the upstream repository for now. He said he intends to keep updating the project by hand. Axiom's write-up says it respects that boundary and keeps its formalization, counterexamples and refinements in its own repository, which it describes as an independent open-source project maintained by Axiom. Commenters on de Jong's blog post disagreed about whether Axiom had respected the request in spirit. One wrote that the work was 'strip mined' from the repository. Those are the commenters' views, not established facts. The Axiom library is released under the Apache 2.0 license, while the Stacks Project itself is licensed under the GNU Free Documentation License.

On the library itself, the GitHub repository describes two tiers. StacksCore holds human-reviewed formalizations brought to Mathlib standards of naming, generality and style. StacksFrontier holds formalizations written by AI agents, where, according to the README, coverage grows fastest and review is most needed before code moves into StacksCore. The README states that the library has no sorry and no native_decide, and that proofs use only the standard axioms propext, Classical.choice and Quot.sound. It also notes that the library has about 64,000 modules and that a full build takes a long time and a lot of memory. Axiom's write-up says a researcher or agent can import the Stacks definitions and theorems directly into a new proof. Lean's kernel will apply a cited result only when its exact hypotheses are met. Each Stacks tag is linked to its Lean declarations, which lets readers trace a formal statement back to the original text.

## Why it matters

A large, reusable formal library of modern algebraic geometry could become a base for future machine-checked mathematics and tools. Organisations building AI for technical reasoning should watch how agent systems are being used to keep large formal projects consistent.

## Original source

- [The Stacks Project, Formalized in Lean | Axiom](https://axiommath.ai/research/the-stacks-project-formalized/)
- [GitHub - AxiomMath/Stacks: A Lean formalization of the Stacks Project · GitHub](https://github.com/AxiomMath/Stacks)
- [No AI for now | Stacks Project Blog](https://www.math.columbia.edu/~dejong/wordpress/?p=5033)

## Further reporting

- [Enormous Theorem AI Swarm Validates 15,000 Pages - IEEE Spectrum](https://spectrum.ieee.org/enormous-theorem-ai)

---

AI wrote this summary from the sources listed, and nobody reviewed it individually before publication. Check the original source before you rely on it.

Cite as: IKANGAI AI News, "Axiom Math automatically formalizes the Stacks algebraic geometry project with AI agents", 2026-11-18, https://ai-news.ikangai.com/story/axiom-math-automatically-formalizes-the-stacks-algebraic-geometry-project-with-a/
