From Sorry to QED: Refining LLM Math Proofs via Angelic Execution
Yanju Chen, Hanzhi Liu, Ruizhe Qian, Jiaming Shan, Xu Yang, Yufei Ding, Osbert Bastani, Yu Feng
Abstract
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%.
Create a lesson
Related papers
Feedback-Driven Prompt Refinement for Educational AI: Affective Trajectory Estimation and Bloom's Taxonomy Classification
Shared title terminology · Josh Dean, Karan Patel, Gaurangi Raul et al.
Can Vision-Language Models Synthesize Executable Game-Playing Programs?
Shared title terminology · Yao Tong, Jiaxin Qi, Dingyu Zhang et al.
Average-Depth Variable Execution via Request-Local Token Routing
Shared title terminology · Pengjie Zheng, Mengwei Xie, Huan Yang et al.
Recoverable Symbols, Unstable Execution: Auditing Internal Pathways and Decision Identity in Visual State Tracking
Shared title terminology · Ruiqi Liu, Jinming Li, Mo Wang et al.
From Letter-of-Credit Requirements to Executable Specifications: Evaluating Verification Accuracy and Completeness
Shared title terminology · Ji Sub Choi, Whan Choi, Seo Yeon Gu et al.
RefinementGuard: Counterexample-Directed Semantic Qualification for Hidden Agent-Tool Execution
Shared title terminology · Adhyayan Veer Singh, Fanjiang Ye, Yuke Wang