Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

32.8 Zero-Axiom Lean 4 Formalization Architecture (OmegaMath): Pure CIC Kernel, Canonical Integer Projective Ternions, and One-Way Shadow Functor

“Which declaration uses which axioms? A finite integer check and its classical real counterpart can give different answers in the same Lean kernel.”

Having established the infinity-free and transcendental-free finite rational mathematics in §32.7, we arrive at the decisive formalization and software-architecture question: to build this edifice inside a modern interactive theorem prover such as Lean 4, must we alter the underlying kernel of Lean 4, declare via the axiom keyword, or construct a purely definitional layer atop the existing kernel?

The executable prototype in §32.8.3 uses Lean’s implicit standard Init import. Its finite theorem omega_zero_axiom_master_check has an empty axiom closure. The code declares the OmegaSpace class and leaves construction of an instance to a separate proof. At the pinned commit a93ac745c3afb58d6ec61d9a0a8ba002948f43b7, strict library replay starts from a selected root such as OmegaMath.Projective.Circle and checks its import closure in an empty kernel. On the official backend the real bridge theorem OmegaShadowBridge.cayley_circle_unit has three recorded dependencies, propext, Classical.choice and Quot.sound. §32.8.4 extends the framework to the feature-rank- signed spinor carrier PythSpinor, the zero-axiom quadratic extension fields QSqrt2 and QPhi, norm- LPS free generators with spherical-harmonic Hecke operators and the finite Ramanujan graph , and arbitrary-order D-finite differential jet rings with -free rational Machin brackets (the three-layer OmegaMath architectural synthesis, proof-DAG overhead comparison, and three-step OmegaCore engineering roadmap are marked MODEL; the fifteen core theorems—unit-quaternion isomorphism of rank-five complete ternary comparisons, chord-distance kernel identity, basepoint heap group factorization, identity of the quaternion ray kernel with spinor Born pairing weight, quaternion heap Chebyshev recurrence, Lagrange–Gram identity, attained boundary minimum of the Hermitian Schur complement, unique global linear-isometry extension of Gram-preserving permutations, radical-free rational six-axis open cover of , GCD denominator reduction and logarithmic continued-fraction length bound, decidable prime-factor-stripping group-order recovery, explicit step bound for binary name comparison, and exact integer soundness plus limit-free real transport of the quarter-depth budget—are marked green LEAN ✓; CIC metatheory, Hedberg uniqueness of identity proofs, multi-kernel audit records, the universal written proofs of §32.8.4, and Lean v4.35.0 together with two-working-precision Arb checks are marked ARGUED / NUM).

Remark 32.40 (Companion Monograph: Complete Six-Volume Omega Math, Four 3D Laboratories, and Reference Appendices)

