Leni Aniva 22bba57b99 | ||
---|---|---|
data/debug/toy_example1_dsp | ||
examples | ||
experiments | ||
pantograph | ||
src@bec84f857b | ||
.gitignore | ||
.gitmodules | ||
LICENSE | ||
PyPantograph | ||
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 --recursive-submodules <repo-path>
- Install
elan
andlake
: See Lean Manual - Execute
poetry build
poetry install
Examples
For API interaction examples, see examples/README.md
An agent based on the sglang
library is provided in
pantograph/search_llm.py
. To use this agent, set the environment variable
OPENAI_API_KEY
, and run
python3 -m pantograph.search_llm
Experiments
In experiments/
, there is an experiment on running a LLM prover on miniF2F
data. Run with
python3 experiments/miniF2F_search.py [--dry-run]
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}}
}