# Radix layers: angular independence and height coupling **Paper 0002.3 of the co-rotation programme** - **Kind.** Research paper (`.solveathome/private/research/0002/`), self-contained. - **Sources.** Theorem R of `research-programme.md` §3.3; computations `radix_layer.py`, `paper-verify-radix.json`. - **Calibration.** Theorem 1 and its corollaries are **proved** from the definitions and confirmed by exact arithmetic; Propositions 5–6 are **verified** by finite computation; Conjecture R1 (§5) is **conjectured**, with a pre-registered falsifier and kill condition. Nothing here bounds `G₂`, moves `β₂`, or approaches twin-prime infinitude. - **One-sentence result.** For a tower of Ulam spirals drawn in different radices, the **angular** (residue) content of coprime layers is exactly independent by CRT, while the **height** content — the centred digit imbalance `D_b` — is *not* a function of `n mod b` at all: the layers are coupled through the digit expansions, with extremes attained exactly at `b^k` and `b^k − 1`. Two layers can therefore never be factored into "one angular ingredient times one height ingredient" without proof, which is what Conjecture R1 asserts and what a tower construction must confront. --- ## 1. Why radices, and why they are not new as *arithmetic* The instruction asks for "layers of Ulam spirals each using a different radix". Arithmetically, the radix-`b` layer is the residue sieve mod `b`: knowing which arm of a base-`b` spiral carries `n` is knowing `n mod b` (for a base-`b` digit-reversal spiral) or a base-`b` digit statistic (for the constructions below). The corpus has already closed the *arithmetic* version of this idea: return #893 establishes that every deterministic function of finitely many phases `e(an/q)` is a function of `n mod lcm(q)`, and return #946 sharpens it to a residue-only limitation. So a multi-radix tower cannot, by itself, be a new sieve — **that would be a re-derivation of the wheel**. What is *not* settled by that closure is the **structure of the superposition**: whether the layers of a tower are independent, and in what sense. That is a genuine question, it has an exact answer, and this paper gives it. The answer explains why a tower cannot be treated layer-by-layer, and it supplies the height coordinate that the co-rotation kernel of papers 0002.2 and 0002.4 uses. **Prior art that must be cited here.** The classical wheel — numbers coprime to the first `r` primes — is Stäckel's *Lückenzahlen r-ter Stufe* (Heidelberger Akad. 1917/15), which is exactly the corpus's tile `A_P`; the algorithmic wheel sieve is Pritchard, *Acta Informatica* (1981); and the polar decomposition of the Ulam carpet into 44 disjoint Archimedean spirals carrying the twin-prime lesser members is Porshnev, *Cloud of Science* **4**(4) 2017 (Russian). None of these superposes layers in coprime radices, and none states the angular/height decomposition below. ## 2. The radix-`b` layer and its height Fix an integer `b ≥ 2`. For `n ≥ 1` let ``` digits_b(n) = (d_0, d_1, …, d_{L_b(n)−1}) , d_i ∈ {0,…,b−1}, d_{L−1} ≠ 0 , s_b(n) = Σ_i d_i (the base-b digit sum) L_b(n) = #{digits} (the number of base-b digits) D_b(n) = ( s_b(n) − ((b−1)/2)·L_b(n) ) / √(L_b(n)) (the centred digit imbalance) ``` `D_b` is *centred*: the mean digit is `(b−1)/2`, so `D_b` measures the excess of the digit sum over its expectation, normalised by the square root of the number of digits. `D_b` is the natural **height** of the radix-`b` layer: it is the additive, radix-intrinsic invariant of the digit expansion, and it vanishes exactly when the digits are perfectly balanced. > **Theorem 1 (extremes of the height are exact).** For every `b ≥ 2` and every `k ≥ 1`: > ``` > D_b(b^k) = ( 1 − ((b−1)/2)(k+1) ) / √(k+1) (the minimal value of D_b at digit-length k+1) > D_b(b^k−1) = ((b−1)/2)·√k (the maximal value of D_b at digit-length k) > ``` > In particular `D_b(b^k) < 0 < D_b(b^k−1)` for `k ≥ 2`, and the extremes grow like > `−((b−1)/2)√(k+1)` and `+((b−1)/2)√k` respectively. **Proof.** The base-`b` digits of `b^k` are `(1, 0, …, 0)` with `k` zeros, so `L_b(b^k) = k+1`, `s_b(b^k) = 1`, and `D_b(b^k) = (1 − ((b−1)/2)(k+1))/√(k+1)`. The base-`b` digits of `b^k − 1` are `(b−1, …, b−1)` with `k` digits, so `L_b(b^k−1) = k`, `s_b(b^k−1) = (b−1)k`, and `D_b(b^k−1) = ((b−1)k − ((b−1)/2)k)/√k = ((b−1)/2)√k`. ∎ > **Corollary 2 (the height is maximal at the all-ones string).** For each `k`, `D_b(b^k−1)` is the > largest value of `D_b` over all `n` with `L_b(n) = k`, because the digit sum is then maximal > (`(b−1)k`) — and it is attained at exactly one such `n`. Likewise `D_b(b^k)` is minimal at > digit-length `k+1`. ## 3. The decomposition theorem > **Theorem 3 (angular independence, height coupling).** Let `b, b' ≥ 2` be coprime. > **(i) Angular.** The map `n ↦ (n mod b, n mod b')` is a bijection `Z/bb' → Z/b × Z/b'` (CRT); the > residue (angular) content of layers `b` and `b'` is therefore **exactly independent**. > **(ii) Height.** `D_b` is **not** a function of `n mod b`: for every `b ≥ 2` there exist > `n₁ ≡ n₂ (mod b)` with `D_b(n₁) ≠ D_b(n₂)`. The height of layer `b` depends on the *full* base-`b` > digit expansion. > **(iii) Divisibility.** If `b | b'` then `n mod b` is determined by `n mod b'`: the angular content > of layer `b` is a coarsening of layer `b'`'s. **Proof.** *(i)* CRT. *(ii)* Take `n₁ = 1` and `n₂ = 1 + b`. Then `n₁ ≡ n₂ (mod b)`, while `digits_b(1) = (1)` gives `L = 1`, `s = 1`, `D_b(1) = (1 − (b−1)/2)/1 = (3−b)/2`, and `digits_b(1+b) = (1,1)` gives `L = 2`, `s = 2`, `D_b(1+b) = (2 − (b−1))/√2 = (3−b)/√2`. These are unequal for every `b ≥ 2` (`(3−b)/2 ≠ (3−b)/√2` unless `b = 3`, in which case both sides vanish; for `b = 3` use `n₁ = 1`, `n₂ = 10`: `D_3(1) = (1−1)/1 = 0`, `D_3(10) = (1+0 − 2)/√2 = −1/√2 ≠ 0`). *(iii)* If `b | b'` then `n mod b` is determined by `n mod b'` by reducing the residue. ∎ **The content of Theorem 3 for a tower.** The two halves pull in opposite directions, and that is the point: - the angular layers are *free*: no constraint links `n mod b` and `n mod b'` for coprime `b,b'`, so a tower of residues carries no information beyond the single modulus `bb'`; - the height layers are *coupled*: `D_b` and `D_{b'}` are both functions of the same integer `n`, and each is a function of a *different* digit expansion, so the pair `(D_b(n), D_{b'}(n))` is a genuine two-dimensional statistic — not a product, and not determined by residues. Consequently a tower's angular data can always be collapsed (CRT), while its height data cannot; and **any claim that a tower "factorises" into independent layers must prove something about the joint law of the `D_b`**, which is Conjecture R1. > **Corollary 4 (what the tower is not).** A multi-radix Ulam tower is **not** a new sieve. Its > angular content is the wheel sieve on `lcm(b_i)` (returns #893, #946), and its height content is a > digit statistic that no residue-class argument controls. The tower is therefore a *presentation* > device — useful for the co-rotation kernel and for bookkeeping — and not an arithmetic instrument. ## 4. Numerical verification > **Proposition 5 (verified; exact arithmetic).** `paper-verify-radix.json`, computed for > `b ∈ {2,3,10}` and `k` up to `b^k < 10⁶`: > > | check | result | > |-------|--------| > | Theorem 1 first formula `D_b(b^k)`, all tested `(b,k)` | holds to `< 10⁻⁹` | > | Theorem 1 second formula `D_b(b^k−1)`, all tested `(b,k)` | holds to `< 10⁻⁹` | > | `argmin_{n<2·10⁵} D_b` | `131072 = 2¹⁷`, `177147 = 3¹¹`, `100000 = 10⁵` — exactly `b^k` | > | `argmax_{n<2·10⁵} D_b` | `131071 = 2¹⁷−1`, `177146 = 3¹¹−1`, `99999` — exactly `b^k−1` | > | `min D_b` / `max D_b` | `−1.88562 / +2.06155` (`b=2`), `−3.17543 / +3.31663` (`b=3`), `−10.6145 / +10.0623` (`b=10`) | > | balanced (`D_b ≈ 0`) fraction of `n < 2·10⁵` | `11.13%` (`b=2`), `14.59%` (`b=3`), `2.95%` (`b=10`) | > | CRT bijection for `(b,b') ∈ {(2,3),(3,10),(10,11),(2,5)}` | holds | > | Theorem 3(ii) witness `n₁=1, n₂=1+b` | `b=2`: `D=0.5` vs `0.707107`; `b=3`: `D_3(1)=0` vs `D_3(10)=−0.577350`; `b=10`: `D_10(1)=−3.5` vs `D_10(11)=−4.949747` | > > The extremes are also visible as a trend: `D_2(2^k) = (1 − (k+1)/2)/√(k+1)` decreases through > `0, −0.2887, −0.5, −0.6708, …, −1.9500` at `k = 1,…,18`, while `D_2(2^k−1) = √k/2` increases > through `0.5, 0.7071, 0.8660, …, 2.1213`. > **Proposition 6 (the two layers really are coupled).** For `b = 2` and `b' = 3` (coprime), the joint > value `(D_2(n), D_3(n))` is not a function of `(n mod 6, D_2(n))`: at `n = 1` and `n = 7` the > residues `(1,1)` agree while `(D_2,D_3) = (0.5, 0)` versus `(0.866025, 0.707107)`. This is the > numeric shadow of Theorem 3(ii): the heights see the digit expansions, which the residues do not. ## 5. The open conjecture, with its falsifier and kill condition > **Conjecture R1 (conjectured).** In the twin-admissible set `A_P = {n odd : gcd(n(n+2),P) = 1}` > (paper 0002.4), the height layers of coprime radices are **asymptotically independent**: for > fixed coprime `b, b'` and `X → ∞`, the empirical copula of `(D_b(n), D_{b'}(n))` over > `n ∈ A_P ∩ [1,X]` converges to the product of its two marginals. Equivalently, the joint > distribution of the two centred digit imbalances factorises in the limit. > > **Why it matters.** R1 is the only statement that could make a tower *treatable layer by layer*. > If R1 holds, the co-rotation kernel of a multi-radix tower factorises into one factor per radix plus > a controlled coupling, and the tower becomes a usable computational device. If R1 fails, the > coupling is irreducible and the tower must be treated as a single object. > > **Falsifier (pre-registered).** For `(b,b') ∈ {(2,3), (2,5), (3,10)}` and `X = 10⁶, 10⁷`, compute > the empirical copula on a `16 × 16` grid and a Cramér–von Mises statistic against the independence > copula, **banded by `L_b(n)`** (the digit-length band is the analogue of paper 0002.1's radial > banding: `D_b` is normalised by `√L_b`, so comparing unbanded mixes different `L`). > Declare failure only if the statistic exceeds the 5%-level critical value in **every** band at > **both** scales. > > **Kill condition.** If R1 is refuted, the multi-radix tower is demoted to a presentation device for > a *fixed* radix (the one used by the co-rotation kernel), and TASK E of the programme — the search > for a non-vanishing tower invariant — is closed. If R1 holds, it licenses the layer-by-layer > treatment used in the programme's cost estimates. > **Cost:** ≤ 20 min at `X = 10⁶`; ≤ 1 CPU-h at `X = 10⁷` (digit extraction in numpy). ## 6. What is *not* claimed - **Not claimed:** that the radix layer is a new kind of sieve. Corollary 4 states the opposite, and it agrees with the corpus's own closure (#893, #946) — the tower's angular part *is* the wheel. - **Not claimed:** that `D_b` is arithmetically meaningful for twin primes. `D_b` is a *geometric coordinate* in this programme (the height of the 3-D embedding), and Conjecture R1 is precisely the question of whether its layers decouple. Nothing here connects `D_b` to primality. - **Not claimed:** any bound on `G₂`, any movement of `β₂`, or anything about twin-prime infinitude. - **Known prior art:** Stäckel 1917 (*Lückenzahlen r-ter Stufe* = the tile `A_P`); Pritchard 1981 (wheel sieve); Porshnev 2017 (44 disjoint Archimedean spirals on the Ulam carpet, Russian); Stein–Ulam–Wells 1964 and Stein–Ulam 1967 (the spiral and its diagonals). ## 7. Reproducibility | artefact | content | |----------|---------| | `radix_layer.py` → `radix_layer.json` | the three `b`-tables: `argmin`/`argmax`, extremes, balanced fractions, `D_b(b^k)` sample values, the CRT bijection check | | `paper-verify-radix.json` | the exact-formula check for `D_b(b^k)` and `D_b(b^k−1)` over all tested `(b,k)`, and the Theorem 3(ii) same-residue witnesses | | `key_numbers.py` | supplies `A_P`, used by Conjecture R1's stated domain | **Correction carried into this paper** (full list in `probe-notes.md`): the first draft of the programme stated `D_b(b^k) = −((b−1)/2)√(k+1)`, which is wrong; the exact value is `(1 − ((b−1)/2)(k+1))/√(k+1)`, with companion extreme `((b−1)/2)√k` (not `((b−1)/2)√(k+1)`). The paper states the corrected forms, verified against the measured extremes at `2¹⁷`, `3¹¹`, `10⁵`.