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

Chapter 16 Ω-FRACTRAN Non-Abelian Spinor Machines and 2×2 Matrix Algebra

“When every state, fidelity reading, and jet evolution of an observer is purely rational, self-referential computation needs neither flat byte arrays nor an external program counter: prime windings serve as orthogonal registers, and integer quaternion spinors serve as a native non-Abelian causal stack.”

Across Volumes I–V, starting from the bare Calculus of Inductive Constructions (CIC) and homogeneous projective closure, we constructed canonical three-dimensional ternions, origin-free heaps, limit-free jet calculus, -free spherical harmonic analysis, Adelic product closure, and the norm- rational Hecke–Ramanujan spectral gap without once borrowing from the real continuum or transcendental constants. Opening Volume VI, a sharp foundational question follows: inside an all-rational, background-free geometric universe, what is the native instruction set architecture (ISA) of computation itself?

This chapter develops the answer in three steps. Section 16.1 introduces John H. Conway’s scalar rational machine FRACTRAN, anchors its orthogonal prime registers, explicit step-bounded computability, and the zero-axiom scalar FRACTRAN exact semantics, determinism, positivity, halting stability, and exact 15-transition trace of the four-gate program from first halting at (strict_omega.axioms: [], OmegaInit OmegaMath) in frozen LEAN ✓ theorems (accompanied by a hand-checked five-prime exponent table). Section 16.2 diagnoses the Abelian word-order tax of commutative multiplication, lifts the state carrier to the integer quaternion spinor lattice to formulate the non-Abelian -FRACTRAN machine with exact divisibility gates enforcing Output(1) ≡ Input(0') (MODEL), verifies coordinate by coordinate how psiXY and psiYX separate modulo , and anchors both general transition determinism and this modulo- word-order separation in a zero-axiom frozen LEAN ✓ theorem (strict_omega.axioms: [], OmegaInit OmegaMath). Section 16.3 constructs the zero-axiom integer matrix ring Mat2, first exhibits all four core matrix polynomial identities explicitly, and then anchors all four—trace cyclicity, determinant multiplicativity , bilateral adjugate identities, and the universal Cayley–Hamilton identity —in a zero-axiom frozen LEAN ✓ theorem (strict_omega.axioms: []), bridging spinor execution directly to matrix algebra.

16.1 Classical Scalar FRACTRAN, Orthogonal Prime Registers, and a 16-State Halting Trace

Conventional von Neumann architectures split flat byte arrays, external addresses, and a program counter (PC) into separate external devices, permitting arbitrary bit overwrites without checking global structural compatibility. Conway’s 1987 language FRACTRAN (literature result) compresses an entire universal computer into three minimal ingredients:

  • Machine state: a single positive integer ;
  • Program: an ordered finite list of reduced positive rationals ;
  • Single-beat transition: scan from left to right, pick the first fraction whose product remains an integer (i.e., passing the divisibility guard ), update , and return to the head of ; if no denominator divides , halt idempotently.

This single-rule machine achieves unbounded multi-register computation because unique prime factorization identifies positive rationals with finitely supported signed exponent ledgers, while explicit step-bounded machines formalize decidable symbolic transitions without external oracles. Two frozen theorems anchor both sides.

Theorem 16.1 (Isomorphism Between Signed Prime Ledgers and Positive Rationals)LEAN ✓

Let be the additive group of finitely supported signed prime-exponent ledgers and the multiplicative group of positive rationals. Then the canonical additive equivalence primeExponentEquivPositiveRational : (Nat.Primes →₀ Int) ≃+ Additive NNRatˣ is bijective (Function.Bijective), identifying coordinatewise addition of prime exponents with multiplication of positive rationals.

Proof

Unique prime factorization first gives an equivalence between positive natural numbers under multiplication and finitely supported natural prime-exponent ledgers. Passing on both sides to the Grothendieck group localization yields the additive-to-multiplicative group equivalence primeExponentEquivPositiveRational, whose underlying map is therefore bijective. The full proof is checked by the Lean kernel.

Theorem 16.2 (Explicit Linear Step-Bounded Halting for Binary Name Comparison)LEAN ✓

For all binary words , the machine transition compareMachine.step evaluates from compareCfg (some .compare) ⟨none, none, true⟩ a b [] [] output frame to some (compareCfg none ⟨none, none, true⟩ a b [] [] (decide (a = b) :: output) frame) in at most steps: outputting decide (a = b), restoring both unbounded operands and , emptying both backup stacks, and preserving the caller frame and prior output.

Proof

The transition trace decomposes into four explicit phases—bitwise comparison with backup pushing, length-mismatch draining, stack restoration of both operands, and final output emission—whose step counts sum by list induction to at most without any external halting certificate. The full proof is checked by the Lean kernel.

By Theorem 16.1, each positive integer encodes an orthogonal register vector , while each rational gate encodes a signed register update . The divisibility guard is equivalent to : any transition that would create a negative prime exponent (a fractional tear) is silently blocked, while every clean transition feeds Output(1) directly back as the next Input(0').

Furthermore, the exact equivalence between the executable scalar FRACTRAN evaluator and first-enabled-denominator relational semantics, together with determinism, positivity preservation, and idempotent halting stability, is frozen in D5 with strict measurements (strict_omega.axioms: []):

Theorem 16.3 (Scalar FRACTRAN Exact Semantics, Determinism, Positivity, and Halting Stability)LEAN ✓ · Uses axioms

In the Omega.Fractran namespace used by the D5 theorems (strict_omega.axioms: []), each Rule stores positive entries via predecessors (numerator := numeratorPred.succ, denominator := denominatorPred.succ) and an ordered Fractran.Program is an inductive list of rules; each rule tests divisibility of the input by its stored denominator (coinciding with the ordinary integral-product guard for reduced fractions). Write Fractran.step prog n for the left-to-right evaluator, Fractran.Step prog n m for the relational first-enabled-rule transition, Fractran.Halts prog n for the condition that every denominator fails to divide n, and Fractran.run prog k n for the -step iteration of advance prog (which holds n fixed on .none). Then for all prog : Fractran.Program and n, m, m₁, m₂, k, extra : Omega.Nat:

  1. Evaluator–relation equivalence (fractran_step_iff): Fractran.step prog n = .some m ↔ Fractran.Step prog n m;
  2. Transition determinism (fractran_deterministic): Fractran.Step prog n m₁ and Fractran.Step prog n m₂ imply m₁ = m₂;
  3. Positivity invariance (fractran_positive): implies for every step count ;
  4. Idempotent halting stability (fractran_stable): Fractran.Halts prog (Fractran.run prog k n) implies Fractran.run prog (k + extra) n = Fractran.run prog k n for all additional steps extra.
Proof

The first claim proceeds by structural induction on prog: using the exact specification of exactQuotient (returning .some q iff denominator * q = n and .none iff ¬ Divides rule n), each list branch aligns the executable scan step with the relational fire and skip cases in both directions. The second claim sends both relational derivations through the first claim into .some m₁ = step prog n = .some m₂, whence injectivity of Result.some yields m₁ = m₂. The third claim inducts on k: a halted step leaves the positive state unchanged, while a fired rule with denominator * q = s > 0 forces q > 0 and multiplies by numerator = numeratorPred.succ > 0 to yield q * numerator > 0. The fourth claim rewrites run prog (k + extra) n = run prog extra (run prog k n) by induction on extra; since halts_iff gives step = .none and therefore advance s = s, iterating extra additional steps leaves the halted state fixed. Every step lives strictly in OmegaInit and OmegaMath. The full proof is checked by the Lean kernel.

We first lay out the five-prime register ledger of a concrete four-gate program step by step, and then lock its full 15-transition trace and first-halting property inside a zero-axiom kernel-verified theorem.

Example 16.4 (Complete 16-State Trace of from Halting at )

Consider the four-gate rational program acting on the five orthogonal prime registers (the five-prime exponent column below is a hand derivation ledger; the exact 15-transition trace and first halting at are formally certified in Theorem 16.5 below):

Starting from the single power-of-two seed with exponent vector , the program repeatedly trades two units of a lower prime for one unit of the next prime across active transitions (visiting states –), then halts on the 16th scan when none of the four denominators divides :

Step / MilestoneRule FiredState Prime Exponents
()Initial seed
()Rule 4 ()
()Rule 4 ()
()Rule 3 ()
()Rule 4 ()
()Rule 4 ()
()Rule 3 ()
()Rule 2 ()
()Rule 4 ()
()Rule 4 ()
()Rule 3 ()
()Rule 4 ()
()Rule 4 ()
()Rule 3 ()
()Rule 2 ()
()Rule 1 ()
(Halt check)None ()

Because , exactly sixteen factors of cascade upward into one factor of , leaving one irreducible factor of and locking at .

The full 15-transition trace tabulated above—together with the exact assertion that step is the first time the program reaches a halting state at —is no longer merely a hand calculation, but a zero-axiom frozen witness theorem certified directly by the Lean kernel in D5 on the strict backend (strict_omega.axioms: []):

Theorem 16.5 (Exact 15-Transition Trace of from First Halting at )LEAN ✓ · Uses axioms

In the Omega.Fractran namespace used by the D5 theorems (strict_omega.axioms: []), let pOmega be the ordered four-gate program, pOmegaStart () the decimal-encoded initial state, pOmegaFinal the terminal state, and pOmegaTrace the list of fifteen successor states from steps – of Example 16.4. Writing Follows for the inductive chain predicate asserting that every consecutive pair satisfies the first-enabled-rule relation Fractran.Step, the following fourfold conjunction holds:

That is, starting from , pOmega executes the exact 15-transition trace pOmegaTrace, reaches the halting state at step , and never halts at any earlier step .

Proof

Large natural numbers are encoded as least-significant-digit-first decimal lists (decimalValue), paired with a digit-by-digit Euclidean division routine divideDigits satisfying d * quotient + remainder = decimalValue digits (divideDigits_sound). Whenever a rule’s denominator leaves remainder and the target state yields the same exact quotient upon division by its numerator, fire_decimal builds the relational Step firing witness; whenever a nonzero remainder satisfies , uniqueness of Euclidean remainders (skip_decimal) refutes divisibility and certifies skipping that rule. Composing the fifteen step witnesses establishes Follows pOmega pOmegaTrace pOmegaStart; induction along the Follows chain (run_follows) via Step.sound proves run pOmega 15 pOmegaStart = pOmegaFinal; applying skip_decimal to all four denominators () at d22 proves Halts pOmega pOmegaFinal. Finally, induction along any valid trace (running_before_trace_end) shows that every iterate admits an active outgoing Step, so by Step.sound and halts_iff (Theorem 16.3) step returns .some rather than .none, yielding ¬ Halts pOmega (run pOmega k pOmegaStart). Every step stays strictly within OmegaInit and OmegaMath. The full proof is checked by the Lean kernel.

16.2 Non-Abelian -FRACTRAN Spinor Machines and Exact Divisibility Gates

Although scalar FRACTRAN is Turing-complete, it pays a steep algebraic penalty: scalar rational multiplication is commutative, . A single positive integer remembers how many times each prime axis turned, yet erases the causal order in which operations were applied. Simulating call stacks or branching histories therefore forces scalar programs to waste auxiliary flag primes as artificial traffic lights.

Within the three-dimensional spherical geometry of , lifting the state carrier from to an integer quaternion spinor (the Lipschitz ring embedded inside the maximal Hurwitz order ) eliminates this Abelian tax through a dual encoding (MODEL):

  1. Scalar squared norm encodes orthogonal prime registers: by four-square norm multiplicativity , the radial scalar preserves the entire classical FRACTRAN prime-register ledger;
  2. Spherical orientation encodes a native non-Abelian word-order stack: because quaternion multiplication does not commute, distinct operation orders sharing the same squared norm land at distinct spherical orientations, inscribing causal history directly into geometry without external stack pointers or flag primes.
Definition 16.6 (Non-Abelian Ω-FRACTRAN Spinor Machine and Exact Divisibility Gate)

On the integer quaternion lattice , a non-Abelian -FRACTRAN spinor machine (MODEL) consists of a nonzero initial spinor and an ordered gate list with and positive integer divisor (typically the prime squared norm of ). On each beat, the machine scans in order for the first gate passing the coordinatewise exact divisibility gate

emits , and feeds Output(1) directly back as the next Input(0'). Any nonzero remainder modulo silently blocks the gate; if every gate is blocked, the machine halts idempotently at . In particular, when an unwinding gate takes the conjugate spinor with , the identity guarantees zero-remainder reversible unwinding.

Multiplying two norm- primitive spinors and in opposite orders produces two states psiXY and psiYX with identical squared norm but opposite chirality. Passing both through the same modulo- unwinding gate gateUnwindY = (1, 0, -2, 0) separates their history automatically.

Multiplication order determines whether the non-Abelian divisibility gate opens. Both input states psiXY = (1, 2, 2, 4) and psiYX = (1, 2, 2, −4) have squared norm and pass through the same violet right-multiplication gate gateUnwindY = (1, 0, −2, 0). Along the cyan chain on the left, all four coordinates of are divisible by , yielding a clean transition to ; along the magenta chain on the right, leaves nonzero residues modulo , blocking the gate.

Example 16.7 (Hand Separation of psiXY and psiYX Under the Mod-5 Divisibility Gate)

With quaternion units (so , , ), set , , and gateUnwindY with divisor (hand derivation):

  1. Two states sharing squared norm with opposite word order:

    Both have , collapsing to the same number in scalar FRACTRAN.

  2. Clean zero-remainder pass and reversible unwinding for psiXY:

    Every coordinate is divisible by , transitioning cleanly to , and right-multiplying back by recovers reversibly.

  3. Non-Abelian remainder blocking psiYX:

    Since and , the nonnegative residue vector modulo is , slamming the gate shut. Passing psiYX instead to a subsequent gate gateUnwindX yields , dividing by to give . The two gates execute a strict last-in-first-out (LIFO) causal stack without spending a single flag prime.

This hand calculation is not merely an isolated illustration: both the general transition determinism of integer quaternion gates (for any state, rotor, and nonzero integer denominator, a valid divisibility transition fixes a unique next state) and the exact modulo- separation of the equal-norm words psiXY and psiYX under gateUnwindY are formally anchored in the cited D5 proofs on the strict backend (strict_omega.axioms: []) in the frozen module OmegaBargmannHaarHecke.

Theorem 16.8 (Determinism and Mod-5 Word-Order Separation of Non-Abelian Quaternion Ω-FRACTRAN Gates)LEAN ✓ · Uses axioms

Over the integer quaternion type Quad4 used by the cited D5 results (strict_omega.axioms: []), write Step psi A p q for the exact divisibility transition relation sending state psi via rotor A and nonzero integer denominator p to next state q, and write Enabled psi A p for the existence of a valid target state q : Quad4. Then both statements hold:

  1. Determinism of single-step divisibility transitions (quaternion_fractran_deterministic): for all psi, A, q₁, q₂ : Quad4 and p : Int, if p ≠ 0, psi * A = p • q₁, and psi * A = p • q₂, then q₁ = q₂.

  2. Mod-5 word-order separation at equal squared norm (quaternion_fractran_order_separation): for psiX = (1, 2, 0, 0), psiXY = (1, 2, 2, 4), psiYX = (1, 2, 2, -4), and the -unwind gate gateUnwindY = (1, 0, -2, 0) with denominator ,

    so the two opposite-order words share identical squared norm , while gateUnwindY with denominator cleanly transitions psiXY to psiX and rejects psiYX.

Proof

For the first statement, psi * A = p • q₁ and psi * A = p • q₂ yield p • q₁ = p • q₂ by transitivity. Expanding coordinatewise over the zero-axiom integer ring Omega.Int gives four equations , i.e., ; since p ≠ 0 and Omega.Int has no zero divisors, cancelling p in each coordinate proves q₁ = q₂.

For the second statement, direct evaluation gives psiXY.normSq and psiYX.normSq . Expanding the quaternion product for psiXY yields psiXY * gateUnwindY with , establishing Step psiXY gateUnwindY 5 psiX. For psiYX, the product is psiYX * gateUnwindY ; if Enabled psiYX gateUnwindY 5 held, some integer quaternion would satisfy and in particular . Because every integer satisfies either (giving ) or (giving ), no such integer exists, proving ¬ Enabled psiYX gateUnwindY 5. Every step relies solely on zero-axiom integer arithmetic in OmegaInit and OmegaMath. The full proof is checked by the Lean kernel.

Consequently, while interpreting non-Abelian -FRACTRAN as a flag-prime-free native LIFO causal stack remains an architectural MODEL, its core transition determinism and modulo- word-order separation stand as zero-axiom kernel-verified theorems.

16.3 Integer Matrix Ring and Universal Cayley–Hamilton

To link quaternion spinor computation directly with linear algebra and finite-field matrix representations, we define the zero-axiom integer matrix ring by four integer coordinates. For

define the trace , determinant , identity , and adjugate . Without appealing to eigenvalues, algebraic closure, or basis selection, pure integer polynomial expansion exhibits four universal identities over :

  1. Trace cyclicity:

  2. Determinant multiplicativity:

  3. Bilateral adjugate identity: entrywise expansion cancels the off-diagonal terms and and leaves on the diagonal, giving

  4. Universal Cayley–Hamilton identity: observing and multiplying on the left by immediately yields

This two-line polynomial identity connects integer quaternion spinors directly to matrix computation. First, any integer quaternion and its conjugate obey and , satisfying the exact mirror characteristic equation : the matrix adjugate is the exact twin of quaternion conjugation . Second, as formally frozen modulo in Theorem 14.6 of Chapter 14 (where ), the splitting map , sends integer quaternions homomorphically into , matching squared norm with determinant and with trace, and translating the modulo- divisibility gate on psiXY versus psiYX directly into a zero-matrix test.

All four integer matrix laws above—trace cyclicity, determinant multiplicativity, the bilateral adjugate identities, and the universal Cayley–Hamilton identity—are frozen as D5 declarations with strict measurements (strict_omega.axioms: []):

Theorem 16.9 (Trace Cyclicity, Determinant Multiplicativity, Adjugate Identities, and Cayley–Hamilton for 2×2 Integer Matrices)LEAN ✓ · Uses axioms

Over the integer matrix structure Omega.Mat2 used by the cited D5 results (strict_omega.axioms: []), with product A.mul B, scalar multiplication Mat2.scale, identity Mat2.one, zero matrix Mat2.zero, trace A.trace := a + d, determinant A.det := ad - bc, and adjugate A.adj := ⟨d, -b, -c, a⟩, all four identities hold universally for all A, B : Mat2:

  1. Trace cyclicity (trace_mul_comm):

  2. Determinant multiplicativity (mat2_det_mul):

  3. Bilateral adjugate identities (adjugate_identities):

  4. Universal Cayley–Hamilton identity (cayley_hamilton):

Proof

For the first identity, expanding both traces to and matches immediately by integer commutativity and associativity (Int.add_add_add_comm and Int.mul_comm). For the second identity, expanding both and via the four-term distributive lemma expand, cancelling the shared cross term via sub_common_left, and factoring the remaining four terms into completes the proof purely in integer ring arithmetic. For the third identity, matrix extensionality Mat2.ext checks all four coordinates of both and : off-diagonal entries cancel by additive inverses to , and diagonal entries reduce to . For the fourth identity, Mat2.ext reduces the off-diagonal coordinates via and the diagonal coordinates via (and symmetrically with swapped) using only integer distributivity and additive inverses in OmegaInit and OmegaMath. The full proof is checked by the Lean kernel.

Example 16.10 (Explicit Integer Check of the Four Mat2 Ring Laws)

Take and (hand derivation):

  • , ; , ;
  • The products and share and satisfy ;
  • With , Cayley–Hamilton gives with zero division, zero radicals, and zero axioms.
Remark 16.11 (Literature Results and Epistemic Boundaries)

Literature results, not formalized in this book. Classical scalar FRACTRAN and its Turing completeness via two-counter machines are due to J. H. Conway (“FRACTRAN: A Simple Universal Programming Language for Arithmetic,” in Open Problems in Communication and Computation, Springer, 1987, pp. 4–26) and M. L. Minsky (Ann. of Math. 74, 437–455, 1961); arithmetic factorization in the maximal Hurwitz order originates with A. Hurwitz (Nachr. Ges. Wiss. Göttingen, 313–340, 1896). Within this chapter, Theorem 16.1 and Theorem 16.2 are frozen LEAN ✓ declarations on trureturing@dev, while Theorem 16.3, Theorem 16.5, Theorem 16.8, and Theorem 16.9 anchor scalar FRACTRAN exact semantics and halting stability, the exact 15-transition trace of from first halting at , non-Abelian quaternion gate determinism and modulo- psiXY/psiYX word-order separation, and all four Mat2 laws (trace cyclicity, determinant multiplicativity, bilateral adjugate identities, and Cayley–Hamilton) as zero-axiom frozen LEAN ✓ D5 declarations using OmegaInit and OmegaMath (strict_omega.axioms: []); the five-prime exponent decomposition in Example 16.4, the coordinatewise expansion and companion gateUnwindX check in Example 16.7, and the concrete numerical check Example 16.10 are exact integer hand derivations; and interpreting non-Abelian -FRACTRAN as the observer’s native ISA is marked MODEL.

The short film below runs the chapter’s three machines in turn: scalar FRACTRAN, the non-Abelian divisibility gate, and the integer matrix ring.

Film · The Spinor Machine · 2:49

A number remembers how much; an integer quaternion spinor also remembers which came first (2 min 49 s). Scalar FRACTRAN keeps one positive integer and multiplies it by the first fraction that keeps it whole; factored, the five prime registers appear as cyan columns of cells, the update vector of takes two cells from column 2 and adds one to column 3, and the divisibility guard says no register may drop below zero (the magenta dashed cell). A sixteen-row ledger steps beside the registers: runs from through transitions to , with (computed on screen, row for row as in Example 16.4); the green tags refer to Theorem 16.5 and to halting stability in Theorem 16.3. erases order, the flag primes are schematic, and the double encoding of the integer quaternion state is a MODEL (violet). and give and , drawn as a cyan and a magenta imaginary-part arrow of equal squared length ; the gate multiplies on the right by and divides by : the cyan lane gives , all remainders zero, and passes back to , while the magenta lane gives with remainders and is stamped BLOCKED; the gate unwinds to (Example 16.7; the last-in-first-out reading is a MODEL), and the green tag refers to Theorem 16.8. Finally, for and , and share trace , , and is the amber zero matrix (Example 16.10, computed on screen); the green tags refer to Theorem 16.9.

Test the chapter’s scalar rational execution and integer matrix algebra side by side in the interactive lab card below: step through all active divisibility transitions of Conway’s four-gate program from to its halting state , and edit integer entries of live to verify trace cyclicity, determinant multiplicativity, bilateral adjugate identities, and universal Cayley–Hamilton cancellation .

Scalar FRACTRAN trace and Mat2 Cayley–Hamilton lab card (scalar-fractran-and-mat2). Step beat by beat through the active divisibility transitions of carrying to its first idempotent halting state across the five prime registers (Theorem 16.3, Theorem 16.5, Example 16.4), and adjust integer entries of live to verify trace cyclicity , determinant multiplicativity , bilateral adjugate identities , and the Cayley–Hamilton identity (Theorem 16.9, Example 16.10).

Equipped with a native computational language that fuses orthogonal prime registers with a non-Abelian spinor stack, we now step from the instruction set to the self-contained observer as a whole: when every receivable signal lies inside a boundaryless totality, time, space, gravitational gradients, and inference emerge from a single rational fidelity gradient.