Skip to main content

OpenATP

PyPI Docs CI codecov License: MIT Checked with mypy Ruff

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.

OpenATP banner

Installation

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

Quickstart

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")

Available provers

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

Download common datasets

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

Citing

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.

Development

See AGENTS.md for development information.

License

MIT

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

open_atp-0.4.2.tar.gz (2.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

open_atp-0.4.2-py3-none-any.whl (706.8 kB view details)

Uploaded Python 3

File details

Details for the file open_atp-0.4.2.tar.gz.

File metadata

  • Download URL: open_atp-0.4.2.tar.gz
  • Upload date:
  • Size: 2.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for open_atp-0.4.2.tar.gz
Algorithm Hash digest
SHA256 1ae7cad252c88db739b83db64c3142fd0d15f9fd780b82a40f7c7da333e34813
MD5 32b5130d8f0e52578199af0b5228ded6
BLAKE2b-256 4d6a1a04904aa85d80bf65d599257774519852fbf5e3de29e13400bfd47aeb90

See more details on using hashes here.

File details

Details for the file open_atp-0.4.2-py3-none-any.whl.

File metadata

  • Download URL: open_atp-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 706.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for open_atp-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 de6913352654644e1aa90ae6b60b8724117c791e4bddb5dd64ca5f35bf6674a0
MD5 1489d722f22adf2e4e28472e35d62c87
BLAKE2b-256 f360148e23ad0d2dd3c9092d93644c88aaf7e20db82ed2147ab31207452ac109

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.4.2 This release

2 files

0.4.1

2 files

0.4.0

2 files

0.3.0

2 files

0.2.0

2 files

0.1.1

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page