ImProver: Agent-Based Automated Proof Optimization
On the map: LLM agents and tool use → Educational agents and math problem solving
Abstract (arXiv)
Large language models (LLMs) have been used to generate formal proofs of mathematical theorems in proofs assistants such as Lean. However, we often want to optimize a formal proof with respect to various criteria, depending on its downstream use. For example, we may want a proof to adhere to a certain style, or to be readable, concise, or modularly structured. Having suitably optimized proofs is also important for learning tasks, especially since human-written proofs may not optimal for that purpose. To this end, we study a new problem of automated proof optimization: rewriting a proof so that it is correct and optimizes for an arbitrary criterion, such as length or readability. As a first method for automated proof optimization, we present ImProver, a large-language-model agent that rewrites proofs to optimize arbitrary user-defined metrics in Lean. We find that naively applying LLMs to proof optimization falls short, and we incorporate various improvements into ImProver, such as the use of symbolic Lean context in a novel Chain-of-States technique, as well as error-correction and retrieval. We test ImProver on rewriting real-world undergraduate, competition, and research-level mathematics theorems, finding that ImProver is capable of rewriting proofs so that they are substantially shorter, more modular, and more readable.
Key facts. Cited by 10 papers in the map (data through 7 Oct 2026). Placed in Educational agents and math problem solving, one of 16 directions in LLM agents and tool use. Builds on 15 of its 26 references that are in the map. First posted on arXiv 7 Oct 2024.
Builds on
15 of 26 references.
References · 15
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,317
- 2023Teaching Large Language Models to Self-Debugcited by 963
- 2023LeanDojo: Theorem Proving with Retrieval-Augmented Language Modelscited by 414
- 2021MiniF2F: a cross-system benchmark for formal Olympiad-level mathematicscited by 380
- 2020Generative Language Modeling for Automated Theorem Provingcited by 379
- 2022Draft, Sketch, and Prove: Guiding Formal Theorem Provers with Informal Proofscited by 278
- 2022HyperTree Proof Search for Neural Theorem Provingcited by 192
- 2022DocPrompting: Generating Code by Retrieving the Docscited by 151
- 2022Formal Mathematics Statement Curriculum Learningcited by 141
- 2021Proof Artifact Co-training for Theorem Proving with Language Modelscited by 130
- 2019The Lean mathematical librarycited by 127
3 more
- 2022A Survey of Deep Learning for Mathematical Reasoningcited by 124
- 2024miniCTX: Neural Theorem Proving with (Long-)Contextscited by 35
- 2021Learning to Give Checkable Answers with Prover-Verifier Gamescited by 29
Built on by
Citing papers per year: 2024: 1; 2025: 2; 2026: 7.
10 papers.
- 2024Data for Mathematical Copilots: Better Ways of Presenting Proofs for Machine Learningcited by 11
- 2025Beyond Gold Standards: Epistemic Ensemble of LLM Judges for Formal Mathematical Reasoningcited by 6
- 2026Towards trustworthy agentic AI: a comprehensive survey of safety, robustness, privacy, and system securitycited by 5
- 2025Beyond Theorem Proving: Formulation, Framework and Benchmark for Formal Problem-Solvingcited by 2
- 2026Proof-Refactor: Refactoring Generated Formal Proofs into Modular Artifactscited by 2
- 2026Lean Refactor: Multi-Objective Controllable Proof Optimization via Agentic Strategy Searchcited by 1
- 2026From Solvers to Research: Large Language Model-Driven Formal Mathematics at the Research Frontiercited by 1
- 2026ImProver 2: Iteratively Self-Improving LMs for Neurosymbolic Proof Optimizationcited by 0
- 2026LeanPolish: Verified Supervision for Lean Proof Compressioncited by 0
- 2026LEVER: Adaptive Cost-Aware Proof Search Over AND/OR Graphscited by 0
- 2026LEVER: Adaptive Cost-Aware Proof Search Over AND/OR Graphs8 Oct 2026
- 2026LeanPolish: Verified Supervision for Lean Proof Compression29 Sep 2026
- 2026From Solvers to Research: Large Language Model-Driven Formal Mathematics at the Research Frontier8 Jul 2026
- 2026Proof-Refactor: Refactoring Generated Formal Proofs into Modular Artifacts2 Jun 2026
- 2026ImProver 2: Iteratively Self-Improving LMs for Neurosymbolic Proof Optimization21 May 2026
- 2026Lean Refactor: Multi-Objective Controllable Proof Optimization via Agentic Strategy Search18 May 2026
- 2026Towards trustworthy agentic AI: a comprehensive survey of safety, robustness, privacy, and system security17 May 2026
- 2025Beyond Gold Standards: Epistemic Ensemble of LLM Judges for Formal Mathematical Reasoning12 Jun 2025
- 2025Beyond Theorem Proving: Formulation, Framework and Benchmark for Formal Problem-Solving7 May 2025
- 2024Data for Mathematical Copilots: Better Ways of Presenting Proofs for Machine Learning19 Dec 2024
Similar, not cited
Close in wording, no citation either way
- 2025Prover Agent: An Agent-Based Framework for Formal Mathematical Proofs
- 2026Advancing Mathematics Research with AI-Driven Formal Proof Search
- 2025APOLLO: Automated LLM and Lean Collaboration for Advanced Formal Reasoning
- 2026Efficient Test-Time Optimization for Multi-Agent Proof Autoformalization
- 2026Beyond the Library: An Agentic Framework for Autoformalizing Research Mathematics
- 2026LEAP: Supercharging LLMs for Formal Mathematics with Agentic Frameworks
- 2026AIProver: Agentic Auto-Formalization of Mathematical Research via Certificate-Driven Evolving Harness
- 2025ProofCompass: Enhancing Specialized Provers with LLM Guidance