// ============================================================================ // NATAL@5 VARIANCE — exact CRT pair-correlation for the comb {11,17 mod 30} // (2026-08-14, the variance avenue, step 1) // ============================================================================ // The Natal@5 survivor pattern at scour depth y is the CRT set // A(r) = 1 iff r ≡ 11 or 17 (mod 30) and r mod p ∉ {0, p−2} ∀ 7 ≤ p ≤ y. // Density: δ(y) = (2/30)·∏_{7≤p≤y}(p−2)/p. // Pair correlation (EXACT, factors by CRT): // J₅(d) = (ρ₃₀(d)/30) · ∏_{7≤p≤y} ρ_p(d)/p // ρ₃₀(d) = 2 if d≡0, 1 if d≡±6, 0 otherwise (mod 30) ← the comb's teeth // ρ_p(d) = p−2 if p|d; p−3 if d≡±2 (mod p); p−4 otherwise. // Two natal slots can only sit at gaps ≡ 0, ±6 (mod 30). // // Over a uniformly random rotation t of a length-L window in the deep tile // (period ∏_{p≤y} p): E[N] = δL, Var[N] = Σ_{|d|p>=7); } function largestPrimeLE(n){ const ps=primesUpTo(n); return ps[ps.length-1]; } function delta(ps){ let d=2/30; for(const p of ps) d*=(p-2)/p; return d; } function J5(d, ps){ const m30=((d%30)+30)%30; let f; if(m30===0) f=2/30; else if(m30===6||m30===24) f=1/30; else return 0; for(const p of ps){ const m=((d%p)+p)%p; if(m===0) f*=(p-2)/p; else if(m===2||m===p-2) f*=(p-3)/p; else f*=(p-4)/p; } return f; } // Var over rotations, window length L, scour depth y. J symmetric in d. function varianceFormula(y, L){ const ps=midPrimes(y), del=delta(ps); let S = L * J5(0, ps); for(const start of [6,24,30]){ for(let d=start; dmax)max=N; N+=A[(t+L)%P]-A[t]; } const mean=sum/P, varB=sumSq/P-mean*mean; const {E,Var}=varianceFormula(y,L); log(` brute: mean=${mean.toFixed(6)} var=${varB.toFixed(6)} min=${min} max=${max} empty=${empty}/${P}`); log(` formula: E=${E.toFixed(6)} Var=${Var.toFixed(6)} match=${Math.abs(mean-E)<1e-9 && Math.abs(varB-Var)<1e-6}`); } // ---------------- Part C: the anchored window (OUR tile) ---------------- log('\n--- C. Anchored window [0,W): actual count, ratio to E, z-score ---'); log(' x | anchored actual | E[N] | actual/E | z = (act-E)/sigma'); for(const x of LEVELS){ const {W,y,E,sig}=results[x]; const act=anchoredCount(W,y); log(` ${String(x).padStart(2)} | ${String(act).padStart(7)} | ${E.toFixed(1).padStart(9)} | ${(act/E).toFixed(4)} | ${((act-E)/sig).toFixed(2)}`); } log(' (x=17 anchored must equal 3099 = the march result — self-check.)'); // ---------------- Part D: Monte-Carlo rotations @11, @13 ---------------- log('\n--- D. Monte-Carlo random rotations (CRT residue sampling) ---'); function mc(x, nSamples, seed){ const W=WIDTHS[x], y=largestPrimeLE(Math.floor(Math.sqrt(W))); const ps=midPrimes(y); let s=seed>>>0; const rnd=()=>{ s^=s<<13; s>>>=0; s^=s>>>17; s^=s<<5; s>>>=0; return s/4294967296; }; const combJ=[]; for(let t30=0;t30<30;t30++){ const l=[]; for(let j=0;j 0.347 (x = 7 -> 19). The natal // pattern is ~3x more uniform than random, but the ratio DRIFTS with level // (same phenomenon as the 06-variance drift; not a universal constant). // 3. THE ALMOST-ALL THEOREM (per level, verifiable computation): the fraction // of rotations of a width-W window (in the depth-y tile) with ZERO Natal@5 // survivors is <= Var/E^2 = 1.0e-4 at @17, 8.4e-6 at @19, falling steadily. // No empty window has EVER been observed (full scan @7, 320k samples // @11/@13; minima 24 vs E=39 and 264 vs E=304). In words: the Scour // annihilates Natal@5 in at most a vanishing sliver of rotations. // 4. DISTANCE TO ZERO: E/sigma = 100 sigma (@17), 345 sigma (@19), growing // like sqrt(3E). Zeroing a random rotation is a >=100-sigma event; the // Chebyshev certificate (1e-4) is astronomically weaker than the truth. // 5. THE ANCHORED ESCAPE, NOW MEASURED (the honest centerpiece). Our actual // tile is the rotation anchored at 0. Its z-score marches // +1.05, +1.81, +0.28, -4.50, -25.52 (x = 7, 11, 13, 17, 19) // ratio to ensemble mean: 1.156, 1.146, 1.009, 0.955, 0.926. // The anchored window is NOT a typical ensemble member: it carries a // deterministic PROPORTIONAL bias (the anchored/Mertens drift — the // Unification-Law integral over u in (0,2]), while sigma/E shrinks like // 1/sqrt(E). Hence z -> -infinity. PREDICTION (Unification Law): the // anchored ratio converges to e^{2gamma}/4 = 0.79305... — testable at @23 // (anchored sieve is feasible; the variance sum needs a faster method). // 6. WHERE THE WALL STANDS, EXACTLY. (a) The theorem in (3) is measure- // theoretic; the anchored tile is one point, and (5) shows it is a // diverging-z OUTLIER of the very ensemble the theorem governs — so no // almost-all bound, however sharp, can ever reach it by measure alone. // (b) The saving structure: the anchored bias is bounded-RATIO, not // bounded-count — 0.926 x 345 sigma ~ 320 sigma above zero at @19; the // anchored margin still explodes. (c) But "the anchored ratio stays // bounded away from 0 forever" is exactly Hardy-Littlewood-strength input // — the parity wall in variance clothing. The variance program proves // everything about the ensemble and, by measuring the anchored drift, // proves it can say nothing final about the anchor. The per-prime cap // program (natal-cap-01..10) attacks the anchored tile directly instead. // ============================================================================ // // --------------------------------------------------------------------------- // FIGURE PROVENANCE (added 2026-08-20, readings-traceability pass). What every // figure in the readings above that the OUTPUT block does not contain // verbatim actually is. No number above was changed. // // ROUNDINGS of a value this file's own OUTPUT prints (printed value first): // the empty-window Chebyshev bounds 1.01e-4 at @17 and 8.38e-6 at @19, // quoted in reading 3 as 1.0e-4 and 8.4e-6. // E/sigma 99.7 at @17, quoted in reading 4 as 100. // the anchored actual/E column 1.1556, 1.1458, 1.0089 and 0.9549, quoted in // reading 5 as 1.156, 1.146, 1.009 and 0.955; the fifth entry 0.926 is the // printed 0.9261. // DERIVED IN THIS READING by arithmetic over printed values: // "320k samples @11/@13" in reading 3 is the two printed Monte-Carlo run // sizes added, n=300000 at @11 plus n=20000 at @13. // "~320 sigma above zero at @19" in reading 6(b) is the printed anchored // ratio 0.9261 times the printed E/sigma 345.4. The two 320s are unrelated. // DEFINITION / LITERATURE constants: // CORRECTED 2026-08-20 (mismatch adjudication #25): reading 5's // e^{2gamma}/4 read "0.7932..." and now reads "0.79305...". The constant is // 0.7930547395, recomputed here 2026-08-20, and // `research/natal-cap-22-at31-drift.js` prints 0.793055 in its embedded // block. The trailing ellipsis is what made the old form a defect rather // than a rounding: it presents 0.7932 as a TRUNCATION of the true decimal, // which it is not -- the constant is wrong in the fourth place there. // `research/natal-cap-11-kstar23.js` records a near-identical "0.79325" as a // known rounding slip of the same family, and // `research/attack2-03-09-depth-formula.js` carried "0.7935" at two sites // until the same pass. Old -> new: 0.7932... -> 0.79305.... // ---------------------------------------------------------------------------