Formalizing Mathematics at Scale
Abstract
We present AutoformBot, a multi-agent system for building an Autoformalized Textbook Library At Scale (ATLAS) in Lean 4. AutoformBot orchestrates thousands of LLM agents, equipped with formal verification tools, dependency-aware task scheduling, and collaborative version control, to translate informal textbook prose into machine-checked definitions and proofs, and grades the result with an evaluation harness that combines mechanical checks with LLM judges of faithfulness. Applied to 26 open-access textbooks spanning analysis, algebra, topology, combinatorics, and probability, it formalizes 2,260 of 4,007 target statements (56%), producing ATLAS, a Lean 4 library of over 45,000 declarations and 500 thousand lines of code. We release two artifacts: (i) AutoformBot, the open-source multi-agent framework, and (ii) ATLAS, the resulting formal library. Our results suggest that autoformalizing the core content of graduate-level mathematics at scale is now within reach. To our knowledge, this is the largest autoformalization effort to date. We discuss its remaining limitations, most notably the reliance on LLM judges for statement faithfulness.