从抱歉到QED:通过天使执行优化大语言模型的数学证明
From Sorry to QED: Refining LLM Math Proofs via Angelic Execution
AI总结:
MathEye框架结合符号推理与最小人类交互,通过天使执行和MaxSAT优化选择基本义务,将LLM生成的不完美数学证明转换为完全验证的Lean证明,在30个基准中解决93.3%问题并减少55%用户交互。
摘要:
大型语言模型(LLM)如今可生成捕捉诸多数学论证高层结构的Lean证明脚本,但这些脚本在复杂定理上常失效:单个缺失的边条件或误用的引理会导致证明器提前中止,丢弃原本可行的证明框架。本文提出MathEye框架,结合符号推理与最少人类交互,将不完美的LLM生成证明脚本转换为完全验证的Lean证明。MathEye的核心是天使证明检查,这是一种乐观执行模型,用占位符替换失败的证明片段,同时保留论证的整体结构。该乐观检查生成天使证明,隔离出LLM无法履行的精确证明义务。由于这些未解决的义务常存在逻辑依赖,让数学家直接处理每个占位符效率低下。为最小化人力投入,MathEye对捕获天使证明中符号级数据流的证明依赖图执行残差分析。通过将义务选择表述为MaxSAT优化问题,MathEye选择一组最小成本的基本义务,解决这些义务足以完成整个证明。MathEye以普通数学语言向数学家呈现这些基本义务,并利用数学家的回答自动重建完整的Lean证明。在分析与代数领域的30个真实基准测试中,MathEye解决了93.3%的问题,同时将所需用户交互次数减少了55%。
英文摘要:
Large language models (LLMs) can now generate Lean proof scripts that capture the high-level structure of many mathematical arguments. However, these scripts frequently fail on complex theorems: a single missing side condition or misapplied lemma can cause the prover to abort early and discard an otherwise viable proof outline. This paper presents MathEye, a framework that converts imperfect LLM-generated proof scripts into fully verified Lean proofs by combining symbolic reasoning with minimal human interaction. At the core of MathEye is angelic proof checking, an optimistic execution model that replaces failing proof fragments with placeholders while preserving the overall structure of the argument. This optimistic check produces an angelic proof that isolates the exact proof obligations that the LLM fails to discharge. Because these unresolved obligations are often logically interdependent, asking a mathematician to address every placeholder directly is inefficient. To minimize human effort, MathEye performs residual analysis over a proof dependence graph that captures symbol-level data flow in the angelic proof. By formulating obligation selection as a MaxSAT optimization problem, MathEye selects a minimal-cost set of essential obligations whose resolution suffices to complete the entire proof. MathEye presents these essential obligations to the mathematician in ordinary mathematical language and uses the mathematician's answers to automatically reconstruct the complete Lean proof. Experiments on 30 real-world benchmarks across analysis and algebra show that MathEye solves 93.3% of the problems while reducing the number of required user interactions by 55%.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。