A Machine-to-Machine Interaction Interface for Lean 4
Go to file
Leni Aniva ce7e27a0fd
doc: Add doc building instructions
2024-12-11 17:20:25 -08:00
.github/workflows build: Remove doc regeneration on doc/main 2024-10-22 22:26:01 -07:00
docs doc: Update all examples to 0.2.23 2024-12-11 17:14:44 -08:00
examples doc: Update all examples to 0.2.23 2024-12-11 17:14:44 -08:00
experiments Merge pull request #24 from lenianiva/experiments/minif2f 2024-10-13 19:21:16 -07:00
pantograph doc: Update all examples to 0.2.23 2024-12-11 17:14:44 -08:00
src@3744cfaa96 fix: Goal state pickling/unpickling 2024-12-11 16:54:50 -08:00
.gitignore feat: GitHub workflow for documentations 2024-10-18 14:48:54 -07:00
.gitmodules doc: Remove stale documentation (#28) 2024-10-17 11:44:48 -04:00
LICENSE doc: Change to Apache2 License 2024-10-21 10:19:57 -07:00
README.md doc: Add doc building instructions 2024-12-11 17:20:25 -08:00
SNAP.md doc: Move SNAP instructions into its own file 2024-10-01 10:57:21 -07:00
build.py Merge branch 'main' into brando 2024-09-26 19:26:59 -07:00
main_krbtmux_bm.sh trying PyPantograph install aesop 2024-06-03 20:17:58 -07:00
poetry.lock fix: Doc building in poetry 2024-10-18 15:27:57 -07:00
pyproject.toml chore: Update version 2024-12-11 17:07:50 -08:00
test_vllm.py all worked, added pytorch and vllm test 2024-04-29 12:53:54 -07:00

README.md

PyPantograph

A Machine-to-Machine Interaction System for Lean 4.

Installation

  1. Install poetry
  2. Clone this repository with submodules:
git clone --recurse-submodules <repo-path>
  1. Install elan and lake: See Lean Manual
  2. Execute
poetry build
poetry install

Documentation

Build the documentations by

poetry install --only doc
poetry run jupyter-book build docs

Then serve

cd docs/_build/html
python3 -m http.server -d .

Examples

For API interaction examples, see examples/README.md. The examples directory also contains a comprehensive Jupyter notebook.

Experiments

In experiments/, there are some experiments:

  1. minif2f is an example of executing a sglang based prover on the miniF2F dataset
  2. dsp is an Lean implementation of Draft-Sketch-Prove

The experiments should be run in poetry shell. The environment variable OPENAI_API_KEY must be set when running experiments calling the OpenAI API.

Referencing

Paper Link

@misc{pantograph,
      title={Pantograph: A Machine-to-Machine Interaction Interface for Advanced Theorem Proving, High Level Reasoning, and Data Extraction in Lean 4},
      author={Leni Aniva and Chuyue Sun and Brando Miranda and Clark Barrett and Sanmi Koyejo},
      year={2024},
      eprint={2410.16429},
      archivePrefix={arXiv},
      primaryClass={cs.LO},
      url={https://arxiv.org/abs/2410.16429},
}