A Machine-to-Machine Interaction Interface for Lean 4
Go to file
Leni Aniva 817d708750
fix: Disable notebook execution
2024-10-20 19:29:27 -07:00
.github/workflows fix: Remove lake version check 2024-10-18 15:40:52 -07:00
docs fix: Disable notebook execution 2024-10-20 19:29:27 -07:00
examples doc: Add comprehensive documentation 2024-10-20 19:22:35 -07:00
experiments Merge pull request #24 from lenianiva/experiments/minif2f 2024-10-13 19:21:16 -07:00
pantograph doc: Add comprehensive documentation 2024-10-20 19:22:35 -07:00
src@a11127a64e chore: Update origin to GitHub Pantograph, with bug fixes 2024-10-13 12:24:04 -07: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 Initial commit 2024-04-11 12:37:58 -07:00
README.md Merge pull request #31 from lenianiva/doc/main 2024-10-18 14:54:39 -07: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 fix: Doc building in poetry 2024-10-18 15:27:57 -07: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

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

@misc{pantograph,
	title = "Pantograph, A Machine-to-Machine Interface for Lean 4",
	author = {Aniva, Leni and Miranda, Brando and Sun, Chuyue},
	year = 2024,
	howpublished = {\url{https://github.com/lenianiva/PyPantograph}}
}