cs.LGNov 6, 2026

LeanDojo-v2: A Comprehensive Library for AI-Assisted Theorem Proving in Lean

Authors: Ryan Hsiang, William Adkisson, Robert Joseph George, Anima Anandkumar

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

Appendix figures & tables5 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Evaluation of LLMs for Mathematical Formalization in Lean

    Jun 4, 2026Tyson Klingner, Drew Bladek, Escher Crawford +6LLM EvaluationLean Theorem Proving

  2. Improving Lean4 Autoformalization via Cycle Consistency Fine-tuning

    Mar 25, 2026Arsen ShebzukhovCycle ConsistencyAutoformalization