- Rating
- 5
- Clarity
- 3
- Confidence
- 4
- Originality
- 2
- Quality
- 4
- Significance
- 3
Read review
Summary
This paper presents AUTOFORMBOT, a multi-agent framework for efficient autoformalization of mathematical textbooks in Lean 4. The system casts textbook formalization as a collaborative software-engineering problem: an orchestrator decomposes the source material into a dependency-aware task DAG; worker agents formalize individual statements in isolated Git worktrees; reviewers and mechanical checks validate candidate contributions; and a merge queue integrates successful changes. Additional feedback loops, including a trace analyzer and supervisor, help the system learn from failures and repair target-level quality issues.
The authors apply AUTOFORMBOT to 23 open-access mathematics textbooks spanning analysis, algebra, topology, geometry, number theory, combinatorics, probability/statistics, PDEs, and theoretical computer science. The resulting ATLAS library contains over 50,000 Lean declarations and roughly 500,000 lines of Lean code, with 2,635 out of 3,674 identified target statements successfully formalized. The paper also reports ablations on model choice, feedback components, and worker parallelism, and discusses practical failure modes such as hidden axioms, weakened statements, repeated failed proof strategies, and degradation of long-lived orchestrator agents.
Strengths and weaknesses
Strengths
- The paper addresses an important and timely problem: scaling the formalization of mathematical knowledge to support reliable verification of both human- and machine-generated mathematics.
- The system-level framing is compelling. Treating textbook autoformalization as collaborative software engineering, rather than as isolated theorem proving, is well motivated.
- The reported scale is impressive: the system is applied across 23 textbooks in diverse mathematical areas and produces a large Lean corpus.
- The ablation studies are useful and provide evidence that model choice, feedback components, and worker parallelism affect performance.
- The discussion of failure modes—such as repeated failed strategies, hidden axioms, weakened statements, and orchestrator fatigue—is valuable and provides practical insights for future multi-agent formalization systems.
Weaknesses
- The novelty of the architecture is somewhat limited at the component level. Many elements resemble standard software-engineering agent frameworks: task decomposition, Git branches/worktrees, code review, CI-style checks, and merge queues. The main novelty is their integration and adaptation to Lean formalization, rather than any fundamentally new agent or theorem-proving method.
- The system depends heavily on frontier LLMs, and performance appears highly model-dependent. This makes it difficult to separate the contribution of the orchestration framework from the capabilities of the underlying model.
- The practical reusability of ATLAS remains unclear. Since each textbook is formalized largely in isolation, the generated code may contain duplicated infrastructure, nonstandard definitions, or conventions that are difficult to integrate into Mathlib. This may limit the usefulness of ATLAS as a unified mathematical library.
- The ablation studies are conducted on only one relatively small book, Algebraic Combinatorics. It is unclear whether the same conclusions hold for larger and more infrastructure-heavy textbooks such as those in algebraic geometry, Lie groups, or number theory.
Minor citation issue: In Line 106, the citation appears as “[?Liu et al., 2026]”, suggesting a broken or unresolved reference.
Questions
- Section 5 states that none of the books are fully formalized, but Table 1 reports Algebraic Combinatorics as 39/39 formalized. How should this be interpreted?
- Lean already provides
#print axioms, which can efficiently expose the axioms used by a theorem. What additional failure modes are caught by the proposed declaration dependency graph and structural-tag analysis beyond what#print axiomsprovides? - The paper reports the failure mode "frontal assault," where workers repeatedly attempt the same proof strategy despite prior failures. How is this behavior identified in practice? Is it detected automatically by the trace analyzer, judged by human inspection, or inferred qualitatively from logs?
- Since each textbook is formalized in isolation, how much duplicated or incompatible infrastructure appears across ATLAS projects?
Limitations
The main limitation is evaluation reliability. Lean compilation provides a strong mechanical check that formal proofs are valid relative to their statements and dependencies. However, faithfulness to the informal textbook statements is largely assessed by LLM judges. This may introduce correlated errors, especially if similar models are used for both generation and evaluation. The dependency-graph analysis and structural tags are useful safeguards, but they do not fully solve the semantic faithfulness problem.
Paper formatting concerns
N/A
Final justification
The authors have addressed my concerns. I will keep my overall rating unchanged.
Dear reviewer, we thank you for your positive feedback and helpful comments, which have helped us improve our paper.
We intentionally worked on each book in isolation to make each attempt an independent experiment. We also privileged intrinsic correctness over respecting Mathlib-like coding standards. As a result, overlapping content and conflicting definitions did indeed occur (as acknowledged in the paper’s conclusion). As we intentionally selected books that cover distinct mathematical fields, the level of overlap should be fairly limited. To provide a preliminary analysis, we extracted all declarations and counted concepts recurring across projects. Of 3,329 distinct concepts, 90 recur in at least two books, corresponding to approximately 121 redundant copies (3.6%). This is a lower bound, since semantically equivalent concepts may use different names in different fields of math. Duplication is concentrated in neighboring subjects, with the clearest cluster being in algebraic geometry and number theory. We will add this analysis to the Appendix.
While this is a limitation of the current version of Atlas as a unified library, this is not a limitation of our method in itself, as the same harness could be applied to larger scale projects spanning several books, which would result in a harmonized codebase. Incremental approaches, where the agents are tasked with treating an existing codebase built on top of Mathlib (rather than Mathlib alone) as their foundation while working on extending this codebase, are also very natural. In addition, individual ATLAS results have already been reused in subsequent formalization work; for example, we were able to reuse certain parts of the library to solve open formalization problems. We will document such reuse in the camera-ready version. Indeed, while we envisioned this version of ATLAS as an early proof of concept (from which we will nonetheless be able to extract the majority of the material for reuse), we do plan on releasing an updated version that would take the shape of a unified codebase (and closer to Mathlib in terms of coding standards). Our early work in this direction is encouraging; in particular, we have found that automatically creating a coarse graph of mathematical concepts that can span several books or topics (essentially what the Lean community calls a blueprint) before starting the formalization per-se is of great importance to help agents coordinate at scale.
We selected Algebraic Combinatorics because it was the smallest completed project, making controlled matched-budget reruns feasible. We now extend the component ablations to four additional books spanning easier and more infrastructure-heavy settings. Each run starts from scratch, uses Opus 4.6 with the same worker configuration, and compares all conditions under the same protocol. These are fresh runs, so absolute completion differs from Table 1. We will include full completion-versus-compute curves in the revision, analogous to Fig. 4b.
These results align well with the paper’s conclusions. The supervisor is the most consistently important component, reducing completion by 13–66 points when removed. The trace analyzer has a smaller effect on the easier books but a larger one on the harder runs, consistent with its role in preventing repeated failed attempts. The orchestrator matters little when the initial DAG is effective, but becomes critical when substantial replanning is required. On Algebraic Topology I, the static-DAG run is initially more efficient but later plateaus while the full system continues improving:
This is a good point. We believe this is true of most work on harnesses. We did perform ablations to show the gains in performance resulting from the combination of our framework’s various components (for instance in Figure 4). Nevertheless, we understand from your comments that more ablations would be helpful. Following this suggestion, we are currently running a direct baseline in which Claude Code and Codex formalize Geometry of Manifolds using the same Lean REPL and Mathlib-search tools. This compares a strong general-purpose coding scaffold with AutoformBot under the same evaluation harness. We will report target completion, compute, wall-clock time, faithfulness, and proof integrity by the end of the discussion period. Preliminary runs suggest that the generic scaffold stops earlier, maintains a smaller active agent pool, and has more difficulty sustaining planning and review over the full development. We will report the completed results before the end of the week.
This was a mistake on our end: the sentence “none of the books are fully formalized” was incorrect: Algebraic Combinatorics reached 39/39 identified target statements. This was caused by an earlier outdated snapshot where we were at 37/39. This is corrected now, thanks for spotting it.
#print axioms is useful for detecting axiomatic dependencies, but it does not capture structural ways in which a formalization can become vacuous or misleading without introducing any axiom. For example, a theorem may weaken the intended conclusion to True, assume the desired conclusion directly as a hypothesis, hide the main mathematical obligation inside a structure or typeclass field, or introduce the target merely as a def : Prop rather than proving it. All of these can appear clean under #print axioms. Our structural tags are designed to flag such patterns, while the declaration dependency graph provides project-level attribution. In particular, when #print axioms reports sorryAx, it does not identify which project-local declaration introduced the gap or which downstream results depend on it. The graph localizes the source and measures its propagation through the codebase.
It is inferred from agents’ escalations and logs. The visualizer tool also allows us to see what the agents have been doing so far.
We agree that this is a limitation of purely automated frameworks, though we can try to estimate the reliability of LLMs as judges by comparing their assessment to human annotations on a subset of statements - see also our response to a related point in our general answer. We are limited by the cost of human annotation; considering the size of the codebase (500k lines of code), we could not realistically have humans review all of it. We agree that LLM judges cannot be a priori fully trusted. As such, our approach was to have annotators validate the quality of the LLM grading on a sample (Appendix G), which led to the conclusion that annotators essentially mostly (though not always) agree with LLM grading (in particular to be clear: the conclusion is not that the formalized code is perfect, but that the LLM-based evaluations and the human experts annotators mostly agree on its weaknesses). We are running a subsequent human audit by Lean experts and we hope to be able to share more numbers by the end of the discussion period. Furthermore, we found out that even in cases where the LLM judge failed to flag an error, it frequently did spot the error and mentioned it in its review: it was just too lenient in its grading (“the definition of manifold is not totally correct -> 4/5”). Early experiments suggest that this can be improved with stricter gradient criteria and slightly rephrased rubrics.
Overall, these results helped us trust the automated grading: while formalizing is a difficult task that remains at the limit of what LLMs can achieve, judging the quality of a formalization seems to be comparatively easy.
To robustify these conclusions, we have sampled at random 100 formalized statements (whose proofs required substantial supporting development, not shallow restatements from Mathlib) from various books (distinct from those in Appendix G) and asked human experts (Mathlib contributors) to judge the quality of the formalizations. We will then compare their assessment to that of our eval system, share some summary of the results with you, and add them to the Appendix. We expect to receive a substantial share of the results later this week.
In future work, we plan on exploring human-in-the-loop systems in which the scaffold selects the smallest possible amount of code for human review that guarantees the highest possible level of confidence in the soundness of the overall project. This raises interesting questions in terms of code structure and user interface design.