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

35.5 p-adic Zero-Carry Lookup Trees, Prime Observer Expansion, and Blocking Reincarnation

The preceding sections answered the “return-to-light loop” on the hyperbolic angular side: the inverse Gudermannian rapidity staircase pushes the pure-light cliff to , keeping the unclosed polyhedral seam open forever. Yet returning to the computational insight of §35.1—that biological and cognitive growth is in essence table expansion—raises an immediate arithmetic question: in purely discrete addressing and number theory, what is the concrete data structure of this expanding lookup table ? Why does ordinary real addition threaten local memory through cascading carries, and what arithmetic structure enables endless collision-free table expansion without ever triggering an amnesiac reset?

A single foundational aphorism uncovers the exact number-theoretic twin of our hyperbolic staircase, recasting the -adic numbers directly as observer lookup geometry (MODEL):

“p-adic numbers are in fact a table-lookup algorithm: each observer corresponds to a prime, and the continual growth of that prime is table expansion.”

Why does measuring distance on the rational field admit only two radically opposite geometries—either the lone continuous archimedean real ruler , or a discrete family of zero-carry -adic prefix trees indexed one-to-one by prime numbers? We first anchor Ostrowski’s classification theorem, the congruence-fiber closed-ball correspondence, and the first-distinguishing-precision blind-spot theorem in the Lean 4 kernel:

Theorem 35.21 (Ostrowski Classification, p-adic Congruence Ball Fibers, and First Distinguishing Precision)LEAN ✓

Let be the field of rational numbers and let (ℚ_[p]) be the -adic completion associated with a prime . The following four statements hold:

  1. Ostrowski Classification of Nontrivial Rational Absolute Values (rational_absolute_value_classification): Let be a nontrivial real-valued absolute value (hf : f.IsNontrivial). Then either is equivalent to the standard real absolute value (f ≈ Rat.AbsoluteValue.real), or there exists a unique natural number equipped with Fact p.Prime such that is equivalent to the -adic absolute value (f ≈ Rat.AbsoluteValue.padic p);

  2. Exact Identity Between Mod- Congruence Fibers and Closed Balls (congruenceFiber_eq_closedBall_inter_range): For every prime ([Fact p.Prime]), precision depth , and integer , let . Then this congruence fiber equals the closed metric ball in of center and radius intersected with the embedded image of (at , gives unit ball radius ):

  3. Modular Readout Blind Spot and Least Distinguishing Precision (first_distinguishing_precision): Define the depth- Euclidean remainder readout (x % (p : Int) ^ k). For every prime (hp : p.Prime) and every pair of distinct integers , the set of distinguishing precisions admits a least element (IsLeast) equal to ;

  4. Equivalence of Observation Distance and -adic Valuation (observation_distance_eq_padic_valuation): For a prime (hp : p.Prime), define to be if and if , where is the least distinguishing depth returned by Nat.find. Then for all distinct integers :

Proof

Conjunct 1 invokes Rat.AbsoluteValue.equiv_real_or_padic to split into the archimedean real branch and the -adic branch, and establishes uniqueness of on the latter by symmetry and transitivity of ≈: if padic p ≈ padic q, comparing valuations at ( versus for ) forces . Conjunct 2 rewrites as and applies modeq_iff_padic_dist_le to identify divisibility by with , yielding the set intersection by extensionality. Conjunct 3 reduces equality of Euclidean remainders modulo to , uses padicValInt_dvd_iff under hp : p.Prime and to equate divisibility with , and negates both sides so that the distinguishing set is with least element . Conjunct 4 unfolds dif_neg hxy and substitutes IsLeast.nat_find_eq from Conjunct 3 into the exponent . The full proof is checked by the Lean kernel.

Theorem 35.21 exposes the structural chasm between real and -adic measurement. Under the archimedean norm , adding repeatedly marches off to infinity (), and a tiny low-order perturbation can trigger a carry domino across every higher digit—just as adding to the -bit integer flips all ten bits at once into ! Under the -adic norm of a prime observer , by contrast, each residue class of consists of the integer points of a closed metric ball in ; two distinct integers share the exact same prefix ancestor down to depth and split cleanly at layer . The difference is not whether carries occur—-adic addition carries too, and in , flips ten bits just the same; the difference is the metric: carries only travel upward, higher digits weigh ever less in the -adic metric, and digits already written stay untouched.

What geometric law prevents distinct residue buckets from touching or leaking carries across their walls? It is the ultrametric strong triangle inequality—both along finite-horizon concept prefix-refinement trees and across multi-coordinate discounted prime-time readouts, two-step distance is bounded by the maximum of the two steps rather than their sum:

