Component architecture

Architecture overview

judgment_store is an optional package in the unified judgment repository. Its kernel and authoring-library dependencies are local packages, sharing one version and toolchain. The system architecture, package graph, and integration contracts define its boundaries.

Role

A session's bank lives in one process. Everything that must survive a process, or move between programs, passes through this package:

Part What it does Theory Specification
Stable identities content-addressed identities of declarations and statements, the same in every bank identity ST1
Proof libraries versioned directories of proof-DAG partitions holding declarations and their proof rows; a load rebuilds every declaration and checks every row in a fresh bank libraries, bundles ST7, ST8, ST9
Statement-only import a session imports a library theorem's statement without its proof, trusting the version's producer libraries ST9.8
Re-checking after a checker fix, load a version whole and check every row; a change withdraws or replaces what fails libraries ST4.1, ST7.5
Interpretations reuse a session's result in another session with other declarations over a common base, by translating its derivation and checking it interpretations ST4
OpenTheory export session theorems written as articles, read back and checked before they are written OpenTheory ST5
OpenTheory import articles from HOL Light, HOL4, and Isabelle (through isabelle_bridge's extended articles) converted through termbank.dag and checked; import theories with provenance OpenTheory ST6

Boundaries

  • Imports. std, termbank, judgment_core, judgment_shell (sessions, snapshots, theorem sources, labels, term views), apn_mojo (for Rational, the value of a rational literal, in interpretations: a direct import downward in the system's graph, which the architecture note's section 27.4 allows when declared), and FP Mojo's fp (the blocking pool of fp.effects.async_runtime and fp.algebra's parallel traversal, for the parallel checking and conversion workers). Nothing else.
  • Trust. Nothing here is trusted. A partition's contents are data; the checker re-checks every declaration's validity and every proof row. A forged digest or a corrupted file can make a load fail, never succeed wrongly (acceptance test A23). A statement-only import is the explicit exception: it trusts the library version's producer for the statements it imports.
  • Admitted axioms stay visible. Loading a library that declares axioms adds axioms, which every dependent result's label shows; a load never turns an axiom into a theorem.
  • Consumers. Applications opt into persistence or interchange. Scalar's integration tests exercise libraries; the production Scalar package and default judgment facade do not depend on Store. Independent auditors consume exported articles.

The package

judgment_store      → std, termbank, judgment_core, judgment_shell, apn_mojo, fp

The modules and their roles are on the design index.

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