Chapter 18 Empty-Kernel Auditing, the One-Way Shadow Functor, and the Six-Volume Workbench
“Select a strict library root, follow its imports, and replay that closure in a fresh Lean kernel. Then follow a single circle identity across the bridge and read which axioms its real proof uses.”
From homogeneous projective closure to non-Abelian spinor machines and the self-contained observer, the six volumes lead to two questions we can put to Lean 4. Which strict library import closures can replay in an empty kernel? Which axioms do the theorems cited in the book use on each backend?
Section 18.1 starts with six projective-circle theorems and reaches the classical real layer through the quarter-depth budget and OmegaShadowBridge. Section 18.2 compares the teaching prototype built on Init.Rat with the strict libraries and explains the evidence for library replay and for D5 on both backends. Section 18.3 returns to the four-mode OMEGA//LAB workbench.
18.1 Three-Layer Architecture, Strict Core Theorems, and the Shadow Functor
Formalizing infinity-free, transcendental-free mathematics in Lean 4 neither alters the underlying Calculus of Inductive Constructions (CIC) kernel nor permits custom axiom declarations (which block kernel -reduction, risk silent collapse to False if a zero-tuple guard is omitted, and fail independent kernel audits). Instead, the architecture separates cleanly into three layers (MODEL architectural division anchored by frozen LEAN ✓ declarations):
- Layer 0: Quotient-Free Canonical Integer Carriers (Eliminating
Quot.sound):- In the strict backend’s
OmegaInit+OmegaMath, every file opens withmoduleandprelude, closing off implicit officialInitimports entirely.Omega.Nat,Omega.Int,Omega.Ratio, andOmega.IntRatiostore finite fractions with positive predecessor denominators, define equivalence by cross-multiplication (IntRatio.Equivalent), and propagateundefinedcleanly without touchingQuot.sound; - The
Initreflection examples reduceQRatinteger pairs by their GCD. TheProjTernionstructure below stores four raw integers, including the zero tuple and scalar multiples. On nonzero rays, Chapter 3 obtainsCanonProjTernionby dividing by the common GCD and choosing the first nonzero coordinate positive.
- In the strict backend’s
- Layer 1. Model laws as typeclass fields
Chapter 1’s schematic
OmegaSpacepackages ternary cancellation and associativity with reflexivity, symmetry and two-sided invariance of the reading. A full model of AXIOM-Ω also needs reading separation, nonnegativity, Gram positivity, zero-reaching, a noncommutative witness and a specified comparison class for minimality. Chapter 3 gives a hand argument on normalized representatives. The companionQRatprototype checks a finite conjunction of examples. Constructing anOmegaSpaceinstance would require proofs of its universally quantified fields. - Layer 2: One-Way Shadow Functor :
For example, the strict circle theorem certifies an identity of integer ratios.
OmegaShadowBridgetransports it to the real numbers. Appendix A lists the strict and official dependencies of the core theorems and the official dependencies of the bridge.
At the pinned commit a93ac745c3afb58d6ec61d9a0a8ba002948f43b7, the strict_omega records for these six projective-circle theorems list only OmegaInit and OmegaMath and give [] for the axioms of each. The official record for antipodal closure, cayley_antipodal_closure, lists propext alone. For both sets of records, see Appendix A §A.3.
The six D5 theorems below use the OmegaInit and OmegaMath interfaces.
- Positive natural scaling invariance (
ProjectiveOverlapScaling.kappa_scale): for allp q k : Omega.Nat,Omega.Projective.kappa (p.mul k.succ) (q.mul k.succ)is equivalent toOmega.Projective.kappa p qunderOmega.Ratio.Equivalent, including the case where both readings are undefined; - Nonzero signed integer scaling invariance (
OmegaCircleClosure.kappa_scale): for allp q k : Omega.Intwithhk : Not (Eq k Int.zero),IntRatio.Equivalent (kappa (k.mul p) (k.mul q)) (kappa p q); - Overlap-plus-spread unit sum (
OmegaCircleClosure.kappa_add_spread_eq_one): for allp q : Omega.IntsatisfyingNonzero p q,IntRatio.Equivalent ((kappa p q).add (spread p q)) (IntRatio.ofInt Int.one); - Cayley unit-circle closure (
OmegaCircleClosure.cayley_circle_unit): for everyNonzero p q, the squared coordinates of(cayleyX p q, cayleyY p q)sum toIntRatio.ofInt Int.oneunderIntRatio.Equivalent; - Finite antipodal closure at infinity (
OmegaCircleClosure.cayley_antipodal_closure): for every nonzerop : Omega.Int, the point simultaneously satisfieskappa p 0 ≈ 0,spread p 0 ≈ 1,cayleyX p 0 ≈ -1, andcayleyY p 0 ≈ 0underIntRatio.Equivalent; - Homogeneous multiplication norm multiplicativity (
OmegaCircleClosure.projective_circle_mul_normSq): for allp₁ q₁ p₂ q₂ : Omega.Int,(normSq p₁ q₁).mul (normSq p₂ q₂) = (projectiveMul p₁ q₁ p₂ q₂).normSq.
All six theorems are proved directly inside module + prelude files from inductive arithmetic lemmas in Omega.Nat, Omega.Int, and Omega.IntRatio: scaling follows by cancelling the nonzero squared factor (and matching undefined cases at zero), complement sum and Cayley unit length follow from the pure integer ring identity , antipodal closure evaluates directly at cancelling , and norm multiplicativity is the Brahmagupta–Fibonacci two-square identity. The full proof is checked by the Lean kernel.
Layer 2’s one-way shadow bridge is exemplified by the frozen quarter-depth soundness pair below.
Define rationalQuarterDepth c d p q := Nat.log 4 ((c * q) / (d * p)). For natural numbers with , , and rationalQuarterDepth c d p q ≤ N:
- Core exact integer certificate (
rationalQuarterDepth_integer_sound): ; - Outer limit-free real transport (
rationalQuarterDepth_real_sound): if additionally and a real majorant satisfies , then without any limiting argument .
By definition of Nat.log 4, the integer quotient is strictly less than ; Euclidean division with remainder immediately yields in . A one-way order-preserving cast into then gives , and monotonicity against concludes the real bound. The full proof is checked by the Lean kernel.
To transport the Layer 0–1 zero-axiom carriers Omega.Nat, Omega.Int, Omega.IntRatio, and Omega.Projective.Circle directly and one-way outward into standard Mathlib arithmetic over , the Layer-2 bridge module OmegaShadowBridge exports all eleven frozen theorems below:
In the Layer-2 bridge module D5/S3/Quantum/AURICOmega/OmegaShadowBridge, define structural readings toStdNat : Omega.Nat → ℕ and toStdInt : Omega.Int → ℤ, define toRat : Omega.IntRatio → ℚ sending every finite fraction IntRatio.fraction a d to (toStdInt a : ℚ) / (toStdInt (IntRatio.denominator d) : ℚ) and IntRatio.undefined to 0, and set the real shadow toReal (x : IntRatio) : ℝ := (toRat x : ℝ). Then all eleven exact transport laws hold simultaneously:
-
Natural and integer homomorphisms (
toStdNat_add,toStdNat_mul,toStdInt_neg,toStdInt_add,toStdInt_mul): for alla, b : Omega.Nat,toStdNat (a.add b) = toStdNat a + toStdNat bandtoStdNat (a.mul b) = toStdNat a * toStdNat b; for alla, b : Omega.Int,toStdInt a.neg = -toStdInt a,toStdInt (a.add b) = toStdInt a + toStdInt b, andtoStdInt (a.mul b) = toStdInt a * toStdInt b; -
Rational equivalence collapse and operation transport (
toRat_equivalent,toRat_add,toRat_mul,toRat_inv): for allx, y : IntRatio,IntRatio.Equivalent x yimpliestoRat x = toRat y; for all finite fractionsIntRatio.fraction a bandIntRatio.fraction c d,toRat ((fraction a b).add (fraction c d)) = toRat (fraction a b) + toRat (fraction c d); and for allx, y : IntRatio(includingundefined, sent to0),toRat (x.mul y) = toRat x * toRat yandtoRat x.inv = (toRat x)⁻¹; -
Real Cayley unit-circle and overlap-interval transport (
cayley_circle_unit,kappa_unit_interval): for allp, q : Omega.IntwithNonzero p q, the real Cayley image satisfiesand for all
p, q : Omega.Int(including the origin , wherekappa 0 0 = undefinedmaps to0),
The natural and integer homomorphisms follow by structural induction on Omega.Nat and Omega.Int, using helper lemmas toStdInt_negOfNat and toStdInt_subNatNat to match the ofNat/negSucc branches with standard ℤ arithmetic. For rational transport, positivity of IntRatio.denominator d = d + 1 lets cross-multiplication equivalence descend via div_eq_div_iff (toRat_equivalent), while div_add_div and denominator multiplicativity establish toRat_add on finite fractions; splitting on undefined versus fraction and using 0 * q = 0 and 0⁻¹ = 0 in Mathlib’s ℚ closes toRat_mul and toRat_inv globally. Finally, the zero-axiom core laws Omega.Projective.Circle.cayley_circle_unit and kappa_spread_unit_interval pass through toRat_equivalent, toRat_le, and the order-preserving ring cast Rat.cast : ℚ → ℝ, with the origin case p = q = 0 checked directly since 0 ∈ [0, 1]. The full proof is checked by the Lean kernel.
The theorems in Theorem 18.3 connect the constructions in Layers 0–1 to Layer 2. At the pinned commit, their official axiom records fall into four groups. toStdNat_add has [], toStdNat_mul depends on propext alone, toStdInt_neg, toStdInt_add, and toStdInt_mul depend on Quot.sound and propext, and the six rational and real readout theorems depend on Classical.choice, Quot.sound, and propext. The bridge imports core libraries, and the strict core’s import closure stays within the strict library layers.
The diagram places empty-kernel replay of the strict library alongside the paired D5 records and the one-way bridge to the real layer.
The three-layer stack and its one-way shadow bridge. The blue frame marks the selected import closure used for strict library replay. The box below shows the two D5 axiom records. The violet arrows lead through OmegaShadowBridge to the Mathlib real layer.
18.2 Six-Volume Core Prototype and Honest Compiler Axiom Audit
To display the algebraic skeleton spanning all six volumes on a single page, we present a compact, human-readable OmegaMath.Core prototype uniting QProj1 (Vol I), ProjTernion and detGram3 (Vols I–II), Jet2 (Vol III), SphericalFourier (Vol IV), heckeT5Chi1 (Vol V), and omegaFractranStep? (Vol VI) in one unified check omega_math_grand_kernel_verified:
-- Human-readable prototype using standard Init.Rat to expose the six-volume skeleton;
-- see the Honest Compiler Audit remark below separating Init.Rat from true zero-axiom stacks!
namespace OmegaMath.Core
/-- Vol I: Homogeneous projective line ℚP¹ (including the antipodal pole [1 : 0]) -/
structure QProj1 where
p : Int
q : Int
deriving Repr
def QProj1.kappa (x : QProj1) : Rat :=
let d : Int := x.p * x.p + x.q * x.q
if d = 0 then 0 else (x.q * x.q : Rat) / (d : Rat)
def QProj1.spread (x : QProj1) : Rat :=
let d : Int := x.p * x.p + x.q * x.q
if d = 0 then 0 else (x.p * x.p : Rat) / (d : Rat)
/-- Vols I–II: Raw integer quadruples and quaternion multiplication -/
structure ProjTernion where
w : Int
x : Int
y : Int
z : Int
deriving Repr, DecidableEq
def ProjTernion.qmul (a b : ProjTernion) : ProjTernion :=
⟨a.w*b.w - a.x*b.x - a.y*b.y - a.z*b.z,
a.w*b.x + a.x*b.w + a.y*b.z - a.z*b.y,
a.w*b.y - a.x*b.z + a.y*b.w + a.z*b.x,
a.w*b.z + a.x*b.y - a.y*b.x + a.z*b.w⟩
def ProjTernion.normSq (a : ProjTernion) : Int :=
a.w*a.w + a.x*a.x + a.y*a.y + a.z*a.z
/-- Vol II: Bargmann–Gram 3×3 spherical triangle determinant -/
def detGram3 (c12 c23 c31 : Rat) : Rat :=
1 + 2 * c12 * c23 * c31 - c12 * c12 - c23 * c23 - c31 * c31
/-- Vol III: Second-order nilpotent jet ring ℚ[η]/(η³) with exact two-term inverse -/
structure Jet2 where
j0 : Rat
j1 : Rat
j2 : Rat
deriving Repr
def Jet2.mul (a b : Jet2) : Jet2 :=
⟨a.j0*b.j0, a.j0*b.j1 + a.j1*b.j0, a.j0*b.j2 + a.j1*b.j1 + a.j2*b.j0⟩
def Jet2.inv (a : Jet2) : Jet2 :=
let i0 := a.j0⁻¹
let u1 := a.j1 * i0
let u2 := a.j2 * i0
⟨i0, -(i0 * u1), i0 * (u1 * u1 - u2)⟩
/- Vol IV: Pi-free spherical Chebyshev spin-shell characters and Catalan Haar moments -/
namespace SphericalFourier
def chi1 (k : Rat) : Rat := 4 * k - 1
def chi2 (k : Rat) : Rat := 16 * k * k - 12 * k + 1
def haarMoment : Nat → Rat
| 0 => 1 | 1 => 1 / 4 | 2 => 1 / 8 | 3 => 5 / 64 | _ => 0
end SphericalFourier
/-- Vol V: Norm-5 Hurwitz Hecke spin-1 rational trace (at κ = 1/5) -/
def heckeT5Chi1 : Rat := SphericalFourier.chi1 (1 / 5)
/-- Vol VI: Non-Abelian Ω-FRACTRAN exact divisibility gate -/
def omegaFractranStep? (psi gate : ProjTernion) (d : Int) : Option ProjTernion :=
let prod := ProjTernion.qmul psi gate
if d ≠ 0 ∧ prod.w % d = 0 ∧ prod.x % d = 0 ∧ prod.y % d = 0 ∧ prod.z % d = 0 then
some ⟨prod.w / d, prod.x / d, prod.y / d, prod.z / d⟩
else none
/-- Unified six-volume rational invariant check (readable prototype; see audit table below) -/
def omega_math_grand_kernel_verified : Prop :=
let pole : QProj1 := ⟨1, 0⟩
let psiXY : ProjTernion := ⟨1, 2, 2, 4⟩
let psiYX : ProjTernion := ⟨1, 2, 2, -4⟩
let gateUnwindY : ProjTernion := ⟨1, 0, -2, 0⟩
pole.kappa = 0 ∧ pole.spread = 1 ∧
detGram3 (1 / 2) (1 / 2) (1 / 2) = 1 / 2 ∧
(Jet2.inv ⟨2, 2, 1⟩).j2 = 1 / 4 ∧
SphericalFourier.chi1 (1 / 4) = 0 ∧
heckeT5Chi1 = -(1 / 5) ∧
omegaFractranStep? psiXY gateUnwindY 5 = some ⟨1, 2, 0, 0⟩ ∧
omegaFractranStep? psiYX gateUnwindY 5 = none
end OmegaMath.Core
The Init.Rat teaching prototype, the executable QRat prototype, the strict libraries, the paired D5 consumers, and the real bridge each have their own verification evidence.
- The
Init.Ratteaching prototype. In Leanv4.35.0,Rat.add,Rat.mul, andRat.divdepend onpropext,Classical.choice, andQuot.sound.Rat.invdepends onpropextandQuot.sound. The standalone functionfun (a b : Rat) => a == bhas an empty axiom closure. For(1 : Rat) + 1 = 2,by decidegets stuck reducingRat.add. - The
QRatprototype usingInit. Section 32.8 of the companion book usesNat.gcdto normalize integer pairs. Lean checks the finite exampleomega_zero_axiom_master_checkbydecide, and#print axiomsreports an empty dependency list. - Strict library replay and paired D5 checks. The strict libraries use
preludeto disable implicit officialInitimports.OmegaChecks.Auditinspects the axioms and declaration kinds in the transitive import closure of selected library roots, then replays that closure inmkEmptyEnvironment. D5 consumers are compiled separately and their exports compared. On each measured declaration row,strict_omega.axiomsgives the strict dependencies andaxiomsgives the official ones. For the commands, see Appendix A §A.6.
| Implementation Tier | Import Closure | Axiom Evidence | Verification | Engineering Role |
|---|---|---|---|---|
Readable Init.Rat prototype | Implicit Init (Rat/BEq) | {propext, Classical.choice, Quot.sound} | No | Pedagogical six-volume blueprint |
QRat prototype | Implicit Init (uses QRat) | ∅ (does not depend on any axioms) | Axiom-only | Native #eval and one-step decide |
| Strict libraries | Selected import closure in OmegaInit, OmegaMathlib, and OmegaMath | Empty transitive axiom dependencies for every declaration in the closure | Empty-kernel replay | Constructive foundation |
| D5 consumers on both backends | The same sources built with strict and official interfaces | On a paired declaration row, strict_omega.axioms for strict and axioms for official | Paired builds, export comparison, and per-backend measurement | Frozen theorems cited in the book |
Layer-2 OmegaShadowBridge and Mathlib.Real shell | OmegaInit/OmegaMath + Init/Mathlib (one-way bridge, Theorem 18.3) | Graduated: [] / propext / {Quot.sound, propext} up to {propext, Classical.choice, Quot.sound} | No | Outer analysis via shadow functor |
The film below walks through the chapter’s audit from start to finish: the two records of the strict circle theorems, empty-kernel replay of the strict libraries, the one-way bridge to the reals, and the axiom boundary of the teaching prototype.
One circle theorem carries one axiom record for the strict backend and another for the official one, selected strict import closures replay in an empty kernel, and the reals sit on the far side of a one-way bridge (2 min 47 s). The film opens with the three-layer architecture (a model division, violet) and the equivalence given by cross multiplication, (computed on screen). The integer pair has squared norm and the amber Cayley image ; the magenta pole lands at ; and has squared norm (computed on screen). The small cyan dots are all Cayley images with , and the green tags refer to Theorem 18.1. In the table of frozen records, the strict records of the six projective-circle theorems list OmegaInit, OmegaMath and the empty axiom list [], the official records list propext, and the antipodal-closure row is marked in amber. The import closure, the declaration checks of OmegaChecks.Audit and the replay in mkEmptyEnvironment follow the chapter’s description of the audit, and the import graph is schematic (violet). Across the bridge, and both read and lies on the real unit circle; the two green tags refer to toRat_equivalent and cayley_circle_unit in Theorem 18.3, and the magenta boxes sort the official records of the eleven bridge theorems into four groups: [], propext, Quot.sound, propext, and Classical.choice, Quot.sound, propext. Finally, the eight clauses of the Init.Rat teaching prototype are recomputed exactly on screen, and the gate passes and blocks the other product; the prototype’s axiom dependencies and the evidence for each tier are stated in Remark 18.4 (violet).
18.3 Guided Walkthrough of the Four-Mode Six-Volume Workbench
To render every invariant across all six volumes tangible and directly inspectable, the monograph pairs with four 3D interactive laboratories (OMEGA//SPIN, OMEGA//LAB, OMEGA//JET, and OMEGA//ARC, totaling 16 experimental cards), 19 bespoke bilingual static figures, and the bilingual overview slide deck (full index in Appendix B §B.3); here at the close of Volume VI, the culminating Four-Mode Six-Volume 3D Holographic Interactive Workbench OMEGA//LAB unites Bargmann–Gram triads, second-order jets, -free Haar integrals, and the Hecke spectrum on one stage. Readers are invited to tour its four modes in sequence:
- Mode 1 — Bargmann–Gram Triads and Homogeneous Projective Geometry (Volumes I–II): manipulate integer rays and spherical triads across and to verify finite antipodal closure at , origin-free heap transport with constant unit Lie triple curvature , and the Bargmann–Gram determinant alongside rational spherical sine and Pythagorean laws without trigonometric tables.
- Mode 2 — Limit-Free Second-Order Jet Calculus (Volume III): sweep in to observe exact two-term algebraic inversion (evaluating at to with zero ) contrasted against flat secant approximations, alongside symmetric midpoint Cayley conservation, all-order Cayley–trigonometric composition, and telescoping heap arcs.
- Mode 3 — -Free Haar Integrals and Peter–Weyl Spin Shells (Volume IV): inspect integer even Chebyshev spin-shell characters on together with Catalan-factorial Haar moments , verifying all-degree shell orthonormality without or continuum Lebesgue measure.
- Mode 4 — The Hecke spectrum and non-Abelian spinors (Volumes V–VI). Add the norm- Hurwitz spinors one at a time to see how the six jumps multiply the reading by , with a spectral margin of . For the axiom records of the corresponding frozen declarations on both backends, see Appendix A §A.3.
Switch among the four modes below to explore the constructions and their exact arithmetic readouts.
Four-mode 3D workbench. The four cards show rational readouts for Bargmann–Gram triads, second-order jets, -free Haar moments, and the Hecke spectrum.