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
judgment v1.0.0 for Mojo 1.2 · Apache License 2.0 with LLVM Exceptions · Source on GitHub