Component architecture

Subject placement and library layout

Libraries hold published theorems and declarations in content-addressed kind-6 proof-DAG partitions, indexed by a format-2.2 manifest (Library and LibraryChange; see ST9 and publication):

  • Hierarchical theorem names. A theorem's name is a dotted name of snake_case components (for example algebra.groups.assoc), checked by valid_theorem_name; normalized_theorem_name derives one from a source's long name. Library.categories(under=...) and Library.theorems(under=...) list the catalogue by category from the manifest alone, without reading a partition.
  • Content-addressed partitions. Partitions are immutable kind-6 containers named by the SHA-256 of their bytes. A change through LibraryChange appends new partitions and publishes a new kind-4 manifest that names the base's partitions by hash; CURRENT switches atomically when the base is still current (CONFLICT on a stale base).
  • Deterministic layout. A partition's rows are numbered in the writer's commit order, and every reference names an earlier row, so re-checking runs in deterministic, parallel chunks via judgment_core.check_dag_chunk.

Partitions are not placed by subject: a library's sub-partitions follow its commit order. The subject-classification policy for the Isabelle theories (the top two levels of MSC 2020) is on the judgment_mathlib page; subject placement is organizational and grants no mathematical authority.

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