atlas

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

LeanAgent: Lifelong Learning for Formal Theorem Proving

ICLR 2025 · Large language models › Agents, code and math · approach: Mathematical and structural reasoning benchmarks · 2 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.

Proposes LeanAgent, a lifelong learning framework that curriculum-orders Lean repositories by theorem difficulty, progressively trains a ReProver-style premise retriever, and proves 162 sorry theorems across 22 Lean repositories.

Problem

LLM-based theorem provers for Lean are trained on static datasets (e.g., LeanDojo4/mathlib4) and fail to generalize to research-level mathematics across evolving Lean repositories, suffering catastrophic forgetting when adapted sequentially.

Approach

Treats formalization across Lean repositories as a lifelong learning stream: repositories are ordered by a curriculum based on theorem difficulty (exponential in proof steps), the ByT5-based retriever is progressively trained one epoch per repository with stability/plasticity metrics, and a dynamic database supports single-repo dataset construction and sorry-theorem proving.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use LeanAgent's single-repository curriculum training (Exp3) rather than the next-best single-repository setup (Exp8)ReProver retriever in single-repo lifelong learning · Single-repo lifelong learningWF5: 75.34% lower WF5Helped
Use LeanAgent's single-repository curriculum training (Exp3) rather than the next-best single-repository setup (Exp8)ReProver retriever in single-repo lifelong learning · Single-repo lifelong learningFM: 59.97% lower FMHelped
Use LeanAgent's single-repository curriculum training (Exp3) rather than the next-best single-repository setup (Exp7)ReProver retriever in single-repo lifelong learning · Single-repo lifelong learningExpanded BWT: 16.25% higher Expanded BWTHelped
Use LeanAgent's single-repository curriculum training (Exp3) rather than Exp8ReProver retriever in single-repo lifelong learning · Single-repo lifelong learningComposite Score: 0.6107 -> 0.9357Helped
Use Exp8's curriculum/EWC-related setup rather than LeanAgent (Exp3)ReProver retriever in single-repo lifelong learning · Single-repo lifelong learningWP5: 38.26% higher Windowed Plasticity (WP5)Helped
Use curriculum ordering instead of decreasing GitHub-star popularity orderingLifelong-learning experiment setups · Single-repo and merge-all lifelong learningComposite ScoreHelped
Use merge-all training (Exp4) rather than the next-best merge-all setupReProver retriever in merge-all lifelong learning · Merge-all lifelong learningWF5: 61.68% lower WF5Helped
Use merge-all training (Exp4) rather than the next-best merge-all setupReProver retriever in merge-all lifelong learning · Merge-all lifelong learningExpanded BWT: 466.63% improvement in Expanded BWTHelped
Use merge-all training rather than single-repository trainingLifelong-learning retriever · Merge-all lifelong learningIPHurt
Use the single-repo approach rather than merge-all dataset constructionLeanAgent lifelong learning · Lifelong theorem provingComposite ScoreHelped
Add EWC under curriculum-based orderingLifelong-learning retriever · Lifelong learningstabilityHurt
Add EWC under GitHub-stars-based orderingLifelong-learning retriever · Lifelong learningstabilityMixed

Surprising findings

Limitations

Experimental setup

Datasets: LeanDojo4 Benchmark ProofNet LeanEuclid Lean repositories (Mathematics in Lean, SciLean, PFR, MiniF2F, Coxeter, Hairy Ball)

Benchmarks: LeanDojo Benchmark repositories (22 Lean repos) sorry theorems in Lean repositories

Metrics: Validation R@10 Average test R@10 WF5 FM CFR Expanded BWT WP5 IP composite lifelong learning score number of sorry theorems proved

Baselines: ReProver with retrieval ReProver without retrieval EWC-based and merge-all lifelong learning setups

Builds on: ReProver LeanDojo Elastic Weight Consolidation

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