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.1.tar.gz (67.2 MB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: lean_dojo-2.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 65463bb45fb3c3364f83312c45cde025a3c81ea905b393592a001ca77598f3b4
MD5 b65497c4c763b409452e49fbc159af92
BLAKE2b-256 b432a6fa69394ca5947f2e1dcf14850dd7a1ed3a38f02813f4f5737b32a4273c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lean_dojo-2.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e2d011abc31fb134a0c006e3ec6cba1658054fc69c8ba1a47ecf65f269b5b146
MD5 daf4e7a5f3c7cd5849b912b1d008e1a9
BLAKE2b-256 c0ad83b152a1fe9fc1c4a0ea467dd721d84a1677242dd4fe30f55451be352f53

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