{"slug": "axiom-releases-a-16m-line-lean-formalization-of-the-stacks-project-what-it-is-is", "title": "Axiom Releases a 16M-Line Lean Formalization of the Stacks Project: What It Is and What Is Still Unreviewed", "summary": "Axiom released an open Lean 4 formalization of the Stacks Project on November 4, 2026, which Axiom says runs to about 16 million lines and is published under Apache 2.0 in the AxiomMath/Stacks repository, built on Mathlib and Lean 4 version 4.34.0-rc2. The repository splits into StacksCore, holding human-reviewed formalizations checked against the Stacks Project and brought to Mathlib naming and style standards, and StacksFrontier, holding formalizations written by AI agents that the README describes as \"where coverage grows fastest, and where review is most needed before code moves into StacksCore.\" Every proof in both tiers is kernel-checked with no sorry and no native_decide, but Axiom states that agent-written code has not yet had the human review Mathlib normally expects, and examples, exercises and remarks remain partly open.", "body_md": "Axiom has released an open Lean 4 formalization of the Stacks Project, which it says runs to about 16 million lines. The announcement came from Axiom's official X account on November 4, 2026. It describes a \"16M-line formalization of the entire Stacks Project,\" with \"optimized code quality and its highly interconnected structure preserved.\"\n\nThe code is public in the [AxiomMath/Stacks repository](https://github.com/AxiomMath/Stacks?ref=explainx) under Apache 2.0. This post explains what is in it, what the two-tier layout means, and what is still unverified.\n\n## TL;DR: the facts in one table\n\n| Question | Answer | \n|---|---|\n| What is it? | A Lean 4 formalization of the Stacks Project, the open-source reference on algebraic geometry | \n| Size? | About 16M lines, per Axiom's X post; we did not count lines | \n| Who wrote it? | A mix: human-reviewed code in StacksCore, AI-agent code in StacksFrontier | \n| License? | Apache 2.0 (the Stacks Project itself uses the GNU Free Documentation License) | \n| Built on? | Mathlib, Lean 4 version 4.34.0-rc2 | \n| Proof quality? | README: Lean's kernel checks every proof; no sorry, no native_decide | \n| Complete? | Every tag with formalizable content; examples, exercises and remarks partly open | \n| Can I help? | Yes, review and contribution are welcome | \n\n## What is the Stacks Project, and why formalize it?\n\nThe [Stacks Project](https://stacks.math.columbia.edu/?ref=explainx) is a large, open, online reference work on algebraic geometry. Researchers cite it by short alphanumeric tags, which makes individual statements easy to point to. It is a standard dependency for current work in the field, and it is the kind of text where one wrong lemma can quietly affect many later papers.\n\nThe Lean side rests on [Mathlib](https://leanprover-community.github.io/?ref=explainx), the community library of formalized mathematics. Mathlib already covers a large part of commutative algebra and some algebraic geometry, which is why the README can register some Stacks tags directly on existing Mathlib declarations. Axiom's contribution is the large remainder, plus the tag layer that ties each declaration to the source text. For a working mathematician, that tag layer may be as valuable as the proofs: it makes the library searchable in the same vocabulary the field already uses.\n\nA Lean formalization turns those statements and proofs into code that a small trusted kernel can check. The payoff is trust and reuse. If a later theorem depends on a Stacks result, a machine can confirm the chain. For AI systems, a large verified library is also a training and grounding resource: an agent proving a new statement can build on existing, checked lemmas.\n\nAxiom's earlier work shows the direction. In October the company said its system formalized the Classification of Finite Simple Groups; we covered that in our [claimed-versus-verified post on the CFSG formalization](https://explainx.ai/blog/axiom-classification-finite-simple-groups-lean-24-days-claimed-vs-verified-2026). The Stacks release is a different kind of artifact: instead of one famous theorem, it is infrastructure that many results depend on.\n\n## How is the repository organized?\n\nThe README describes a structure with two tiers, both pulled in by `import Stacks`.\n\n- **StacksCore** holds human-reviewed formalizations. They are checked against the Stacks Project and brought to Mathlib standards for naming, generality and style.\n- **StacksFrontier** holds formalizations written by AI agents. The README calls it the place \"where coverage grows fastest, and where review is most needed before code moves into StacksCore.\"\n\nThis split is the most useful honest detail in the release. It tells you that a large share of the code was produced by agents and has not yet had the human review that Mathlib normally expects. Every proof in either tier is kernel-checked, so the statements are proven. What review adds is confidence that the statements say what the Stacks Project says, and that the code is readable and maintainable.\n\n### How do you find a result?\n\nDeclarations that formalize a Stacks tag carry an attribute such as `@[stacks 00DS]`. Where Mathlib already covers a tag, it is registered on the Mathlib declaration instead. After importing the library, the command `#stacks_tags` lists every tagged declaration, and `#stacks_tags!` also prints each statement. A website links each tag to its Lean code, its dependencies and the original Stacks statement.\n\nThe repository also tags declarations with items from Grothendieck's EGA and SGA. A tag is applied only when the declaration proves the whole item, a more general statement, some of its clauses, or a special case, and the comment says which.\n\n## Why the \"kernel-checked\" claim matters, and what it does not cover\n\nThe README states: \"Lean's kernel checks every proof. There is no `sorry` and no `native_decide`.\" That is a strong, checkable property. A `sorry` is a placeholder for an unfinished proof. `native_decide` runs compiled code to settle a statement, which moves trust outside the kernel. Excluding both means the proofs stand on Lean's core and Mathlib.\n\nKernel checking does not tell you three things:\n\n1. **Fidelity of statements.** A proof can be correct for a statement that is subtly different from the paper statement. Review against the source is how that is caught. That is the job of the StacksCore tier.\n2. **Quality of code.** Machine-written proofs can be long and hard to read. Mathlib maintainers care about generality and style because the library has to be maintained for years.\n3. **Coverage claims.** The README says every tag with formalizable content is done. We did not audit tags, and the repository shows a single commit, so history of how it was built is not visible.\n\n## What about the 16 million lines?\n\nThe figure comes from Axiom's X post, and the repository README does not state a line count in the text we read. We did not clone and count. Line counts are also a weak measure: generated Lean can be verbose, and a bigger number is not automatically better. A fairer measure is how many Stacks tags are covered and how much of the code passes human review over time.\n\nAxiom's framing is also a claim about method: that AI-written code at scale does not have to be sloppy. The two-tier design reads as an admission that review is still the bottleneck, which is consistent with the broader pattern in AI-for-math. Systems can produce a lot of checked code quickly, and people then decide what is worth keeping. Our posts on [Lean 4 and the collapse in formal proof cost](https://explainx.ai/blog/lean-4-formal-proof-cost-collapse-navier-stokes-2026) and on [OpenAI's Lean reinforcement learning environments](https://explainx.ai/blog/openai-math-lean-rl-environments-hugging-face-harbor-369-tasks-2026) cover the same trend from other angles.\n\n## How does this compare with other recent AI-and-Lean claims?\n\n| Item | Type | Evidence | \n|---|---|---|\n| Axiom Stacks Project | Open repo, Apache 2.0 | Public code, kernel-checked, two review tiers | \n| Axiom CFSG | Open repo, large formalization | Self-reported scale; see our [claimed-vs-verified post](https://explainx.ai/blog/axiom-classification-finite-simple-groups-lean-24-days-claimed-vs-verified-2026) | \n| Fermat's Last Theorem effort | Research claim | See our [post on Claude and Fermat's Last Theorem in Lean](https://explainx.ai/blog/anthropic-claude-fermats-last-theorem-lean-proof-2026) | \n| Quantum problem proofs | Company claim | See our [claimed-vs-verified post](https://explainx.ai/blog/physical-superintelligence-five-open-quantum-problems-lean-proofs-claimed-vs-verified-2026) | \n\nThe Stacks release stands out because anyone can inspect, build and review it. That is the difference between a press claim and an artifact.\n\n## How to try it\n\n1. **Install Lean 4 and Lake.** The repository pins its toolchain in the`lean-toolchain` file, so use the version it names.\n2. **Clone the repository.** Use the GitHub link above and read the README and CONTRIBUTING.md first.\n3. **Fetch dependencies.** The`lake-manifest.json` lists Mathlib and other packages. Expect a large download and a long first build.\n4. **Import and explore.** Use`import Stacks` , then run`#stacks_tags` to list tagged declarations.\n5. **Spot-check a tag.** Pick a result you know, open its tag on the Stacks Project site, and compare the Lean statement to the text. This is the review step the project asks for.\n\nMind your hardware. A 16-million-line library is heavy to compile. If you only need a slice, import the core tier or a single module.\n\n## What this means for builders and learners\n\nFor readers who build with AI, the lesson is about verification. An agent that writes code can be checked cheaply when the target has a formal checker. Lean provides that checker for mathematics, and a big tagged library gives agents something to build on. Teams working on AI-assisted proof, code verification or agent evaluation can use this repository as a realistic test of review pipelines: how fast can humans move code from the frontier tier into the core tier, and what do they find when they do?\n\nFor learners, it is a rare chance to read a modern, machine-checked treatment of a major field with every statement tagged to a public reference.\n\n## What is still open\n\n- **Independent confirmation of size and coverage.** Neither the 16M figure nor full tag coverage has been checked by third parties in what we found.\n- **Review progress.** How much of StacksFrontier has moved to StacksCore is not stated.\n- **Cost and compute.** Axiom's post does not give the compute or time spent in the text we read.\n- **Errors found.** Axiom's CFSG work reported errors in published papers; whether the Stacks work surfaced any is not stated.\n\nWe will update this post when Axiom or independent reviewers publish more.\n\n*Details reflect Axiom's X post and the GitHub repository as read on November 4, 2026. Repository contents change quickly.*", "url": "https://wpnews.pro/news/axiom-releases-a-16m-line-lean-formalization-of-the-stacks-project-what-it-is-is", "canonical_source": "https://explainx.ai/blog/axiom-stacks-project-lean-16m-lines-ai-agents-algebraic-geometry-apache-2026?utm_source=rss&utm_medium=feed&utm_campaign=blog", "published_at": "2026-11-04 00:00:00+00:00", "updated_at": "2026-11-04 19:53:36.601308+00:00", "lang": "en", "topics": ["artificial-intelligence", "ai-agents", "ai-research", "large-language-models"], "entities": ["Axiom", "Stacks Project", "Lean 4", "Mathlib", "StacksCore", "StacksFrontier", "AxiomMath/Stacks", "Apache 2.0"], "also_reported_by": [], "alternates": {"html": "https://wpnews.pro/news/axiom-releases-a-16m-line-lean-formalization-of-the-stacks-project-what-it-is-is", "markdown": "https://wpnews.pro/news/axiom-releases-a-16m-line-lean-formalization-of-the-stacks-project-what-it-is-is.md", "text": "https://wpnews.pro/news/axiom-releases-a-16m-line-lean-formalization-of-the-stacks-project-what-it-is-is.txt", "jsonld": "https://wpnews.pro/news/axiom-releases-a-16m-line-lean-formalization-of-the-stacks-project-what-it-is-is.jsonld"}}