LeanAgent: Lifelong Learning for Formal Theorem Proving
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
- 2024Lean-STaR: Learning to Interleave Thinking and Proving14 Jul
- 2024TheoremLlama: Transforming General-Purpose LLMs into Lean4 Experts3 Jul
- 2024Don't Trust: Verify -- Grounding LLM Quantitative Reasoning with Autoformalization26 Mar
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models5 Feb
Other references · 38
- 2017Attention Is All You Needcited by 59,932
- 2016Overcoming catastrophic forgetting in neural networkscited by 4,718
- 2016Learning without Forgettingcited by 2,465
- 2017Gradient Episodic Memory for Continual Learningcited by 1,871
- 2021Improving language models by retrieving from trillions of tokenscited by 1,278
- 2017Continual Learning with Deep Generative Replaycited by 1,152
- 2018Efficient Lifelong Learning with A-GEMcited by 1,044
- 2023A Comprehensive Survey of Continual Learning: Theory, Method and Applicationcited by 860
- 2021ByT5: Towards a token-free future with pre-trained byte-to-byte modelscited by 504
- 2024GaLore: Memory-Efficient LLM Training by Gradient Low-Rank Projectioncited by 447
- 2023LeanDojo: Theorem Proving with Retrieval-Augmented Language Modelscited by 414
- 2024DeepSeek-Prover: Advancing Theorem Proving in LLMs through Large-Scale Synthetic Datacited by 225
26 more
- 2022HyperTree Proof Search for Neural Theorem Provingcited by 192
- 2024DeepSeek-Prover-V1.5: Harnessing Proof Assistant Feedback for Reinforcement Learning and Monte-Carlo Tree Searchcited by 189
- 2024PutnamBench: Evaluating Neural Theorem-Provers on the Putnam Mathematical Competitioncited by 153
- 2022DocPrompting: Generating Code by Retrieving the Docscited by 151
- 2022Formal Mathematics Statement Curriculum Learningcited by 141
- 2022ReACC: A Retrieval-Augmented Code Completion Frameworkcited by 117
- 2018Don't forget, there is more than forgetting: new metrics for Continual Learningcited by 113
- 2014Learning to Executecited by 105
- 2022Thor: Wielding Hammers to Integrate Language Models and Automated Theorem Proverscited by 97
- 2016DeepMath - Deep Sequence Models for Premise Selectioncited by 80
- 2023An In-Context Learning Agent for Formal Theorem-Provingcited by 78
- 2024Continual Learning and Catastrophic Forgettingcited by 73
- 2022Continual evaluation for lifelong learning: Identifying the stability gapcited by 55
- 2023FIMO: A Challenge Formal Dataset for Automated Theorem Provingcited by 54
- 2023Magnushammer: A Transformer-Based Approach to Premise Selectioncited by 50
- 2016Visualizing and Understanding Curriculum Learning for Long Short-Term Memory Networkscited by 44
- 2020Learning to Prove Theorems by Learning to Generate Theoremscited by 43
- 2020Lifelong Learning of Compositional Structurescited by 34
- 2021Does the Order of Training Samples Matter? Improving Neural Data-to-Text Generation with Curriculum Learningcited by 34
- 2017Adversarial Generation of Natural Languagecited by 33
- 2024Proof Automation with Large Language Modelscited by 20
- 2023Is forgetting less a good inductive bias for forward transfer?cited by 18
- 2022DeepSpeed Data Efficiency: Improving Deep Learning Model Quality and Training Efficiency via Efficient Data Sampling and Routingcited by 13
- 2024MoFO: Momentum-Filtered Optimizer for Mitigating Forgetting in LLM Fine-Tuningcited by 13
- 2023EmbedDistill: A Geometric Knowledge Distillation for Information Retrievalcited by 11
- 2023Machine-Learned Premise Selection for Leancited by 10
Built on by
Citing papers per year: 2024: 1; 2025: 12; 2026: 21.
34 papers.
Sort:
By area:
- 2025Ax-Prover: A Deep Reasoning Agentic Framework for Theorem Proving in Mathematics and Quantum Physicscited by 27
- 2025MA-LoT: Model-Collaboration Lean-based Long Chain-of-Thought Reasoning enhances Formal Theorem Provingcited by 24
- 2025FEABench: Evaluating Language Models on Multiphysics Reasoning Abilitycited by 21
- 2026Large Language Model Reasoning Failurescited by 20
- 2025Adaptation of Agentic AI: A Survey of Post-Training, Memory, and Skillscited by 19
- 2025REAL-Prover: Retrieval Augmented Lean Prover for Mathematical Reasoningcited by 18
- 2025LeanProgress: Guiding Search for Neural Theorem Proving via Proof Progress Predictioncited by 9
- 2026MerLean: An Agentic Framework for Autoformalization in Quantum Computationcited by 8
- 2025Diverse Inference and Verification for Advanced Reasoningcited by 6
- 2025RLMEval: Evaluating Research-Level Neural Theorem Provingcited by 6
- 2026Autonomous Research Agents: A Survey of AI Scientists and the Verification Gapcited by 6
- 2026Towards trustworthy agentic AI: a comprehensive survey of safety, robustness, privacy, and system securitycited by 5
22 more
- 2024OpenAI-o1 AB Testing: Does the o1 model really do good reasoning in math problem solving?cited by 4
- 2026SorryDB: Can AI Provers Complete Real-World Lean Theorems?cited by 4
- 2026The Agentic Researcher: A Practical Guide to AI-Assisted Research in Mathematics and Machine Learningcited by 4
- 2025A Llama walks into the 'Bar': Efficient Supervised Fine-Tuning for Legal Reasoning in the Multi-state Bar Examcited by 3
- 2026Event-B Agent: Towards LLM Agent for Formal Model Synthesis and Repaircited by 3
- 2026Interactive Evaluation Requires a Design Sciencecited by 3
- 2026Formalizing Numerical Analysis: An Agent Pipeline and Quality Audit Beyond Kernel Acceptancecited by 3
- 2025Local Look-Ahead Guidance via Verifier-in-the-Loop for Automated Theorem Provingcited by 2
- 2025CuDIP: Enhancing Theorem Proving in LLMs via Curriculum Learning-based Direct Preference Optimizationcited by 1
- 2026Discover and Prove: An Open-source Agentic Framework for Hard Mode Automated Theorem Proving in Lean 4cited by 1
- 2026Hypothesis-Disciplined Multi-Agent Automated Formalization of Asymptotic Statistical Theorycited by 1
- 2026Decodable but Not Faithful: Coupling Natural-Language Rationales to Programmatic Verifierscited by 1
- 2026From Solvers to Research: Large Language Model-Driven Formal Mathematics at the Research Frontiercited by 1
- 2026LLM Framework for Discovering Major Mathematical Conjectures: AI's Quest for the Next Riemann Hypothesiscited by 1
- 2026Vero: Can AI Agents Build Formally Verified Software Repositories?cited by 1
- 2025Deep Learning based discovery of Integrable Systemscited by 0
- 2026Benchmarking Testing in Automated Theorem Provingcited by 0
- 2026Keep the Proof State Live: Snapshotting for Efficient Tactic Search in Lean 4cited by 0
- 2026LLMs Are Not Good Strategists, Yet Memory-Enhanced Agency Boosts Reasoningcited by 0
- 2026Compiler-Guided Adaptive Proof Search with Cross-Model Synergy on Context-Dependent Theorem Provingcited by 0
- 2026ProofLoom: Proof-Obligation-Driven Theory Construction for Autoformalizing Research-Level Stochastic Optimizationcited by 0
- 2026Fyan: A Human--AI Harness with Semantic Auditing for Document-Level Formalizationcited by 0
- 2026Fyan: A Human--AI Harness with Semantic Auditing for Document-Level Formalization30 Sep 2026
- 2026ProofLoom: Proof-Obligation-Driven Theory Construction for Autoformalizing Research-Level Stochastic Optimization28 Sep 2026
- 2026Vero: Can AI Agents Build Formally Verified Software Repositories?13 Aug 2026
- 2026LLMs Are Not Good Strategists, Yet Memory-Enhanced Agency Boosts Reasoning12 Aug 2026
- 2026From Solvers to Research: Large Language Model-Driven Formal Mathematics at the Research Frontier8 Jul 2026
- 2026Autonomous Research Agents: A Survey of AI Scientists and the Verification Gap29 Jun 2026
- 2026Decodable but Not Faithful: Coupling Natural-Language Rationales to Programmatic Verifiers19 Jun 2026
- 2026Formalizing Numerical Analysis: An Agent Pipeline and Quality Audit Beyond Kernel Acceptance12 Jun 2026
- 2026Compiler-Guided Adaptive Proof Search with Cross-Model Synergy on Context-Dependent Theorem Proving4 Jun 2026
- 2026Hypothesis-Disciplined Multi-Agent Automated Formalization of Asymptotic Statistical Theory3 Jun 2026
- 2026Keep the Proof State Live: Snapshotting for Efficient Tactic Search in Lean 425 May 2026
- 2026Interactive Evaluation Requires a Design Science18 May 2026
22 more
- 2026Towards trustworthy agentic AI: a comprehensive survey of safety, robustness, privacy, and system security17 May 2026
- 2026Event-B Agent: Towards LLM Agent for Formal Model Synthesis and Repair17 May 2026
- 2026Benchmarking Testing in Automated Theorem Proving26 Apr 2026
- 2026LLM Framework for Discovering Major Mathematical Conjectures: AI's Quest for the Next Riemann Hypothesis19 Apr 2026
- 2026Discover and Prove: An Open-source Agentic Framework for Hard Mode Automated Theorem Proving in Lean 417 Apr 2026
- 2026The Agentic Researcher: A Practical Guide to AI-Assisted Research in Mathematics and Machine Learning16 Mar 2026
- 2026SorryDB: Can AI Provers Complete Real-World Lean Theorems?3 Mar 2026
- 2026MerLean: An Agentic Framework for Autoformalization in Quantum Computation18 Feb 2026
- 2026Large Language Model Reasoning Failures5 Feb 2026
- 2025Adaptation of Agentic AI: A Survey of Post-Training, Memory, and Skills18 Dec 2025
- 2025RLMEval: Evaluating Research-Level Neural Theorem Proving29 Oct 2025
- 2025Ax-Prover: A Deep Reasoning Agentic Framework for Theorem Proving in Mathematics and Quantum Physics14 Oct 2025
- 2025REAL-Prover: Retrieval Augmented Lean Prover for Mathematical Reasoning27 May 2025
- 2025FEABench: Evaluating Language Models on Multiphysics Reasoning Ability8 Apr 2025
- 2025A Llama walks into the 'Bar': Efficient Supervised Fine-Tuning for Legal Reasoning in the Multi-state Bar Exam7 Apr 2025
- 2025Deep Learning based discovery of Integrable Systems13 Mar 2025
- 2025Local Look-Ahead Guidance via Verifier-in-the-Loop for Automated Theorem Proving12 Mar 2025
- 2025MA-LoT: Model-Collaboration Lean-based Long Chain-of-Thought Reasoning enhances Formal Theorem Proving5 Mar 2025
- 2025CuDIP: Enhancing Theorem Proving in LLMs via Curriculum Learning-based Direct Preference Optimization25 Feb 2025
- 2025LeanProgress: Guiding Search for Neural Theorem Proving via Proof Progress Prediction25 Feb 2025
- 2025Diverse Inference and Verification for Advanced Reasoning14 Feb 2025
- 2024OpenAI-o1 AB Testing: Does the o1 model really do good reasoning in math problem solving?9 Nov 2024
- 2025Ax-Prover: A Deep Reasoning Agentic Framework for Theorem Proving in Mathematics and Quantum Physicscited by 27
- 2025MA-LoT: Model-Collaboration Lean-based Long Chain-of-Thought Reasoning enhances Formal Theorem Provingcited by 24
- 2025FEABench: Evaluating Language Models on Multiphysics Reasoning Abilitycited by 21
- 2026Large Language Model Reasoning Failurescited by 20
- 2025REAL-Prover: Retrieval Augmented Lean Prover for Mathematical Reasoningcited by 18
- 2025LeanProgress: Guiding Search for Neural Theorem Proving via Proof Progress Predictioncited by 9
- 2025Diverse Inference and Verification for Advanced Reasoningcited by 6
- 2024OpenAI-o1 AB Testing: Does the o1 model really do good reasoning in math problem solving?cited by 4
- 2025A Llama walks into the 'Bar': Efficient Supervised Fine-Tuning for Legal Reasoning in the Multi-state Bar Examcited by 3
- 2025CuDIP: Enhancing Theorem Proving in LLMs via Curriculum Learning-based Direct Preference Optimizationcited by 1
- 2026LLMs Are Not Good Strategists, Yet Memory-Enhanced Agency Boosts Reasoningcited by 0
- 2026LLMs Are Not Good Strategists, Yet Memory-Enhanced Agency Boosts Reasoning12 Aug 2026
- 2026Large Language Model Reasoning Failures5 Feb 2026
- 2025Ax-Prover: A Deep Reasoning Agentic Framework for Theorem Proving in Mathematics and Quantum Physics14 Oct 2025
- 2025REAL-Prover: Retrieval Augmented Lean Prover for Mathematical Reasoning27 May 2025
- 2025FEABench: Evaluating Language Models on Multiphysics Reasoning Ability8 Apr 2025
- 2025A Llama walks into the 'Bar': Efficient Supervised Fine-Tuning for Legal Reasoning in the Multi-state Bar Exam7 Apr 2025
- 2025MA-LoT: Model-Collaboration Lean-based Long Chain-of-Thought Reasoning enhances Formal Theorem Proving5 Mar 2025
- 2025CuDIP: Enhancing Theorem Proving in LLMs via Curriculum Learning-based Direct Preference Optimization25 Feb 2025
- 2025LeanProgress: Guiding Search for Neural Theorem Proving via Proof Progress Prediction25 Feb 2025
- 2025Diverse Inference and Verification for Advanced Reasoning14 Feb 2025
- 2024OpenAI-o1 AB Testing: Does the o1 model really do good reasoning in math problem solving?9 Nov 2024
- 2025Adaptation of Agentic AI: A Survey of Post-Training, Memory, and Skillscited by 19
- 2026MerLean: An Agentic Framework for Autoformalization in Quantum Computationcited by 8
- 2026Autonomous Research Agents: A Survey of AI Scientists and the Verification Gapcited by 6
- 2026Towards trustworthy agentic AI: a comprehensive survey of safety, robustness, privacy, and system securitycited by 5
- 2026The Agentic Researcher: A Practical Guide to AI-Assisted Research in Mathematics and Machine Learningcited by 4
- 2026Event-B Agent: Towards LLM Agent for Formal Model Synthesis and Repaircited by 3
- 2026Formalizing Numerical Analysis: An Agent Pipeline and Quality Audit Beyond Kernel Acceptancecited by 3
- 2026Discover and Prove: An Open-source Agentic Framework for Hard Mode Automated Theorem Proving in Lean 4cited by 1
- 2026Autonomous Research Agents: A Survey of AI Scientists and the Verification Gap29 Jun 2026
- 2026Formalizing Numerical Analysis: An Agent Pipeline and Quality Audit Beyond Kernel Acceptance12 Jun 2026
- 2026Towards trustworthy agentic AI: a comprehensive survey of safety, robustness, privacy, and system security17 May 2026
- 2026Event-B Agent: Towards LLM Agent for Formal Model Synthesis and Repair17 May 2026
- 2026Discover and Prove: An Open-source Agentic Framework for Hard Mode Automated Theorem Proving in Lean 417 Apr 2026
- 2026The Agentic Researcher: A Practical Guide to AI-Assisted Research in Mathematics and Machine Learning16 Mar 2026
- 2026MerLean: An Agentic Framework for Autoformalization in Quantum Computation18 Feb 2026
- 2025Adaptation of Agentic AI: A Survey of Post-Training, Memory, and Skills18 Dec 2025
- 2025RLMEval: Evaluating Research-Level Neural Theorem Provingcited by 6
- 2026SorryDB: Can AI Provers Complete Real-World Lean Theorems?cited by 4
- 2026Interactive Evaluation Requires a Design Sciencecited by 3
- 2025Local Look-Ahead Guidance via Verifier-in-the-Loop for Automated Theorem Provingcited by 2
- 2026Hypothesis-Disciplined Multi-Agent Automated Formalization of Asymptotic Statistical Theorycited by 1
- 2026Decodable but Not Faithful: Coupling Natural-Language Rationales to Programmatic Verifierscited by 1
- 2026From Solvers to Research: Large Language Model-Driven Formal Mathematics at the Research Frontiercited by 1
- 2026LLM Framework for Discovering Major Mathematical Conjectures: AI's Quest for the Next Riemann Hypothesiscited by 1
- 2026Vero: Can AI Agents Build Formally Verified Software Repositories?cited by 1
- 2025Deep Learning based discovery of Integrable Systemscited by 0
- 2026Benchmarking Testing in Automated Theorem Provingcited by 0
- 2026Keep the Proof State Live: Snapshotting for Efficient Tactic Search in Lean 4cited by 0
12 most cited of 15 All 15 (JSON)
- 2026Fyan: A Human--AI Harness with Semantic Auditing for Document-Level Formalization30 Sep 2026
- 2026ProofLoom: Proof-Obligation-Driven Theory Construction for Autoformalizing Research-Level Stochastic Optimization28 Sep 2026
- 2026Vero: Can AI Agents Build Formally Verified Software Repositories?13 Aug 2026
- 2026From Solvers to Research: Large Language Model-Driven Formal Mathematics at the Research Frontier8 Jul 2026
- 2026Decodable but Not Faithful: Coupling Natural-Language Rationales to Programmatic Verifiers19 Jun 2026
- 2026Compiler-Guided Adaptive Proof Search with Cross-Model Synergy on Context-Dependent Theorem Proving4 Jun 2026
- 2026Hypothesis-Disciplined Multi-Agent Automated Formalization of Asymptotic Statistical Theory3 Jun 2026
- 2026Keep the Proof State Live: Snapshotting for Efficient Tactic Search in Lean 425 May 2026
- 2026Interactive Evaluation Requires a Design Science18 May 2026
- 2026Benchmarking Testing in Automated Theorem Proving26 Apr 2026
- 2026LLM Framework for Discovering Major Mathematical Conjectures: AI's Quest for the Next Riemann Hypothesis19 Apr 2026
- 2026SorryDB: Can AI Provers Complete Real-World Lean Theorems?3 Mar 2026
12 newest of 15 All 15 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2026LEAP: Supercharging LLMs for Formal Mathematics with Agentic Frameworks
- 2026Magenta: Closing the Loop Between Mathematical Reasoning and Lean Verification
- 2025FormalMATH: Benchmarking Formal Mathematical Reasoning of Large Language Models
- 2025Seed-Prover 1.5: Mastering Undergraduate-Level Theorem Proving via Learning from Experience
- 2025LeanConjecturer: Automatic Generation of Mathematical Conjectures for Theorem Proving
- 2025Hilbert: Recursively Building Formal Proofs with Informal Reasoning
- 2025HERMES: Towards Efficient and Verifiable Mathematical Reasoning in LLMs
- 2026Beyond the Library: An Agentic Framework for Autoformalizing Research Mathematics