38.14 Conway’s FRACTRAN and the Three-Dimensional Non-Abelian Ω-FRACTRAN Observer Language: Prime Orthogonal Registers, 0 · 1/2 · 1 Fraction Gates, p = 5 Ramanujan Spinor Stacks, and Zero-Tear Anti-Hallucination Automata
“Since everything is rational numbers, we can program in FRACTRAN—or rather, this is the native language of the observer.”
Once §38.13 axiomatized the observer as a port-free, self-contained pentad atop Chapter 32’s infinity-free finite rational mathematics (§32.7) and zero-axiom Lean 4 foundation OmegaMath (§32.8), a foundational question in computational ontology immediately follows: if every internal state, fidelity reading, and causal-jet update of the observer is a pure rational number, what is the native machine language in which an observer thinks and crystallizes structure?
The answer is extraordinary: FRACTRAN, the minimalist rational programming language discovered by John Horton Conway in 1987, is no mere mathematical curiosity—it is literally the one-dimensional Abelian squared-norm projection of the pure rational cosmos; and the moment we lift its carrier from positive scalar integers to four-component integral spinors on the ternion three-sphere , the resulting non-Abelian sheds every commuting flag-prime tax to become the native self-referential instruction set architecture of the observer (Observer ISA, MODEL)!
38.14.1 Why FRACTRAN Is Naturally the Internal Language of the Observer
In a classical von Neumann computer, linear memory addresses, binary data words, and the program counter (PC) are split into three separate hardware mechanisms, and any bit overwrite can clobber memory unconditionally without checking global topological closure. In Conway’s classical FRACTRAN (literature context in Remark 38.48), by contrast, the entire state of the computational universe collapses to a single positive integer , while the entire law of physics or observer mind collapses to an ordered list of reduced positive fractions:
On each tick of the master cadence, only one primitive executes: scan from left to right, find the first fraction whose product is an exact integer, set and restart at the head of the list; if no fraction divides cleanly, halt immediately. Examined under the observer pentad and Chapter 39’s mother axiom , three exact mathematical structures lock into one-to-one correspondence:
38.14.1.1 The Fundamental Theorem of Arithmetic as an Orthogonal Prime Register Bank
How can a single integer hold an observer’s entire internal world without loss? In the pinned trureturing kernel, the Free Commutative Monoid Theorem on Primes pnat_free_comm_monoid_on_primes, Unique Rational Recovery from Sign and Finite -adic Valuations rational_recovered_from_sign_and_finite_valuations, Artin’s Rational Adelic Product Formula rational_padic_product_formula, and -Linear Independence of Prime Logarithms prime_log_rational_independence (LEAN ✓) lock the exact bijection
As established in §31.4 and §31.5, the primes act on the Adelic solenoid as mutually orthogonal primitive closed loops (MODEL). Each exponent is the nonnegative topological winding count along the -th prime axis; whenever any finite register bank saturates, prime_axis_escape (LEAN ✓) guarantees a fresh orthogonal prime axis dividing , while even a single unbounded prime multiplication/division counter strictly transcends every finite-state automaton (no_finite_dfao_for_exact_prime_division, LEAN ✓). Reading and updating state require zero linear memory addresses—multiplying by a rational fraction increments and decrements winding charges across orthogonal prime axes in parallel!
38.14.1.2 A Single Fraction Encapsulates the 0 · 1/2 · 1 Causal Ladder
Even more remarkably, the kernel-verified Signed Prime Ledger to Positive Rationals Isomorphism signed_prime_ledger_equiv_positive_rationals and Prime-Ledger Positive/Negative Split and Nonnegativity Criterion prime_ledger_direction_and_groupification (paired with the physical quotient-remainder machine theorem divMachine_positive_correct, LEAN ✓) prove that every fraction instruction corresponds bijectively to a finitely supported signed prime-counter update , and lands back in NaturalPrimeLedger () if and only if for every prime . Across the {0, 1/2, 1} pure rational causal ladder (§39.6), a single fraction encapsulates a complete causal beat (MODEL):
- Denominator (
0· Past Precondition Anchor): Divisibility verifies that the observer’s crystallized structure core already holds every past winding required by the denominator; - Rational Ratio and List Priority (
1/2· Present Relational Bridge & Attention Priority): The ratio couples distinct prime channels, while the left-to-right ordering literally implements observer attention priority—the highest-priority resonant rule captures the current comparison tick; - Integer Closure (
1 ↦ 0'· Future Crystallization as Next Input & Anti-Hallucination Gate): Any candidate with leaves an unclosed fractional tear (mod ≠ 0) across prime loops and is silently skipped, blocking unverified leaps at the hardware level; once a rule closes with zero remainder, the new integer feeds straight back as next beat’s0-order state with zero external writeback port, halting idempotently when no rule matches (mirroringfinite_record_pinching_idempotent,LEAN ✓).
Orthogonal Prime-Winding Registers and 0 · 1/2 · 1 Rational Fraction Gate (prime-orthogonal-register-adder). The 3D stage unfolds into cyan orthogonal prime-winding pillars as the amber attention scan beam fires the single-fraction adder across 72 → 108 → 162 → 243 = 3^5 in three remainder-free beats before halting idempotently at the magenta fractional tear .
Consider Conway’s 6-fraction multiplier:
Initialized at (for , ), pure divisibility scanning without loops or memory pointers halts in exactly 18 beats at the pure prime power (manual derivation / NUM)!
Conway’s 6-Fraction Multiplier Halting in Exact 18 Beats (conway-multiplier-18-beat-closure). Stepping from tracks the cyan auxiliary counter prime and magenta state-flag primes cycling and draining to zero, halting cleanly on beat 18 at cyan .
38.14.1.3 Endogenous Prime Crystallization and trureturing Macro-Lemma Telescopy
Self-contained crystallization shines even brighter in Conway’s 14-fraction PRIMEGAME (Remark 38.48):
Starting from the single seed with zero external input, crystallizes at beat 19, at beat 69, at beat 281, at beat 710, and at beat 2,375—enumerating the entire prime spectrum purely from fixed rational relations!
Moreover, because states and instructions inhabit the same rational domain (homoiconic code-as-data anchored in Kleene’s fixed-point theorem code_fixed_point, LEAN ✓), proving an -step deterministic macro-lemma inside the observer’s DAG (§38.13) compiles the multi-step chain—subject to its exact prefix-product divisibility guard and priority non-interference , retaining catalyst primes that are divided first and multiplied back later (such as in with ) so every intermediate step remains tear-free (manual derivation)—into a single geodesic shortcut rule (MODEL), collapsing hundreds of exploratory ticks into one direct jump!
Conway’s 14-Fraction PRIMEGAME Prime Crystallization and Macro-Lemma Shortcut (primegame-self-crystallization-and-lemma-shortcut). Traces crystallizing at beats 19, 69, 281, 710 alongside guarded macro-lemma telescopy.
38.14.2 The Decisive Dimensional Lift: From Scalar FRACTRAN to Three-Dimensional Non-Abelian
38.14.2.1 The Abelian Commutativity Tax and Word-Order Erasure Theorems
Viewed from the three-dimensional vantage of , why must Conway’s scalar PRIMEGAME burn 710 beats merely to reach , stuffing 6 artificial state-flag primes () into its 14 fractions as traffic-light pointers?
Two frozen theorems in trureturing pinpoint the exact algebraic obstruction (LEAN ✓):
- Prime-Word Occupation Descent Criterion and History Non-Reconstructibility (
order_descent_criterion,no_prime_history_reconstruction): Sequential executionrunWord update wordfactors through the commutative prime multisetMultiset Prime(i.e. ordinary integer factorization ) if and only if all prime updates commuteCommute (update p) (update q); and no map can ever reconstruct ordered prime historiesList Nat.PrimesfromMultiset Nat.Primes()! - Binary Word-Code Injectivity iff Non-Commuting (
injective_iff_noncommuting): The substitution code is injective (zero history collision) if and only if the two generators fail to commute, !
Because scalar rational multiplication commutes (), a scalar integer records how many turns each prime axis took, yet is completely blind to which axis turned first and which turned second! Lifting the state carrier to the four-component integral spinor lattice—the Lipschitz ring or maximal Hurwitz order (anchored on exists_unitQuaternion_equiv and quaternionModel_noncommutative, LEAN ✓)—and upgrading instructions to ordered rational ternion right-fractions
firing the first rule with (or ) eliminates the flag-prime tax at one stroke, birthing (MODEL)!
38.14.2.2 Exact Audit: A Single Prime Carries Its Own Non-Abelian Causal Stack
By Jacobi’s four-square theorem and the Lubotzky–Phillips–Sarnak construction (LPS 1988, Literature in Remark 38.48, whose optimal Ramanujan spectral bound is unconditionally proved via Eichler–Deligne weight- cusp-form bounds), every odd prime splits under the primary congruence normalization into non-commuting primitive integral spinors! At , these prime rotors are (manual derivation):
each of exact prime squared norm (projective ray overlap ). Now compare two states composed in opposite temporal order:
- State XY ( then ): ;
- State YX ( then ): .
Both carry the exact same scalar norm squared —indistinguishable as 25 to scalar FRACTRAN! Yet under the two-instruction table
right-reduction separates causal order automatically (manual derivation / NUM):
-
On : Beat 1 tests ,
Beat 2 skips (), fires to reach , and halts—unlocking in 2 beats via
Q₁ → Q₂! -
On : Beat 1 tests (using ),
Fractional tear exposed— is silently skipped, firing to on Beat 1 and to on Beat 2—unlocking in 2 beats via
Q₂ → Q₁with zero auxiliary flag primes! Taking squared norms projects the radial budget straight back onto Conway’s scalar FRACTRAN (manual derivation).
Three-Dimensional Non-Abelian Word-Order Discriminator (nonabelian-p5-lps-word-order-stack). Flipping Ψ_XY = (1,2,2,+4) and Ψ_YX = (1,2,2,-4) (both of scalar squared norm 25) on the violet sphere shows cyan lattice closure unlocking Ψ_XY along Q₁ → Q₂ in 2 beats, while Ψ_YX exposes the magenta fractional tear (1, -6/5, 0, -8/5) ∉ ℤ⁴ at Q₁ and unlocks along Q₂ → Q₁.
38.14.3 Master Comparison Across Three Computational Paradigms
We summarize the structural contrast across von Neumann binary machine code, Conway’s scalar FRACTRAN, and three-dimensional non-Abelian (MODEL synthesis):
| Core Dimension | Von Neumann Binary ISA | Conway Scalar FRACTRAN | Spinor |
|---|---|---|---|
| Physical State Carrier | Flat linear byte array external PC / SP | Single positive integer | Integral spinor (or : norm carries primes, direction carries phase) |
| Elementary Instruction | Irreversible Boolean gates & address jumps | Ordered positive fractions | Ordered rational ternion right-fractions |
| Firing & Anti-Hallucination Gate | Unconditional bit overwrite | Scalar integrality | Four-integer lattice closure (zero fractional tear) |
| Word-Order & Syntax Memory | External stack pointer SP | Commutative multiplication erases history (no_prime_history_reconstruction); burns flag primes | Non-commuting prime rotors (injective_iff_noncommuting); carries stack branches |
| Observer-Theory Role | Extrinsic open-loop tool | 1D radial squared-norm shadow () | Native self-referential observer ISA (attention priority spherical geodesic inference) |
Three Computational Paradigms and Zero-Tear Anti-Hallucination Audit (three-paradigm-isa-and-zero-tear-audit). Contrasts unconditional binary bit-overwrites, scalar FRACTRAN’s 710-beat flag-prime overhead to , and non-Abelian ’s 2-beat rotor-stack resolution and idempotent halting.
38.14.4 Formal Definition, Sixteen Frozen Theorems, Literature Boundaries, and Beat-by-Beat Audit
We consolidate the two-tier rational observer language, sixteen frozen kernel theorems, and exact program traces:
Under and , define the two-tier rational self-referential transition system of an observer (MODEL):
- One-Dimensional Scalar Projection (Classical FRACTRAN): Given in reduced form, the single-beat operator maps to at the least index with , and fixes (idempotent halt) when no denominator divides ;
- Three-Dimensional Non-Abelian Spinor Layer (): On the integral quaternion lattice , given , the single-beat operator maps to at the least index achieving lattice closure, fixing when none closes; its squared norm satisfies .
Across prime-factorization ledgers, automata and computability, quaternion ternary geometry, and observer conditioning algebra, the following sixteen propositions hold:
- Signed Prime-Ledger Isomorphism, Nonnegativity Guard, and Free Commutative Monoid on Primes (
signed_prime_ledger_equiv_positive_rationals,prime_ledger_direction_and_groupification,pnat_free_comm_monoid_on_primes):primeExponentEquivPositiveRational : (Nat.Primes →₀ Int) ≃+ Additive NNRatˣis bijective; every signed prime ledger splits asforward - inverseoverNaturalPrimeLedger, and lies in the image ofnaturalLedgerCast(NaturalPrimeLedger) iff ; and under multiplication is isomorphic to the free commutative monoid onNat.Primes, with for all and ; - Rational Valuation Recovery, Adelic Product Formula, Prime-Log Independence, and Prime-Axis Escape (
rational_recovered_from_sign_and_finite_valuations,rational_padic_product_formula,prime_log_rational_independence,prime_axis_escape): Every nonzero rational is uniquely determined by its sign and finite -adic valuation profile and obeys ; onNat.Primes, the family is -linearly independent; and for every finite prime set , admits a prime divisor ; - Impossibility of Finite-Automaton Prime Division and Physical Quotient-Remainder Correctness (
no_finite_dfao_for_exact_prime_division,divMachine_positive_correct): For every prime and , on an unbounded prime register initialized atregister.start = 1supportingtrue ↦ n * pand guardedfalse ↦ n / p(when , elsenone), exact divisibility over legal words cannot be computed by any finite-state DFAO; whereas for any word width and with and , the physical divider machine halts atdivDoneCfgin steps with -bit , remainderm % d, and -bit quotientm / d; - Commutative History Erasure vs. Non-Commuting Injectivity, Noncommutative Unit-Quaternion Isomorphism, Kleene Self-Hosting Fixed Point, and Record-Pinching Idempotence (
order_descent_criterion,no_prime_history_reconstruction,injective_iff_noncommuting,exists_unitQuaternion_equiv,quaternionModel_noncommutative,code_fixed_point,finite_record_pinching_idempotent):runWord update worddescends toMultiset Primeiff all prime updates commute, and no function recovers allList Nat.PrimesfromMultiset Nat.Primes; over any alphabet , binary two-word coding on is injective iff ; everyHasFeatureRank 5,ReadingComplete, noncommutative, chain-connected, zero-touching ternary comparison structure admits for every a structure-preserving bijection with (preservingquaternionModel’stri(x,y,z) = x y⁻¹ zandκ(x,y) = (1 + ⟨x,y⟩)/2, whose ternary transfer is noncommutative); every computable code transformer admits with ; and on finite index types[Fintype n] [Fintype κ], unread record pinching across complete pairwise-orthogonal self-adjoint idempotents (, , ) is idempotent.
Group 1 follows from unique prime factorization between finitely supported integer functions and NNRatˣ together with positive/negative part decomposition; Group 2 uses coprime prime-power recovery, archimedean/-adic norm cancellation, prime-power uniqueness, and Euclid’s primorial-plus-one construction; Group 3 uses finite-state pigeonhole pumping and Euclidean division invariants; Group 4 combines two-letter commutation witnesses, Fine–Wilf word-length induction, rank-five Gram quaternion embedding, partial-recursive diagonalization, and orthogonal projector idempotence. The full proof is checked by the Lean kernel.
Literature results, not formalized in this book. Scalar FRACTRAN, the 14-fraction PRIMEGAME, and Turing completeness via two-counter simulation 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; two-counter universality in M. L. Minsky, Ann. of Math. 74, 437–455, 1961). For positive integers , the four-square count is due to C. G. J. Jacobi (1829), and left/right Euclidean division and prime factorization up to units in the maximal Hurwitz order are due to A. Hurwitz (Nachr. Ges. Wiss. Göttingen, 313–340, 1896; while the Lipschitz subring is not a PID, odd primes single out primary generators in under ). Reducing those generators modulo an odd prime into yields the finite -regular LPS Cayley graphs , whose optimal Ramanujan spectral bound was proved unconditionally by A. Lubotzky, R. Phillips, and P. Sarnak (Combinatorica 8, 261–277, 1988) via weight- modular-form Ramanujan–Petersson bounds (M. Eichler, 1954; P. Deligne, Publ. Math. IHÉS 43, 273–307, 1974), without assuming unresolved higher-rank automorphic GRH.
We audit every integer and rational step across the four programs (manual derivation / NUM):
- Single-Fraction Adder : , halting after
3beats since ; - Conway’s 6-Fraction Multiplier : From , the
18states and 1-based rule indices are:- Beats
0–6:36 →[5] 198 →[1] 2730 →[2] 2310 →[1] 31850 →[2] 26950 →[3] 2450; - Beats
6–12:2450 →[4] 1050 →[4] 450 →[5] 2475 →[1] 34125 →[2] 28875 →[1] 398125; - Beats
12–18:398125 →[2] 336875 →[3] 30625 →[4] 13125 →[4] 5625 →[6] 1875 →[6] 625 = 5⁴(halting at beat18!);
- Beats
- Conway’s 14-Fraction
PRIMEGAME: From (beat0), pure powers appear at beat19(), beat69(), beat281(), beat710(), and beat2,375(); - Non-Abelian Discriminator :
- ():
Ψ_XY · Q₁ = (1, 2, 0, 0) ∈ ℤ⁴(Q₁)(1, 2, 0, 0) · Q₁ = (1/5, 2/5, -2/5, -4/5) ∉ ℤ⁴(skip),(1, 2, 0, 0) · Q₂ = (1, 0, 0, 0) ∈ ℤ⁴(Q₂) Halt (Q₁ → Q₂,2beats); - ():
Ψ_YX · Q₁ = (1, -6/5, 0, -8/5) ∉ ℤ⁴(fractional tear skipped),Ψ_YX · Q₂ = (1, 0, 2, 0) ∈ ℤ⁴(Q₂)(1, 0, 2, 0) · Q₁ = (1, 0, 0, 0) ∈ ℤ⁴(Q₁) Halt (Q₂ → Q₁,2beats).
- ():
An observer needs no floating-point matrices, no infinite limits, and not even external memory addresses or a program counter—built upon orthogonal prime loops and attention-ordered rational rotor fractions, whatever closes without remainder becomes reality and feeds back as next beat’s input, while whatever tears into fractions stays silent!
In the complete 3D laboratory below, step through the 18-beat Conway multiplier halting cleanly at , watch PRIMEGAME crystallize primes out of (for the zero-slot hardware audit, bounded-winding Vernier resolution, and register cap , see §31.8), and flip Ψ_XY ↔ Ψ_YX on the fourth card to watch spherical rotors separate causal order via fractional tears (for the minimal two-tier 64-hexagram bilateral rotor encoding pairing the primorial horizon with 4 chiral Hurwitz gates, see §38.18): with the observer’s port-free pentad and native zero-error language in hand, the next section (§38.15 Static Canvas and the Legless Sphere Observer) performs a pivotal reference-frame inversion—revealing that neither mountains nor time ever move, and that only the legless ternion-sphere observer focus rolls down the immutable holo-canvas.
Complete interactive laboratory: switch between the “Observer Native Rotor Lens” and “Classical Scalar FRACTRAN & Register Machine Contrast (MODEL)” lenses (also mirrored beside the tour bar on narrow and embedded frames), running five progressive cards—the (3/2) orthogonal prime-register adder, Conway’s 6-fraction multiplier 2²·3² → 5⁴ = 625 (18 beats), Conway’s 14-fraction PRIMEGAME with guarded macro-lemma telescopy, the 3D non-Abelian LPS rotor word-order discriminator (Ψ_XY ↔ Ψ_YX), and the three-paradigm anti-hallucination audit—with single-beat debugging, auto-cadence execution, XY / YX order flipping, and two strip plots tracking prime-winding spectra and scalar flag-prime overhead versus 2-beat rotor unlocking. Sixteen frozen LEAN ✓ declarations, ARGUED Conway–Minsky–Hurwitz–LPS literature, MODEL observer-language synthesis, and NUM BigInt traces are stratified in the evidence panel and theory drawer.