Proof library & interchange theory

Theory

These pages state what this package guarantees and why: when two declarations in different kernels are the same, what importing a bundle establishes, what loading a library establishes and when a result is withdrawn, why an interpretation transports theorems, what the conversion-eliminating export produces, and what an independent check of an OpenTheory article confirms. The kernel's theory is cited by result number (its Theorems C-12, D-4, M-1, M-5, B-2, and so on, in the kernel's theory); judgment_shell's by "the library's Theorem R-2" and so on.

Results are numbered per page (I for identity, BU for bundles, IN for interpretations, EL for elimination, OT for OpenTheory, L for libraries), with one counter for definitions and one for theorems, propositions, and algorithms.

Component Results Page
Content-addressed identities, canonical order, linear size, statement identities I-1 to I-6 Identity across kernels
Partitions, reconstruction support, import validation BU-1 to BU-4 Bundles and import
Interpretations IN-1 to IN-3 Theory interpretations
Conversion elimination EL-1 to EL-4 Eliminating conversion
OpenTheory articles: export, and import with extended articles and import theories OT-1 to OT-12 OpenTheory export and import
Proof libraries: one provider per statement, evidence, loading, re-checking, withdrawal, closed forms L-1 to L-9 Proof libraries

The one principle

Nothing read from storage is trusted. Every declaration is validated by the checker when it is declared again, and every proof row is checked again. Identities and digests are lookup keys and integrity checks, never evidence. The one exception is explicit: a statement-only import trusts the library version's producer for the statements it imports (ST9.8). A storage bug, a corrupted file, or a forged bundle can therefore make a load fail, never make the kernel accept a false judgment.

judgment v1.0.0 for Mojo 1.2 · Apache License 2.0 with LLVM Exceptions · Source on GitHub