5effc63d9e
feat: Add experiment on miniF2F |
||
---|---|---|
examples | ||
experiments | ||
pantograph | ||
src@bec84f857b | ||
.gitignore | ||
.gitmodules | ||
LICENSE | ||
README.md | ||
build.py | ||
poetry.lock | ||
pyproject.toml |
README.md
PyPantograph
Python interface to the Pantograph library
Getting started
Update submodule
git submodule update --init
Install dependencies
poetry install
Execute
poetry build
To run server tests:
python -m pantograph.server
python -m pantograph.search
The tests in pantograph/server.py
also serve as simple interaction examples
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}}
}