LeanDojo-v2: A Comprehensive Library for AI-Assisted Theorem Proving in Lean
Organizations: National Taiwan University · Washington University in St. Louis · California Institute of Technology
Abstract
Building on recent progress in machine learning for formal theorem proving in Lean, we introduce LeanDojo-v2: an end-to-end framework that unifies repository data extraction, LLM fine-tuning, proof search, AI autocompletion, and LLM-assisted theorem proving in a single software library. In addition, we provide Lean4Code, a lightweight IDE that integrates the various features of LeanDojo-v2 through a simple, mathematician-friendly UI. These tools will enable mathematicians and researchers to easily fine-tune language models on domain-specific Lean codebases and experiment with LLM-assisted theorem proving without a complex setup.
Figures & tables
| Extension | Purpose |
|---|---|
| Lean4 (modified) | Downloads and configures Lean4/LeanDojo-v2 |
| LeanDojo | Supports one-click LeanDojo tracing |
| LeanCopilot | Calls models to complete theorems |
| Agent-TARS | General agentic AI assistance |
Appendix figures & tables5 assets
Supplementary material from the paper’s appendix.
Appendix
Lean Theorem Proving
Lean theorem proving uses the Lean proof assistant to construct machine-checked mathematical proofs, often with automated search and language models.
See all 129 papers