Skip to main content

LeanDojo: Machine Learning for Theorem Proving in Lean

Project description

LeanDojo: Machine Learning for Theorem Proving in Lean

LeanDojo

LeanDojo is a Python library for learning–based theorem provers in Lean, providing two main features:

  • Extracting data (proof states, tactics, premises, etc.) from Lean repos.
  • Interacting with Lean programmatically.

LeanDojo's current version is compatible with Lean 4 v4.3.0-rc2 or later. We strongly suggest using the current version. However, you may use the legacy branch if you want to work with earlier versions (including Lean 3).

Documentation Status PyPI GitHub license Code style: black


Requirements

  • Supported platforms: Linux, Windows WSL, and macOS
  • Git >= 2.25
  • 3.9 <= Python < 3.12
  • wget
  • elan
  • Generate a GitHub personal access token and set the environment variable GITHUB_ACCESS_TOKEN to it

Installation

LeanDojo is available on PyPI and can be installed via pip:

pip install lean-dojo

It can also be installed locally from the Git repo:

pip install .

Documentation

Questions and Bugs

  • For general questions and discussions, please use GitHub Discussions.
  • To report a potential bug, please open an issue. In the issue, please include your OS information, the version of LeanDojo, the exact steps to reproduce the error, and complete logs in debug mode (setting the environment variable VERBOSE to 1). The more details you provide, the better we will be able to help you.

Related Links

Citation

LeanDojo: Theorem Proving with Retrieval-Augmented Language Models
Neural Information Processing Systems (NeurIPS), 2023
Kaiyu Yang, Aidan Swope, Alex Gu, Rahul Chalamala,
Peiyang Song, Shixing Yu, Saad Godil, Ryan Prenger, Anima Anandkumar

@inproceedings{yang2023leandojo,
  title={{LeanDojo}: Theorem Proving with Retrieval-Augmented Language Models},
  author={Yang, Kaiyu and Swope, Aidan and Gu, Alex and Chalamala, Rahul and Song, Peiyang and Yu, Shixing and Godil, Saad and Prenger, Ryan and Anandkumar, Anima},
  booktitle={Neural Information Processing Systems (NeurIPS)},
  year={2023}
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lean_dojo-2.1.2.tar.gz (67.2 MB view details)

Uploaded Source

Built Distribution

lean_dojo-2.1.2-py3-none-any.whl (52.3 kB view details)

Uploaded Python 3

File details

Details for the file lean_dojo-2.1.2.tar.gz.

File metadata

  • Download URL: lean_dojo-2.1.2.tar.gz
  • Upload date:
  • Size: 67.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.27.0

File hashes

Hashes for lean_dojo-2.1.2.tar.gz
Algorithm Hash digest
SHA256 f8b9762831efc4e62e350e339d53089fd354fac272ff06ef1b12e36341b6e7bb
MD5 2d7f24b20e165d7b5b5926c0215f6c97
BLAKE2b-256 a58cae4128f4143a4d2e1402adbfd8b57c8f5cec6e8dbc3cb66eb97174cab1ca

See more details on using hashes here.

File details

Details for the file lean_dojo-2.1.2-py3-none-any.whl.

File metadata

  • Download URL: lean_dojo-2.1.2-py3-none-any.whl
  • Upload date:
  • Size: 52.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.27.0

File hashes

Hashes for lean_dojo-2.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a6c095ed2f39b0a2b0e3ca6f2c23b7e70e68c64e50f5b789ab9b7999018cecc9
MD5 0d0e0fdf302feb189e061aa01386c4bd
BLAKE2b-256 efd0cb75a94fb72b7396d54e05589861fb09d3fa9dad233b0db75a1e2f386cb2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page