TL;DR
This paper introduces AMBER, a new benchmark for evaluating Large Language Models (LLMs) on applied mathematics formalization in Lean 4. AMBER emphasizes constructing explicit solutions before proving them, a crucial step missing in prior benchmarks, and reveals that general-purpose LLMs outperform specialized theorem provers due to better instruction following.
What Problem Does This Paper Address?
Formalizing mathematics in systems like Lean 4 offers absolute certainty but is incredibly labor-intensive. While LLMs have shown promise in automating this, existing benchmarks primarily focus on proving existing theorems (declarative verification). This is insufficient for applied mathematics, where the real goal is often to construct concrete solutions, algorithms, or representations, not just to prove their existence. This gap means current LLM evaluations don't accurately reflect their utility in practical mathematical problem-solving. The authors aim to bridge this by creating a benchmark that forces LLMs to actively build mathematical objects before verifying them.
Methods
The core innovation is a "construction-verification" workflow enforced by the benchmark's structure. For each problem, an LLM must first define an explicit solution (using def in Lean) and then prove its correctness (using theorem). This prevents LLMs from exploiting shortcuts like proving existence without providing the actual solution. The benchmark categorizes problems into four types:
- Evaluation Problems: Synthesizing explicit values or algorithms for given parameters.
- Algorithm Design Problems: Defining iterative rules or transition functions for algorithms.
- Representation Transformation Problems: Mapping a problem from a non-standard form to a tractable canonical form (like LP or SDP).
- Theorem Proving: Standard verification tasks, included as a baseline.
The formalization leverages Lean 4's expressive type system and its rich mathematical library, Mathlib.
Datasets
The paper introduces the AMBER (Applied Mathematics BEnchmark for Reasoning) dataset. It spans core applied mathematics domains: convex analysis, optimization, numerical algebra, and high-dimensional probability. AMBER problems range in difficulty from undergraduate exercises to PhD-level research. Unlike previous benchmarks that focused on pure mathematics or high-school competitions, AMBER specifically targets the complexities of applied mathematics, including numerical computation, algorithm design, and representation transformation.
Key Insights and Ideas
- Construction is Key: The most significant insight is that simply proving existence isn't enough for applied math. LLMs need to construct solutions, which is a fundamentally different and harder task.
- Generalists Outperform Specialists: Surprisingly, general-purpose LLMs (like DeepSeek-V3.2-Thinking and GPT-5.1) performed better than specialized theorem provers (like Goedel Prover and Kimina Prover) on AMBER.
- "Tactical Overfitting" is Real: Specialized models, fine-tuned heavily on proof tactics, seem to develop a "hammer-and-nail" bias. They struggle to follow multi-step instructions and often bypass the required construction phase, treating every problem as a pure theorem-proving task.
- Instruction Following Matters: General-purpose models retain better instruction-following abilities, allowing them to bridge the gap between informal problem statements and formal Lean code, especially for complex, multi-stage tasks.
- Semantic Complexity: AMBER has a significantly higher "dependency density" than existing benchmarks, meaning problems require understanding a denser subgraph of mathematical concepts, posing a greater challenge.
Key Results
- Overall success rates on AMBER are low for all models, highlighting the difficulty of applied mathematics formalization.
- General-purpose models consistently outperformed specialized theorem provers across most categories. For example, in Table 1, general models achieved higher Pass@16 rates (e.g., 6.00% for DeepSeek-V3.2-Thinking) compared to specialized provers (e.g., 4.00% for Kimina Prover-72B).
- An ablation study showed that the explicit "Construction-Verification" prompt yielded the highest success rate (8%), significantly outperforming "Standard Completion" (6%) and "Traditional Proof-Only" (5%) prompts. This confirms the necessity of structural guidance.
- Error analysis revealed that LLM "hallucination" (invoking non-existent theorems) is the most common error (47.3%), followed by insufficient formalization skills (32.7%).
Limitations and Future Work
- Tactical Overfitting: The paper identifies "tactical overfitting" in specialized models as a major limitation, hindering their ability to perform constructive tasks. Future work could explore methods to mitigate this, perhaps by balancing specialized training with general instruction-following capabilities.
- LLM Hallucination: A significant portion of errors stem from LLMs hallucinating Mathlib identifiers. This suggests a need for improved retrieval-augmented generation (RAG) or more precise fine-tuning to align LLM knowledge with the exact library.
- Neuro-Symbolic Integration: The authors emphasize the need for neuro-symbolic systems that integrate high-level algorithmic reasoning with rigorous formal verification to advance formalized applied mathematics.
- Benchmark Expansion: While AMBER is comprehensive, future work could expand its scope to include more advanced topics or different formalization languages.
Summary updated