Reflective Subsystems in Lean 4 #
Machine-checked algorithmic learning theory over Mathlib: Ville's inequality,
statistical-query learning (statistical dimension, version-space envelopes, parity's
exponential lower bound), a prequential-MDL discovery chain, a step-counting cost
model for Nat.Partrec.Code carrying a greedy learner verified both correct and
polynomial-step, a realizability (assembly) category over Kleene's first algebra
with a bounded recursor, and a bounded Gödel decision.
The development machine-checks the load-bearing results of a companion paper series, cited in docstrings as:
- [Decoupling] — decoupling and the categorical threshold for representational reflection (the realizability category, the bounded recursor, the Gödel threshold);
- [Discovery] — MDL dominance and finite-time rule discovery;
- [SQ] — polynomial-time convergence under statistical queries;
- [Persistence] — resource-bounded persistence capacity: the priced decoder;
- [Guests] — a description-length theory of systems running inside finite and growing dynamical systems: priced factors, the Witness World, emergence, and positively invariant nonautonomous sets with their growing core, width and time-indexed collapse;
- [RuleSpace] — growth, rays and robustness over the radius-one rule space: the growing width decided at every quiescent elementary cellular automaton, the rays of table 90 from the single seed, and robustness to two cells at every scale;
- [Growth] — endogenous observability on growing hosts: statistical-query learning from substitution sources at explicit horizons;
- [Inevitability] — the realization-synthesis capstone: two independent routes to a reflective subsystem, and the open problem of realizing both on one witness.
The papers are in preparation; the repository README links preprints as they
appear. References of the form "[Decoupling] §X" (a bracketed short-title key,
then the section anchor) point into that series, and FV-* tags name rows of
the papers' formal-verification tables, mirrored by the build-enforced axiom
guards in ReflectiveSubsystems.AxiomAuditMathlib and ReflectiveSubsystems.AxiomAuditFoundation.
Verification standard #
No sorry, admit, or native_decide; standard axioms only (propext,
Classical.choice, Quot.sound), with every capstone's exact axiom set
build-enforced by #guard_msgs in #print axioms guards.
This root module imports every module of the development — including the
Foundation-based ones (ReflectiveSubsystems.AxiomAuditFoundation,
ReflectiveSubsystems.GodelChecker, ReflectiveSubsystems.GodelCheckerAutomaton,
ReflectiveSubsystems.GodelCheckerComplete, ReflectiveSubsystems.GodelComplete), which discharge
the Gödel incompleteness hypothesis against upstream FormalizedFormalLogic/Foundation. So
ReflectiveSubsystems is the single library root, and the build and the API docs cover the
development through it alone.
Every declaration of the development stands under the namespace ReflectiveSubsystems, by the
object it is about: a definition in the namespace of its principal object, a theorem in the
namespace of the predicate its name carries and its hypothesis has, and everything else at
ReflectiveSubsystems. with its words. No namespace below ReflectiveSubsystems is the name of a
module.
Several modules state a dependency boundary in their docstring ("stays deliberately
light", "cross-referenced but NOT imported") and hold themselves to it with
assert_not_exists on a characteristic declaration of the excluded territory. An
assertion whose witness name does not exist anywhere is vacuous, so the root
re-checks them all below: since this module's import closure is the whole
development, every such witness must resolve here.