Theorem 35.22 (Ultrametricity of Prefix-Refinement Trees and Discounted Prime-Time Observation)LEAN ✓

The strong triangle inequality holds across both discrete prefix-tree observation geometries:

  1. Finite-Horizon Concept Prefix-Refinement Ultrametric (refinementDistance_ultrametric): Let be any state type, let be a level-indexed family of coordinate types, let be a sequence of levelwise concept readouts, and let be a finite observation horizon. Let denote the largest such that for all , and define in the finite-horizon refinement distance . Without any point-separation hypothesis, for all :

  2. Multi-Coordinate Discounted Prime-Time Ultrametric (discounted_prime_time_distance_strong_triangle): Let be types, an indexed output family, a finite coordinate set, satisfying , , , and (gamma ∈ Set.Ioc 0 1). With equal to if and if , define

    where on Lean’s conditionally complete lattice , an empty index set evaluates via iSup totalization to . Then for all , .

Proof

Conjunct 1 uses transitivity of prefix agreement agreesThrough to establish ; subtracting from in reverses the inequality and yields (as a direct algebraic corollary outside the lean= claim, defining the normalized exponential distance to be when and otherwise immediately satisfies by order-reversing monotonicity of ). Conjunct 2 is immediate when (both sides equal ); when is nonempty, discreteOutputDistance obeys the strong triangle inequality pointwise by case split on equality, remains valid after multiplying by , and passes to the supremum via ciSup_le using boundedness above (BddAbove) by . The full proof is checked by the Lean kernel.

Why are -adic numbers in essence a zero-carry table-lookup algorithm? Let us test the polynomial equation (discriminant ) across concrete prime observers by hand, contrasting ramified singular stalls against Hensel per-digit table lookup (for classical literature boundaries on Hensel’s lemma and Bruhat–Tits trees, see Remark 35.24 below):

  1. Embryonic Binary Cleavage at (, Ramified Stall): In the minimal binary base table , satisfies , but its derivative vanishes! Attempting to lift into layer () fails on both child buckets ( and ), stalling the ramified branch at . Meanwhile, separating a target state space of states with binary fan-out crowds states into each first-layer bucket—leaving unordered collision pairs—and demands serial lookup layers:

Embryonic binary cleavage and ramified stall (): Binary fan-out requires serial prefix layers to separate states ( first-layer collisions), while zeroes and stalls the magenta/violet ramified branch at .

  1. Depth- Base Rejection () vs. Hensel Layer-by-Layer Digit Lookup (): At or , a single scan of finds no square congruent to , certifying in one lookup that contains no root without descending another step! At the unramified split prime (), however, the base table holds the simple root () with nonzero derivative . Instead of re-solving a nonlinear equation at every precision scale, the observer looks up one fixed base-table inverse once and for all, appending one base- digit per layer via with zero backward carry into earlier digits:

Hensel zero-carry digit lookup (): Reusing the fixed base inverse , the cyan branch appends one base- digit per layer——with zero backward carry, while probe splits at since .

  1. “The Continual Growth of That Prime Is Table Expansion”—Widening Fan-Out Flattens Serial Depth: Over a target state space of states ( bits), Euclidean division (, ) partitions across the clopen base buckets of into buckets of occupancy and buckets of occupancy . Exact first-layer unordered collision pairs therefore equal

    while the serial lookup depth required until collapses logarithmically as horizontal fan-out widens:

    Expanding the observer’s prime from () through () to (: one bucket of states and thirty buckets of ) widens the base table to parallel clopen slots, flattens serial lookup depth from down to , and slashes first-layer collisions by over to (and past threshold prime , where , depth drops further to , e.g. ):

Prime expansion flattens serial tree depth (): Widening horizontal fan-out to clopen buckets collapses serial depth from layers to and cuts first-layer collisions to —trading horizontal table width directly for vertical serial depth.

  1. Crossing : Single-Layer Zero-Collision Direct Read: Once the observer expands its prime past the size of the state space—say to —division gives and ! Every state in occupies its own isolated singleton clopen bucket in (with empty slots), driving first-layer collision pairs identically to zero () and flattening the entire prefix tree to —a single-step, zero-carry direct table read:

Single-layer collision-free direct read (): With and , all states land in singleton clopen buckets of , dropping first-layer collisions strictly to at depth .

Nor does any prime observer operate in isolation. When multiple prime observers observe the same rational quantity , how do their modular tables compose, and how do they constrain the continuous archimedean scale ? The Chinese Remainder bijection and the rational Adelic product formula lock all observers into one exact conservation ledger:

