Solving Formal Math Problems by Decomposition and Iterative Reflection

Yichi Zhou, Jianqiu Zhao, Yongxin Zhang, Bohan Wang, Siran Wang, Luoxin Chen, Jiahui Wang, Haowei Chen, Allan Jie, Xinbo Zhang, Haocheng Wang, Luong Quoc Trung, Rong Ye, Phan Nhat Hoang, Huishuai Zhang, Peng Sun, Hang LiarXiv 2025 · DOI

Abstract

Formal theorem proving in languages like Lean 4 represents a significant challenge for artificial intelligence, requiring both high-level strategic reasoning and precise syntactic execution. While current approaches rely on expensive model fine-tuning or massive sampling, we present Delta Prover, an agentic framework that utilizes general-purpose Large Language Models (LLMs) to achieve state-of-the-art results. By integrating recursive problem decomposition with an iterative reflection loop, Delta Prover achieves a 95.9% success rate on the miniF2F-test benchmark, demonstrating that agentic reasoning structures can outperform specialized, fine-tuned models.

Introduction

Formal theorem proving involves translating mathematical proofs into code that can be verified by a computer kernel. This task is notoriously difficult for LLMs due to the scarcity of high-quality formal data—Lean 4 data comprises only about 0.1% of typical code corpora. Existing solutions generally fall into two categories: specialized models fine-tuned on formal code, or "Best-of-N" sampling methods that generate numerous random attempts. Both approaches struggle with complex, multi-step problems. Delta Prover addresses these limitations by treating the LLM as an active reasoning agent capable of self-correction and strategic decomposition.

Methodology: The Delta Prover Framework

Delta Prover (Decomposition and iterative reflection agent) operates through a closed-loop interaction with the Lean 4 environment. The system is built upon two primary pillars:

  1. Iterative Proof Repair: Rather than discarding failed proof attempts, the framework feeds Lean 4 error messages and tactic states back to the LLM. The model then reflects on these errors to generate corrected versions.
  2. Reflective Decomposition: For complex theorems, the agent utilizes a custom Domain-Specific Language (DSL) to break high-level proof sketches into independent sub-problems. If a sub-problem remains unsolved, the agent can reflect on the failure and adjust its decomposition strategy.
The Delta Prover framework consists of (a) Reflective Decomposition and (b) Iterative Proof Repair.

Once all sub-problems are resolved, the DSL automatically consolidates the individual proofs into a single, verified Lean 4 file.

Experimental Results

We evaluated Delta Prover on the miniF2F-test benchmark, which includes 244 problems from high-school competitions (AMC, AIME) and the MATH dataset, as well as the more challenging miniF2F-test-IMO subset.

Delta Prover achieved a new state-of-the-art 95.9% pass rate on the miniF2F-test, surpassing previous leaders like Kimina-Prover (92.2%) and DeepSeek-Prover-V2 (88.9%). Notably, on the International Mathematical Olympiad (IMO) level problems, the framework reached an 85.0% success rate, representing a massive leap over existing methods.

Comparison of Pass Rates on miniF2F-test and miniF2F-test-IMO benchmarks showing Delta Prover's superior performance.

Key Insights

  • Agentic Structure vs. Specialization: A "stock" model like Gemini 2.5 Pro, when placed within the Delta Prover framework, can outperform models specifically fine-tuned for Lean 4. This suggests that reasoning architecture is as critical as training data.
  • Self-Correction Efficiency: For a fixed computational budget, it is more effective to allow a model to repair its own mistakes through multiple iterations than to generate a larger number of independent initial guesses.
  • Scaling Laws: Delta Prover exhibits strong test-time scaling; as the agent is given more "thinking time" (API calls), its accuracy grows significantly faster than standard sampling methods.

Conclusion and Future Work

Delta Prover demonstrates that the inherent reasoning and reflection capabilities of general-purpose LLMs can be harnessed to solve the most difficult formal math problems. Future research will explore the use of Reinforcement Learning (RL) to allow the agent to refine its own decomposition strategies and the integration of more dynamic proof search techniques to further optimize the discovery process.

Summary updated

BibTeX
@misc{zhou2025solving,
  author = {Yichi Zhou and Jianqiu Zhao and Yongxin Zhang and Bohan Wang and Siran Wang and Luoxin Chen and Jiahui Wang and Haowei Chen and Allan Jie and Xinbo Zhang and Haocheng Wang and Luong Quoc Trung and Rong Ye and Phan Nhat Hoang and Huishuai Zhang and Peng Sun and Hang Li},
  title = {{Solving Formal Math Problems by Decomposition and Iterative Reflection}},
  year = {2025},
  eprint = {2507.15225},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.15225},
}
Figure