← All papers
First page of Lean Pool: An AI-Maintained Archive of Formalized Mathematics

Lean Pool: An AI-Maintained Archive of Formalized Mathematics

Vasily Ilin

cs.AI Sep 21, 2026 · v1
Presents Lean Pool, an AI-agent-maintained archive of 211 completed Lean/Mathlib formalization projects with automated linting, review, dependency updates, and optimization.
Lean Pool is a repository of formalized mathematics. It is grown, maintained and optimized by AI agents.

Mathlib lacks definitions and theorems needed for research-level mathematics and grows only linearly under strict human review, while AI now generates proofs faster than they can be verified and maintained. Completed formalizations also risk becoming incompatible as Lean and Mathlib evolve.

Lean Pool is a repository of formalized mathematics grown, maintained, and optimized by AI agents. Projects (human, AI, or mixed) are pooled from permissively licensed sources, with cards recording authorship, provenance, and main results. The Lean kernel guarantees proof correctness, while CI linters, an LLM mathematical-review service, and admission rules (no sorry/admit, restricted axioms) uphold quality. Agents perform dependency upgrades, repair broken builds, and apply proof shortening and compilation/memory optimizations.

The archive holds 211 completed projects, 7,043 Lean files, 3.2M source lines, and 837 registered main results (70 human / 102 AI / 39 mixed). Content spans logic, number theory, algebra, analysis, geometry, probability, and CS, including Navier–Stokes/Euler blowup, Gödel incompleteness, and classification of compact surfaces. Dependency-upgrade and optimization workflows repaired failing projects and reduced source size, build time, and memory.

Archive propertyCount
Completed projects211
Lean source files7,043
Registered main results837
Human / AI / mixed projects70 / 102 / 39
Community PRs merged63
Scale and participation of the archive
Accepted changeLines removedBuild min before→afterRAM GiB before→after
Library-wide compression45,21716.11→15.5926.1→26.9
Certificate simplification51330.22→29.1321.0→20.9
Elaboration-cost reduction54,96528.46→26.8219.8→19.6
Effect of accepted optimization PRs on clean builds