Documentation

ReflectiveSubsystems

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:

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.