A Machine-to-Machine Interaction Interface for Lean 4
Go to file
Leni Aniva 22bba57b99
doc: Move SNAP instructions into its own file
2024-10-01 10:57:21 -07:00
data/debug/toy_example1_dsp pushing dsp to my branch 2024-07-11 15:49:37 -07:00
examples removed confusing file 2024-09-30 10:57:23 -07:00
experiments refactor: Update the experiment repo Lean version, use new load_sorry API 2024-09-13 18:18:53 -07:00
pantograph refactor: Update the experiment repo Lean version, use new load_sorry API 2024-09-13 18:18:53 -07:00
src@bec84f857b chore: Library update 2024-09-09 18:49:35 -07:00
.gitignore Merge branch 'main' into dev 2024-09-06 22:34:48 -07:00
.gitmodules add conv_sgl tests 2024-05-20 00:02:33 -07:00
LICENSE Initial commit 2024-04-11 12:37:58 -07:00
PyPantograph trying PyPantograph install aesop 2024-06-03 20:17:58 -07:00
README.md doc: Move SNAP instructions into its own file 2024-10-01 10:57:21 -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 Merge branch 'main' into brando 2024-09-26 19:26:59 -07:00
pyproject.toml Merge branch 'main' into brando 2024-09-26 19:26:59 -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 --recursive-submodules <repo-path>
  1. Install elan and lake: See Lean Manual
  2. 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}}
}