Code language
Proof libraries & OpenTheory
Proof library guides¶
A proof library is a versioned directory of checked proofs that one program publishes and any other program can load. It indexes theorems by canonical statement identity, cites dependencies by reference rather than copying, and re-checks every proof row through the receiving kernel on load.
These guides cover publishing, loading, evolving, and operating proof libraries
with judgment_store (available in Mojo via pixi run build-store or
pixi run build-core-store, and in Python via the Store prebuilt core). They
assume familiarity with Session and judgment_core; otherwise start with
Getting started and
Part 5 tutorials.
Reading order¶
| Page | Read it when you want to |
|---|---|
| What a proof library is | Understand statements, providers, partitions, versions, proofs, and load guarantees |
| Publishing a library | Export checked session theorems or snapshots as a new library version |
| Loading a library | Recheck a library version into a Snapshot, open a Session, and look up theorems |
| Changing a library | Query a version as a theorem database, add/replace/withdraw theorems, and resolve conflicts |
| External claims | Publish guarded theorems that track external solver provenance |
| Re-checking | Verify a stored version after a checker or profile change |
| Importing articles | Convert and check OpenTheory articles into a library |
| Operating a library | Manage directory layout, concurrent writers, locks, crash recovery, budgets, and errors |
Every task guide except Operating a library includes a runnable example verified by the documentation build:
pixi run build-store
pixi run mojo run -I build docs/examples/store/publish_library.mojo
Related references¶
- API reference: judgment_store documents every public declaration, including theory interpretations.
- Wire format: Library format specifies the directory layout, manifest, proof-DAG partitions, and loader checklist for independent implementations.
- Theory: Proof libraries formalizes Rule L1, Definitions L-1 to L-4, L-7, and L-9, Algorithm L-5, and Theorem L-6; Theory interpretations formalizes sound proof transport across theories.
- Capabilities and limits: Capabilities and limits summarizes supported features and boundaries.
- judgment_mathlib: Using judgment_mathlib covers fetching, verifying, and loading the external Isabelle/HOL library.