A Machine-to-Machine Interaction System for Lean 4.
- Install
poetry
- Clone this repository with submodules:
git clone --recurse-submodules <repo-path>
- Install
elan
andlake
: See Lean Manual - Execute
poetry build
poetry install
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 .
For API interaction examples, see examples/README.md
. The examples directory
also contains a comprehensive Jupyter notebook.
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.
@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},
}