atlas

Research map / Large language models / Agents, code and math

ImProver: Agent-Based Automated Proof Optimization

ICLR 2025 · Large language models › Agents, code and math · approach: Execution-based code verification · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Introduces automated proof optimization in Lean and ImProver, a GPT-4o-based agent with Chain-of-States prompting, error-correcting refinement, best-of-n sampling, and retrieval that rewrites proofs to be shorter or more declarative while staying correct.

Problem

Formal proofs generated or written by humans are correct but often verbose, unstructured, or not optimized for downstream criteria such as length, declarativity, or style; there is no automated method to rewrite a proof to optimize an arbitrary user-defined metric while preserving correctness.

Approach

Defines proof optimization as rewriting a Lean proof to be correct and optimize a metric, and builds an LLM agent that feeds symbolic Lean proof states as comments (Chain-of-States), uses compiler error feedback in iterative refinement, best-of-n sampling, and MMR-based retrieval of examples and documentation.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use ImProver rather than prompted GPT-4oLean proof optimization · All datasets (aggregate), lengthimprovement: 3.7 -> 20.96Helped
Use ImProver rather than prompted GPT-4oLean proof optimization · All datasets (aggregate), declarativityimprovement: 2.21 -> 9.34Helped
Use ImProver rather than prompted GPT-4oLean proof optimization · All datasets (aggregate), mixedimprovement: 3.51 -> 27.31Helped
Enable Chain-of-States (ablation)ImProver · MIL, declarativityimprovement: 9.23 -> 16.69Helped
Enable Chain-of-States with string-list output (ablation)GPT-4o proof optimizer · MIL, length ablationimprovement: 7.04 -> 8.04Helped
Retrieve 10 examples instead of none (ablation)GPT-4o proof optimizer · MIL, length ablationimprovement: 5.67 -> 9.34Helped
Use best-of-n sampling rather than no sampling (ablation)GPT-4o proof optimizer · MIL, length ablationimprovement: 9.34 -> 15.35Helped
Increase best-of-n from n=3 to n=15 (ablation)GPT-4o proof optimizer · MIL, length ablationimprovement: 19.66 -> 23.51Helped
Use GPT-4o rather than GPT-4o-mini at n=15 (ablation)Proof optimizer · MIL, length ablationimprovement: 4.35 -> 23.51Helped
Enable RAG (ablation)5-step refinement with best-of-3 per step · MIL, length ablationimprovement: 29.54 -> 34.88Helped
Add syntax guidance and error forwarding (ablation)ImProver · MIL, lengthimprovement: 23.42 -> 28.94No clear effect

Surprising findings

Limitations

Experimental setup

Datasets: Mathematics in Lean Compfiles Mathlib MiniF2F Theorem Proving in Lean handbook

Benchmarks: Mathematics in Lean subset Compfiles Mathlib FundamentalGroupoid subset MiniF2F-test

Metrics: improvement nonempty improvement accuracy improved accuracy pass@k

Baselines: GPT-4o GPT-4o-mini Lean Expert Iteration GPT-f

Builds on: chain-of-thought prompting self-debugging maximum marginal relevance retrieval

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy