mlsanityData to 7 Oct 2026

LeanAgent: Lifelong Learning for Formal Theorem Proving

arXiv 2410.06209 ↗First posted 8 Oct 2024cs.LG cs.AI cs.LOcited by 34

On the map: LLM reasoning → Mathematical reasoning

Abstract (arXiv)

Large Language Models (LLMs) have been successful in mathematical reasoning tasks such as formal theorem proving when integrated with interactive proof assistants like Lean. Existing approaches involve training or fine-tuning an LLM on a specific dataset to perform well on particular domains, such as undergraduate-level mathematics. These methods struggle with generalizability to advanced mathematics. A fundamental limitation is that these approaches operate on static domains, failing to capture how mathematicians often work across multiple domains and projects simultaneously or cyclically. We present LeanAgent, a novel lifelong learning framework for formal theorem proving that continuously generalizes to and improves on ever-expanding mathematical knowledge without forgetting previously learned knowledge. LeanAgent introduces several key innovations, including a curriculum learning strategy that optimizes the learning trajectory in terms of mathematical difficulty, a dynamic database for efficient management of evolving mathematical knowledge, and progressive training to balance stability and plasticity. LeanAgent successfully generates formal proofs for 155 theorems across 23 diverse Lean repositories where formal proofs were previously missing, many from advanced mathematics. It performs significantly better than the static LLM baseline, proving challenging theorems in domains like abstract algebra and algebraic topology while showcasing a clear progression of learning from basic concepts to advanced topics. In addition, we analyze LeanAgent's superior performance on key lifelong learning metrics. LeanAgent achieves exceptional scores in stability and backward transfer, where learning new tasks improves performance on previously learned tasks. This emphasizes LeanAgent's continuous generalizability and improvement, explaining its superior theorem-proving performance.

Key facts. Cited by 34 papers in the map (data through 7 Oct 2026). Placed in Mathematical reasoning, one of 17 directions in LLM reasoning. Builds on 42 of its 85 references that are in the map. First posted on arXiv 8 Oct 2024.

Builds on

42 of 85 references.

Closest ancestors · 4

Same direction, newest first

  1. 2024Lean-STaR: Learning to Interleave Thinking and Proving14 Jul
  2. 2024TheoremLlama: Transforming General-Purpose LLMs into Lean4 Experts3 Jul
  3. 2024Don't Trust: Verify -- Grounding LLM Quantitative Reasoning with Autoformalization26 Mar
  4. 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models5 Feb

Other references · 38

  1. 2017Attention Is All You Needcited by 59,932
  2. 2016Overcoming catastrophic forgetting in neural networkscited by 4,718
  3. 2016Learning without Forgettingcited by 2,465
  4. 2017Gradient Episodic Memory for Continual Learningcited by 1,871
  5. 2021Improving language models by retrieving from trillions of tokenscited by 1,278
  6. 2017Continual Learning with Deep Generative Replaycited by 1,152
  7. 2018Efficient Lifelong Learning with A-GEMcited by 1,044
  8. 2023A Comprehensive Survey of Continual Learning: Theory, Method and Applicationcited by 860
  9. 2021ByT5: Towards a token-free future with pre-trained byte-to-byte modelscited by 504
  10. 2024GaLore: Memory-Efficient LLM Training by Gradient Low-Rank Projectioncited by 447
  11. 2023LeanDojo: Theorem Proving with Retrieval-Augmented Language Modelscited by 414
  12. 2024DeepSeek-Prover: Advancing Theorem Proving in LLMs through Large-Scale Synthetic Datacited by 225
26 more
  1. 2022HyperTree Proof Search for Neural Theorem Provingcited by 192
  2. 2024DeepSeek-Prover-V1.5: Harnessing Proof Assistant Feedback for Reinforcement Learning and Monte-Carlo Tree Searchcited by 189
  3. 2024PutnamBench: Evaluating Neural Theorem-Provers on the Putnam Mathematical Competitioncited by 153
  4. 2022DocPrompting: Generating Code by Retrieving the Docscited by 151
  5. 2022Formal Mathematics Statement Curriculum Learningcited by 141
  6. 2022ReACC: A Retrieval-Augmented Code Completion Frameworkcited by 117
  7. 2018Don't forget, there is more than forgetting: new metrics for Continual Learningcited by 113
  8. 2014Learning to Executecited by 105
  9. 2022Thor: Wielding Hammers to Integrate Language Models and Automated Theorem Proverscited by 97
  10. 2016DeepMath - Deep Sequence Models for Premise Selectioncited by 80
  11. 2023An In-Context Learning Agent for Formal Theorem-Provingcited by 78
  12. 2024Continual Learning and Catastrophic Forgettingcited by 73
  13. 2022Continual evaluation for lifelong learning: Identifying the stability gapcited by 55
  14. 2023FIMO: A Challenge Formal Dataset for Automated Theorem Provingcited by 54
  15. 2023Magnushammer: A Transformer-Based Approach to Premise Selectioncited by 50
  16. 2016Visualizing and Understanding Curriculum Learning for Long Short-Term Memory Networkscited by 44
  17. 2020Learning to Prove Theorems by Learning to Generate Theoremscited by 43
  18. 2020Lifelong Learning of Compositional Structurescited by 34
  19. 2021Does the Order of Training Samples Matter? Improving Neural Data-to-Text Generation with Curriculum Learningcited by 34
  20. 2017Adversarial Generation of Natural Languagecited by 33
  21. 2024Proof Automation with Large Language Modelscited by 20
  22. 2023Is forgetting less a good inductive bias for forward transfer?cited by 18
  23. 2022DeepSpeed Data Efficiency: Improving Deep Learning Model Quality and Training Efficiency via Efficient Data Sampling and Routingcited by 13
  24. 2024MoFO: Momentum-Filtered Optimizer for Mitigating Forgetting in LLM Fine-Tuningcited by 13
  25. 2023EmbedDistill: A Geometric Knowledge Distillation for Information Retrievalcited by 11
  26. 2023Machine-Learned Premise Selection for Leancited by 10

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 1; 2025: 12; 2026: 21.

34 papers.

Sort:

By area:

  1. 2025Ax-Prover: A Deep Reasoning Agentic Framework for Theorem Proving in Mathematics and Quantum Physicscited by 27
  2. 2025MA-LoT: Model-Collaboration Lean-based Long Chain-of-Thought Reasoning enhances Formal Theorem Provingcited by 24
  3. 2025FEABench: Evaluating Language Models on Multiphysics Reasoning Abilitycited by 21
  4. 2026Large Language Model Reasoning Failurescited by 20
  5. 2025Adaptation of Agentic AI: A Survey of Post-Training, Memory, and Skillscited by 19
  6. 2025REAL-Prover: Retrieval Augmented Lean Prover for Mathematical Reasoningcited by 18
  7. 2025LeanProgress: Guiding Search for Neural Theorem Proving via Proof Progress Predictioncited by 9
  8. 2026MerLean: An Agentic Framework for Autoformalization in Quantum Computationcited by 8
  9. 2025Diverse Inference and Verification for Advanced Reasoningcited by 6
  10. 2025RLMEval: Evaluating Research-Level Neural Theorem Provingcited by 6
  11. 2026Autonomous Research Agents: A Survey of AI Scientists and the Verification Gapcited by 6
  12. 2026Towards trustworthy agentic AI: a comprehensive survey of safety, robustness, privacy, and system securitycited by 5
22 more
  1. 2024OpenAI-o1 AB Testing: Does the o1 model really do good reasoning in math problem solving?cited by 4
  2. 2026SorryDB: Can AI Provers Complete Real-World Lean Theorems?cited by 4
  3. 2026The Agentic Researcher: A Practical Guide to AI-Assisted Research in Mathematics and Machine Learningcited by 4
  4. 2025A Llama walks into the 'Bar': Efficient Supervised Fine-Tuning for Legal Reasoning in the Multi-state Bar Examcited by 3
  5. 2026Event-B Agent: Towards LLM Agent for Formal Model Synthesis and Repaircited by 3
  6. 2026Interactive Evaluation Requires a Design Sciencecited by 3
  7. 2026Formalizing Numerical Analysis: An Agent Pipeline and Quality Audit Beyond Kernel Acceptancecited by 3
  8. 2025Local Look-Ahead Guidance via Verifier-in-the-Loop for Automated Theorem Provingcited by 2
  9. 2025CuDIP: Enhancing Theorem Proving in LLMs via Curriculum Learning-based Direct Preference Optimizationcited by 1
  10. 2026Discover and Prove: An Open-source Agentic Framework for Hard Mode Automated Theorem Proving in Lean 4cited by 1
  11. 2026Hypothesis-Disciplined Multi-Agent Automated Formalization of Asymptotic Statistical Theorycited by 1
  12. 2026Decodable but Not Faithful: Coupling Natural-Language Rationales to Programmatic Verifierscited by 1
  13. 2026From Solvers to Research: Large Language Model-Driven Formal Mathematics at the Research Frontiercited by 1
  14. 2026LLM Framework for Discovering Major Mathematical Conjectures: AI's Quest for the Next Riemann Hypothesiscited by 1
  15. 2026Vero: Can AI Agents Build Formally Verified Software Repositories?cited by 1
  16. 2025Deep Learning based discovery of Integrable Systemscited by 0
  17. 2026Benchmarking Testing in Automated Theorem Provingcited by 0
  18. 2026Keep the Proof State Live: Snapshotting for Efficient Tactic Search in Lean 4cited by 0
  19. 2026LLMs Are Not Good Strategists, Yet Memory-Enhanced Agency Boosts Reasoningcited by 0
  20. 2026Compiler-Guided Adaptive Proof Search with Cross-Model Synergy on Context-Dependent Theorem Provingcited by 0
  21. 2026ProofLoom: Proof-Obligation-Driven Theory Construction for Autoformalizing Research-Level Stochastic Optimizationcited by 0
  22. 2026Fyan: A Human--AI Harness with Semantic Auditing for Document-Level Formalizationcited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2026LEAP: Supercharging LLMs for Formal Mathematics with Agentic Frameworks
  2. 2026Magenta: Closing the Loop Between Mathematical Reasoning and Lean Verification
  3. 2025FormalMATH: Benchmarking Formal Mathematical Reasoning of Large Language Models
  4. 2025Seed-Prover 1.5: Mastering Undergraduate-Level Theorem Proving via Learning from Experience
  5. 2025LeanConjecturer: Automatic Generation of Mathematical Conjectures for Theorem Proving
  6. 2025Hilbert: Recursively Building Formal Proofs with Informal Reasoning
  7. 2025HERMES: Towards Efficient and Verifiable Mathematical Reasoning in LLMs
  8. 2026Beyond the Library: An Agentic Framework for Autoformalizing Research Mathematics