OpenATP is an open-source Python package providing a common interface for Automated Theorem Proving (ATP)
28
stars
332
commits
Python
primary language
Aug 5, 2026
updated
OpenATP is an open-source Python package providing a common interface for Automated Theorem Proving (ATP). OpenATP focuses on recent agentic ATP methods that prove formal statements in Lean. Each method runs in an isolated sandbox, either locally with Docker or remotely with Modal. OpenATP also provides benchmarking utilities to run methods on common datasets.
pip install open-atp
OpenATP runs each prover (e.g., Claude Code, Codex, OpenCode) in a
Docker container. The image must be built before running any prover:
open-atp build-docker-image
Each prover has its own authentication requirements. See each prover page for its authentication instructions, and check what the host currently has with:
open-atp auth-status
Complete the sorrys in a lake project (or a .lean file) from the CLI:
open-atp prove path/to/project runs/example claude
Or programmatically, here on a simple example theorem:
from open_atp import standard_prover
from open_atp.backends import DockerBackend
from open_atp.examples import EXAMPLE, example_task
prover = standard_prover("claude", backend=DockerBackend())
task = example_task(EXAMPLE.MUL_REORDER)
result = prover.prove(task, output_dir="runs/example")
The ID is the standard prover name used by standard_prover, the CLI prove command's prover argument, and the benchmark command's -p/--provers option. Also see Provers.
| Prover | ID | Skills | MCP | Paper | Source |
|---|---|---|---|---|---|
| Claude Code | claude | leanprover, lean4 | ✓ | — | — |
| Codex | codex | leanprover | ✓ | — | GitHub |
| DeepSeek | deepseek | leanprover | ✓ | — | GitHub |
| Grok | grok | leanprover | ✓ | — | — |
| Muse Spark | spark | leanprover | ✓ | — | — |
| AxProverBase | axproverbase | — | ✗ | Requena et al. 2026 | GitHub |
| Leanstral | leanstral | leanprover | ✓ | Leanstral (blog) | HuggingFace |
| Kimi Code | kimi | leanprover | ✓ | — | GitHub |
| Numina | numina | — | ✓ | Liu et al. 2026 | GitHub |
| Aristotle | aristotle | — | — | Achim et al. 2025 | — |
OpenATP provides utilities to download common proof-synthesis benchmarks (see Downloading a dataset). The available datasets are listed in the DATASET enum.
| Benchmark | DATASET | Toolchain | Paper | Source |
|---|---|---|---|---|
| Examples | EXAMPLES | v4.28.0 | — | docs |
| PutnamBench | PUTNAM | v4.27.0 | Tsoukalas et al. 2024 | trishullab/PutnamBench |
| FATE-H | FATE_H | v4.28.0 | Jiang et al. 2025 | frenzymath/FATE-H |
| FATE-M | FATE_M | v4.28.0 | Jiang et al. 2025 | frenzymath/FATE-M |
| FATE-X | FATE_X | v4.28.0 | Jiang et al. 2025 | frenzymath/FATE-X |
If you use OpenATP in your work, please cite it:
@software{openatp,
title = {OpenATP: Open Automated Theorem Proving},
author = {Henry Robbins},
year = {2026},
publisher = {GitHub},
url = {https://github.com/henryrobbins/open-atp}
}
OpenATP includes provers with associated papers and bundles popular open-source tools for improving agentic theorem proving. Please see Citations for a comprehensive list of references.
See AGENTS.md for development information.
324 commits
8 commits
Hacker News (1)
Python
96.9%
Shell
1.5%
OpenATP is an open-source Python package providing a common interface for Automated Theorem Proving (ATP)
28
stars
332
commits
Python
primary language
Aug 5, 2026
updated
OpenATP is an open-source Python package providing a common interface for Automated Theorem Proving (ATP). OpenATP focuses on recent agentic ATP methods that prove formal statements in Lean. Each method runs in an isolated sandbox, either locally with Docker or remotely with Modal. OpenATP also provides benchmarking utilities to run methods on common datasets.
pip install open-atp
OpenATP runs each prover (e.g., Claude Code, Codex, OpenCode) in a
Docker container. The image must be built before running any prover:
open-atp build-docker-image
Each prover has its own authentication requirements. See each prover page for its authentication instructions, and check what the host currently has with:
open-atp auth-status
Complete the sorrys in a lake project (or a .lean file) from the CLI:
open-atp prove path/to/project runs/example claude
Or programmatically, here on a simple example theorem:
from open_atp import standard_prover
from open_atp.backends import DockerBackend
from open_atp.examples import EXAMPLE, example_task
prover = standard_prover("claude", backend=DockerBackend())
task = example_task(EXAMPLE.MUL_REORDER)
result = prover.prove(task, output_dir="runs/example")
The ID is the standard prover name used by standard_prover, the CLI prove command's prover argument, and the benchmark command's -p/--provers option. Also see Provers.
| Prover | ID | Skills | MCP | Paper | Source |
|---|---|---|---|---|---|
| Claude Code | claude | leanprover, lean4 | ✓ | — | — |
| Codex | codex | leanprover | ✓ | — | GitHub |
| DeepSeek | deepseek | leanprover | ✓ | — | GitHub |
| Grok | grok | leanprover | ✓ | — | — |
| Muse Spark | spark | leanprover | ✓ | — | — |
| AxProverBase | axproverbase | — | ✗ | Requena et al. 2026 | GitHub |
| Leanstral | leanstral | leanprover | ✓ | Leanstral (blog) | HuggingFace |
| Kimi Code | kimi | leanprover | ✓ | — | GitHub |
| Numina | numina | — | ✓ | Liu et al. 2026 | GitHub |
| Aristotle | aristotle | — | — | Achim et al. 2025 | — |
OpenATP provides utilities to download common proof-synthesis benchmarks (see Downloading a dataset). The available datasets are listed in the DATASET enum.
| Benchmark | DATASET | Toolchain | Paper | Source |
|---|---|---|---|---|
| Examples | EXAMPLES | v4.28.0 | — | docs |
| PutnamBench | PUTNAM | v4.27.0 | Tsoukalas et al. 2024 | trishullab/PutnamBench |
| FATE-H | FATE_H | v4.28.0 | Jiang et al. 2025 | frenzymath/FATE-H |
| FATE-M | FATE_M | v4.28.0 | Jiang et al. 2025 | frenzymath/FATE-M |
| FATE-X | FATE_X | v4.28.0 | Jiang et al. 2025 | frenzymath/FATE-X |
If you use OpenATP in your work, please cite it:
@software{openatp,
title = {OpenATP: Open Automated Theorem Proving},
author = {Henry Robbins},
year = {2026},
publisher = {GitHub},
url = {https://github.com/henryrobbins/open-atp}
}
OpenATP includes provers with associated papers and bundles popular open-source tools for improving agentic theorem proving. Please see Citations for a comprehensive list of references.
See AGENTS.md for development information.
Hacker News (1)
324 commits
8 commits
Python
96.9%
Shell
1.5%