- Rating
- 5
- Clarity
- 3
- Confidence
- 4
- Originality
- 2
- Quality
- 3
- Significance
- 3
Read review
Summary
This paper presents a large-scale case study in automatic textbook formalization. The authors build a multi-agent system that formalizes a 500+ page graduate textbook in algebraic combinatorics into Lean. The resulting artifact contains around 130K lines of Lean code, approximately 5,900 declarations, and 340 target definitions/theorems, all reportedly formalized and proved. The system uses a repository-level workflow inspired by collaborative software engineering: sketcher agents produce theorem and definition skeletons, prover agents fill proofs, reviewer agents check mathematical faithfulness and engineering quality, and maintainer/triage/scan/progress agents handle global issues. Coordination is mediated through git, short-lived branches, pull requests, a merge queue, and a file-based issue tracker.
Strengths and weaknesses
This paper presents a large-scale case study of automatic textbook formalization using multi-agent system orchestration. The scale of the result is striking. A full graduate-level textbook, 130K lines of Lean code, and thousands of agent runs represent a substantial engineering effort and a valuable artifact for the formal mathematics and autoformalization communities. The paper’s main strength is its framing of autoformalization as collaborative proof engineering rather than theorem proving. The system argues that textbook formalization requires not only proving local statements, but also maintaining coherent definitions, useful APIs, review procedures, dependency structure, and global progress. The use of multiple specialized agent roles is sensible, and the discussion of failures in Appendix F is particularly valuable. The examples of duplicated N-partition definitions and inconsistent Bender-Knuth involution formalizations illustrate real challenges that are often hidden in theorem-level evaluations. The paper is transparent about cost, token usage, agent outcomes, and orchestration failures.
However, as a research contribution, the paper is weaker. Many of the orchestration mechanisms are standard software engineering practices—git branches, pull requests, review, merge queues, issue tracking—applied at scale to Lean formalization. This is practically important, but the paper does not sufficiently isolate which design decisions are necessary or novel. There is no clear ablation of the agent roles, issue tracker, reviewer structure, merge policy, or scheduling strategy. As a result, it is difficult to know whether the success comes from the proposed orchestration design specifically, from massive parallelism and budget, from LLM's capabilities, or from the particular structure of the chosen textbook.
The paper is generally supported as a case study, but some broader claims feel under-evidenced. For example, the paper suggests that the bottleneck is now orchestration rather than model capability, and that 3–10x cost reductions are achievable without better models. These are plausible, but they are mostly argued from observations rather than controlled experiments.
Questions
-
Is this paper best viewed as a systems case study, a dataset/resource paper, or a research paper on multi-agent orchestration?
-
Please provide more evidence for the necessity of the orchestration components. For example, can you compare against simpler variants such as only sketcher+prover agents, no maintainer agents, no issue tracker, no dual review, or lower parallelism? Even small-scale ablations on selected chapters would make the orchestration claims much stronger.
-
The paper says reviewer agents imposed a high bar and that key statements were manually spot-checked, but the reliability of the final artifact depends critically on whether Lean statements accurately reflect the textbook. A more systematic sampling protocol, error rate estimate, or independent human audit would improve confidence.
Limitations
Not fully. The paper does discuss several important limitations, including high cost, single-run design, coordination failures, duplicate definitions, rabbit holes, and merge bottlenecks. However, I would encourage the authors to include a dedicated limitations section in the main paper rather than leaving many of the most important caveats in Appendix F. The paper should more explicitly discuss the limited generality of a single textbook case study, the dependence on one frontier model, the lack of systematic ablations, and the uncertainty around the semantic faithfulness of formalized statements. The implications for future autoformalization are compelling, but the paper should distinguish more clearly between demonstrated results and plausible extrapolations.
Paper formatting concerns
Some important methodological and limitation details are pushed into the appendix, particularly the failure analysis in Appendix F.
Final justification
The authors have addressed my concerns satisfactorily and further strengthened the paper by providing additional experimental results and manual judgment.
We sincerely thank you very much for your thoughtful and detailed feedback.
Answer to questions:
Thanks for highlighting this lack of precision: in our opinion, the paper is best viewed as a case study. Performed in March 2026, this is, to our knowledge, the first full autoformalization of a graduate textbook without human involvement beyond verification.
We agree. Large-scale autoformalization raises distinct challenges: unlike a self-contained proof within known mathlib content, stating a theorem with 20+ transitive definition dependencies requires navigating an untrusted development environment. We were unaware of a benchmark with sufficient depth and size. Our experiment can therefore also serve as a benchmark: alternative systems may formalize the same targets with less LLM compute. We agree that a carefully chosen chapter could test the same difficulties at a smaller scale, and we hope to be able to provide such an ablation during the discussion period.
Yes, reliability depends critically on whether the Lean statements accurately reflect the textbook. Following your suggestion, we audited all 340 target statements, see below.
Statement translation fidelity
Repository-level fidelity checks are harder than checks of standalone Mathlib theorems because statements may depend on substantial project-specific context. For example, the formalized Jacobi–Trudi theorem has 22 transitive dependencies, spanning both mathematical concepts and internal Lean infrastructure.
With this in mind, we conducted a complete audit of all 340 target statements with the following evaluation protocol:
We extracted proof-free standalone Lean files containing all target statements and their definition dependencies using an adapted version of EmitStandalone (https://github.com/mattrobball/lean-informal/blob/main/Informal/EmitStandalone.lean). Grouping the 340 targets into 46 chapter-level files reduced redundant review of shared dependencies.
We check against adversarial proof techniques (hidden axioms, syntax elaboration tricks etc) using Lean comparator.
A frontier model from another family (GPT 5.6 Sol) reviewed all targets for semantic faithfulness. It located each informal statement and corresponding formal declarations, followed repository definitions and dependencies as needed, and assessed semantic equivalence within the repository context. Unlike a fixed declaration-by-declaration pipeline, this agentic approach can follow definitions across files, trace proof and dependency chains, and identify alternative representations and bridging theorems when relevant code is distributed throughout the repository. This is important because there is not always an exact 1:1 mapping between informal and formal declarations.
A separate project-level consistency review checked whether duplicated definitions were either connected by proved equivalences or kept separate throughout downstream proof chains (GPT 5.6 Sol). This is to avoid a situation where the source proves P(X) \and Q(X) but the formal version proves P(X) \and Q(X’) for two different versions X and X’ without including an equivalence X \equiv X’.
Following reviewer kWUV’s suggestion, we also performed a repository-aware backtranslation audit. Since statements cannot be paired up one by one in isolation, formal concepts were translated into informal language using their required context (as in their standalone files and the informal counterparts) and then compared with the source statements for semantic equivalence in a separate model context using DeepSeek-V4-Pro. The model was instructed to flag ambiguous cases rather than guessing.
This entire procedure has been considered a reasonable fidelity check in the absence of human domain experts by mathlib maintainers. In addition to this automated evaluation protocol, we are performing a human spot checking of a random subset of the 46 “chapter” standalone files by a mathlib maintainer, two PhD students in mathematics and a professor in mathematics.
The results of the audit are as follows:
Overall, except for the M=N issue, we classify the deviations as either minor or defensible alternative conventions. The table below reports repairs implemented by GPT 5.6 Sol for a representative subset; all attempted repairs other than the M=N case required fewer than 200 added lines of Lean. We omit alternative conventions, such as partition containment and zero extension, and typeclass choices from this comparison because their diffs would primarily reflect broad but shallow refactoring rather than the conceptual difficulty of the repair.
Answers to comments
Research Contribution
We agree that the two goals of this project – to establish that autoformalization at the textbook scale and outside of mathlib coverage is practically feasible, and to propose a rigorously vetted “minimal architecture” that is capable of doing so – are fundamentally at odds given the computational budgets under which we operated. We therefore opted for a pragmatic middle ground where we started off with a simple top-down system with sketchers, provers and reviewers and gradually incorporated additional coordination mechanisms when the need arose. In other words, all components of the final system were informed by some observed deficiency of the previous version, but we cannot guarantee that subsequent features did not fully replace previous features (and we are transparent about this fact, see Section 5.6 for example). However, we agree that additional evidence is required to establish our design as necessary for large-scale autoformalization. At present, we can hint at the following evidence: anecdotal evidence from our development (see above), a heuristic argument for why pure top-down designs are not robust to scaling and comparison with other published projects. For the heuristic argument, consider a dependency tree of depth d and a success rate of p<1 for statement or definition formalizations. Pure top-down (sketch and prove) approaches never revise statements and thus require all d statements in a chain to be correct, so the success rate pd goes to zero for large depths d. Comparing with related large-scale autoformalization projects, the most relevant existing works use a strict top-down planning procedure (sketcher agent, once the sketch compiles it is frozen, then provers for each proof to fill in), but so far hasn’t been shown to work in domains clearly outside of what mathlib provides. This was very partially discussed in the related work and we will detail it more.
Broader claims
We agree with you that these broader claims may dilute the message of a paper that is primarily a case-study and we removed most of them. In detail, we cut the unsupported “10x efficiency gains” claim and the “other models would behave similarly” speculation, and refer to the answer to reviewer kWUV for background and details related to these claims.