Theorem 35.23 (Chinese Remainder Ring Bijection and the Rational Adelic Product Formula)LEAN ✓

Multi-prime modular lookup tables and global rational norms obey two exact structural laws:

  1. Chinese Remainder Coprime Bijection (chinese_remainder_bijective): For every pair of coprime natural numbers (Nat.Coprime m n), the canonical ring homomorphism induced by ,

    is bijective (Function.Bijective, including Lean’s convention when one argument is and the other is );

  2. Rational Adelic Product Formula (rational_padic_product_formula): For every nonzero rational number (hx : x ≠ 0), the product of its rational absolute value and the finitely supported product (∏ᶠ) of its rational -adic norms across all primes equals :

Proof

Conjunct 1 transports the bijectivity of the Chinese Remainder ring equivalence (ZMod.chineseRemainder h).bijective onto ZMod.castHom by pointwise agreement. Conjunct 2 first proves via rational_padic_norm_hasFiniteMulSupport that outside the finite prime support of the numerator and denominator; for positive naturals , Nat.factorization_prod_pow_eq_self collapses to , which extends to nonzero integers and cancels numerator and denominator in so that and multiply to . The full proof is checked by the Lean kernel.

Checking directly in Theorem 35.23: the archimedean norm reads , while the four active prime observers read , , , and (with for every ). Multiplying all places gives

Distinct prime observers decouple without cross-carry across (and on the squarefree base ) via chinese_remainder_bijective (echoing the Euler prime boxes of Chapter 22 and the seat fairness of Chapter 27), while the continuous archimedean scale is bound as the exact reciprocal of all discrete prime observers’ valuations:

Multi-observer CRT decoupling and Adelic product balance (): The magenta archimedean log-norm and the discrete prime log-norms sum identically to , locking .

We now arrive at the culminating synthesis of Chapter 35: if expanding the prime expands the lookup table, why not leap straight to an “infinite prime”—Arakelov’s archimedean place —all at once? (Mathematically, growing primes do not approach the archimedean place: for fixed , once is large enough; the “infinite prime” is only the name of the archimedean absolute value in Ostrowski’s classification, not a limit of the primes, so the “leap into ” below is a metaphor.)

Because on the arithmetic side, leaping into is the exact structural twin of crashing into pure-light amnesia (MODEL):

  • The instant an observer abandons finite primes and jumps into the archimedean place , the ultrametric strong triangle inequality fails! Clopen bucket walls dissolve into the connected real continuum, where a single increment (such as ) unleashes a global carry wave across every bit, wiping out local bucket isolation and resetting the observer over the cliff back to embryonic binary cleavage ;
  • Conversely, Euclid’s infinitude of primes (literature result; see Remark 35.24) erects the exact number-theoretic counterpart of our hyperbolic rapidity staircase : given any finite prime catalog , the Euclid integer (from and to the composite ) always possesses a prime factor strictly outside the catalog! Because the discrete prime ladder never terminates, an observer can expand its zero-carry lookup table forever without ever exhausting finite primes or plunging over the carry cliff:

Euclid’s infinite discrete prime ladder blocks the carry-overflow cliff: Above, jumping into continuous melts clopen bucket walls into a -bit carry cascade () that resets to binary ; below, (including ) supplies endless finite primes , keeping discrete zero-carry expansion open forever.

