Leni Aniva 817d708750 | ||
---|---|---|
.github/workflows | ||
docs | ||
examples | ||
experiments | ||
pantograph | ||
src@a11127a64e | ||
.gitignore | ||
.gitmodules | ||
LICENSE | ||
README.md | ||
SNAP.md | ||
build.py | ||
main_krbtmux_bm.sh | ||
poetry.lock | ||
pyproject.toml | ||
test_vllm.py |
README.md
PyPantograph
A Machine-to-Machine Interaction System for Lean 4.
Installation
- Install
poetry
- Clone this repository with submodules:
git clone --recurse-submodules <repo-path>
- Install
elan
andlake
: See Lean Manual - 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:
minif2f
is an example of executing asglang
based prover on the miniF2F datasetdsp
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}}
}