TL;DR
MathAdv is a new diagnostic benchmark for formal theorem proving in Lean 4 that moves beyond aggregate accuracy to evaluate why models fail. By decoupling mathematical knowledge, informal reasoning, formalization, and robustness across 13 advanced domains, it reveals that translating math into code remains a massive bottleneck and that current provers are highly sensitive to how a problem is phrased.
What Problem Does This Paper Address?
Large Language Models (LLMs) are increasingly being trained to act as automated theorem provers, writing machine-verifiable code in proof assistants like Lean 4. However, existing benchmarks typically only report a single metric: aggregate proof accuracy. If a model fails to generate a valid proof, it is impossible to tell whether it lacked the underlying mathematical knowledge, made a logical reasoning error, or simply stumbled over Lean's strict syntax.
Furthermore, current benchmarks focus heavily on high-school competition math (like algebra and number theory), leaving advanced university-level topics unexamined. They also test models on a single, fixed problem formulation, meaning we don't know if a model truly understands the math or is just memorizing familiar phrasing.
Methods
The authors introduce a component-wise diagnostic framework that breaks down theorem proving into four distinct capabilities:
- Core Formal Proof: Constructing a machine-verifiable Lean 4 proof.
- Knowledge (Auxiliary): Multiple-choice questions that probe whether the model can identify the relevant theorem or strategy.
- Informal Reasoning (Auxiliary): Direct-answer/fill-in-the-blank questions to solve the math in natural language without writing code.
- Robustness (Auxiliary): Expert-crafted problem reformulations that preserve the underlying mathematics but alter the presentation.
To ensure the benchmark's code is both compilable and semantically accurate, the authors designed a human-in-the-loop autoformalization pipeline. An LLM drafts the Lean code, the Lean compiler provides feedback for iterative syntax correction, and independent LLMs and domain experts verify that the formal code faithfully matches the original natural-language problem.
Datasets
The paper introduces MathAdv, a benchmark consisting of 321 source problems spanning 13 undergraduate- and graduate-level mathematical domains, including topology, Fourier analysis, and functional analysis.
Of these, 298 problems have fully formalized Lean 4 statements. The remaining 23 are retained exclusively for auxiliary natural-language tasks because the current Lean standard library (Mathlib) lacks the prerequisite definitions to state them formally.
Key Insights and Ideas
- Formalization is the primary bottleneck: Models frequently solve problems correctly in natural language (Direct Answer) but fail to translate that exact logic into valid Lean code.
- Severe domain imbalance: Current theorem provers are highly specialized. They perform reasonably well in number theory and linear algebra (likely due to the abundance of competition math in their training data) but completely fail—scoring 0% accuracy—in abstract fields like topology.
- Hints can backfire on specialized models: Providing natural-language reasoning hints improves general-purpose LLMs (like DeepSeek-V3.2) but actually degrades the performance of proof-specialized models (like Goedel-Prover), indicating that different model families utilize informal guidance differently.
- Brittleness to reformulation: Even minor changes in wording or problem structure disrupt learned proof patterns and theorem retrieval, exposing a lack of robust mathematical generalization.
Key Results
- Top Performers: Goedel-Prover-V2 achieved the highest overall formal proof accuracy at 21.88%, followed by DeepSeek-Prover-V1.5 RL + RMaxTS at 16.56%. Both systems rely on verifier-guided search rather than one-shot generation.
- The Reasoning Gap: Models consistently scored much higher on natural-language tasks than on formal code generation. For example, DeepSeek-Prover-V1.5 RL + RMaxTS scored 42.0% on Direct-Answer and 38.7% on Multiple-Choice, but dropped to 16.56% on formal proofs.
- Robustness Failures: In the original vs. transformed comparison, models frequently solved the original problem but failed its mathematically equivalent variant. For instance, Goedel-Prover-V2 solved 6 original problems but failed all 6 of their transformed counterparts.
Limitations and Future Work
- Dataset Size: Creating and validating high-quality graduate-level math problems requires immense expert effort, keeping the dataset size modest at 321 problems.
- Mathlib Coverage Gaps: Advanced fields like Riemannian geometry cannot yet be fully evaluated because foundational definitions (such as the Bishop–Gromov inequality) are missing from Lean's Mathlib. The authors plan to formalize these deferred problems as the Lean ecosystem matures.
Summary updated