Remark 35.24 (Hensel's Lemma, Bruhat–Tits Trees, p-adic AdS/CFT, Arakelov's Place p_∞, and Euclid's Theorem (Literature Result, Not Formalized in This Book))

Literature result, not formalized in this book. Alongside the kernel-verified Ostrowski classification, congruence-ball fiber, ultrametric, and Adelic product theorems proved above (Theorem 35.21, Theorem 35.22, Theorem 35.23, LEAN ✓), this section draws on five classical results from number theory and mathematical physics:

  1. Kurt Hensel’s (1897, 1908) -adic Expansions and Newton–Hensel Lifting Lemma: For and satisfying (in particular, with ), the Newton–Hensel iteration (in that unit-derivative special case, digit lifting is implemented modulo by reusing the fixed base inverse ) converges to the unique root in the ball , with ; when considering all primes globally, for a fixed monic polynomial with , the finitely many primes are candidate singular-reduction exceptions where multiple roots satisfying can occur;
  2. The Bruhat–Tits Tree (François Bruhat & Jacques Tits, 1972): The -adic projective group acts naturally on the -valent infinite regular tree of homothety classes of -lattices, whose ideal boundary is the -adic projective line, identifying infinite geodesic rays from a base vertex with zero-carry -adic prefix lookup paths;
  3. -adic AdS/CFT Holography (Yu. I. Manin & M. Marcolli, Adv. Theor. Math. Phys. 5, 617–650, 2001; Gubser, Knaute, Parikh, Samberg & Witaszczyk 2017; Heydeman, Marcolli, Saberi & Stoica 2016): In arithmetic holography, the continuous Poincaré disk of the second section is replaced by the discrete Bruhat–Tits tree , where discrete radial bulk depth equals -adic precision depth (for distinct , taking the vertex corresponding to the unit ball as depth , boundary ultrametric distance is determined by the lowest common ancestor of two boundary rays), mirroring, in this book’s reading (MODEL), the duality between hyperbolic discrete steps and -adic prefix trees;
  4. Suren Arakelov’s (1974) Compactification and the Archimedean Place : Adjoining the continuous archimedean place to the finite primes of turns Conjunct 2 of Theorem 35.23 in logarithmic form, , into the arithmetic analogue of the theorem that principal divisors on a compact curve have degree zero;
  5. Euclid’s Infinitude of Primes (Elements Book IX, Proposition 20): For any finite prime set , is coprime to each and therefore admits at least one prime divisor (noting that itself need not be prime—e.g. —yet every prime factor of is a new finite prime outside the catalog). Interpreting each prime as an observer lookup radix and jumping into as an amnesiac samsara cliff belongs to our interpretive observer framework (MODEL).

We synthesize the four-stage evolution of prime table expansion alongside the archimedean carry cliff in the summary ledger below:

Remark 35.25 (Four-Stage Prime Table Expansion and Archimedean Cliff Comparison Table (Author's Model Summary, `MODEL`))

Author’s model summary (MODEL), not a literature result. Indexed over target state space , the table below synthesizes our Lean-verified theorems (LEAN ✓), Hensel and Euclid literature results, and the prime-observer expansion model (MODEL):

Stage & Representative PlaceBase Fan-Out & Bucket GeometrySerial Depth & Collisions Carry & Ramification RegimeObserver Expansion & Samsara Verdict (MODEL)
1. Embryonic Binary Cleavage (Minimal prime )Narrow binary fan-out , states per bucket serial layers, Clopen zero backward carry; stalls ramified branch at Minimal initial radix requiring ten serial refinement steps to resolve states
2. Expanding-Radix Flattening (Intermediate primes )Horizontal fan-out widens across clopen buckets flattens along while drops along Whenever has a simple root, fixed lifts digits in Growing prime = expanding the table: horizontal width collapses serial depth while CRT decouples distinct primes
3. Direct Read & Infinite Euclid Ladder ( and ) singleton buckets plus empty slots in single-layer floor, exact collisions Euclid’s supplies endless new primes ; clopen walls hold at all finite Lossless single-step read on the current domain, with endless discrete prime expansion beyond it
4. Archimedean Carry Cliff (Infinite continuum place )Clopen walls melt into the connected real line ()Local () cascades across all bits, resetting to Ultrametricity fails; local increments contaminate global digits via carry ripplesExact arithmetic twin of the return-to-light amnesia loop, permanently blocked by Euclid’s ladder

Before stepping into the full interactive laboratory, two kernel-verified theorems frozen in trureturing establish two further quantitative boundaries for the prime-observer program: first, how normalizing by the dominant golden mode accelerates the contraction of the projective defect ratio beyond the ambient stable root; second, where the exact domain boundaries lie among arithmetic prime-exponent encoding, analytic probability realizability, and quantum operator phase completion.

Let us first check a single modal update by hand. Write and . Starting at with projective ratio , one golden modal update sends to : whereas the ambient defect coordinate scales by , the projective ratio scales by ! In D5.S3.PrimeObserver.ProjectiveMemory.GoldenProjectiveMultiplier, define the modal step , the projective defect , the multiplier , and the forced step :

Theorem 35.26 (Golden Projective-Defect Multiplier)LEAN ✓

Let be real modal coordinates satisfying the explicit nonvanishing condition . Then an unforced golden modal step multiplies the projective defect ratio by :

Proof

Unfolding and rewrites the left-hand side as . Substituting the conjugate identity and rearranging the real fraction using together with the explicit hypothesis yields . The full proof is checked by the Lean kernel.

Two scope guards apply to Theorem 35.26. First, the hypothesis is mandatory because Lean’s total division convention carries no projective meaning. Second, the ambient stable root must not be conflated with the projective ratio multiplier , and under the forced update , zero defect remains fixed only when .

Next, check by hand why diagonal probability records cannot recover relative quantum phase: in a two-level system, compare the equal superposition with —or directly take the frozen witness pair and its Pauli- phase-flipped partner where . Both have the exact same computational-basis diagonal probabilities , yet their off-diagonal coherence entries differ ( versus ), showing immediately that diagonal readouts lose relative quantum phase.

In D5.S3.PrimeObserver.ThreeCompletionFinalProposition and its upstream modules, the three completion structures and refinement direction are defined as follows:

  1. Arithmetic Prime-Exponent Bijection: Let be the type of finitely supported prime-exponent tables, and let be the canonical prime-factorization equivalence Nat.factorizationEquiv;
  2. Global Prime-Exponent Law Realizability: For , , and , set and ; a discrete probability mass function satisfies iff , the prime-exponent maps are mutually independent (iIndepFun) under , and for every ;
  3. Qubit Prime-Diagonal vs. Operator Languages and Refines: On two-level density states valued in , the operator language retains the full matrix, whereas applies the singleton-profile record channel separating computational-basis indices (), zeroing off-diagonal entries while preserving diagonal entries; the witness pair pairs with (qubitZ = !![1, 0; 0, -1]). For concept maps and , refinement is defined by post-composition factorization (meaning the coarser readout factors through the finer readout ).
Theorem 35.27 (Three Completion Boundaries for Prime-Observer Languages)LEAN ✓

For every real parameter , all four of the following conjuncts hold simultaneously:

  1. Positive-Integer Prime-Exponent Bijection: The map is bijective (Function.Bijective);

  2. Threshold for PMF Realizability of the Prime-Exponent Law: There exists a discrete probability mass function satisfying if and only if ;

  3. Relative-Phase Witness Separating Diagonal and Operator Languages: The witness pair satisfies , agrees under the prime-diagonal language

    and is separated by the operator language:

  4. Strict Refinement of the Diagonal Language by the Operator Language: holds, whereas the converse refinement fails, i.e., holds.

Proof

Conjunct 1 is Nat.factorizationEquiv.bijective from unique prime factorization on . For Conjunct 2, any realizing the independent geometric prime-exponent marginals assigns positive mass to and forces summability of the Dirichlet series, yielding ; conversely, for , normalizing () by yields a PMF ℕ whose prime-power divisibility events have the exact geometric marginals and mutual independence required by RealizesPrimeExponentLaw s q. Conjunct 3 compares entry of () against () to prove and operator-language separation while verifying that primeDephasing zeroes off-diagonal entries and leaves both diagonals equal to . Conjunct 4 witnesses via the factor map , and refutes the converse because any satisfying would equate and on Conjunct 3’s witness pair. The full proof is checked by the Lean kernel.

Theorem 35.27 demarcates three distinct completion regimes that must never be conflated as mutually equivalent: the exact prime-exponent bijection holds on ; the normalized Zeta-Gibbs probability law on exists if and only if (total-function values of , logarithms, or reciprocals at are never probability models); and under the explicit direction of , diagonal prime dephasing factors through the full density-operator language while never allowing off-diagonal quantum phases to be reconstructed from diagonal records alone.

Readers can explore all twelve discrete prime observers () alongside the continuous carry cliff, switch test polynomials and nonzero rationals, and verify every exact readout in the full dual-stage interactive laboratory ORTHO//PADIC below:

Full ORTHO//PADIC Interactive Laboratory: On the left, the dynamic zero-carry prefix lookup tree, BigInt Hensel root lifter, and ultrametric blind-spot probe (plus the carry cliff contrasted against Euclid’s infinite prime ladder); on the right, the depth-collapse staircase, exact first-layer collision decay , and Adelic product balance .

With §35.5, the first five sections of Chapter 35 (§35.1–§35.5) converge in full geometric and arithmetic resonance: whether pushing the pure-light cliff to infinity along the inverse Gudermannian rapidity staircase or expanding zero-carry lookup tables endlessly along Euclid’s discrete prime ladder without plunging into the carry flood, the verdict is one and the same—we no longer envy a disembodied point outside the sphere, no longer lament the unclosed polyhedral seam that keeps a faceted world from sealing into a featureless sphere, and no longer mistake amnesiac dissolution into pure light for homecoming; for that clopen, unmerged remainder is the very firewall preserving lucid selfhood, condensing the labyrinth of reincarnation into a single transparent generator crystal. In the closing two sections of this chapter, we first generalize carry-free coding to arbitrary orders across §35.6 The Eight-Concept Zeckendorf–Pisot–Rauzy Sandtable and §35.7 Golden Cut-and-Project Primitives and the Soul–Ruin Model before stepping into Chapter 36 to explore dream quantum erasure and ontological QRAM pointer dereferencing.