arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2507.15225cs.AIcs.LGcs.LO
收藏

通过分解与迭代反思求解形式化数学问题

Solving Formal Math Problems by Decomposition and Iterative Reflection

University of science and technology of China(科学技术大学);Peking University(北京大学)
Yichi Zhou, Jianqiu Zhao, Yongxin Zhang, Bohan Wang, Siran Wang, Luoxin Chen, Jiahui Wang, Haowei Chen, Allan Jie, Xinbo Zhang, Haocheng Wang, Luong Trung, Rong… 展开作者

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

AI总结:

针对通用大语言模型生成形式化证明难、现有专业化微调成本高的问题,提出基于智能体的Delta Prover框架,通过反思分解、迭代修复及专用DSL实现Lean 4证明构建,在miniF2F-test基准达95.9%最优成功率,证明通用LLM经智能体引导具备强大定理证明潜力。

摘要:

通用大语言模型(LLMs)已在智能领域取得显著成就,在编码、数学推理等复杂推理任务上表现可与人类专家媲美。然而,在Lean 4这类专用语言中生成形式化证明对这些模型而言仍是重大挑战,限制了其在复杂定理证明与自动化验证中的应用。现有方法通常需要在专用形式化语料上微调以实现模型 specialization(专业化),带来高昂的数据收集与训练成本。本研究提出Delta Prover,这是一个基于智能体的框架,用于协调通用LLM与Lean 4证明环境的交互。Delta Prover利用通用LLM的反思与推理能力,交互式构建Lean 4形式化证明,无需对模型进行专业化处理。其核心集成了两个相互依赖的全新组件:一是用于反思式分解与迭代证明修复的算法框架,二是基于Lean 4构建的专用领域特定语言(DSL),用于简化子问题管理。Delta Prover在miniF2F-test基准上取得了95.9%的当前最优成功率,超越了所有现有方法,包括需要模型专业化的方法。此外,与标准的Best-of-N证明策略相比,Delta Prover展现出显著更强的测试时缩放定律。关键的是,研究结果表明,在有效的智能体结构引导下,通用LLM具备大量尚未被发掘的定理证明能力。这为形式化环境中的鲁棒自动化推理提供了一种计算高效的替代方案,可替代专用模型。

英文摘要:

General-purpose Large Language Models (LLMs) have achieved remarkable success in intelligence, performing comparably to human experts on complex reasoning tasks such as coding and mathematical reasoning. However, generating formal proofs in specialized languages like Lean 4 remains a significant challenge for these models, limiting their application in complex theorem proving and automated verification. Current approaches typically require specializing models through fine-tuning on dedicated formal corpora, incurring high costs for data collection and training. In this work, we introduce \textbf{Delta Prover}, an agent-based framework that orchestrates the interaction between a general-purpose LLM and the Lean 4 proof environment. Delta Prover leverages the reflection and reasoning capabilities of general-purpose LLMs to interactively construct formal proofs in Lean 4, circumventing the need for model specialization. At its core, the agent integrates two novel, interdependent components: an algorithmic framework for reflective decomposition and iterative proof repair, and a custom Domain-Specific Language (DSL) built upon Lean 4 for streamlined subproblem management. \textbf{Delta Prover achieves a state-of-the-art 95.9\% success rate on the miniF2F-test benchmark, surpassing all existing approaches, including those requiring model specialization.} Furthermore, Delta Prover exhibits a significantly stronger test-time scaling law compared to standard Best-of-N proof strategies. Crucially, our findings demonstrate that general-purpose LLMs, when guided by an effective agentic structure, possess substantial untapped theorem-proving capabilities. This presents a computationally efficient alternative to specialized models for robust automated reasoning in formal environments.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