Summary (Overview)
- MathAdv is a new diagnostic benchmark for formal mathematical reasoning in Lean 4, spanning 321 problems across 13 undergraduate- and graduate-level domains, including underrepresented areas like topology, Fourier analysis, and functional analysis.
- The benchmark provides up to three auxiliary tasks beyond theorem proving: multiple-choice questions (probing mathematical knowledge), direct-answer/fill-in-the-blank problems (isolating informal reasoning), and expert-crafted transformed variants (testing robustness to problem reformulation).
- Four key findings emerge from evaluating contemporary theorem provers: (1) formalization remains a major bottleneck, (2) performance varies substantially across domains, (3) natural-language hints help general-purpose LLMs but hurt proof-specialized models, and (4) models are brittle to mathematically equivalent reformulations.
- Goedel-Prover-V2 achieves the best Lean 4 performance at 21.88%, followed by DeepSeek-Prover-V1.5 RL + RMaxTS at 16.56%, while general-purpose models like GPT-5.4 reach only 10.62%.
- The dataset and evaluation scripts are publicly available at https://github.com/margotyjx/MathAdv.git.
Introduction and Theoretical Foundation
Background and Motivation
Mathematical reasoning is a fundamental benchmark for AI because it requires abstract understanding, logical deduction, and multi-step reasoning beyond memorization. Formal theorem proving offers a rigorous alternative to informal natural-language evaluation: models construct machine-verifiable proofs in proof assistants such as Lean, Coq, and Isabelle, enabling automatic verification.
Three Critical Limitations of Existing Benchmarks
-
Limited diagnostic resolution: Benchmarks report only aggregate proof accuracy, making it impossible to distinguish failures from knowledge gaps, reasoning errors, or formalization difficulties.
-
Narrow domain coverage: Existing benchmarks focus on competition-level problems (high-school and undergraduate), with an emphasis on algebra and number theory. Advanced areas like topology, Fourier analysis, and functional analysis are poorly represented.
-
Limited robustness evidence: Models are evaluated on a single, fixed formulation of each problem, even though language-model reasoning is sensitive to minor changes in problem formulation. This also raises concerns about data contamination and memorization.
Theoretical Foundation
Formal mathematics encodes statements and proofs within a logical system implemented by a proof assistant. Mathematical objects must be built from concepts recognized by the system, and every derivation must follow its logical rules. This requires models to translate mathematical ideas into precise definitions, statements, and logically valid proof steps.
Methodology
Benchmark Design
MathAdv contains 321 problems across 13 domains: number theory, linear algebra, abstract algebra, calculus, real analysis, complex analysis, Fourier analysis, functional analysis, probability, topology, geometry, combinatorics, and logic. 298 problems are formalized in Lean 4; the remaining 23 are deferred due to gaps in Mathlib coverage.
Auxiliary Task Types
Direct-answer problems: Recast proof problems as questions asking models to compute a target quantity without writing a Lean proof, separating informal problem solving from formal proof construction.
Multiple-choice problems: Ask models to identify the theorem, concept, or reasoning strategy most relevant to the original problem from several plausible options. Constructed for 293 problems.
Transformed problems: Expert-crafted reformulations that preserve underlying mathematical reasoning while substantially altering problem presentation. Constructed for 30 problems.
Example Transformation (Real Analysis)
Original: Let . Prove that
Transformed: Let . Prove that the smallest convex set containing is
Human-in-the-Loop Autoformalization Pipeline
The pipeline comprises four stages:
- Initial Autoformalization: An LLM generates a Lean 4 statement.
- Syntax Correction: Compiler errors are returned to the model for iterative correction until the statement type-checks.
- Dual Semantic Verification: An independent LLM and a human expert check semantic fidelity.
- Final Expert Review: A second expert performs final review.
This design is motivated by the observation that LLMs can explain mathematical meaning and identify semantic issues but are unreliable at predicting whether code will be accepted by the Lean type checker. The Lean compiler provides direct feedback, while LLMs help interpret and revise at the semantic level.
Evaluated Models
- Proof-step generation models: InternLM2-Math-Plus-7B, InternLM2-Step-Prover, DeepSeek-Prover-V1.5-RL + RMaxTS, DeepSeek-Prover + MA-LoT, Goedel-Prover + MA-LoT, Goedel-Prover-V2-32B
- Whole-proof generation models: Goedel-Prover-SFT, Goedel-Prover-DPO, DeepSeek-Prover-V1.5 variants
- General-purpose LLMs: GPT-5.4, DeepSeek-V3.2, DeepSeek-R1
Empirical Validation / Results
Formal Theorem-Proving Performance
| Model | Accuracy (%) |
|---|---|
| DeepSeek-Prover-V1.5 Base | 1.25 |
| DeepSeek-Prover-V1.5 SFT | 9.06 |
| DeepSeek-Prover-V1.5 RL | 11.25 |
| DeepSeek-Prover-V1.5 RL + RMaxTS | 16.56 |
| InternLM2-Math-Plus-7B | 13.12 |
| InternLM2.5-StepProver | 10.31 |
| Goedel-Prover-SFT | 10.62 |
| Goedel-Prover-DPO | 11.25 |
| Goedel-Prover-V2 | 21.88 |
| DeepSeek-Prover + MA-LoT | 10.00 |
| Goedel-Prover + MA-LoT | 11.88 |
| GPT-5.4 | 10.62 |
| DeepSeek-R1 | 10.94 |
| DeepSeek-V3.2 | 5.31 |
Table 1: Performance comparison of theorem prover LLMs on MathAdv in Lean 4.
Key observations:
- Verifier-guided search (Goedel-Prover-V2, DeepSeek-Prover-V1.5 RL + RMaxTS) significantly outperforms one-shot generation.
- General-purpose LLMs achieve only modest accuracy despite larger scale.
- All models score 0% on topology, while performance is best in number theory and linear algebra.
Direct-Answer and Multiple-Choice Performance
| Model | DA (%) | MC (%) |
|---|---|---|
| DeepSeek-Prover-V1.5 Base | 25.9 | 53.08 |
| DeepSeek-Prover-V1.5 SFT | 32.1 | 32.53 |
| DeepSeek-Prover-V1.5 RL | 37.0 | 33.90 |
| DeepSeek-Prover-V1.5 RL + RMaxTS | 42.0 | 38.70 |
| InternLM2-Math-Plus-7B | 39.5 | 64.04 |
| Goedel-Prover-SFT | 4.9 | 21.23 |
| Goedel-Prover-DPO | 4.9 | 19.52 |
| DeepSeek-R1 | 58.0 | 51.71 |
| DeepSeek-V3.2 | 66.7 | 75.00 |
| GPT-5.4 | 64.2 | 82.88 |
Table 2: Overall accuracy on direct-answer and multiple-choice reasoning questions.
Most models achieve higher accuracy on DA and MC tasks than on Lean 4 theorem proving, indicating that formal proof construction is a distinct bottleneck. Goedel-Prover is the exception, performing better on Lean proofs than on natural-language tasks.
Robustness to Transformations
| Model | O✓/T× | O×/T✓ |
|---|---|---|
| Goedel-Prover-V2 | 6 | 0 |
| DeepSeek-R1 | 4 | 0 |
| DeepSeek-Prover-V1.5 RL | 4 | 2 |
| GPT-5.4 | 2 | 1 |
Table 3: Original vs. transformed comparison on theorem proving questions in Lean.
For most models, solving the original but failing the transformed version (O✓/T×) is more common than the reverse, revealing significant brittleness to equivalent reformulations.
Interactive Feedback Experiment
| DeepSeek-V3.2 | GPT-5.4 | |
|---|---|---|
| Non-Interactive | 5.00% | 9.06% |
| Interactive | 7.50% | 13.75% |
| Δ | +2.50 pp | +4.69 pp |
Table 4: Overall Lean 4 accuracy with and without interaction (budget ).
Interactive feedback improves both models, confirming the value of direct compiler feedback.
Natural-Language Hints
Hints improve DeepSeek-V3.2 and DeepSeek-R1 but substantially reduce performance of Goedel-Prover-SFT and Goedel-Prover-DPO, showing a clear split between general-purpose and proof-specialized models.
Theoretical and Practical Implications
Failure Patterns Identified
- Incomplete proofs: Reasonable approach but proves only a weaker statement or skips required cases.
- Inappropriate tactics: Valid Lean code that cannot establish the current claim (e.g., linear arithmetic for divisibility proofs).
- Hallucinated library names: Models invent results that sound plausible but do not exist in Mathlib.
- Non-progressing repetition: Proofs repeat the same rewriting without advancing toward the goal.
Successful Proof Patterns
- Library retrieval: Finding an existing Mathlib result that closely matches the statement.
- Step-by-step translation: Introducing intermediate claims, separating cases, and providing required objects.
- Definition unfolding: Problems that appear difficult become simple after formal definitions are expanded.
Implications
- Formalization is a distinct capability: Models can solve problems in natural language yet fail to produce valid Lean proofs, suggesting the need for specialized training on formal proof construction.
- Domain imbalance matters: Training corpora concentrated in competition mathematics leave advanced domains (topology, functional analysis) underserved, both in model training and library infrastructure.
- Model-dependent prompting: Natural-language hints should be tailored to model type—helpful for general-purpose LLMs, harmful for proof-specialized systems.
- Robustness requires explicit attention: Training should reward consistency across equivalent formulations rather than reliance on surface cues.
Conclusion
MathAdv provides a comprehensive diagnostic framework for formal mathematical reasoning that moves beyond aggregate theorem-proving accuracy. By decomposing theorem proving into component capabilities—mathematical knowledge, informal reasoning, formal proof construction, and robustness to reformulation—it reveals that current models are limited not only by mathematical knowledge, but also by formal proof construction, uneven domain coverage, and sensitivity to equivalent problem formulations.
Future directions include:
- Expanding the benchmark size as expert effort permits.
- Formalizing the 23 deferred problems as Mathlib coverage grows (e.g., Riemannian geometry requiring Bishop–Gromov inequality).
- Developing training strategies that reward consistency across equivalent formulations.
- Designing model-specific prompting strategies that account for specialization.
Limitations: MathAdv remains modest in size due to the substantial expert effort required for high-quality problem creation and validation, and it is constrained by the current coverage of Mathlib for advanced mathematical concepts.
Related papers
- Automated Benchmark Auditing for AI Agents and Large Language Models
Auto Benchmark Audit finds major issues in 25.7% of 34,285 AI benchmark tasks across 168 benchmarks, and filtering these problematic tasks shifts model rankings by up to 10 percentage points.
- Phantom Gains: Auditing Self-Improvement Against a Measured Null
Transition-level auditing of LLM self-improvement requires measured nulls for every statistic; without them, a frozen model falsely appears to expand at 0.280.
- ATLAS: All-round Testing of Long-context Abilities across Scales
ATLAS reveals long-context model quality is a capability- and length-dependent profile, not a single score, with rankings reshuffling substantially between 128K and 1M scopes.