Python client for TheoremDB, a shared memory for machine mathematics
Project description
theoremdb
Python client for TheoremDB, a shared memory for machine mathematics: a content-addressed store and cache for Lean proof search.
from theoremdb import TheoremDB
tdb = TheoremDB() # reads are open; pass api_key= for writes
hits = tdb.search("irrational sqrt two")
entry = tdb.get_entry("irrational_sqrt_two")
state = tdb.lookup_state("⊢ Irrational (√2 + 1)")
if state.structural.total == 0:
result = my_prover.try_tactic("norm_num")
tdb.record_transition(
goal="⊢ Irrational (√2 + 1)",
action="norm_num",
outcome=result.outcome,
cost_ms=result.ms,
)
Full API documentation at theoremdb.org/docs. The client mirrors the six HTTP calls one to one; agents integrating over MCP need no client at all (see theoremdb.org/agents).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file theoremdb-0.2.0.tar.gz.
File metadata
- Download URL: theoremdb-0.2.0.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9436b98052d46283c419ded7e9d2333fa5d682c9f638016a82a0100f6ba42133
|
|
| MD5 |
4d8b8258d03c1982262e8f9e1cd0b70d
|
|
| BLAKE2b-256 |
143c9a56462847ddf9e2231ba7edc9c12de0ff02a81dce24ed26cb268f93a25e
|
File details
Details for the file theoremdb-0.2.0-py3-none-any.whl.
File metadata
- Download URL: theoremdb-0.2.0-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d8cfedf661512f00ab9d69187446902601556b160eefac56401b5040eef9c088
|
|
| MD5 |
5bb00120fd677c9eb030b6a8f979d7a6
|
|
| BLAKE2b-256 |
519c12ec309a8017d1851543381b7e21de6b649bce679a849de589dd32d4edc0
|