Code language
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 byvalid_theorem_name;normalized_theorem_namederives one from a source's long name.Library.categories(under=...)andLibrary.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
LibraryChangeappends new partitions and publishes a new kind-4 manifest that names the base's partitions by hash;CURRENTswitches atomically when the base is still current (CONFLICTon 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.