Formalizing Mathematics at Scale
Ahmad Rammal, Niket Patel, Fabian Gloeckle, Amaury Hayat, Julia Kempe, Rémi Munos, Charles Arnal, Vivien Cabannes
NeurIPS 2026
TL;DR. Lean4 autoformalization 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.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:47 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
The paper proposes a multiagent system to translate informal textbook proses into machine-verified definitions and proofs in Lean 4. The paper has made significant efforts to formalize and add more than 50k such declarations that can be added to mathlib. Overall the reviews are on the positive side (2 5s). The reviewers believe that the efforts are ambitious and potentially high impact (hAUj, RHzU). However, one review has a rating of borderline reject. At this stage, the major concerns are mainly related to the soundness and completeness:
- The completeness in terms of both a breakdown of chapters, topics, and levels of statements would be pretty useful to understand how far this system can be pushed.
- The soundness of statements translated from the textbook is not assessed formally, and therefore it is likely that the LLM judges misinterpret it. One way to hand this would be to do a large-scale human evaluation only at the statement level to check the quality of LLM judges.
- Overall reviewer RHzU believes that the claims are too strong compared to what is proposed. One way to fix this issue is to rephrase the introduction to make these claims more coherent with the method and results.
- Both 5hHv and hAUj, have suggested that formalizing each textbook in isolation might lead to duplicated information in the library, which might limit both the usability of the ATLAS as well as the method for other textbooks. Is building ATLAS incrementally possible? Can it reduce such duplication and nonstandard definition issues?
- While the reviewers have mentioned ablation is done at a smaller scale, I believe the performing ablation at a large scale might be prohibitive due to cost. Maybe an alternative could be to chapters from multiple books for this ablation?
For the rebuttal, the authors should focus on addressing these major concerns first.
Final justification
After reading the rebuttal with additional experiments, all the major concerns have been resolved, and now all the reviewers also unanimously agree and rate this paper positively. The authors should rewrite the abstract and introduction as promised and add the additional details, experiments, and ablations to the revision. I'm recommending this paper to be accepted.
Read meta-review
Meta-review
The paper proposes a multiagent system to translate informal textbook proses into machine-verified definitions and proofs in Lean 4. The paper has made significant efforts to formalize and add more than 50k such declarations that can be added to mathlib. Overall the reviews are on the positive side (2 5s). The reviewers believe that the efforts are ambitious and potentially high impact (hAUj, RHzU). However, one review has a rating of borderline reject. At this stage, the major concerns are mainly related to the soundness and completeness:
- The completeness in terms of both a breakdown of chapters, topics, and levels of statements would be pretty useful to understand how far this system can be pushed.
- The soundness of statements translated from the textbook is not assessed formally, and therefore it is likely that the LLM judges misinterpret it. One way to hand this would be to do a large-scale human evaluation only at the statement level to check the quality of LLM judges.
- Overall reviewer RHzU believes that the claims are too strong compared to what is proposed. One way to fix this issue is to rephrase the introduction to make these claims more coherent with the method and results.
- Both 5hHv and hAUj, have suggested that formalizing each textbook in isolation might lead to duplicated information in the library, which might limit both the usability of the ATLAS as well as the method for other textbooks. Is building ATLAS incrementally possible? Can it reduce such duplication and nonstandard definition issues?
- While the reviewers have mentioned ablation is done at a smaller scale, I believe the performing ablation at a large scale might be prohibitive due to cost. Maybe an alternative could be to chapters from multiple books for this ablation?
For the rebuttal, the authors should focus on addressing these major concerns first.
Final justification
After reading the rebuttal with additional experiments, all the major concerns have been resolved, and now all the reviewers also unanimously agree and rate this paper positively. The authors should rewrite the abstract and introduction as promised and add the additional details, experiments, and ablations to the revision. I'm recommending this paper to be accepted.
3 comments
Official Comment by Authors #2
Both 5hHv and hAUj, have suggested that formalizing each textbook in isolation might lead to duplicated information in the library, which might limit both the usability of the ATLAS as well as the method for other textbooks. Is building ATLAS incrementally possible? Can it reduce such duplication and nonstandard definition issues?
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 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.
While the reviewers have mentioned ablation is done at a smaller scale, I believe the performing ablation at a large scale might be prohibitive due to cost. Maybe an alternative could be to chapters from multiple books for this ablation?
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.
| Book | Budget | Full | −Orchestrator | −Supervisor | −Analyzer |
|---|---|---|---|---|---|
| Theory of Probability | 0.5B | 90% | 87% | 62% | 85% |
| Complex Variables | 0.6B | 76% | 74% | 63% | 71% |
| Algebraic Topology I | 6B | 68% | 66% | 43% | 53% |
| Geometry of Manifolds | 2B | 78% | 26% | 12% | 62% |
These results align well with the paper’s conclusions. The supervisor is the most consistently important component, reducing completion by 13–66% 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:
| Compute | Full | −Orchestrator |
|---|---|---|
| 400M | 29% | 37% |
| 800M | 42% | 50% |
| 2,000M | 54% | 63% |
| 4,000M | 63% | 66% |
| 6,000M | 68% | 66% |
On an infrastructure heavy book like Geometry of Manifolds, the gap appears much earlier: removing the orchestrator reduces completion from 78% to 26%.
Additional Results by Authors
Dear Area Chair,
Thank you again for summarizing the main concerns and guiding the discussion.
As the discussion period closes tomorrow, we wanted to highlight that we have posted, at the top of the discussion as official comments visible to all reviewers, two additional results requested during the discussion:
- An expert audit of 50 challenging statements, in which experts agreed with all 10 harness rejections and 36 of the 40 harness acceptances.
- A matched-model comparison on Geometry of Manifolds, in which AutoformBot reached 56/72 targets while Claude Code reached 36/72, using the same model, targets, and 600M-token budget.
We hope these additions sufficiently address the remaining concerns. Please let us know if anything else would be helpful.
Best regards,
The Authors
- Rating
- 5/6
- Confidence
- 4/5
- Quality
- 4/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 2/4
- Contribution type
- use_inspired
- Ethical concerns
- NO or VERY MINOR ethics concerns only
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.
Final justification
The authors have addressed my concerns. I will keep my overall rating unchanged.
Formatting concerns
N/A
3 comments
Rebuttal
Dear reviewer, we thank you for your positive feedback and helpful comments, which have helped us improve our paper.
The practical reusability of ATLAS remains unclear. [...] as a unified mathematical library.
Since each textbook is formalized in isolation, how much duplicated or incompatible infrastructure appears across ATLAS projects?
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.
The ablation studies are conducted on only one relatively small book [...] in algebraic geometry, Lie groups, or number theory.
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.
| Book | Budget | Full | −Orchestrator | −Supervisor | −Analyzer |
|---|---|---|---|---|---|
| Theory of Probability | 0.5B | 90 | 87 | 62 | 85 |
| Complex Variables | 0.6B | 76 | 74 | 63 | 71 |
| Algebraic Topology I | 6B | 68 | 66 | 43 | 53 |
| Geometry of Manifolds | 2B | 78 | 26 | 12 | 62 |
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:
| Compute | Full | −Orchestrator |
|---|---|---|
| 400M | 29 | 37 |
| 800M | 42 | 50 |
| 2,000M | 54 | 63 |
| 4,000M | 63 | 66 |
| 6,000M | 68 | 66 |
| On an infrastructure heavy book like Geometry of Manifolds, the gap appears much earlier: removing the orchestrator reduces completion from 78% to 26%. |
The system depends heavily on frontier LLMs, [...] the underlying model.
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.
Section 5 states that none of the books are fully formalized, [...] this be interpreted?
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.
Lean already provides #print axioms, which can efficiently [...] beyond what #print axioms provides?
#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.
The paper reports the failure mode "frontal assault," [...] or inferred qualitatively from logs?
It is inferred from agents’ escalations and logs. The visualizer tool also allows us to see what the agents have been doing so far.
The main limitation is evaluation reliability.
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.
Unit Clarification by Authors
All ablation results in the tables are percentages. The same table is rendered correctly in our official response to the Area Chair and can be consulted there for reference. Unfortunately, the platform does not allow us to edit rebuttal comments after submission.
Additional Results
Dear Reviewer 5hHv,
Thank you again for your thoughtful review.
As the discussion period closes tomorrow, we wanted to highlight that we have posted, at the top of the discussion as official comments visible to all reviewers, the additional human audit and the matched-model comparison between AutoformBot and Claude Code.
We hope these results, together with our rebuttal, sufficiently address your concerns. Please let us know if anything else would be helpful.
Best regards,
The Authors
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- use_inspired
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper presents AutoformBot, a multi-agent workflow for autoformalizing mathematical textbooks in Lean 4, and ATLAS, a resulting collection of Lean libraries across 23 open-access textbooks. The main distinctive contribution is a proof of concept that multi-agent orchestration can scale autoformalization workflows across many textbooks and mathematical areas, producing a large volume of compiling Lean artifacts, as well as other artifacts relevant to the analysis and evaluation of the autoformalization orchestration process.
Strengths and weaknesses
The strengths of the paper are as follows:
- Distinctive breadth: 23 books across many areas is unusual compared with recent single-book or single-project efforts.
- Ambitious engineering architecture: orchestrator, workers, reviewers, trace analyzer, supervisor, merge queue, dependency graph.
- Useful operational lessons: identifies concrete failure modes such as cheating, frontal assault, infrastructure panic, and orchestrator fatigue.
- Some empirical support for orchestration choices: ablations on feedback components and worker parallelism, though limited to one small book.
- Artifact-oriented contribution: releasing both the system and generated libraries is valuable if the artifacts are usable.
However, this reviewer considers the following as issues that would, if addressed, improve the paper:
- Completeness is under-characterized. The paper reports target-statement counts, but not section/chapter-level coverage or whether coverage is broad, even, or concentrated in easier regions.
- Coherence/gappiness is not systematically measured. There is little quantification of skipped, weakened, axiomatized, proxy-modeled, or semantically drifting content.
- Claims about “formalizing mathematics at scale” and “research-level verification” seem more aspirational than established; what is shown is a system that takes a first pass at uncovering limitations and failure modes that might ultimately constrain the asserted ambition.
- Evaluation depends heavily on LLM judges. Lean checks proof correctness relative to statements, but faithfulness to the textbook is only partly mechanically assessed.
- Human validation is quite narrow. Appendix G is useful but covers only one book, and it reveals that some hardest statements are not faithfully formalized.
- Related work on coding-agent orchestration is too terse. Since the strongest contribution is orchestration, comparison to repository-level coding agents, SWE-bench systems, multi-agent software workflows, and test-time scaling work should be deeper.
Questions
First, I have some questions for the authors to help understand the issue raised with respect to understanding what this work reveals in terms of completeness, coherence and "gappiness" of the generated autoformalizations:
- Can the authors provide chapter/section-level coverage maps for each textbook?
- Are failures concentrated in harder/later/research-adjacent parts of each book?
- How many targets are completed only through axioms, weakened statements, simplified proxy definitions, or nonliteral modeling choices?
Second, I have two questions to understand how the authors can bridge the above observation about evaluation:
- Can they distinguish “large volume of Lean code” from “coherent textbook formalization” more explicitly?
- How does AutoformBot compare to recent agentic code-generation systems in terms of orchestration, test-time scaling, cost, and long-horizon codebase maintenance?
Limitations
I believe the authors could improve the paper by better representing what the contribution without implying that the door is now open to full-blown autoformalization of large swathes of textbook mathematics. A careless reader might glance at the title and assume that what AutoformBot does is solve the problem of "Formalizing Mathematics at Scale". What the paper does is present useful but preliminary observations about an earnest attempt to scale autoformalization through a well-motivated orchestration architecture, and the authors should lean into that, and in addition position this work against the general set of results around scaling agentic software engineering, to provide an understanding about what is materially different about autoformalization of mathematics as opposed to more general code generation.
Final justification
The authors effectively provided explanations and motivations for the issues I raised in their response in rebuttal.
Formatting concerns
None observed.
3 comments
Rebuttal
We thank the reviewer for their helpful feedback.
Completeness is under-characterized. [...] in easier regions.
Can the authors provide chapter/section-level coverage maps for each textbook?
Are failures concentrated in harder/later/research-adjacent parts of each book?
We agree that this would be useful information, and we will include this information in the Appendix. As an example, we can show such a breakdown for Number Theory I. Overall, the general trend is that later chapters tend to be harder to formalize (though it is not always the case). Qualitative analysis suggests that the main driver of difficulty is the “distance to Mathlib”, rather than the intrinsic mathematical difficulty of the chapters.
| Chapter | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | All |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| # Stmts | 22 | 15 | 19 | 40 | 28 | 25 | 22 | 15 | 17 | 16 | 20 | 24 | 17 | 23 | 9 | 26 | 13 | 31 | 11 | 9 | 17 | 26 | 68 | 14 | 14 | 17 | 8 | 10 | 576 |
| % Passed (≥3/5) | 86% | 100% | 100% | 80% | 82% | 83% | 67% | 79% | 100% | 75% | 55% | 79% | 65% | 87% | 33% | 88% | 100% | 90% | 73% | 44% | 81% | 81% | 82% | 64% | 79% | 71% | 62% | 44% | 79% |
Coherence/gappiness is [...] modeling choices?
We thank the reviewer for raising this point. We agree that the gap between target-level success and a fully gap-free formalization should be quantified systematically. Our dependency-cone analysis records, for every target, all project-local dependencies, sorry occurrences, and non-standard axioms, allowing us to report these statistics per target, chapter, and book. Under our current success criterion, 2,230 of 2,635 successful targets (≈85%) are “fully clean”: neither the target nor any declaration in its transitive dependency cone contains a sorry or non-standard axiom. The remaining ≈15% are faithful and locally proved, but transitively depend on an incomplete declaration elsewhere in the project (e.g. a statement that was left as an exercise in the original textbook and hence let as such by our pipeline); these dependencies are explicitly identified by the harness. Targets containing an illegitimate axiom, a materially weakened statement, or an oversimplified proxy are rejected by the proof-integrity or faithfulness rubrics and are already not counted as successful. Among failed targets, approximately 72% fail proof integrity and 39% fail faithfulness, with overlap.
| Course | Targets | Formalized | Fully clean | Clean rate |
|---|---|---|---|---|
| Algebra Notes I & II | 176 | 159 | 156 | 98% |
| Algebraic Combinatorics | 39 | 39 | 37 | 95% |
| Algebraic Geometry I | 186 | 77 | 74 | 96% |
| Algebraic Topology I | 171 | 129 | 113 | 87% |
| An Algorithmist’s Toolkit | 158 | 129 | 110 | 85% |
| Arithmetic Geometry | 337 | 227 | 198 | 87% |
| Buildings | 74 | 36 | 34 | 93% |
| Complex Variables | 38 | 34 | 29 | 86% |
| Differential Analysis | 113 | 96 | 74 | 77% |
| Differential Geometry | 147 | 102 | 53 | 52% |
| Elliptic Curves | 360 | 200 | 162 | 81% |
| Fourier Analysis | 38 | 33 | 30 | 91% |
| Geometry of Manifolds | 72 | 31 | 26 | 85% |
| High Dimensional Statistics | 73 | 66 | 62 | 94% |
| Intro. to Functional Analysis | 72 | 67 | 66 | 99% |
| Intro. to PDEs | 105 | 98 | 79 | 80% |
| Lie Groups | 185 | 75 | 42 | 55% |
| Number Theory I | 576 | 397 | 350 | 88% |
| Projection Theory | 111 | 86 | 42 | 49% |
| Real Analysis | 177 | 169 | 169 | 100% |
| Stacks Project (Ch. 1–5) | 248 | 201 | 171 | 85% |
| Theory of Computation | 118 | 98 | 83 | 85% |
| Theory of Probability | 100 | 86 | 70 | 81% |
| Total (23 books) | 3,674 | 2,635 | 2,230 | 85% |
We will add this per-book breakdown to the Appendix, together with chapter-level counts separating fully clean targets, transitive sorry dependencies, direct axiomatizations, weakened statements, and proxy or nonliteral modeling. We have also produced a fully closed variant of ATLAS, provisionally called merely-true-Atlas, by removing declarations containing sorry, axioms, or opaque gaps and all declarations depending on them. It retains approximately 85% of ATLAS and will be released as an additional end-to-end gap-free artifact.
Claims about “formalizing mathematics at scale” [...] the asserted ambition.
What the paper does is [...] authors should lean into that
We thank the reviewer for these remarks. While we do believe that our experiments show that LLMs already have the base capabilities to allow for the formalization at scale if properly scaffolded, we agree that the version of the harness presented in the paper is not yet a production-ready solution but, as you mention, a first pass at uncovering the capabilities but also the limitations and failure modes of an autoformalization at scale. We already acknowledge this in the conclusion, but we realize now that both the abstract and the introduction could be misleading and we will rephrase them to make both the scope and the limitations of the work clearer, following your suggestion.
Evaluation depends heavily on LLM judges. [...] mechanically assessed.
Human validation is quite narrow. [...] are not faithfully formalized.
As this point was raised by other reviewers and due to a lack of space, we answer it in a general comment. Regarding Appendix G in particular: Appendix G evaluates an intermediate snapshot of the Algebraic Combinatorics project, at which point our evaluation harness scored 37/39 targets as successfully formalized. The two targets marked “Not ok” by the human experts were the same two targets rejected by our harness because they depended on explicit placeholder axioms - in other words, while the code was not perfect, human validation did align with the judgement of LLMs in this instance. We subsequently continued the AutoformBot loop, corrected these targets, and the final snapshot reported in Table 1 reached 39/39. We will clarify this chronology in the paper.
Related work on coding-agent [...] and test-time scaling work should be deeper.
In addition position this work against [...] to more general code generation.
How does AutoformBot compare [...] codebase maintenance?
We thank the reviewers and agree that the discussion of AI for software engineering was too brief. We will expand it to cover repository-level agents and benchmarks (SWE-agent, OpenHands, Agentless), repository-wide planning (CodePlan), multi-agent software workflows (ChatDev, MetaGPT), and test-time scaling for coding agents. We are happy to incorporate additional relevant work we may have missed, if you have additional suggestions. We also want to clarify that AutoformBot’s orchestration is not derived solely from general-purpose SWE agents. It combines three sources of design: generic coding-agent mechanisms such as tool use, isolated workspaces, review, and parallel sampling; Lean-community practices such as blueprint-style dependency planning (https://github.com/PatrickMassot/leanblueprint), shared formal repositories, reviewed contributions, and CI-gated merge queues to ensure fast compilation checks (https://arxiv.org/pdf/2508.21593); and mechanisms specific to autoformalization, including separate task and target tracking, semantic faithfulness evaluation, dependency-cone inspection, and repair loops for mathematically invalid but compiling code. Regarding differences between typical codebase development tasks and autoformalization: Code can usually be compartmentalized into classes and functions in such a way that only their functional behaviour (input -> output) matters, and their inner workings do not. In Lean, this is true of proofs, but not of statements and definitions. In particular, a definition can be formalized in several correct but unequally convenient ways, and choices tend to have very long-lasting consequences. This high level of interdependence means that errors tend to compound more than in other coding tasks. Conversely, it also means that errors are easier to spot by a reviewer (if the definition of a manifold is wrong, it is likely to manifest itself in many manifold-related statements). The faithfulness of a formalization cannot be tested, only reviewed. Conversely, proofs have a built-in verification mechanism (the Lean kernel). The upper cap on “local” reasoning difficulty (formalizing a difficult theorem with many reasoning gaps) is much higher than in typical coding tasks. These differences make quantitatively comparing our harness to existing systems (e.g. in terms of test-time scaling or costs) difficult. However, we will further discuss both existing systems and the differences mentioned above in our related work section and in a dedicated Appendix. We are also running an additional experiment in which we let Claude Code and Codex formalize Geometry of Manifolds. This compares a strong general-purpose coding scaffold with AutoformBot under the same evaluation harness. Preliminary results 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.
Can they distinguish “large volume of Lean code” [...] explicitly?
We thank the reviewer for raising this distinction. Indeed, lines of code and declaration counts are reported only as scale and effort indicators; they are not success metrics. Our primary metric is the fraction of textbook targets that are matched faithfully and pass proof-integrity checks, which directly measures coverage of the book’s content. We agree that the current presentation overemphasizes volume, and will revise the text to foreground faithful target completion and to describe code volume only as a secondary scale statistic.
Clarification on Human Evaluation by Authors
This comment addresses reviewer RHzU’s concerns that our evaluation depends heavily on LLM judges and that the human validation in Appendix G is too narrow. In our rebuttal above, we wrote that we would answer this point in a “general comment.” By this, we meant the present official comment. Unfortunately, rebuttal comments cannot be edited after submission, so we provide the full response here.
Evaluation depends heavily on LLM judges. [...] mechanically assessed.
Human validation is quite narrow. [...] are not faithfully formalized.
We thank the reviewer for raising the important questions regarding the reliance on LLM judges and the limited scope of the human validation presented in Appendix G. 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 grading 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.
Additional Results
Dear Reviewer RHzU,
Thank you again for your detailed and constructive feedback.
As the discussion period closes tomorrow, we wanted to highlight that we have posted, at the top of the discussion as official comments visible to all reviewers, the additional human audit and the matched-model comparison between AutoformBot and Claude Code.
We hope these results, together with our rebuttal, sufficiently address your concerns. Please let us know if anything else would be helpful.
Best regards,
The Authors
- Rating
- 5/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 4/4
- Significance
- 4/4
- Originality
- 3/4
- Contribution type
- use_inspired
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper presents AutoformBot, a multi-agent framework for large-scale textbook autoformalization in Lean 4. The system uses an orchestrator to construct a dependency-aware task DAG from the source textbook. Worker agents formalize individual statements in isolated git worktrees, reviewer agents inspect proposed changes, a merge queue integrates successful work, and supervisor/trace-analyzer agents provide feedback when targets fail or workers repeatedly hit the same obstacles.
The authors apply the system, primarily using Claude Opus 4.6, to 23 open-access mathematical textbooks spanning analysis, algebra, topology, geometry, number theory, combinatorics, probability/statistics, PDEs, and theoretical computer science. The resulting artifact, ATLAS, contains over 50,000 Lean declarations and approximately 511k lines of Lean code.
The paper also introduces an evaluation harness for textbook formalization. The harness checks that projects compile, constructs a project-local declaration dependency graph, detects suspicious use of sorry, axioms, metaprogramming, vacuous definitions, or weakened statements, matches Lean declarations back to textbook targets, and uses multiple LLM judges to score faithfulness, proof integrity, and code quality. The authors provide ablations on one small textbook, Algebraic Combinatorics, showing that Claude Opus 4.6 substantially outperforms Gemini 3.1 Pro, that the orchestrator/supervisor/trace-analyzer feedback loops improve final target completion, and that racing multiple workers per task improves wall-clock progress.
Strengths and weaknesses
Originality and Significance: The paper makes an ambitious and potentially high-impact contribution by scaling agentic autoformalization from isolated theorems or single books to a multi-book Lean library, though many system components are adaptations of established software-engineering and agent-orchestration ideas.
Pros:
- The problem is important. Formalizing textbook-scale mathematical infrastructure is a major bottleneck for proof-assistant adoption and for reliable verification of AI-generated mathematics.
- The scale of the artifact is impressive: 23 textbooks, more than 50,000 Lean declarations, roughly 511k lines of code, and 2,635 successfully formalized target statements out of 3,674 identified targets.
- The paper provides useful empirical lessons about multi-agent coordination failures, including repeated failed proof strategies, hidden axioms or weakened definitions, infrastructure avoidance, and orchestrator fatigue.
- Releasing both the framework and the generated formal library could be valuable for the Lean and ML-for-math communities
Cons:
- The reported success metric depends on LLM matching and LLM grading. The main paper does not provide a statistically meaningful human audit across books, areas, and difficulty levels.
- The evaluation of the orchestration framework is limited. Ablations are performed only on Algebraic Combinatorics, a small 39-target book.
- The system currently formalizes each book in isolation, which may lead to duplicated, incompatible, or noncanonical definitions across ATLAS.
Questions
- How reliable is the LLM-based faithfulness evaluation? Please provide a larger human audit across a random stratified sample of books, target types, and pass/fail cases.
- How robust are the system ablations beyond Algebraic Combinatorics? The current ablations are on a small 39-target book. How does the system perform on a more infrastructure-heavy book such as algebraic topology, algebraic geometry, or number theory.
Limitations
yes
Final justification
The rebuttal largely resolved my evaluation concerns with an expanded human audit and multi-book ablations. Although cross-book consistency remains a limitation, it is outweighed by the work’s scale, technical quality, and potential impact, so I maintain my positive score.
Formatting concerns
Malformed citations on lines 103 and 106.
3 comments
Rebuttal
Dear reviewer hAUj, thank you very much for your positive feedback and encouraging comments which have helped us improve our paper.
The system currently formalizes each book in isolation, which may lead to duplicated, incompatible, or noncanonical definitions across ATLAS.
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.
How reliable is the LLM-based faithfulness evaluation? Please provide a larger human audit across a random stratified sample of books, target types, and pass/fail cases.
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 and following the advice of reviewer hAUj, 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.
How robust are the system ablations beyond Algebraic Combinatorics?
The current ablations are on a small 39-target book. How does the system perform on a more infrastructure-heavy book such as algebraic topology, algebraic geometry, or number theory. 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.
| Book | Budget | Full | −Orchestrator | −Supervisor | −Analyzer |
|---|---|---|---|---|---|
| Theory of Probability | 0.5B | 90 | 87 | 62 | 85 |
| Complex Variables | 0.6B | 76 | 74 | 63 | 71 |
| Algebraic Topology I | 6B | 68 | 66 | 43 | 53 |
| Geometry of Manifolds | 2B | 78 | 26 | 12 | 62 |
| 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: | |||||
| Compute | Full | −Orchestrator | |||
| --- | ---: | ---: | |||
| 400M | 29 | 37 | |||
| 800M | 42 | 50 | |||
| 2,000M | 54 | 63 | |||
| 4,000M | 63 | 66 | |||
| 6,000M | 68 | 66 | |||
| On an infrastructure heavy book like Geometry of Manifolds, the gap appears much earlier: removing the orchestrator reduces completion from 78% to 26%. |
Thank you for spotting the malformed citations as well, we will correct this in the camera-ready version.
Formatting Clarification by Authors
We apologize for the formatting issue. All ablation results in the tables are percentages. The table was rendered incorrectly because of a missing blank line in the Markdown formatting. The same table is rendered correctly in our official response to the Area Chair and can be consulted there for reference. In addition, the sentence “The current ablations are on a small 39-target book. How does the system perform on a more infrastructure-heavy book such as algebraic topology, algebraic geometry, or number theory?” is part of a reviewer’s comment and was inadvertently displayed as part of our response. Unfortunately, the rebuttal platform does not allow us to edit comments after submission.
Additional Results
Dear Reviewer hAUj,
Thank you again for your detailed and constructive feedback. As the discussion period closes tomorrow, we wanted to highlight that we have posted, at the top of the discussion as an official comment visible to all reviewers, the additional human audit.
We hope this result, together with our rebuttal, sufficiently addresses your concerns. Please let us know if anything else would be helpful.
Best regards,
The Authors
Comments on the paper
2 comments
Additional Human Audit of the Evaluation Harness
We have sampled 50 statements from books not included in Appendix G, stratified by harness verdict and restricted to statements requiring at least 200 lines of project-local supporting development to exclude shallow restatements of existing Mathlib results and focus on challenging statements. We have asked expert annotators (experienced mathlib contributors) to assess the quality of their formalizations.
Among the completed annotations, 10 statements were rejected by the harness and 40 were accepted. Experts agreed with all 10 rejections and with 36 of the 40 acceptances. Thus, all four disagreements were false passes, corresponding to a 10% false-pass rate within this deliberately difficult accepted stratum.
We report the four disagreements below
| Declaration | Book | Source location |
|---|---|---|
MinimaxLowerBound.theorem_5_11 |
High-Dimensional Statistics | Section 5.4 |
TitsCone.titsCone_main_theorem |
Buildings | Section 13.1 |
StochasticMatrix.kolmogorov_cycle_theorem |
Theory of Probability | Lecture 32 |
CFGtoPDA.cfg_to_pda |
Theory of Computation | Lecture 4 |
Three false passes appear to result from overly permissive grading or unsupported justification:
- theorem_5_11: the LLM judge noted that hGSM was assumed rather than established from the model, but classified this as only a “slight departure.” The human expert considered the same issue material enough to reject the statement.
- titsCone_main_theorem: the LLM judge accepted a purportedly equivalent reformulation, whereas the human expert rejected it because the required equivalence is not established in ATLAS.
- kolmogorov_cycle_theorem: the LLM judge accepted a restriction to finite state spaces, while the human expert judged that it materially weakened the source theorem.
- cfg_to_pda: the formalization used a broader definition of pushdown automata than the textbook, making the theorem easier to satisfy. The judge did not identify this mismatch.
The first three cases indicate a calibration problem: the judge identified the relevant discrepancy but did not penalize it sufficiently, or relied on an unsupported justification. The fourth illustrates that target-level evaluation can miss mismatches inherited from supporting definitions.
These results provide additional evidence on the reliability of the automated evaluation while also identifying specific limitations. An important share of errors can be attributed to a grading system that is too lenient (which would be improvable with better rubric calibration), rather than to intrinsic limitations of the model’s assessment capabilities.
While we could not have more than 50 statements assessed in time for the end of the discussion period, we have sampled 50 additional statements and will report the complete 100-statement audit and detailed case analyses in the revised appendix.
Matched-Model Comparison: Claude Code vs. AutoformBot
To isolate the contribution of the harness from that of the underlying model, we compared AutoformBot and Claude Code from scratch on Geometry of Manifolds, both using the same model Claude Opus 4.8, the same 72 targets, and the same budget of 600M tokens. We also gave Claude Code access to the Lean REPL and Loogle through MCP, so that it could easily run Lean code and search Mathlib for existing infrastructure.
Claude Code reached 36/72 targets after approximately 22 hours, and had already plateaued at this level by around 500M tokens. AutoformBot reached 56/72 targets in approximately three hours with the same 600M-token budget. Furthermore, while AutoformBot worked independently, Claude Code required repeated user prompting to keep working (left to its own devices, it would give up after a few hours).
The execution traces suggest that much of the difference comes from orchestration and context management. Claude Code maintained only a limited pool of subagents and did not natively support efficient task distribution, isolated parallel worktrees, or concurrent attempts on the same target. AutoformBot was designed specifically to sustain parallel work on a large formal codebase.
This matched-model comparison provides evidence that the harness itself improves scalability and target completion. We will include it in the final version of the paper, as well as a comparison to Codex.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Official Comment by Authors
We thank the Area Chair for summarizing the reviewers’ concerns. We have responded to these concerns in the rebuttal and restate our main responses below for clarity and completeness.
We agree that this would be useful information for someone reading the paper, and we will include this information in the Appendix. As an example, we can show such a breakdown for Number Theory I. Overall, the general trend is that later chapters tend to be harder to formalize (though it is not always the case). Qualitative analysis suggests that the main driver of difficulty is the “distance to Mathlib”, rather than the intrinsic mathematical difficulty of the chapters.
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 grading 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 and following the advice of reviewer hAUj, 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.
We thank the reviewer RHzU for these remarks. We realize now that both the abstract and the introduction could be misleading and we will rephrase them to make both the scope and the limitations of the work clearer, following his suggestion. We’ll also put less emphasis on the number of lines of code and number of lean declarations and will revise the text to foreground faithful target completion and to describe code volume only as a secondary scale statistic.