Learning to Repair Lean Proofs from Compiler Feedback

๐Ÿ“… 2026-02-03
๐Ÿ“ˆ Citations: 0
โœจ Influential: 0
๐Ÿ“„ PDF
๐Ÿค– AI Summary
Existing Lean proof datasets lack erroneous examples and corresponding repair supervision signals, making it difficult to train models capable of understanding and correcting errors based on compiler feedback. This work formulates proof repair as a supervised learning task and introduces APRIL, the first large-scale repair dataset, constructed through systematically generated incorrect proofs, their associated compiler diagnostics, and the corresponding repairs paired with natural language explanations. By incorporating diagnostic-conditioned supervision signals, APRIL enables more effective learning of error diagnosis and correction. A fine-tuned 4B-parameter language model trained on APRIL significantly outperforms the strongest open-source baseline in single-attempt repair tasks, demonstrating the datasetโ€™s effectiveness in enhancing both repair accuracy and the modelโ€™s ability to reason about compiler feedback.

Technology Category

Application Category

๐Ÿ“ Abstract
As neural theorem provers become increasingly agentic, the ability to interpret and act on compiler feedback is critical. However, existing Lean datasets consist almost exclusively of correct proofs, offering little supervision for understanding and repairing failures. We study Lean proof repair as a supervised learning problem: given an erroneous proof and compiler feedback, predict both a corrected proof and a natural-language diagnosis grounded in the same feedback. We introduce APRIL (Automated Proof Repair in Lean), a dataset of 260,000 supervised tuples pairing systematically generated proof failures with compiler diagnostics and aligned repair and explanation targets. Training language models on APRIL substantially improves repair accuracy and feedback-conditioned reasoning; in our single-shot repair evaluation setting, a finetuned 4B-parameter model outperforms the strongest open-source baseline. We view diagnostic-conditioned supervision as a complementary training signal for feedback-using provers. Our dataset is available at \href{https://huggingface.co/datasets/uw-math-ai/APRIL}{this link}.
Problem

Research questions and friction points this paper is trying to address.

proof repair
compiler feedback
Lean
neural theorem proving
supervised learning
Innovation

Methods, ideas, or system contributions that make the work stand out.

proof repair
compiler feedback
supervised learning
Lean theorem proving
diagnostic-conditioned supervision
๐Ÿ”Ž Similar Papers
No similar papers found.
S
Simon Chess
Math AI Lab, University of Washington, Seattle, United States; Department of Computer Science and Engineering, University of Washington, Seattle, United States
D
Daniel Lee
Math AI Lab, University of Washington, Seattle, United States; Department of Computer Science and Engineering, University of Washington, Seattle, United States
S
Siyuan Ge
Math AI Lab, University of Washington, Seattle, United States; Department of Computer Science and Engineering, University of Washington, Seattle, United States
A
Ajit Mallavarapu
Math AI Lab, University of Washington, Seattle, United States; Department of Computer Science and Engineering, University of Washington, Seattle, United States
Vasily Ilin
Vasily Ilin
University of Washington
samplingneural networksLandau equation
Evan Wang
Evan Wang
California Institute of Technology