This section condenses the OmegaMath zero-axiom formalization bridge inside the quantum-geometry narrative. The standalone six-volume companion monograph Omega Math (OMEGA//MATH) Six-Volume Contents now carries all 18 chapters, the Coda, and Appendix A / Appendix B, integrating frozen D5 theorems with empty strict axiom records plus the 11-theorem Layer-2 OmegaShadowBridge functor, 19 bespoke bilingual static figures, four 3D interactive laboratories (OMEGA//SPIN, OMEGA//LAB, OMEGA//JET, and OMEGA//ARC, totaling 16 experimental cards), and the bilingual overview slide deck—spanning bare CIC and homogeneous projective closure, origin-free heaps and constant unit Lie triple curvature, singularity-free dual-chart Cayley rotations, limit-free jets and all-order Cayley–trigonometric unification, all-degree -free Peter–Weyl spherical harmonics, the Hurwitz free group and norm- rational Hecke–Ramanujan spectra, -FRACTRAN spinor machines, and empty-kernel auditing—culminating in Chapter 18 Empty-Kernel Auditing, the One-Way Shadow Functor, and the Six-Volume Workbench.


32.8.1 Core Criterion: Why Bare Lean 4 CIC Matches , While Pollution Enters Only Through Mathlib.Real or Custom axiom Declarations

Separating Lean 4 into its underlying verification kernel (CIC) and its upper classical-analysis library (Mathlib.Real) reveals two sharply distinct mathematical philosophies:

  1. Bare Lean 4 CIC Is Natively Free of Completed Infinity, Transcendentals, and Built-In Choice: Prior to importing Mathlib.Data.Real.Basic, the core type-theoretic kernel of Lean 4 consists solely of dependent function types (-types), universe levels, and inductive definitions (inductive) governed by deterministic -reduction. Inside bare CIC, Nat and Int are not static Cantorian bags pre-populated with completed elements, but finite inductive syntax trees; the kernel contains neither the real continuum , nor , , or , nor built-in excluded middle or Choice inside its reduction machine. Going one step deeper under PROJECT.md §13, running #print axioms directly in Lean v4.35.0 on Init uncovers a critical compiler fact (NUM / hand derivation): Nat.gcd, Int.natAbs, Int.instDiv, and the propositional decidable comparisons Int.decEq (= / ≠) and Int.decLt (>) depend on zero axioms; by contrast, the standard Init type Rat bundles a Prop coprimality proof whose arithmetic operations Rat.add, Rat.mul, and Rat.div pull in [propext, Classical.choice, Quot.sound] (Rat.inv pulls in [propext, Quot.sound]). The function fun (a b : Int) => a == b depends on the three standard axioms. The function fun (a b : Rat) => a == b has an empty axiom closure. Rat.add, Rat.mul, Rat.div, and Rat.inv all stall kernel by decide reduction! Defining a fourteen-line pure data structure QRat (num : Int, den : Nat normalized via Nat.gcd) with propositional Decidable branches if d = 0 ∨ n = 0 eliminates every hidden classical dependency and achieves literal zero-axiom reduction.
  2. Where Does the “Linear and Completed-Infinity Tax” of Mathlib.Real Come From?: To reconstruct nineteenth-century Cauchy–Weierstrass analysis, Mathlib constructs Real as the quotient of rational Cauchy sequences modulo null sequences, pulling in all three standard classical axioms {propext, Classical.choice, Quot.sound}—above all non-constructive Classical.choice (ARGUED, cf. the classical-analysis audit receipts documented in PROJECT.md §14). Touching Classical.choice exacts two immediate engineering tolls:
    • Computational paralysis (noncomputable contagion and decide stall): While pure rational numerals such as #eval (1 + 1 : ℝ) merely print a formal Cauchy-sequence wrapper, no executable bytecode can be extracted from non-constructive Choice; real division (1 / 2 : ℝ), square roots Real.sqrt, Lie-group exponentials NormedSpace.exp, real derivatives, smooth manifolds, and Hilbert-space operators become marked noncomputable—blocking native C/machine-code evaluation (#eval) while Classical.choice simultaneously stalls kernel reflection (by decide);
    • Proof-DAG blowup (declaration-closure and filter-convergence tax, MODEL engineering analysis paired with NUM census): Measuring proof declaration closures in Lean v4.35.0 across our four benchmark tasks ({0,1/2,1} & 3-Beat Closure, Non-Abelian Triad Holonomy, Jet2 Algebraic Curvature, and Rational Gram–Schur & Depth Certificate), the zero-axiom OmegaMath stack requires only 396 / 372 / 379 / 380 declarations with #print axioms = ∅, whereas representative Mathlib.Real proofs pull in 7,480 / 7,144 / 17,786 / 7,395 declarations with {propext, Classical.choice, Quot.sound}—with Task 3’s real derivative alone dragging in Filter.Tendsto and jumping to 17,786 declarations.
  3. Why Declaring via the axiom Keyword Is Strictly Forbidden: Writing axiom Ternion : Type or axiom kappa_refl : ∀ x, kappa x x = 1 directly into Lean 4 detonates two fatal landmines:
    • Destroying consistency guarantees and failing independent kernel audits: The Lean kernel trusts every axiom unconditionally. Omitting even a single boundary side-condition—for instance, asserting axiom kappa_refl : ∀ x : ProjTernion, kappa x x = ⟨1, 1⟩ over raw quadruples without excluding the zero tuple , where kappa 0 0 evaluates to ⟨0, 1⟩—derives ⟨0, 1⟩ = ⟨1, 1⟩ and hence False in three lines! Simultaneously, #print axioms and independent kernel checkers (lean4lean, nanoda, con-leche, comparator) flag every non-standard axiom;
    • Freezing kernel -reduction: An axiom constant possesses no computation rule, turning every expression containing it into an irreducible neutral term and severing the Curry–Howard unity of proof and executable program.

Changing the common unit for two integer coordinates should preserve their projective readout. This example illustrates the book’s “Axiom-free” label. It records an empty transitive axiom closure for the frozen declaration. Proofs using either the official libraries or OmegaMath can carry this label.

Theorem 32.41 (Positive integer scaling preserves projective overlap)LEAN ✓ · Uses axioms

Let be natural numbers and . Write for the ratio with numerator and denominator , taking the undefined value when the denominator is zero. Then and are equivalent under Omega.Ratio.Equivalent.

Proof

Scaling multiplies both numerator and denominator by . When the denominator is positive, the two cross products are equal. When , both readings are undefined and hence equivalent by definition. The full proof is checked by the Lean kernel.

Five-stage compilation and audit. On the cyan route, the prototype uses implicit standard Init. At stage four, #print axioms omega_zero_axiom_master_check reports an empty list for the theorem covering eight finite assertions. The other lanes illustrate a custom axiom with a zero-tuple counterexample and classical real arithmetic. The official real circle bridge uses propext, Classical.choice and Quot.sound.


32.8.2 Integer Carriers, Model Interfaces and the Real Bridge in Lean 4

The same OmegaMath library source compiles against the strict and standard backends. Empty-kernel replay covers the import closure of selected strict library roots. D5 declarations are checked by paired builds, interface comparison, and per-backend measurements. The book’s theorem badges use the official frozen records. Several D5 theorems compiled against the standard backend use Lean’s standard propositional extensionality axiom, propext. OmegaMath modules and verification

Layer 0 supplies integer carriers, Layer 1 specifies transport and reading laws, and Layer 2 maps results into classical real analysis. The table compares this architectural model with measurements for the named declarations.

Architectural DimensionFlawed Route: Raw axiom DeclarationsClassical Route: Mathlib.Real StackConstructive Route: Integer Prototype
#print axiomsLists any custom axiom used by the proofOfficial OmegaShadowBridge.cayley_circle_unit uses propext, Classical.choice and Quot.soundomega_zero_axiom_master_check uses implicit standard Init and has an empty axiom list
Executability (#eval)Completely blocked; irreducible constantsReal division, manifolds, and transcendentals marked noncomputable compilable to native C / machine code
3D Ternions & PolesCoordinate-free symbols; boundary slip proves FalseSubmanifolds of , , square roots, and chart atlasesRaw integer quadruples ProjTernion and normalized nonzero representatives CanonProjTernion (zero singularities, zero radicals)
Calculus & CurvatureRequires hand-axiomatized derivative operatorsFilter.Tendsto infinitesimal limits and chart transitionsSecond-order rational jet ring by pure field arithmetic
Automated Proof-Search EfficiencyNo computational reduction; vulnerable to false subgoalsSide-goals dominated by continuity, differentiability, and measurability filtersCore rational geometry, jets, and finite certificates closed in one step by decide

32.8.2.1 Layer 0: Canonical Integer Projective Carrier CanonProjTernion Eliminating Quot.sound

Whereas two-chart Rodrigues parameters in §31.5 and §32.7 still switch charts across the antipodal equator, Layer 0 models homogeneous projective ternion space directly by nonzero integer quadruples modulo rational scaling—eliminating even the quotient axiom Quot.sound via a unique canonical integer normal form (hand derivation):

  • Exact 3 Degrees of Freedom, Unique Integer Normal Form, and Global Zero Singularities: For any nonzero , divide by to obtain coprime and multiply by so that the first nonzero entry is strictly positive. Every projective ternion ray in now carries a unique canonical integer 4-tuple whose equality is decided with zero axioms by deriving DecidableEq (bypassing Quotient and Quot.sound completely):
    • Past halted anchor (): p0 = (1, 0, 0, 0);
    • Present orthogonal equator (): pHalf = (1, 1, 0, 0);
    • Future antipodal closure pole (classical , ): the ordinary integer tuple pInf = (0, 1, 0, 0)!
  • Eliminating Even in Born Fidelity and Adjoint Rotations : Observe an exact algebraic sharpening (PROJECT.md §13): forcing spinors onto the unit sphere before computing observables would force even the equatorial state pHalf = (1, 1, 0, 0) (whose squared norm is non-square!) to introduce the irrational radical . On nonzero homogeneous representatives, both observables and 3D rotations square away all radicals automatically:
    1. Born ray fidelity divides squared inner product by the product of squared norms: giving with zero radicals;
    2. The 3D adjoint rotation divides by the unsquared integer , so every nonzero integer quadruple (even when is not a square!) induces an exact rational rotation matrix —for pHalf = (1,1,0,0), the integer rotation !
    3. By Euler–Lagrange four-square norm multiplicativity , the ternary transport of any three nonzero integer states satisfies so the product stays nonzero. After normalization, the g120 = (1,1,1,1) ray returns to (1,0,0,0) after three beats. Its rational unit lift reaches after three beats and after six. A primitive ray has a rational unit lift exactly when its squared norm is a square.

Layer 0 Canonical Homogeneous Integer Carrier CanonProjTernion (Free of Quot.sound and Radicals): On the purple kit.solid ternion sphere, cyan unnormalized integer rays (2,2,0,0) and (-3,-3,0,0) collapse via Nat.gcd and first-positive sign locking onto the unique canonical anchor pHalf = (1,1,0,0) (‖p‖² = 2, yielding exact κ = 1/2 = 0.5000 and integer rotation Ad(pHalf) ∈ SO(3, ℤ) without √2), alongside p0 = (1,0,0,0), antipodal pole pInf = (0,1,0,0) (κ = 0/1 = 0.0000, zero division-by-zero), and 3-beat integer rotor g120 = (1,1,1,1) (κ = 1/4 = 0.2500).

32.8.2.2 Layer 1: The OmegaSpace Interface and Canonical Representatives

The illustrative prototype below gives OmegaSpace two operations and six fields: two cancellation laws, ternary associativity, reading reflexivity, symmetry and right-transport invariance. Other requirements of AXIOM-Ω, including noncommutativity and positive semidefiniteness of every finite Gram matrix, need separate proofs.

The derivation uses a canonical representative on each nonzero rational ray (hand derivation).

  • On the unbundled raw record ProjTernion (), although normalize totalizes all operations (sending (0,0,0,0) to (1,0,0,0) and scaling (2,0,0,0) to (1,0,0,0)), universally quantified OmegaSpace equations fail on two raw boundary classes: the zero tuple (kappa z0 z0 = ⟨0, 1⟩ ≠ ⟨1, 1⟩ and triad p0 p0 z0 = p0 ≠ z0) and non-reduced multiples (triad p0 p0 z2 = p0 ≠ z2);
  • Each nonzero ray has a unique primitive representative with first nonzero coordinate positive. Define the product on these representatives by normalizing . Absorption follows from , and associativity follows from quaternion associativity on rays and uniqueness of the representative. The squared inner-product reading is symmetric and reflexive. Common right multiplication by scales each squared norm and the inner product by the same factor , preserving the reading.

The prototype declares the six fields and checks eight concrete equalities or inequalities by computation, including a noncommuting pair. A formal instance would also require proofs of the six fields for all inputs. The second-order rational jet ring Jet2Rat () computes exact two-term inverses whenever the unit condition holds—which for holds at every —allowing by decide to verify second-order curvature in a single kernel step.

Finite ternion and Jet2Rat checks by decide: Step across all eight conjuncts of omega_zero_axiom_master_check on the purple kit.solid ternion sphere—rational fidelity spectrum {1, 1/2, 0, 1/4}, 3-beat return gStep3 = p0, left idempotence triad pHalf pHalf g120 = g120, non-abelian integer synthesis (1,1,1,1) ≠ (1,1,1,-1), and exact jet output {1/2, -1/2, +1/4} at x₀ = 1—while toggling the CanonProjTernion guard that blocks raw (0,0,0,0) and (2,0,0,0) counterexamples.

32.8.2.3 Layer 2: One-Way Shadow Functor into Mathlib (No Isolated Island)

Building a zero-axiom OmegaMath core never isolates us from the broader Mathlib ecosystem. Because induced by CanonProjTernion is norm-dense in (and Cayley rational points are dense in ), Layer 2 erects a thin one-way shadow projection functor:

Under this division of labor, non-abelian ternion heap geometry, second-order curvature jets, rational block-Gram Schur complements , and integer depth certificates such as rationalQuarterDepth () execute inside the zero-axiom OmegaMath core via #eval and decide; only when a final classical-analysis statement over or is required does a one-way soundness bridge—exemplified in frozen form by rationalQuarterDepth_integer_sound rationalQuarterDepth_real_sound—project the certified rational bound into Mathlib without a single limiting argument polluting the core.

Layer 2 Rational Schur Complement Certificate and One-Way Shadow Functor : On the left, the purple rational ternion sphere and cyan Gram ellipsoid compute the exact rational Schur minimum and integer quarter-depth certificate (axioms = ∅); on the right, the amber one-way bridge transports the bound without limits to (1/4)^(N+1) C < p/q on the classical continuum shell.


32.8.3 Executable Lean 4 Prototype with Standard Init (Verified on v4.35.0) and Three-Step OmegaCore Roadmap

Lean v4.35.0 automatically imports standard Init because this file has no prelude directive. The code uses its Int, Nat and Nat.gcd to implement QRat, raw integer quadruples ProjTernion and second-order jets Jet2Rat. It also declares the fields of OmegaSpace. The separate theorem omega_zero_axiom_master_check proves a finite conjunction by decide, including the fidelity values, three-beat return, noncommuting pair and jet at . Running #print axioms omega_zero_axiom_master_check reports does not depend on any axioms.

/-- 1. Zero-axiom reduced rationals QRat (pure Int × Nat normal form, bypassing classical proofs inside Init Rat) -/
structure QRat where
  num : Int
  den : Nat
  deriving Repr, DecidableEq

namespace QRat

def mkNorm (n d : Int) : QRat :=
  if d = 0 ∨ n = 0 then ⟨0, 1⟩
  else
    let dn : Nat := d.natAbs
    let g : Nat := Nat.gcd n.natAbs dn
    let s : Int := if d > 0 then n else -n
    ⟨s / (g : Int), dn / g⟩

def ofInt (n : Int) : QRat := ⟨n, 1⟩
def add (a b : QRat) : QRat := mkNorm (a.num * b.den + b.num * a.den) (a.den * b.den)
def sub (a b : QRat) : QRat := mkNorm (a.num * b.den - b.num * a.den) (a.den * b.den)
def mul (a b : QRat) : QRat := mkNorm (a.num * b.num) (a.den * b.den)
def inv (a : QRat) : QRat := mkNorm a.den a.num

end QRat

/-- 2. Raw integer tuples. Normalizing a nonzero tuple selects its canonical ray representative. -/
structure ProjTernion where
  w : Int
  x : Int
  y : Int
  z : Int
  deriving Repr, DecidableEq

namespace ProjTernion

/-- GCD reduction with first nonzero coordinate positive, eliminating Quot.sound via unique normal form -/
def normalize (w x y z : Int) : ProjTernion :=
  let g : Nat := Nat.gcd (Nat.gcd w.natAbs x.natAbs) (Nat.gcd y.natAbs z.natAbs)
  if g = 0 then ⟨1, 0, 0, 0⟩
  else
    let gc : Int := g
    let (w', x', y', z') := (w / gc, x / gc, y / gc, z / gc)
    let s : Int :=
      if w' ≠ 0 then (if w' > 0 then 1 else -1)
      else if x' ≠ 0 then (if x' > 0 then 1 else -1)
      else if y' ≠ 0 then (if y' > 0 then 1 else -1)
      else (if z' > 0 then 1 else -1)
    ⟨s * w', s * x', s * y', s * z'⟩

def qmulRaw (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 qconj (a : ProjTernion) : ProjTernion := ⟨a.w, -a.x, -a.y, -a.z⟩

/-- Origin-free ternary comparison transport [a, b, c] ≡ normalize (a · b̄ · c) -/
def triad (a b c : ProjTernion) : ProjTernion :=
  let t := qmulRaw (qmulRaw a (qconj b)) c
  normalize t.w t.x t.y t.z

def dot (a b : ProjTernion) : Int :=
  a.w * b.w + a.x * b.x + a.y * b.y + a.z * b.z

/-- Radical-free rational Born fidelity κ(a, b) = ⟨a, b⟩² / (‖a‖² · ‖b‖²) ∈ ℚ ∩ [0, 1] -/
def kappa (a b : ProjTernion) : QRat :=
  QRat.mkNorm (dot a b * dot a b) (dot a a * dot b b)

end ProjTernion

/-- 3. `{0, 1/2, 1}` second-order algebraic jet ring ℚ[η]/(η³): exact limit-free calculus -/
structure Jet2Rat where
  j0 : QRat
  j1 : QRat
  j2 : QRat
  deriving Repr, DecidableEq

namespace Jet2Rat

instance : Add Jet2Rat where
  add a b := ⟨QRat.add a.j0 b.j0, QRat.add a.j1 b.j1, QRat.add a.j2 b.j2⟩

instance : Mul Jet2Rat where
  mul a b := ⟨QRat.mul a.j0 b.j0,
              QRat.add (QRat.mul a.j0 b.j1) (QRat.mul a.j1 b.j0),
              QRat.add (QRat.add (QRat.mul a.j0 b.j2) (QRat.mul a.j1 b.j1)) (QRat.mul a.j2 b.j0)⟩

/-- Exact two-term rational inverse (a₀ + a₁η + a₂η²)⁻¹ (satisfying a * inv a = 1 whenever j₀ ≠ 0) -/
def inv (a : Jet2Rat) : Jet2Rat :=
  let i0 := QRat.inv a.j0
  let u1 := QRat.mul a.j1 i0
  let u2 := QRat.mul a.j2 i0
  ⟨i0, QRat.sub (QRat.ofInt 0) (QRat.mul i0 u1), QRat.mul i0 (QRat.sub (QRat.mul u1 u1) u2)⟩

def kappaJetAt (x0 : QRat) : Jet2Rat :=
  let x : Jet2Rat := ⟨x0, QRat.ofInt 1, QRat.ofInt 0⟩
  inv (⟨QRat.ofInt 1, QRat.ofInt 0, QRat.ofInt 0⟩ + x * x)

end Jet2Rat

/-- 4. Illustrative interface for six equations on ternary transport and fidelity. -/
class OmegaSpace (M : Type) where
  triad : M → M → M → M
  kappa : M → M → QRat
  idemp_left  : ∀ x z, triad x x z = z
  idemp_right : ∀ x z, triad x z z = x
  assoc_triad : ∀ x y z u v, triad (triad x y z) u v = triad x y (triad z u v)
  kappa_refl  : ∀ x, kappa x x = ⟨1, 1⟩
  kappa_symm  : ∀ x y, kappa x y = kappa y x
  kappa_inv   : ∀ x y u v, kappa (triad x u v) (triad y u v) = kappa x y

/-- 5. Zero-axiom kernel reflection check: {0,1/2,1} landmarks, 3-beat closure, non-commutativity, and 2-jet calculus -/
theorem omega_zero_axiom_master_check :
    let p0    : ProjTernion := ⟨1, 0, 0, 0⟩   -- Past anchor (s=0, κ=1)
    let pHalf : ProjTernion := ⟨1, 1, 0, 0⟩   -- Present orthogonal equator (s=1/2, κ=1/2)
    let pInf  : ProjTernion := ⟨0, 1, 0, 0⟩   -- Future antipodal pole [1:0] (classical ∞, s=1, κ=0)
    let qHalf : ProjTernion := ⟨1, 0, 1, 0⟩   -- Second orthogonal arc
    let g120  : ProjTernion := ⟨1, 1, 1, 1⟩   -- Pure-integer 120° rotor (κ=1/4)
    let gStep2 := ProjTernion.triad g120 p0 g120
    let gStep3 := ProjTernion.triad gStep2 p0 g120
    ProjTernion.kappa p0 p0 = ⟨1, 1⟩ ∧
    ProjTernion.kappa p0 pHalf = ⟨1, 2⟩ ∧
    ProjTernion.kappa p0 pInf = ⟨0, 1⟩ ∧
    ProjTernion.kappa p0 g120 = ⟨1, 4⟩ ∧
    gStep3 = p0 ∧
    ProjTernion.triad pHalf pHalf g120 = g120 ∧
    ProjTernion.triad pHalf p0 qHalf ≠ ProjTernion.triad qHalf p0 pHalf ∧
    Jet2Rat.kappaJetAt ⟨1, 1⟩ = ⟨⟨1, 2⟩, ⟨-1, 2⟩, ⟨1, 4⟩⟩ := by
  decide

-- Ultimate axiom audit: outputs "'omega_zero_axiom_master_check' does not depend on any axioms"
#print axioms omega_zero_axiom_master_check

In concrete formalization engineering, the OmegaMath program advances in three disciplined steps (MODEL roadmap):

  1. Step 1. Executable arithmetic in OmegaCore. Build the carriers and operations exemplified above with standard Init. Check each finite benchmark with decide and read the axiom closure of the resulting theorem.
  2. Step 2 (Rational Gram–Schur & Heap Geodesic Layer): Implement exact rational Cholesky / Schur-complement positivity certificates, continued-fraction convergents, and prime-factor order stripping atop OmegaCore, replacing limit-filter proof search with high-speed kernel reduction (decide);
  3. Step 3 (One-Way Shadow Bridge into Mathlib): Export classical real-analysis corollaries at the outer boundary via rational rotation density and exact integer-to-real soundness theorems (rationalQuarterDepth_integer_sound rationalQuarterDepth_real_sound).

Four Mathematical-Physics Tasks and OmegaCore Three-Step Benchmark: Switch across four canonical tasks ({0,1/2,1} & 3-Beat Closure, Non-Abelian Triad Holonomy, Jet2 Algebraic Curvature, and Rational Gram–Schur & Depth Certificate) and step through the five pipeline stages on the 3D sphere and prism rail, comparing the zero-axiom OmegaMath stack (axioms = ∅, one-step decide, native #eval) against Mathlib.Real and custom axiom routes in axiom count, executability, and proof-DAG nodes.

We now assemble the fifteen frozen theorems anchoring the three-layer OmegaMath architecture—ternary quaternion models, rational Gram–Schur algebra, canonical finite arithmetic, explicit step-bounded comparison, and the limit-free integer-to-real soundness bridge:

Theorem 32.42 (Quaternion Ternary Model, Rational Canonical Arithmetic, Explicit Step-Bounded Computability, and Limit-Free Integer-to-Real Soundness Bridge)LEAN ✓

Across ternary comparison model realization, rational Gram–Schur positivity, finite canonical arithmetic, and one-way integer-to-real transport, the following statements hold:

  1. Quaternion Ternary Realization, Ray Born Kernel, and Heap Recurrence (exists_unitQuaternion_equiv, kappa_eq_one_sub_dist_sq, tri_eq_mul_inv_mul, rayKernel_eq_bornProbability_spinor, normSq_and_chebyshev): Every noncommutative, chain-connected, zero-touching, feature-rank-, reading-complete ternary comparison system is isomorphic to with and ; the quaternion ray kernel equals both the squared inner-product modulus of two-component spinors and the Born pairing weight of their rank-one density matrices; and a sequence in satisfies with unit initial norms if and only if every has unit norm and evolves by Chebyshev polynomials ;
  2. Lagrange–Gram Identity, Attained Schur Minimum, and Unique Gram-Preserving Isometry Extension (lagrange_gram_identity, schur_quadratic_is_least, existsUnique_linearIsometryEquiv_of_gram_preserving): Over any finite index set , ; for any block matrix with Hermitian and positive definite, the Schur quadratic form is the least element (IsLeast: belonging to the set and at most every element of it) of the set of full quadratic-form values as the internal vector varies; and any real-inner-product-preserving permutation of a spanning family in extends uniquely to a global linear isometric equivalence;
  3. Radical-Free Rational Six-Axis Cover and Finite Canonical Arithmetic (rational_six_axis_open_cover, reduced_den, convergents_length_log, stripFactors_correct): The six squared-norm- integer axes define open sets covering the real unit two-sphere without orthogonal pairs inside any patch; for , (reduced s r).den = r / Nat.gcd s r, and every satisfies ; in any monoid with decidable equality, if , , and covers all prime divisors of , executable M := stripFactors x P m satisfies , , , and ;
  4. Explicit Step-Bounded Decidable Comparison and Limit-Free Integer-to-Real Soundness Bridge (name_compare_run, rationalQuarterDepth_integer_sound, rationalQuarterDepth_real_sound): The binary name-comparison machine halts on any within at most steps outputting decide (a = b); and for , the natural-arithmetic depth rationalQuarterDepth c d p q := Nat.log 4 ((c * q) / (d * p)) when first certifies the exact integer inequality and then, for and any real majorant , transports directly without any limiting argument to the strict real error bound .
Proof

Group 1 follows from rank-five Gram representation, bilateral unit-quaternion isometries, Hopf–spinor trace identities, and Chebyshev induction; Group 2 expands cross-difference squares, completes the block Hermitian square using , and extends Gram-preserving permutations across spanning quotients; Group 3 combines Bessel’s inequality with a sum-of-squares polynomial certificate, two-step Euclidean denominator halving, and decidable power-one induction; Group 4 tracks explicit stack-machine steps, uses Euclidean division to establish in , and casts one-way into via exact_mod_cast. The full proof is checked by the Lean kernel.

Remark 32.43 (Calculus of Inductive Constructions, Hedberg's Theorem, and Multi-Kernel Axiom Audits (Literature Results))

Literature results, not formalized in this book. Following PROJECT.md §13 and §14, we record three foundational references and audit boundaries:

  1. Calculus of Inductive Constructions (CIC) and Lean 4 Metatheory: CIC originates with T. Coquand and C. Paulin-Mohring (COLOG-88, LNCS 417, 50–66, 1990); the Lean 4 kernel and compiler are presented by L. de Moura and S. Ullrich (CADE-28, LNCS 12699, 625–635, 2021), and the formal metatheory of Lean together with its three standard axioms {propext, Classical.choice, Quot.sound} is analyzed by M. Carneiro (The Type Theory of Lean, Master’s thesis, CMU, 2019);
  2. Hedberg’s Theorem and Quotient-Free Canonical Subtypes: Every type equipped with constructive decidable equality (DecidableEq) satisfies uniqueness of identity proofs (UIP) inside pure intensional type theory without extra axioms, proved by M. Hedberg (J. Funct. Program. 8(4), 413–436, 1998). This applies to equality proofs in the decidable canonical subtype. The operation laws require the algebraic arguments above;
  3. Reading the axiom closure of a declaration. At the book’s pinned commit a93ac745c3afb58d6ec61d9a0a8ba002948f43b7, the frozen entry for BurnolRationalDepthBudget.rationalQuarterDepth_integer_sound has no official axioms field. Its dependencies lie within the permitted set {propext, Classical.choice, Quot.sound}. The exact subset requires a measurement of that declaration. The QRat prototype in this section supplies a separate measurement. In Lean v4.35.0, #print axioms omega_zero_axiom_master_check reports an empty list.
Example 32.44 (Quantitative Audit: Step-by-Step Integer Trace of `omega_zero_axiom_master_check`, Non-Abelian Integer Rotor Synthesis, and Rational Schur Certificate)

We verify by hand every integer and rational reduction executed inside by decide by Lean v4.35.0 (hand derivation / NUM):

  1. Three-Beat Projective Closure of (1,1,1,1) and Radical-Free Non-Abelian Synthesis: For p0 = (1,0,0,0) and g120 = (1,1,1,1) (, ):
    • Beat 2 raw product normalizes via and sign flip to gStep2 = (1, -1, -1, -1);
    • Beat 3 raw product normalizes via back to gStep3 = (1, 0, 0, 0) = p0!
    • For the two squared-norm- equatorial integer states pHalf = (1,1,0,0) and qHalf = (1,0,1,0) (each ), forward ternary transport synthesizes (1, 1, 1, 1) = g120, whereas reversed transport yields (1, 1, 1, -1)—witnessing non-abelian spatial locking in pure integers!
  2. Rational Schur Complement and Integer Quarter-Depth Certificate: For the rational Hermitian block , zero-axiom QRat arithmetic yields exact Schur minimum (attained at ); for majorant bound and target error , executable rationalQuarterDepth 7 2 1 10 = Nat.log 4 35 = 2 certifies at the exact integer inequality , projecting one-way to over with zero limits.

32.8.4 Feature-Rank-5 Spinor Lift, Finite-Degree Algebraic Extensions, Norm-5 Hecke Expanders, and D-Finite Differential Jets

Building on the three-layer architecture built in §32.8.1–§32.8.3, four deeper algebraic and analytic boundary questions arise immediately: (i) why does the quadratic ray kernel of the projective carrier ProjTernion cap its feature rank at , whereas the comparison system characterized in Group 1 of the frozen theorem above requires feature rank under its chosen signed kernel and retains double-cover sign memory? (ii) when physical observables genuinely require algebraic irrationals—such as normalizing the non-square-norm state pHalf to unit length along the same ray, attaining the CHSH Tsirelson bound , or closing pentagonal golden-ratio Chebyshev cycles—how can zero-axiom finite-degree algebraic extensions encode them without retreating to the real continuum ? (iii) inspired by the squared-norm- integer coordinate arithmetic of the frozen theorem, how do four-coordinate squared-norm- Hurwitz quaternions generate inside a free group , induce exact rational Hecke operators (matrices, traces, and characteristic polynomials) with certified spectra on spherical harmonics, and yield finite Ramanujan Cayley graphs? (iv) how does the second-order jet ring Jet2Rat generalize to arbitrary-order D-finite differential jet rings , unifying Cayley parametrization with trigonometric identities inside finite polynomial rings and yielding arbitrarily tight rational Machin brackets without presupposing the transcendental constant ? This subsection integrates all four extensions into the zero-axiom, transcendental-free, infinity-free OmegaMath architecture (universal statements are established by written proof, marked ARGUED; finite instances, spectral bounds, and enclosures are certified by exact rational, two-working-precision Arb certificates and the standalone zero-import Lean auxiliary check, marked NUM, and that standalone script is not counted toward the pinned trureturing frozen LEAN ✓ theorem tally).

32.8.4.1 Exact Rank-10 vs. Rank-5 Separation Between Projective Rays and Signed Rational Spinors PythSpinor

For any nonzero rational quadruple , define the rank-one symmetric orthogonal projector . Expanding the matrix trace immediately yields the linear feature factorization . Because has dimension and the trace pairing has quadratic form strictly positive definite on nonzero symmetric matrices, every finite projective Gram matrix is positive semidefinite with . Choosing the four coordinate axes and six pairwise diagonals (), the four coordinate projectors span the diagonal subspace while spans all six off-diagonal symmetric basis matrices, so the projectors indexed by these rays form a basis of ; their exact Gram matrix has leading principal minors (, strictly positive definite), and appending the eleventh ray keeps rank while driving .

To bring the chosen kernel’s feature rank down from the projective quotient’s to the of the frozen isomorphism setting while enabling the output carrier to distinguish antipodal unit spinors and (with strictly positive integer radius ), we adopt primitive Pythagorean spinors PythSpinor—integer quintuples satisfying and . For any nonzero integer quadruple with , the rational stereographic–Cayley parametrization of the unit three-sphere is defined by

where divides by the positive five-entry greatest common divisor. The identity places every image on the rational unit three-sphere ; conversely, every rational unit quaternion with is hit by an integer multiple of , while every nonzero input with (such as ) maps to the south pole . Note that does not recover an input ray’s sign; it is the output carrier PythSpinor itself that distinguishes antipodal representatives and , and by norm multiplicativity together with positive GCD reduction, primitive spinors are strictly closed under quaternion multiplication, conjugation inverse, and the ternary heap operation .

Writing rational unit points as , the signed spinor kernel satisfies

the first equality factoring through to cap every finite spinor Gram rank universally at , and the second following identically for all spinor pairs from . Applying to yields the four coordinate unit spinors (lying in the affine hyperplane ) plus (whose coordinate sum is , giving linear independence in ); their spinor Gram matrix has exact leading principal minors (), while appending the sixth lifted spinor fixes rank with (all ordered products, ternary heaps, and quadratic kernel identities on these six spinors are verified exact). Furthermore, writing (), the primitive body-diagonal rotor g120_spin = (1, 1, 1, 1; 2) (corresponding to ) traces the exact six-beat orbit inside PythSpinor, with signed identity fidelities : spatial rotation advances per beat, hitting at the exact sign flip on beat three () and returning at with full sign on beat six ().

32.8.4.2 Zero-Axiom Finite-Degree Algebraic Extensions: QSqrt2 and QPhi

Because the equatorial integer state pHalf = (1, 1, 0, 0) has non-square norm , even though the nonlinear stereographic map sends it to the rational point , unit normalization along the same ray necessarily leaves ; likewise, pentagonal symmetry and golden-ratio Chebyshev closure require a root of . By the rational root test, both and are irreducible over ; OmegaMath avoids Mathlib’s Choice-dependent classical field operations over the Cauchy-quotient reals (such as real inversion) and constructs directly over QRat as pure ordered pairs (a, b) two zero-axiom degree- extension fields:

  1. Quadratic Extension Field QSqrt2 : Under its positive real embedding (the -bit Arb certificate proves itself lies strictly inside the rational isolating interval , rounding to six decimal places as ), the lifted unit spinor has exact unit squared norm , with exact integer powers , , and . On the Bell state (whose correlation matrix is the identity), the self-adjoint unitary observables , , , and evaluate inside QSqrt2 to exact correlations , giving exact CHSH value and (the -bit Arb certificate proves itself lies strictly inside , rounding to six decimal places as ). Projected via into the classical Hilbert-space setting, the CHSH operator of any self-adjoint unitary observables satisfies with each commutator having operator norm at most , hence ; the QSqrt2 algebraic construction thus attains the exact Tsirelson upper bound upon projection;
  2. Golden Quadratic Extension Field QPhi : Writing the positive real embedding (-bit Arb enclosure rounding to six decimal places as ) and its Galois conjugate , induction from proves that for every integer the exact Fibonacci power law holds, while gives exact algebraic norm (verified through in the exact Python suite, where and , and through in the zero-import Lean auxiliary script, where and ). Moreover, the exact rational factorization identifies the unique positive root (rounding to six decimal places as ), and the double-angle formula yields (rounding to six decimal places as ), whereupon the Chebyshev recurrence proves the zero-trigonometry closures , , and .

32.8.4.3 Norm-5 LPS Free Generators, Exact Rational Spherical-Harmonic Hecke Operators, and the 2184-Vertex Ramanujan Graph

Inspired by the Group 3 squared-norm- integer coordinate arithmetic of the frozen theorem above, and following the classical Hecke-operator and Ramanujan-graph theory of A. Lubotzky, R. Phillips, and P. Sarnak (Comm. Pure Appl. Math. 39(S1), S149–S186, 1986; Comm. Pure Appl. Math. 40(4), 401–420, 1987; Combinatorica 8(3), 261–277, 1988), G. Davidoff, P. Sarnak, and A. Valette (Elementary Number Theory, Group Theory and Ramanujan Graphs, LMS Student Texts 55, Cambridge University Press, 2003), and O. Parzanchevski and P. Sarnak (Adv. Math. 327, 869–901, 2018), we examine the six four-coordinate squared-norm- integer Hurwitz generators inside ProjTernion:

Free Group and Linear Bit-Height Growth. Each satisfies (so its quaternion inverse is , making the conjugates three mutually inverse pairs in the projective and adjoint groups) and induces an exact denominator- rational rotation (for instance, fixes the first axis and acts on the remaining two axes by the Pythagorean rotation ). Splitting the quaternion algebra over via and maps all six generators to nonzero rank-one matrices among whose ordered pairwise products exactly vanish (namely the three inverse pairs in either order); factoring each rank-one image as a column times a row shows that every reduced word of length stays nonzero modulo . Since its squared norm is , no prime other than can divide all four coordinates, so every reduced word is primitive (); neither can a nonempty reduced word be scalar (for odd , is nonsquare, and for positive even , is divisible by ), and because the kernel of consists solely of scalars, freely generates inside the group . Exhaustive enumeration confirms that at lengths there are respectively distinct canonical adjoint rotations ( cumulative), with exact largest coordinate magnitudes (binary bit lengths ). Because the largest coordinate magnitude of every length- reduced word lies in , its asymptotic bit-height growth rate locks exactly to (-bit Arb enclosure rounding to six decimal places as bits per gate).

Exact Rational Spherical-Harmonic Hecke Operators and Certified Spectra (, ). For every , inverse pullback commutes with the Laplacian , furnishing a purely rational matrix representation on the -dimensional rational space of harmonic homogeneous degree- polynomials ; the inverse-closed average is self-adjoint for the spherical inner product (hence real-spectrum) while its matrix, traces, and characteristic-polynomial coefficients remain entirely over . Every satisfies , so the rotation character and even parity of imply the exact rational trace law . For (with dimensions equal to ), the table below records the exact rational traces , traces of squares , and largest eigenvalue magnitudes (with the final column rounding to six decimal places); exact rational characteristic-polynomial factorization, Sturm root isolation, and two-working-precision Arb enclosures certify that every eigenvalue across all six degrees satisfies the strict continuous Ramanujan inequality (i.e., , rounding to six decimal places as ):

Specifically, at , is an exact scalar operator (characteristic factor ); at , besides the rational eigenvalues (multiplicity two) and (multiplicity three), the multiplicity-three irreducible quadratic factor contributes the exact positive root (rounding to six decimal places as ); and at , both roots of the multiplicity-three quadratic factor have absolute values strictly below the exact rational dominant magnitude .

Finite LPS Ramanujan Cayley Graph and Exact Positive-Definite Shift Certificate. At the smallest prime exceeding with , namely , we have and Legendre symbol , so the modulo- splitting and maps the six generators of to six non-square-determinant elements of . Right multiplication generates the connected, simple, undirected, bipartite -regular Cayley graph on vertices ( per part); full breadth-first enumeration together with Cayley vertex transitivity proves its exact girth is . Let be the integer biadjacency matrix (odd rows, even columns) and set . Starting from the identity-vertex basis vector on the even part, sparse exact integer Krylov iteration yields invertible integer Gram matrices through and an exact degree- linear relation verified entrywise on ; since left translations by commute with and map transitively to every even basis vector, this degree- polynomial is the exact minimal polynomial of (and by real symmetry of , every root occurs as an eigenvalue). Because is stochastic with a connected two-step graph on the even part, the trivial root is simple; exact Sturm isolation and -bit Arb enclosures prove that all remaining distinct nontrivial roots lie strictly below , with largest nontrivial root (rounding to six decimal places as ) equal to the largest real root of the irreducible sextic factor

certifying the second-largest singular value (rounding to six decimal places as ) strictly below the Ramanujan threshold (rounding to six decimal places as ). Write for the all-ones matrix: whereas the naive shift leaves eigenvalue zero on the all-ones vector , choosing the shift coefficient yields

which satisfies , while on the orthogonal complement every eigenvalue is (since ), establishing purely via the integer Krylov minimal polynomial and exact root bounds that is strictly positive definite with exact smallest eigenvalue .

32.8.4.4 D-Finite Differential Jet Rings , Cayley–Trigonometry Algebraic Unification, and -Free Rational Machin Brackets

Following the D-finite power-series framework of R. P. Stanley (European J. Combin. 1(2), 175–188, 1980), we generalize Jet2Rat () to any truncation order : over the formal power-series ring , linear differential recurrences with constant or polynomial coefficients— (), (), (), and (, immediately implying )—determine every rational coefficient uniquely term by term. Quotienting by produces in the finite rational polynomial jet ring the polynomials : for arbitrary scalars (as well as symbolically over ), the binomial formula yields the addition law and inverse identity ; from and we obtain , which with constant term gives ; and formal differentiation drops one order to yield .

Cayley–Trigonometry Algebraic Unification. The formal composition pair satisfies the first-order linear differential system , with initial values , and direct differentiation shows that the rational Cayley parametrization solves the exact same system and initial condition; by coefficient uniqueness and the fact that substitution of a zero-constant-term series respects truncation modulo , every order satisfies in the exact polynomial ring identities

These identities are verified to zero remainder at both and (with also checked by the zero-import Lean auxiliary script). At the rational point , the exact value of the untruncated rational Cayley map is the Pythagorean pair ; when the canonical polynomial representatives of degree at most for these congruences are evaluated at (as evaluation at a nonzero point does not descend to the quotient ring ), those truncated Cayley polynomials at exhibit exact rational cosine–sine signed errors , , , , and , while evaluating the nested composition of the two truncated polynomials without re-truncating yields at signed errors (rounded to seven significant figures) and .

Purely Rational Machin Tangent Chain and -Free Alternating Brackets. Defining rational tangent addition and subtraction for rationals satisfying and respectively by and , Machin’s classical formula becomes a finite rational identity chain inside with every denominator nonzero:

whose unreduced final numerator and denominator are both , invoking neither nor inverse trigonometry. Projecting one-way to the classical real shadow , let and on the principal branch; since and , we obtain and hence ; substituting the rational tangent chain yields , so injectivity of on gives . Termwise integration of yields alternating series on both intervals, so for every positive integer the true value lies strictly between the -th and -th partial sums; combining the rational endpoints with the signs in yields purely rational brackets enclosing with exact rational width

At , the exact rational bracket (endpoints rounding to six decimal places as and ) has exact width (rounding to seven significant figures as ); advancing through contracts the rational bracket width to , , , and , and tightens it to (all widths taken from the -bit Arb certificates and rounded to seven significant figures; independent -bit Arb evaluation confirms lies strictly inside every rational bracket).

Archival Scope and Epistemic Stratification (ARGUED / NUM). The complete written proofs, exact rational and two-working-precision (-bit and -bit) FLINT/Arb certificates, and standalone zero-import Lean auxiliary script for this subsection are archived under Issue #1126 in the pinned verification archive (commit 3a3ff48ccbaf4dce3a4b23eba250e3a937880445, raw SHA256SUMS SHA-256 digest bcf6518d3eeec355ab1861ca4964d2fdfa3139cd1f1c095f69644de44113653e). Across three computation suites, the archive certifies exact rational/algebraic records ( by suite) and interval enclosures (), with zero exact mismatches and strict containment of every -bit interval inside its -bit counterpart; the accompanying zero-import Lean v4.35.0 script omega_math_extensions_check.lean (relying only on implicit Init, reduced via by decide +kernel, and printing 'cycle16_omega_math_extensions_check' does not depend on any axioms) checks the four finite Gram determinants, the product/heap/quadratic-kernel predicates on the six lifted witnesses, separately the six-beat orbit and fidelities of g120_spin, the QSqrt2 rotor powers and , the QPhi Fibonacci powers and norms (through ) plus , the generators and with , the exponential-inverse/Pythagorean/-inverse and two Cayley–trigonometry identities, and the Machin rational tangent chain reducing to (while Bell correlations, , exponential addition, arctangent derivative congruence, unreduced , and higher-degree spectra are verified by direct arithmetic and the Python/Arb suites). This standalone script serves solely as an auxiliary archival verification and is not counted toward the pinned trureturing frozen LEAN ✓ theorem tally; universal statements are established by the written proofs (ARGUED), while the stated finite instances, spectral bounds, and interval enclosures are certified by the exact rational, Arb, and standalone Lean checks (NUM).


The laboratory follows a finite integer calculation through Lean’s evaluator.

The first card traces the eight finite assertions of omega_zero_axiom_master_check using implicit standard Init. Its empty axiom list belongs to that theorem. Empty-kernel replay instead selects a strict library root such as OmegaMath.Projective.Circle and checks its import closure. Other cards show the order-sensitive products of pHalf and qHalf, the three-beat return of g120, the Schur minimum and the integer certificate . The next chapter develops the circular-arc model. Chapter 33

Explore five cards covering the finite prototype and its axiom audit, integer-ray normalization, the eight finite ternion and jet assertions, the rational Schur certificate and the one-way real bridge, and four proof benchmarks. The two plots show measured proof dependencies, the browser’s integer-operation counts and the exact quarter-depth bounds.