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.

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
OpenCode opencode leanprover GitHub
AxProverBase axproverbase Requena et al. 2026 GitHub
Leanstral leanstral leanprover Leanstral (blog) HuggingFace
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.2.0.tar.gz (1.9 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.2.0-py3-none-any.whl (678.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: open_atp-0.2.0.tar.gz
  • Upload date:
  • Size: 1.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.25 {"installer":{"name":"uv","version":"0.11.25","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.2.0.tar.gz
Algorithm Hash digest
SHA256 77f3a90f84508ef98bd4525b4563afd4e2ada5d98bb0e1814554a1616248a42f
MD5 4d76142a8109aa573b9cdebf017cdeb9
BLAKE2b-256 a63fe508c8002cea1a1b4670a7aad4c768d2a035118c3c8c811996289394008b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: open_atp-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 678.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.25 {"installer":{"name":"uv","version":"0.11.25","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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eaafa38122eb0780abb3e29db83be028063257a018e03428658b4d17c40afc17
MD5 70d29645d87bcab46e2ea622ddeb204d
BLAKE2b-256 b00dac06ee9ccfd7fb049dca8af2f3f401738179839a79f0e9acea582b07b051

See more details on using hashes here.

Release history Release notifications | RSS feed

0.4.2

2 files

0.4.1

2 files

0.4.0

2 files

0.3.0

2 files

This release

0.2.0 This release

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