lean-dojo/LeanCopilot
A Lean 4 plugin that uses LLMs to suggest tactics, search for proofs, and select premises for formal theorem proving.

LeanCopilot embeds LLM capabilities directly into the Lean 4 proof assistant, enabling proof automation through tactic suggestions and autonomous proof search. It provides APIs for tactic generation, premise selection from a knowledge base, and supports both built-in models from the LeanDojo project and custom models running locally or in the cloud. The system targets formal mathematics workflows where LLMs assist human mathematicians by automating routine proof steps.
Frequently asked
- What is lean-dojo/LeanCopilot?
- A Lean 4 plugin that uses LLMs to suggest tactics, search for proofs, and select premises for formal theorem proving.
- Is LeanCopilot open source?
- Yes — lean-dojo/LeanCopilot is open source, released under the MIT license.
- What language is LeanCopilot written in?
- lean-dojo/LeanCopilot is primarily written in C++.
- How popular is LeanCopilot?
- lean-dojo/LeanCopilot has 1.3k stars on GitHub.
- Where can I find LeanCopilot?
- lean-dojo/LeanCopilot is on GitHub at https://github.com/lean-dojo/LeanCopilot.