// ============================================================================ // NATAL-CAP ATTACK 1 — MAXIMAL-WINDOW CARTOGRAPHY of the Natal@5 pattern // (2026-08-14; one of ten parallel attacks on rigorous per-prime removal caps) // ============================================================================ // THE IDEA. When a scour prime q strikes the Natal@5 set N_x of the x-tile // (W = x#), every strike r = q·m (or r+2 = q·m) has its cofactor m confined to // (a) an interval of length ~W/q (because 0 ≤ r < W), and // (b) a DILATED SIBLING of the natal pattern: // m ≡ q⁻¹·{11,17} (mod 30) [resp. q⁻¹·{13,19} for the r+2 class], // m mod p ∉ {0, −2q⁻¹} [resp. {0, +2q⁻¹}] for each 7 ≤ p ≤ x // — same class-counts as N_x itself, teeth rotated. // Hence gross(q) ≤ (max points of a natal-shaped pattern in ANY window of // length ceil(W/q)) × 2 classes. If sibling window-maxima match the natal // pattern's own, the computable quantity // cap(q) = 2·M_x(ceil(W/q)), M_x(ℓ) = max_s #(N_x ∩ [s, s+ℓ)) cyclic // is a rigorous-looking ceiling on gross(q) — the DIRECT OBJECT of the whole // cap program. This file maps M_x(ℓ) and m_x(ℓ) exactly (prefix sums, O(W) // per ℓ) at every ℓ = ceil(W/q) the scour needs, for x = 7, 11, 13, 17. // // THE HONEST QUESTION. Does Σ_q cap(q) over the whole scour ever come in // under |N_x| (which would PROVE survivors > 0 by union bound)? Expected: NO // — even the mean-field sum Σ 2N/q ≈ 2N·(ln ln √W − ln ln x) already exceeds // N, before window-excess inflation. So: quantify the overshoot, find which // q-range wrecks the sum, measure how fat the worst window really is vs the // mean (excess growth law: √mean? log?), and spot-check whether the natal // pattern's own window maxima are even a valid proxy for its dilated siblings. // Refutation with numbers is a first-class result here. // ============================================================================ function primesUpTo(n){const s=new Uint8Array(n+1),o=[];for(let i=2;i<=n;i++){if(!s[i]){o.push(i);for(let j=i*i;j<=n;j+=i)s[j]=1}}return o} const PR = primesUpTo(1000); function buildNatal(x){ const bp = PR.filter(p=>p<=x); // 2,3,5,...,x const W = bp.reduce((a,b)=>a*b,1); const ind = new Uint8Array(W); for(let r=11;rmx)mx=c; if(cq>x && q<=sqrtW); const prefix = new Int32Array(W+1); for(let r=0;r=N) crossQ=q; } console.log(`\n${'='.repeat(96)}`); console.log(`@${x}: W=${W} |N|=${N} scour ${scour[0]}..${scour[scour.length-1]} (${scour.length} primes, √W=${sqrtW.toFixed(1)})`); console.log(`${'='.repeat(96)}`); console.log(' q | ℓ=⌈W/q⌉ | 2N/q | gross | fresh | self | M(ℓ) m(ℓ) | cap=2M | cap/gross | gross/(2N/q)'); for(const r of (rows.length<=40?rows:rows.filter((_,i)=>i<15||i>=rows.length-5||i%8===0))){ console.log(` ${String(r.q).padStart(4)} | ${String(r.ell).padStart(9)} | ${r.mean.toFixed(1).padStart(6)} | ${String(r.gross).padStart(5)} | ${String(r.fresh).padStart(5)} | ${String(r.self).padStart(4)} | ${String(r.M).padStart(4)} ${String(r.mm).padStart(4)} | ${String(r.cap).padStart(7)} | ${(r.cap/r.gross).toFixed(3).padStart(5)} | ${(r.gross/r.mean).toFixed(4)}`); } if(rows.length>40) console.log(` ... (${rows.length} scour primes total; middle rows every 8th)`); // Q2: the sum console.log(`\n Q2 SUMS: Σcap=${capSum} vs |N|=${N} → overshoot ×${(capSum/N).toFixed(3)}`); console.log(` Σ(2N/q)=${meanSum.toFixed(0)} (×${(meanSum/N).toFixed(3)}) Σgross=${grossSum} (×${(grossSum/N).toFixed(3)}) Σfresh=${freshSum} (removed; survivors ${aliveCount})`); console.log(crossQ===null ? ` cumulative Σcap NEVER exceeds |N| — union bound HOLDS at this level` : ` cumulative Σcap first exceeds |N| at q=${crossQ} (prime #${scour.indexOf(crossQ)+1} of ${scour.length})`); // smallest suffix that alone stays under N let sfx=0, sIdx=rows.length; for(let i=rows.length-1;i>=0;i--){ if(sfx+rows[i].cap>=N){break;} sfx+=rows[i].cap; sIdx=i; } console.log(` suffix q≥${sIdx({ell, mean:N*ell/W, E:M-N*ell/W, D:N*ell/W-mm})).sort((a,b)=>a.ell-b.ell); const [slope] = lsqSlope(pts.map(p=>Math.log(p.mean)), pts.map(p=>Math.log(Math.max(p.E,1e-9)))); const rSqrt = pts.map(p=>p.E/Math.sqrt(p.mean)), rLog = pts.map(p=>p.E/Math.log(p.ell)); const stat=a=>{const s=[...a].sort((u,v)=>u-v);return `${s[0].toFixed(2)}/${s[Math.floor(s.length/2)].toFixed(2)}/${s[s.length-1].toFixed(2)}`}; console.log(` Q1 EXCESS: log-log slope of E vs mean = ${slope.toFixed(3)} (0.5 ⇒ √mean law, ~0 ⇒ ℓ-independent)`); console.log(` raw E min/med/max = ${stat(pts.map(p=>p.E))}; E at ℓ_min=${pts[0].ell}: ${pts[0].E.toFixed(1)}, at ℓ_max=${pts[pts.length-1].ell}: ${pts[pts.length-1].E.toFixed(1)}`); console.log(` E/√mean min/med/max = ${stat(rSqrt)} E/ln(ℓ) min/med/max = ${stat(rLog)}`); console.log(` deficit side: max (Nℓ/W − m(ℓ))/√mean = ${Math.max(...pts.map(p=>p.D/Math.sqrt(p.mean))).toFixed(2)}`); // Q3: true worst window vs naive mean const worst = rows.reduce((a,r)=> r.gross/r.mean > a.gross/a.mean ? r : a); const worstCap = rows.reduce((a,r)=> r.cap/r.mean > a.cap/a.mean ? r : a); console.log(` Q3 WORST: max gross/(2N/q) = ${(worst.gross/worst.mean).toFixed(4)} at q=${worst.q}; max cap/(2N/q) = ${(worstCap.cap/worstCap.mean).toFixed(3)} at q=${worstCap.q}`); console.log(` mean cap/gross over scour = ${(rows.reduce((a,r)=>a+r.cap/r.gross,0)/rows.length).toFixed(3)}`); console.log(` [${((Date.now()-t0)/1000).toFixed(1)}s]`); } // ============================================================================ // Q4: DILATED-SIBLING SPOT-CHECK at x=13 (q = 17, 19, 23). // Build the actual m-patterns from the congruence definition and compare // their window maxima with M_13(ℓ). Also verify the KEY IDENTITY exactly: // gross(q) must equal (sibling-A points with 0 ≤ qm < W) + (sibling-B points // with 0 ≤ qm−2 < W). // ============================================================================ { const {W, ind, N} = buildNatal(13); const prefix = new Int32Array(W+1); for(let r=0;r 781 at @17). The worst window of the natal pattern carries // only O(1) points above its fair share, uniformly over the whole scour // range of window lengths. Neither sqrt(mean) (ratio med drifts 1.32 -> // 1.08 across levels) nor ln(l) (0.42 -> 0.97) fits ACROSS levels. // 2. THE CONSTANT ROUGHLY DOUBLES PER LEVEL: E_med = 1.2, 2.1, 4.1, 7.2 at // x = 7, 11, 13, 17 — factor ~1.8-2.0 per added base prime, suggesting // E ~ c * 2^k with k = #{7 <= p <= x} (each congruence layer lets the // extremal window beat its (p-2)/p share by a fixed factor). Four data // points only — a lead, not a law. The deficit side is symmetric: // max (N*l/W - m(l))/sqrt(mean) = 1.4-1.5 at every level. // 3. Q2 VERDICT — THE UNION BOUND IS STRUCTURALLY DEAD, AND NOT BECAUSE OF // WINDOWS. Sum cap = 0.80*N (@7: HOLDS, proves survivors, trivially), // 1.267*N (@11), 1.430*N (@13), 1.611*N (@17). But decompose the failure: // @11: Sum(2N/q) = 0.789*N and Sum gross = 0.811*N are UNDER N — here // only the window inflation (cap vs gross, mean ratio 1.63) kills // it. Exact strike counts would certify 90-73 = 17 survivors. // @13: Sum(2N/q) = 1.147*N, Sum gross = 1.146*N — the MEAN-FIELD sum // itself is already over N. No window bound, however perfect, can // save a first-order union bound from here on. // @17: Sum(2N/q) = 1.494*N (Mertens: ~ 2(lnln sqrt(W) - lnln x) -> grows // like 2*ln(x/(2 ln x)), unboundedly), Sum gross = 1.490*N, yet // actual removals are only 0.791*N. The entire gap (overlap factor // Sum gross / removed = 1.88) lives in double-counted slots struck // by 2+ scour primes. The cap program MUST go to second-order // (Bonferroni / inclusion-exclusion depth 2) accounting; sharper // per-prime windows alone can never close it for x >= 13. // 4. WHICH q-RANGE WRECKS THE SUM: the small-q head, as expected. @17 the // tail q >= 67 sums to 14,502 < N = 14,850 on its own; the 11 head primes // 19..61 add 9,424 (39% of Sum cap). Cumulative Sum cap crosses N at // q = 151 (prime #29 of 120). Same shape @13 (tail q >= 37 affordable, // crossing at q = 79). Concrete hybrid target: exact/overlap accounting // for the ~dozen head primes, window caps for the long tail — the tail // cap is ALREADY affordable at every level tested. // 5. Q3 — ACTUAL STRIKES HUG THE MEAN FAR TIGHTER THAN THE WORST WINDOW. // max gross(q)/(2N/q) = 1.31 (@11), 1.23 (@13), 1.077 (@17) — at the // 17-tile no scour prime ever strikes more than 7.7% above its mean share. // The interval [0, W/q) that the cofactors actually occupy behaves as a // TYPICAL window of the sibling pattern, never the extremal one; the cap // pays the extremal price (cap/gross 1.01 at q=19 up to ~1.4 at q~700, // mean 1.17 @17). Tightening potential if "typical window" could be // certified: the whole E-term vanishes and we are back at case @11 of // reading 3 — good for x <= 11 only. // 6. Q4 — PROXY VALIDATED + KEY IDENTITY CERTIFIED EXACTLY. The dilated // sibling is the natal set pulled back through multiplication by // q^-1 mod W (a unit relabeling, same class-counts), and its window // maxima match the natal pattern's: M_sib = M_natal at q = 17, 23 and // M_natal - 1 at q = 19 (deviation DOWNWARD — safe direction). Not a // theorem yet: multiplication maps windows to q-spaced sequences, not // windows, so M_sib <= M_natal needs proof or direct computation of // sibling maxima (same O(W) cost, so a rigorous cap can just use the // sibling's own maxima). And the identity gross(q) = (sib-A points in // the m-interval) + (sib-B points) checked EXACT: 115 = 61+54 (q=17), // 102 = 52+50 (q=19), 87 = 45+42 (q=23). The factorization of strikes // into two sibling-window counts is numerically certified. // 7. Cross-check: fresh(q) and totals reproduce natal5-17tile-scour.txt // exactly (19: 1563, 23: 1159, ..., total 11,751 removed, 3,099 survive). // // NET: the direct object (exact window cartography) is delivered and the // windows are beautifully tame (O(1) excess), but the first-order cap sum is // refuted as a survivor-count strategy for x >= 13 — the slack is in strike // OVERLAPS, not window sizes. Next: second-moment / depth-2 Bonferroni on // the head primes (pairwise co-strike counts N(q1,q2)), tail by window cap. // ============================================================================ // --------------------------------------------------------------------------- // FIGURE PROVENANCE (added 2026-08-20, readings-traceability pass). What every // figure in the readings above that the embedded run does not contain // verbatim actually is. No number above was changed. // // ROUNDINGS of a value this file's own embedded run prints (printed value // first): // 1.628 -> 1.63, the @11 mean cap/gross, reading 3. // 10.08 -> 10.1, the top of the @17 raw-E spread, reading 1. Its partner // 5.4 is the printed 5.36 and the "~7" is the printed median 7.18. // // TOKENIZER ARTIFACT, not a figure: // -10.1 is the tail of the hyphenated range "(5.4-10.1)" in reading 1. // // DERIVED IN THIS READING by arithmetic over printed values: // 21 -> 781 in reading 1 is the mean window count N*l/W at the two ends of // the @17 scour range: 14850 x 721 / 510510 = 21.0 and 14850 x 26869 / // 510510 = 781.6, with l_min = 721 and l_max = 26869 both printed in the // @17 excess block. // 0.791*N in reading 3 is the printed @17 removal count over the printed // size: 11751/14850 = 0.7913. // 1.88 in reading 3 is the printed @17 Sum gross over that same removal // count: 22132/11751 = 1.8834. // 9,424 in reading 4 is the cap column of the @17 table summed over the // eleven head primes 19 through 61: 1582+1306+1042+976+816+742+710+648+ // 580+520+502. The 39% is 9424/23926 = 39.4% of the printed Sum cap. // "~1.4 at q~700" in reading 5 reads the top of the printed @17 cap/gross // column, where q=659 gives 1.415, q=691 gives 1.436 and q=709 gives 1.333. // 700 is not itself a scour prime and is not printed; it stands for that // end of the table. // ---------------------------------------------------------------------------