Lean Copilot: Large Language Models as Copilots for Theorem Proving in Lean
Not on the map. Why?
Abstract (arXiv)
Neural theorem proving combines large language models (LLMs) with proof assistants such as Lean, where the correctness of formal proofs can be rigorously verified, leaving no room for hallucination. With existing neural theorem provers pretrained on a fixed collection of data and offering valuable suggestions at times, it is challenging for them to continually prove novel theorems in a fully autonomous mode, where human insights may be critical. In this paper, we explore LLMs as copilots that assist humans in proving theorems. We introduce Lean Copilot, a general framework for running LLM inference natively in Lean. It enables programmers to build various LLM-based proof automation tools that integrate seamlessly into the workflow of Lean users. Lean users can use our pretrained models or bring their own ones that run either locally (with or without GPUs) or on the cloud. Using Lean Copilot, we build LLM-based tools that suggest proof steps, complete proof goals, and select relevant premises. Experimental results on the Mathematics in Lean textbook demonstrate the effectiveness of our method compared to existing rule-based proof automation in Lean (aesop). When assisting humans, Lean Copilot requires only 2.08 manually-entered proof steps on average (3.86 required by aesop); when automating the theorem proving process, Lean Copilot automates 74.2% proof steps on average, 85% better than aesop (40.1%). We open source all code and artifacts under a permissive MIT license to facilitate further research.
Key facts. Cited by 58 papers in the map (data through 14 Oct 2026). Builds on 36 of its 72 references that are in the map. First posted on arXiv 18 Apr 2024.
Builds on
36 of 72 references.
References · 36
- 2017Attention Is All You Needcited by 60,361
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,824
- 2019HuggingFace's Transformers: State-of-the-art Natural Language Processingcited by 2,218
- 2023A Survey on Hallucination in Large Language Models: Principles, Taxonomy, Challenges, and Open Questionscited by 1,601
- 2021ByT5: Towards a token-free future with pre-trained byte-to-byte modelscited by 509
- 2024GaLore: Memory-Efficient LLM Training by Gradient Low-Rank Projectioncited by 463
- 2023LeanDojo: Theorem Proving with Retrieval-Augmented Language Modelscited by 427
- 2020Generative Language Modeling for Automated Theorem Provingcited by 388
- 2022Autoformalization with Large Language Modelscited by 263
- 2022HyperTree Proof Search for Neural Theorem Provingcited by 197
- 2023ProofNet: Autoformalizing and Formally Proving Undergraduate-Level Mathematicscited by 192
24 more
- 2022Formal Mathematics Statement Curriculum Learningcited by 142
- 2019The Lean mathematical librarycited by 134
- 2021Proof Artifact Co-training for Theorem Proving with Language Modelscited by 132
- 2023Baldur: Whole-Proof Generation and Repair with Large Language Modelscited by 119
- 2019Learning to Prove Theorems via Interacting with Proof Assistantscited by 109
- 2022Thor: Wielding Hammers to Integrate Language Models and Automated Theorem Proverscited by 98
- 2016DeepMath - Deep Sequence Models for Premise Selectioncited by 81
- 2023Evaluating the Code Quality of AI-Assisted Code Generation Tools: An Empirical Study on GitHub Copilot, Amazon CodeWhisperer, and ChatGPTcited by 71
- 2023Evaluating Language Models for Mathematics through Interactionscited by 70
- 2019Graph Representations for Higher-Order Logic and Theorem Provingcited by 55
- 2023FIMO: A Challenge Formal Dataset for Automated Theorem Provingcited by 55
- 2023Magnushammer: A Transformer-Based Approach to Premise Selectioncited by 50
- 2018GamePad: A Learning Environment for Theorem Provingcited by 48
- 2017Premise Selection for Theorem Proving by Deep Graph Embeddingcited by 44
- 2018TacticToe: Learning to Prove with Tacticscited by 44
- 2020Learning to Prove Theorems by Learning to Generate Theoremscited by 43
- 2023LLMSTEP: LLM proofstep suggestions in Leancited by 32
- 2016Holophrasm: a neural Automated Theorem Prover for higher-order logiccited by 29
- 2019Learning to Reason in Large Theories without Imitationcited by 27
- 2017HolStep: A Machine Learning Dataset for Higher-order Logic Theorem Provingcited by 26
- 2020The Tactician (extended version): A Seamless, Interactive Tactic Learner and Prover for Coqcited by 24
- 2022Passport: Improving Automated Formal Verification Using Identifierscited by 19
- 2023Machine-Learned Premise Selection for Leancited by 10
- 2018Meta-F*: Proof Automation with SMT, Tactics, and Metaprogramscited by 1
Built on by
Citing papers per year: 2024: 7; 2025: 15; 2026: 36.
58 papers.
Sort:
By area:
- 2024Formal Mathematical Reasoning: A New Frontier in AIcited by 81
- 2025ACE: A Security Architecture for LLM-Integrated App Systemscited by 55
- 2025ScienceBoard: Evaluating Multimodal Autonomous Agents in Realistic Scientific Workflowscited by 52
- 2025Ax-Prover: A Deep Reasoning Agentic Framework for Theorem Proving in Mathematics and Quantum Physicscited by 31
- 2024ClinicalLab: Aligning Agents for Multi-Departmental Clinical Diagnostics in the Real Worldcited by 28
- 2024Autoformalizing Euclidean Geometrycited by 27
- 2025Creativity in LLM-based Multi-Agent Systems: A Surveycited by 23
- 2025Adaptation of Agentic AI: A Survey of Post-Training, Memory, and Skillscited by 22
- 2026Large Language Model Reasoning Failurescited by 21
- 2024The Fusion of Large Language Models and Formal Methods for Trustworthy AI Agents: A Roadmapcited by 20
- 2025IRIS: Interactive Research Ideation System for Accelerating Scientific Discoverycited by 19
- 2025LeanExplore: A search engine for Lean 4 declarationscited by 18
38 more
- 2025Proving Olympiad Inequalities by Synergizing LLMs and Symbolic Reasoningcited by 17
- 2025Reviving DSP for Advanced Theorem Proving in the Era of Reasoning Modelscited by 17
- 2025Physics Supernova: AI Agent Matches Elite Gold Medalists at IPhO 2025cited by 14
- 2024Math Neurosurgery: Isolating Language Models' Math Reasoning Abilities Using Only Forward Passescited by 10
- 2026Riemann-Bench: A Benchmark for Moonshot Mathematicscited by 8
- 2025Diverse Inference and Verification for Advanced Reasoningcited by 6
- 2025Premise Selection for a Lean Hammercited by 6
- 2025Foundation Models for Scientific Discovery: From Paradigm Enhancement to Paradigm Transitioncited by 6
- 2026Prove2Me: An Open Collaborative Platform for Scaling Math Formalizationcited by 5
- 2026The Agentic Researcher: A Practical Guide to AI-Assisted Research in Mathematics and Machine Learningcited by 4
- 2026ExVerus: Verus Proof Repair via Counterexample Reasoningcited by 3
- 2026Interactive Evaluation Requires a Design Sciencecited by 3
- 2026Certified Program Synthesis with a Multi-Modal Verifiercited by 2
- 2024Fault Diagnosis in Power Grids with Large Language Modelcited by 1
- 2024AlphaIntegrator: Transformer Action Search for Symbolic Integration Proofscited by 1
- 2025Mathematics with large language models as provers and verifierscited by 1
- 2026Pipeline for Verifying LLM-Generated Mathematical Solutionscited by 1
- 2026Discovering mathematical concepts through a multi-agent systemcited by 1
- 2026FormalEvolve: Neuro-Symbolic Evolutionary Search for Diverse Autoformalizationcited by 1
- 2026Early Discoveries of Algorithmist I: Promise of Provable Algorithm Synthesis at Scalecited by 1
- 2026Lean Atlas: An Integrated Proof Environment for Scalable Human-AI Collaborative Formalizationcited by 1
- 2026Automating Formal Verification with Reinforcement Learning and Recursive Inferencecited by 1
- 2026Artificial Intelligence for Mathematical Reasoning: An Integrated Survey of Language Models, Neuro-symbolic Systems, and Verified Discoverycited by 1
- 2026Hypothesis-Disciplined Multi-Agent Automated Formalization of Asymptotic Statistical Theorycited by 1
- 2026LAMP: Lean-based Agentic framework with MCP and Proof Repaircited by 1
- 2026MathCoPilot: An Interactive System for Human-AI Symbiotic Paradigm of Mathematical Researchcited by 1
- 2026Self-Modifying Lean Proof Agents with Verifier-Grounded Benchmark Coevolutioncited by 1
- 2026CausalSmith: A Formally Grounded, Self-Improving Agentic Framework for Automated Research in Causal Inferencecited by 1
- 2026AxQM: A Textbook-Scale Benchmark for Formal Proof Synthesis in a Library of Finite-Dimensional Quantum Mechanicscited by 1
- 2025Lyria: A Genetic Algorithm-Driven Neuro-Symbolic Reasoning Framework for LLMscited by 0
- 2026VERIFY-RL: Verifiable Recursive Decomposition for Reinforcement Learning in Mathematical Reasoningcited by 0
- 2026Yanasse: Finding New Proofs from Deep Vision's Analogies, Part 1cited by 0
- 2026Keep the Proof State Live: Snapshotting for Efficient Tactic Search in Lean 4cited by 0
- 2026Automating Formal Verification with Agent-Guided Tree Searchcited by 0
- 2026Moxia: A Trust-First Neuro-Symbolic Execution Architecture for Self-Explaining Mathematical Reasoningcited by 0
- 2026Human agency in initial human-AI proof formalization workflowscited by 0
- 2026Automated Proving of Shannon-Type Entropy Inequalities via Fine-Tuned Language Models and Guided Tree Searchcited by 0
- 2026ProofJudge: Tool-Grounded LLM Evaluation of Formal Proof Quality in Mathlibcited by 0
50 most cited of 58 All 58 (JSON)
- 2026Do Theorem Provers Need Theorem-Proving Agents? mini-Lean-agent: A Coding-Agent Baseline for Lean12 Oct 2026
- 2026AgentSWE: Can Coding Agents Build the Agent You Actually Want?9 Oct 2026
- 2026Let the Library Speak: Self-Advertised Method Selection for Formal Proving7 Oct 2026
- 2026ProsaBuddy: Assisting Mechanized Real-Time Schedulability Analysis with LLM-based Agents1 Oct 2026
- 2026SkillEvoLean: Mutation-enhanced skill evolution for Lean provers1 Oct 2026
- 2026ProofLoom: Proof-Obligation-Driven Theory Construction for Autoformalizing Research-Level Stochastic Optimization28 Sep 2026
- 2026When Does Structured Knowledge Help Neural Theorem Proving?28 Sep 2026
- 2026Direct Optimization of Generators for Search in Automated Theorem Proving22 Sep 2026
- 2026AxQM: A Textbook-Scale Benchmark for Formal Proof Synthesis in a Library of Finite-Dimensional Quantum Mechanics4 Sep 2026
- 2026Prove2Me: An Open Collaborative Platform for Scaling Math Formalization28 Aug 2026
- 2026ProofJudge: Tool-Grounded LLM Evaluation of Formal Proof Quality in Mathlib20 Aug 2026
- 2026CausalSmith: A Formally Grounded, Self-Improving Agentic Framework for Automated Research in Causal Inference24 Jul 2026
38 more
- 2026Self-Modifying Lean Proof Agents with Verifier-Grounded Benchmark Coevolution19 Jul 2026
- 2026MathCoPilot: An Interactive System for Human-AI Symbiotic Paradigm of Mathematical Research16 Jul 2026
- 2026LAMP: Lean-based Agentic framework with MCP and Proof Repair27 Jun 2026
- 2026Artificial Intelligence for Mathematical Reasoning: An Integrated Survey of Language Models, Neuro-symbolic Systems, and Verified Discovery7 Jun 2026
- 2026Automated Proving of Shannon-Type Entropy Inequalities via Fine-Tuned Language Models and Guided Tree Search4 Jun 2026
- 2026Hypothesis-Disciplined Multi-Agent Automated Formalization of Asymptotic Statistical Theory3 Jun 2026
- 2026Human agency in initial human-AI proof formalization workflows2 Jun 2026
- 2026Moxia: A Trust-First Neuro-Symbolic Execution Architecture for Self-Explaining Mathematical Reasoning30 May 2026
- 2026Automating Formal Verification with Reinforcement Learning and Recursive Inference29 May 2026
- 2026Automating Formal Verification with Agent-Guided Tree Search26 May 2026
- 2026Keep the Proof State Live: Snapshotting for Efficient Tactic Search in Lean 425 May 2026
- 2026Interactive Evaluation Requires a Design Science18 May 2026
- 2026Yanasse: Finding New Proofs from Deep Vision's Analogies, Part 119 Apr 2026
- 2026Certified Program Synthesis with a Multi-Modal Verifier17 Apr 2026
- 2026Riemann-Bench: A Benchmark for Moonshot Mathematics8 Apr 2026
- 2026ExVerus: Verus Proof Repair via Counterexample Reasoning26 Mar 2026
- 2026Early Discoveries of Algorithmist I: Promise of Provable Algorithm Synthesis at Scale23 Mar 2026
- 2026FormalEvolve: Neuro-Symbolic Evolutionary Search for Diverse Autoformalization20 Mar 2026
- 2026Lean Atlas: An Integrated Proof Environment for Scalable Human-AI Collaborative Formalization16 Mar 2026
- 2026The Agentic Researcher: A Practical Guide to AI-Assisted Research in Mathematics and Machine Learning16 Mar 2026
- 2026Discovering mathematical concepts through a multi-agent system4 Mar 2026
- 2026Pipeline for Verifying LLM-Generated Mathematical Solutions24 Feb 2026
- 2026VERIFY-RL: Verifiable Recursive Decomposition for Reinforcement Learning in Mathematical Reasoning7 Feb 2026
- 2026Large Language Model Reasoning Failures5 Feb 2026
- 2025Adaptation of Agentic AI: A Survey of Post-Training, Memory, and Skills18 Dec 2025
- 2025Foundation Models for Scientific Discovery: From Paradigm Enhancement to Paradigm Transition17 Oct 2025
- 2025Ax-Prover: A Deep Reasoning Agentic Framework for Theorem Proving in Mathematics and Quantum Physics14 Oct 2025
- 2025Mathematics with large language models as provers and verifiers11 Oct 2025
- 2025Physics Supernova: AI Agent Matches Elite Gold Medalists at IPhO 20251 Sep 2025
- 2025Lyria: A Genetic Algorithm-Driven Neuro-Symbolic Reasoning Framework for LLMs5 Jul 2025
- 2025Reviving DSP for Advanced Theorem Proving in the Era of Reasoning Models13 Jun 2025
- 2025Premise Selection for a Lean Hammer9 Jun 2025
- 2025LeanExplore: A search engine for Lean 4 declarations4 Jun 2025
- 2025Creativity in LLM-based Multi-Agent Systems: A Survey27 May 2025
- 2025ScienceBoard: Evaluating Multimodal Autonomous Agents in Realistic Scientific Workflows26 May 2025
- 2025ACE: A Security Architecture for LLM-Integrated App Systems29 Apr 2025
- 2025IRIS: Interactive Research Ideation System for Accelerating Scientific Discovery23 Apr 2025
- 2025Proving Olympiad Inequalities by Synergizing LLMs and Symbolic Reasoning19 Feb 2025
50 newest of 58 All 58 (JSON)
- 2024Formal Mathematical Reasoning: A New Frontier in AIcited by 81
- 2025Ax-Prover: A Deep Reasoning Agentic Framework for Theorem Proving in Mathematics and Quantum Physicscited by 31
- 2026Large Language Model Reasoning Failurescited by 21
- 2025Proving Olympiad Inequalities by Synergizing LLMs and Symbolic Reasoningcited by 17
- 2025Reviving DSP for Advanced Theorem Proving in the Era of Reasoning Modelscited by 17
- 2024Math Neurosurgery: Isolating Language Models' Math Reasoning Abilities Using Only Forward Passescited by 10
- 2025Diverse Inference and Verification for Advanced Reasoningcited by 6
- 2026ExVerus: Verus Proof Repair via Counterexample Reasoningcited by 3
- 2026Pipeline for Verifying LLM-Generated Mathematical Solutionscited by 1
- 2026Early Discoveries of Algorithmist I: Promise of Provable Algorithm Synthesis at Scalecited by 1
- 2026Artificial Intelligence for Mathematical Reasoning: An Integrated Survey of Language Models, Neuro-symbolic Systems, and Verified Discoverycited by 1
- 2026LAMP: Lean-based Agentic framework with MCP and Proof Repaircited by 1
12 most cited of 16 All 16 (JSON)
- 2026Self-Modifying Lean Proof Agents with Verifier-Grounded Benchmark Coevolution19 Jul 2026
- 2026LAMP: Lean-based Agentic framework with MCP and Proof Repair27 Jun 2026
- 2026Artificial Intelligence for Mathematical Reasoning: An Integrated Survey of Language Models, Neuro-symbolic Systems, and Verified Discovery7 Jun 2026
- 2026Moxia: A Trust-First Neuro-Symbolic Execution Architecture for Self-Explaining Mathematical Reasoning30 May 2026
- 2026ExVerus: Verus Proof Repair via Counterexample Reasoning26 Mar 2026
- 2026Early Discoveries of Algorithmist I: Promise of Provable Algorithm Synthesis at Scale23 Mar 2026
- 2026Pipeline for Verifying LLM-Generated Mathematical Solutions24 Feb 2026
- 2026VERIFY-RL: Verifiable Recursive Decomposition for Reinforcement Learning in Mathematical Reasoning7 Feb 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
- 2025Lyria: A Genetic Algorithm-Driven Neuro-Symbolic Reasoning Framework for LLMs5 Jul 2025
- 2025Reviving DSP for Advanced Theorem Proving in the Era of Reasoning Models13 Jun 2025
12 newest of 16 All 16 (JSON)
- 2025ScienceBoard: Evaluating Multimodal Autonomous Agents in Realistic Scientific Workflowscited by 52
- 2025Creativity in LLM-based Multi-Agent Systems: A Surveycited by 23
- 2025Adaptation of Agentic AI: A Survey of Post-Training, Memory, and Skillscited by 22
- 2024The Fusion of Large Language Models and Formal Methods for Trustworthy AI Agents: A Roadmapcited by 20
- 2026The Agentic Researcher: A Practical Guide to AI-Assisted Research in Mathematics and Machine Learningcited by 4
- 2026CausalSmith: A Formally Grounded, Self-Improving Agentic Framework for Automated Research in Causal Inferencecited by 1
- 2026Automating Formal Verification with Agent-Guided Tree Searchcited by 0
- 2026SkillEvoLean: Mutation-enhanced skill evolution for Lean proverscited by 0
- 2026ProsaBuddy: Assisting Mechanized Real-Time Schedulability Analysis with LLM-based Agentscited by 0
- 2026AgentSWE: Can Coding Agents Build the Agent You Actually Want?cited by 0
- 2026Do Theorem Provers Need Theorem-Proving Agents? mini-Lean-agent: A Coding-Agent Baseline for Leancited by 0
- 2026Do Theorem Provers Need Theorem-Proving Agents? mini-Lean-agent: A Coding-Agent Baseline for Lean12 Oct 2026
- 2026AgentSWE: Can Coding Agents Build the Agent You Actually Want?9 Oct 2026
- 2026ProsaBuddy: Assisting Mechanized Real-Time Schedulability Analysis with LLM-based Agents1 Oct 2026
- 2026SkillEvoLean: Mutation-enhanced skill evolution for Lean provers1 Oct 2026
- 2026CausalSmith: A Formally Grounded, Self-Improving Agentic Framework for Automated Research in Causal Inference24 Jul 2026
- 2026Automating Formal Verification with Agent-Guided Tree Search26 May 2026
- 2026The Agentic Researcher: A Practical Guide to AI-Assisted Research in Mathematics and Machine Learning16 Mar 2026
- 2025Adaptation of Agentic AI: A Survey of Post-Training, Memory, and Skills18 Dec 2025
- 2025Creativity in LLM-based Multi-Agent Systems: A Survey27 May 2025
- 2025ScienceBoard: Evaluating Multimodal Autonomous Agents in Realistic Scientific Workflows26 May 2025
- 2024The Fusion of Large Language Models and Formal Methods for Trustworthy AI Agents: A Roadmap9 Dec 2024
- 2025ACE: A Security Architecture for LLM-Integrated App Systemscited by 55
- 2024ClinicalLab: Aligning Agents for Multi-Departmental Clinical Diagnostics in the Real Worldcited by 28
- 2024Autoformalizing Euclidean Geometrycited by 27
- 2025IRIS: Interactive Research Ideation System for Accelerating Scientific Discoverycited by 19
- 2025LeanExplore: A search engine for Lean 4 declarationscited by 18
- 2025Physics Supernova: AI Agent Matches Elite Gold Medalists at IPhO 2025cited by 14
- 2026Riemann-Bench: A Benchmark for Moonshot Mathematicscited by 8
- 2025Premise Selection for a Lean Hammercited by 6
- 2025Foundation Models for Scientific Discovery: From Paradigm Enhancement to Paradigm Transitioncited by 6
- 2026Prove2Me: An Open Collaborative Platform for Scaling Math Formalizationcited by 5
- 2026Interactive Evaluation Requires a Design Sciencecited by 3
- 2026Certified Program Synthesis with a Multi-Modal Verifiercited by 2
12 most cited of 30 All 30 (JSON)
- 2026Let the Library Speak: Self-Advertised Method Selection for Formal Proving7 Oct 2026
- 2026ProofLoom: Proof-Obligation-Driven Theory Construction for Autoformalizing Research-Level Stochastic Optimization28 Sep 2026
- 2026When Does Structured Knowledge Help Neural Theorem Proving?28 Sep 2026
- 2026Direct Optimization of Generators for Search in Automated Theorem Proving22 Sep 2026
- 2026AxQM: A Textbook-Scale Benchmark for Formal Proof Synthesis in a Library of Finite-Dimensional Quantum Mechanics4 Sep 2026
- 2026Prove2Me: An Open Collaborative Platform for Scaling Math Formalization28 Aug 2026
- 2026ProofJudge: Tool-Grounded LLM Evaluation of Formal Proof Quality in Mathlib20 Aug 2026
- 2026MathCoPilot: An Interactive System for Human-AI Symbiotic Paradigm of Mathematical Research16 Jul 2026
- 2026Automated Proving of Shannon-Type Entropy Inequalities via Fine-Tuned Language Models and Guided Tree Search4 Jun 2026
- 2026Hypothesis-Disciplined Multi-Agent Automated Formalization of Asymptotic Statistical Theory3 Jun 2026
- 2026Human agency in initial human-AI proof formalization workflows2 Jun 2026
- 2026Keep the Proof State Live: Snapshotting for Efficient Tactic Search in Lean 425 May 2026
12 newest of 30 All 30 (JSON)