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, supporting both Lean 3 and Lean 4. It provides two main features:

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

Documentation Status PyPI GitHub license Code style: black


Requirements

  • Supported platforms: Linux, Windows (WSL), and macOS (:warning: experimental for Apple silicon)
  • Git >= 2.25
  • 3.9 <= Python < 3.11
  • wget
  • elan
  • Docker strongly recommended when using LeanDojo with Lean 3
  • Recommended: 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-1.4.1.tar.gz (77.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lean_dojo-1.4.1-py3-none-any.whl (81.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lean_dojo-1.4.1.tar.gz
  • Upload date:
  • Size: 77.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.24.1

File hashes

Hashes for lean_dojo-1.4.1.tar.gz
Algorithm Hash digest
SHA256 bd311c44d0443f52e90b238baa1fc77ef0497339b2908f412938634e4561e29a
MD5 02cf7e283dacd4e44645fdcc456babbd
BLAKE2b-256 76a7e893c719e04338dee6610685c21589ecad3e22b4fffba1a744481a280c6e

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for lean_dojo-1.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0d6baca6ef7a6279784cae1aee8770c478054b1ee7acbc6854053291125db17b
MD5 7fd06596cde6eb0be274dded73c33a4d
BLAKE2b-256 30e99cd3633ff50836c78746ec1d4e4d6b3b073173e7d5a4e16ea945913c9b52

See more details on using hashes here.

Supported by

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