arXiv:2606.03303 · 中英对照阅读
LEAP: Supercharging LLMs for Formal Mathematics with Agentic Frameworks
中文速览
把擅长自然语言解题的大模型变成能写出 Lean 可验证证明的工具,难点不在于想不出思路,而在于一次写对长而复杂的形式化证明。作者提出 LEAP:先把证明拆成有依赖关系的小目标,写出思路蓝图,再逐步生成 Lean 代码,并根据编译器报错和模型审查反复修改。测试中,LEAP 解出了 2025 年 Putnam 竞赛全部 12 道题;在新建的 Lean-IMO-Bench 上,它把通用大模型的解题成功率从不到 10% 提升到 70%,超过文中对比的专用系统。这个结果说明,通用大模型不一定非得专门训练才能做强形式化证明;把证明规划、拆解和机器核验串起来,也能让复杂数学推理更可靠、更容易检查。
摘要
Large Language Models (LLMs) exhibit strong informal mathematical reasoning but struggle to generate mechanically verifiable proofs in formal languages like Lean. We present LEAP (LLM-in-Lean Environment Agentic Prover), an agentic framework that enables general-purpose foundation models to achieve state-of-the-art performance on automated formal theorem proving. LEAP leverages foundation model capabilities, such as informal reasoning, instruction following, and iterative self-refinement. By decomposing complex problems into smaller units, the system bridges formal proof construction with informal blueprints through continuous interaction with the Lean compiler. To provide a rigorous evaluation beyond increasingly saturated benchmarks, we introduce Lean-IMO-Bench, a benchmark of IMO-style problems formalized in Lean, with short statements yet highly non-routine and multi-step proofs across a wide range of difficulty levels. Empirically, on the latest 2025 Putnam Competition, an annual mathematics competition for undergraduate students in North America, LEAP solves all 12 problems, matching recent breakthroughs by frontier formal mathematical models; On Lean-IMO-Bench, LEAP boosts the one-shot formal solve rate of general-purpose LLMs from below 10% to 70%, notably surpassing the 48% benchmark set by a specialized, gold-medal-caliber IMO system. Furthermore, we demonstrate LEAP’s research-level utility by autonomously formalizing complex proofs for open combinatorial challenges, including a verified proof for a key subproblem in Knuth’s Hamiltonian decomposition of even-order Cayley graphs.
术语表
- Large Language Models (LLMs)
- 大语言模型(LLM)
- informal mathematical reasoning
- 非形式化数学推理
- formal mathematics
- 形式化数学
- formal theorem proving
- 形式化定理证明
- automated theorem proving (ATP)
- 自动定理证明(ATP)
- LEAP (LLM-in-Lean Environment Agentic Prover)
- LEAP(LLM-in-Lean 环境智能体证明器)
- agentic framework
- 智能体框架
- foundation model
- 基础模型
- Lean
- Lean
- Lean compiler
- Lean 编译器
- proof blueprint
- 证明蓝图
- proof obligation
- 证明义务
- directed acyclic graph (DAG)
- 有向无环图(DAG)
- iterative self-refinement
- 迭代式自我改进
- compiler feedback
- 编译器反馈
- Lean-IMO-Bench
- Lean-IMO-Bench
- IMO-Bench
- IMO-Bench
- International Mathematical Olympiad (IMO)
- 国际数学奥林匹克(IMO)
- MiniF2F
- MiniF2F
- PutnamBench
- PutnamBench
- Putnam Competition
- Putnam 数学竞赛
- AlphaProof
- AlphaProof
- DeepSeek Prover V2
- DeepSeek Prover V2
- Seed Prover
- Seed Prover
- Goedel Prover V2
- Goedel Prover V2
- Hilbert
- Hilbert
- Isabelle
- Isabelle
- Coq
- Coq
- HOL Light
- HOL Light