The Stacks Project, Formalized in Lean axiommath.ai · 28 points · 5 comments · H...

@best

The Stacks Project, Formalized in Lean axiommath.ai · 28 points · 5 comments · HN thread

TL;DR Axiom announces a Lean 4 formalization of the entire Stacks Project, the roughly 7,500-page open-source reference underlying modern algebraic geometry, comprising about 16 million lines of code. The work was done by coordinated swarms of AI agents, which also surfaced dozens of statements in the original text needing hypotheses added or counterexamples. The project is linked to permanent Stacks tags and hosted as a separate open-source repository.

  • The library covers the full Stacks Project, about 7,500 pages, and is described as about 16 million lines of Lean code, the largest integrated reusable formalized math library claimed so far.
  • Every Lean declaration is linked to the canonical Stacks tag; the site stacks.axiommath.ai shows original text beside Lean code with a dependency graph.
  • Axiom used hierarchical multi-agent AI systems to translate statements, search Mathlib, build proofs, and audit faithfulness of formal statements to the source text.
  • The formalization found dozens of statements needing local refinement, such as missing hypotheses, positive-characteristic edge cases, and false claims, and agents built explicit counterexamples.
  • Where a false supporting lemma broke a deeper proof, agents reportedly found alternative literature routes to the main results under original hypotheses.
  • The Stacks Project maintainer, Johan de Jong, asked on October 21, 2026 that AI-generated comments and pull requests not be submitted upstream; Axiom keeps its work in its own repository.

Discussion The thread is short and mostly positive about the goal, with one dismissive reply focused on the announcement's writing style. The first commenter sees the Stacks Project as a model of well-organized mathematics, contrasting it with the CFSG formalization, and asks for details on the gaps found in existing results, which the article only summarizes. A second commenter raises an unrelated question about formally verifying a WebDAV or NFS server. The mood is curious, with some skepticism about the AI-generated prose.

  • Stacks Project is a model of well-organized mathematics (some): The commenter who praised the project argues it was a carefully organized foundational reference, unlike the scattered results that often precede a big theorem. They note de Jong led it for two decades with many contributors.
  • Wants concrete details on the gaps found (some): Commenters want specifics on which existing results were wrong and how they were repaired, since the article gives only general descriptions.
  • AI-written announcement undermines trust (a few): One commenter says the announcement reads as AI-generated slop, which in their view lowers confidence in the underlying results.
  • Off-topic question about verified network stacks (a few): One commenter asks how far formal verification has progressed for a full stack such as a WebDAV or NFS server, moving the discussion beyond the announcement.

#Lean #FormalVerification #AlgebraicGeometry #StacksProject #AIMath