// attack-c2drift-01.js // // WHY DOES c2' DRIFT UPWARD? THE SHAPE OF THE DRIFT, MEASURED WITH AN // IN-PASS CONTROL THAT KNOWS THE ANSWER. // // THE QUESTION. The A144311 adoption (research/a144311-full-ladder.js) // created a new open question: c2' = G2/(m·lnD) sits at [0.4463, 0.5004] // on the custody band x = 11..31 and at [0.4842, 0.5337] on the trusted // tail x >= 41 — an upward drift. Three candidate shapes: // (i) c2' constant + a finite-size correction vanishing slowly // (extreme-value theory predicts the specific form // c2' = c∞·(1 + γ/lnD), γ = 0.5772 — note its sign: it makes the // HEAD high, so it predicts a FALLING column, and the fit below // must return b < 0 for the empirical version to stand); // (ii) c2' genuinely growing like a power of lnD (≈ θ(x) ≈ x — a huge // drift) or of lnlnD (≈ ln x — the Maier-Pomerance direction, // maxgap-law.md §6's (log p)^0.12 frame); // (iii) the maxgap-law §7a ledger's own next-order term // c_pred = r(x)·ln₃x/(ln₂x)², r(x) the Poisson-extreme class count // (r = 2 on the whole accessible range), scored zero-parameter. // // THE DISCRIMINATOR, RUN FIRST IN THE VERDICT: the one-class column // c1 = h/(m1·lnD1) over all 64 published terms of A048670 (p = 2..311, // tail a(59)..a(64) = Bozek, single-witness, adopted per // history/staging/external-data-audit.md). If c1 drifts the SAME way, the // drift is a property of the DIAGONAL FRAME (both sieve dimensions), not // of G2, and 1d's question changes shape. // // INSTRUMENT FIRST (exponent-control.md's law: a positive log power inside // the truth biases a finite power fit upward — 58 terms of a truth-1 // control return 1.282). PART A therefore builds the estimator suite and // runs it, IN THIS SAME PASS, on synthetic ladders generated from known // laws on the REAL (x, m, lnD) grids, rounded to even integers exactly as // a real gap value is: a flat-c truth, a Gumbel finite-size truth, two // lnlnD-power truths, a lnD-power truth, and the ledger shape. Both a // deterministic recovery table and seeded noise ensembles (lognormal at // the ladder's own measured scatter, and the EV-theoretic Gumbel/lnD // scatter) — every p-value quoted for the real data is a rank in those // in-pass null ensembles, never a textbook standard error. // // HONEST DOUBT. n = 18 usable c2' terms (c2' is defined x >= 11; the // ladder has 22). The power analysis below is expected to show — and does // — that n = 18 at 7% scatter can barely separate a flat truth from a // drifting one; the calibrated p-values are the honest content, and the // h-side column (n = 60) is where the decisive power lives. The ledger // shape is an asymptotic misapplied near its own zero at x = e^e = 15.15; // it is scored only at x >= 17 and its anchor sensitivity is reported. // // CUSTODY. G2 = A144311 + 1 (trusted, guards replayed here: 14-term // custody overlap + a(n) = 5 mod 6). h = A048670, 58-term corpus array // (attack-0c0e-02-level-selection.js) + Bozek tail 978..1110, prefix // cross-checked against the corpus array verbatim. Anchor cross-checks: // c2'(11) = 0.5004, c2'(79) = 0.5281 (a144311-full-ladder.js), c1(11) = // 0.4712, c1(59) = 0.3359, c1(241) = 0.3746 (maxgap-law.md §6's term table), // and the 46-term mean 0.3718 (two-class-lower-bounds.md §6) — all asserted // to 4 decimals before any fit runs. // // ARITHMETIC NOTE (width rule). No primorial is ever formed: every m and // lnD is a sum of logs of small integers (relative error ~1e-15 against 4 // significant figures used). Largest integer anywhere: 1710 (G2 at 79) and // 2·round(c·m·lnD/2) with m·lnD < 1e4 — all far below 2^53. No BigInt // needed, no shift operators. // // Runtime: ~2 s (the ensembles are 4000 replicates of tiny OLS fits). // ============================================================================ 'use strict'; const EULER_GAMMA = 0.5772156649015329; // --- data ------------------------------------------------------------------- const P64 = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 223, 227, 229, 233, 239, 241, 251, 257, 263, 269, 271, 277, 281, 283, 293, 307, 311]; // h = A048670: corpus 58-term array + Bozek b-file tail a(59)..a(64). const H58 = [2, 4, 6, 10, 14, 22, 26, 34, 40, 46, 58, 66, 74, 90, 100, 106, 118, 132, 152, 174, 190, 200, 216, 234, 258, 264, 282, 300, 312, 330, 354, 378, 388, 414, 432, 450, 476, 492, 510, 538, 550, 574, 600, 616, 642, 660, 686, 718, 742, 762, 798, 810, 834, 858, 876, 908, 926, 954]; const H64 = H58.concat([978, 1002, 1030, 1058, 1098, 1110]); // G2 = A144311 + 1, trusted 22 terms (a144311-full-ladder.js): const P22 = P64.slice(0, 22); const G2 = [2, 6, 12, 30, 42, 66, 108, 150, 204, 258, 348, 528, 546, 618, 708, 870, 966, 1080, 1284, 1398, 1530, 1710]; const CUSTODY14 = [2, 6, 12, 30, 42, 66, 108, 150, 204, 258, 348, 528, 546, 618]; // --- guards ----------------------------------------------------------------- let nCheck = 0; function check(name, ok, detail) { nCheck++; console.log(` ${ok ? 'ok ' : 'FAIL'} ${name}${detail ? ' [' + detail + ']' : ''}`); if (!ok) throw new Error('SELF-TEST FAILED: ' + name); } console.log('='.repeat(78)); console.log('ATTACK c2drift-01 — THE SHAPE OF THE c2\' DRIFT, WITH IN-PASS CONTROLS'); console.log('='.repeat(78)); console.log(''); console.log('-'.repeat(78)); console.log('SELF-TESTS AND CUSTODY GUARDS'); console.log('-'.repeat(78)); check('P64 has 64 primes, p_58 = 271, p_64 = 311', P64.length === 64 && P64[57] === 271 && P64[63] === 311); check('H64 has 64 terms, monotone increasing, all even', H64.length === 64 && H64.every((v, i) => v % 2 === 0 && (i === 0 || v > H64[i - 1]))); check('G2 22 terms, custody 14-term overlap exact', G2.length === 22 && CUSTODY14.every((v, i) => G2[i] === v)); check('a(n) = G2 - 1 is 5 mod 6 for n >= 2 (A144311 invariant)', G2.slice(1).every(g => (g - 1) % 6 === 5)); check('G2 >= h pointwise on the shared 22 terms', G2.every((g, i) => g >= H64[i])); // --- diagonal frames -------------------------------------------------------- // Two-class: D = prod_{2 s + Math.log(p), 0); const lnD = primes.reduce((s, p) => s + (killed(p) > 0 ? Math.log(killed(p)) : 0), 0); return { lnD, m: Math.exp(lnW - lnD) }; } function buildRows(P, G, killed, xmin) { const rows = []; for (let i = 0; i < G.length; i++) { if (P[i] < xmin) continue; const f = frame(P.slice(0, i + 1), killed); rows.push({ x: P[i], g: G[i], m: f.m, lnD: f.lnD, c: G[i] / (f.m * f.lnD) }); } return rows; } const rows2 = buildRows(P22, G2, p => p - 2, 11); // c2', 18 terms const rows1 = buildRows(P64, H64, p => p - 1, 11); // c1, 60 terms check('c2\' grid has 18 terms (x = 11..79), c1 grid has 60 (x = 11..311)', rows2.length === 18 && rows1.length === 60); const c2at = x => rows2.find(r => r.x === x).c; const c1at = x => rows1.find(r => r.x === x).c; check('anchor c2\'(11) = 0.5004, c2\'(79) = 0.5281 (a144311-full-ladder.js)', Math.abs(c2at(11) - 0.5004) < 5e-5 && Math.abs(c2at(79) - 0.5281) < 5e-5, c2at(11).toFixed(4) + ', ' + c2at(79).toFixed(4)); check('anchor c1(11) = 0.4712, c1(59) = 0.3359, c1(241) = 0.3746 (maxgap-law §6)', Math.abs(c1at(11) - 0.4712) < 5e-5 && Math.abs(c1at(59) - 0.3359) < 5e-5 && Math.abs(c1at(241) - 0.3746) < 5e-5, c1at(11).toFixed(4) + ', ' + c1at(59).toFixed(4) + ', ' + c1at(241).toFixed(4)); const mean46 = rows1.filter(r => r.x <= 229).reduce((a, r) => a + r.c, 0) / rows1.filter(r => r.x <= 229).length; check('anchor mean c1 over x = 11..229 (46 terms) = 0.3718 (two-class-l-b §6)', Math.abs(mean46 - 0.3718) < 5e-4, mean46.toFixed(4)); // --- the ledger shape (maxgap-law.md §7a) ----------------------------------- // c_pred = T1·r/ln x = r·ln3x/(ln2x)^2, r the Poisson-extreme class count: // smallest r >= 2 with (x/ln x)·P(Poisson(1/ln x) >= r) <= 1. function ledgerR(x) { const lam = 1 / Math.log(x), Np = x / Math.log(x); let r = 2; for (;;) { let cdf = 0, term = Math.exp(-lam); for (let k = 0; k < r; k++) { cdf += term; term *= lam / (k + 1); } if (Np * (1 - cdf) <= 1) return r; r++; } } function ledgerF(x) { // defined for x > e^e = 15.154 const l2 = Math.log(Math.log(x)); return ledgerR(x) * Math.log(l2) / (l2 * l2); } const rAll = [...rows2, ...rows1].map(r => ledgerR(r.x)); check('ledger r(x) = 2 across both grids (x <= 311)', rAll.every(r => r === 2)); // --- estimator suite -------------------------------------------------------- function ols(u, y) { const n = u.length, mu = u.reduce((a, b) => a + b) / n, my = y.reduce((a, b) => a + b) / n; let suu = 0, suy = 0; for (let i = 0; i < n; i++) { suu += (u[i] - mu) ** 2; suy += (u[i] - mu) * (y[i] - my); } const b = suy / suu, a = my - b * mu; let rss = 0; for (let i = 0; i < n; i++) rss += (y[i] - a - b * u[i]) ** 2; const se = Math.sqrt(rss / (n - 2) / suu); return { a, b, se, rss, n }; } function aicc(n, k, rss) { return n * Math.log(rss / n) + 2 * k + (2 * k * (k + 1)) / (n - k - 1); } // The suite. Rows -> fits of y = ln c against each candidate regressor. // FS u = 1/lnD (finite-size; EV/Gumbel predicts b = +gamma) // PLND u = ln lnD (c ~ (lnD)^b, lnD ≈ θ(x) ≈ x — power of lnD) // PLNX u = ln ln x (c ~ (ln x)^b ≈ (lnlnD)^b — the MP direction) // LEDG u = ln f(x) (x >= 17 only; ledger truth is b = 1) // COMP y - ln(1+γ/lnD) vs ln ln x (Gumbel term fixed, slope fitted) function suite(rows) { const y = rows.map(r => Math.log(r.c)); const out = {}; out.constSd = Math.sqrt(y.map(v => (v - y.reduce((a, b) => a + b) / y.length) ** 2) .reduce((a, b) => a + b) / (y.length - 1)); out.FS = ols(rows.map(r => 1 / r.lnD), y); out.PLND = ols(rows.map(r => Math.log(r.lnD)), y); out.PLNX = ols(rows.map(r => Math.log(Math.log(r.x))), y); const led = rows.filter(r => r.x >= 17); out.LEDG = ols(led.map(r => Math.log(ledgerF(r.x))), led.map(r => Math.log(r.c))); const yc = rows.map(r => Math.log(r.c) - Math.log(1 + EULER_GAMMA / r.lnD)); out.COMP = ols(rows.map(r => Math.log(Math.log(r.x))), yc); return out; } // --- synthetic truth generators on a real grid ------------------------------ // Each truth returns c(row); the ladder value is round-to-even(c·m·lnD), // exactly as a real gap value is an even integer. const truths = { 'CONST ': () => 0.47, 'GUMBEL +γ/lnD ': r => 0.47 * (1 + EULER_GAMMA / r.lnD), 'PLNX s=1.0 (MP) ': r => 0.47 * Math.pow(Math.log(r.x) / Math.log(11), 1.0), 'PLNX s=0.30 ': r => 0.47 * Math.pow(Math.log(r.x) / Math.log(11), 0.30), 'PLND s=0.12 ': r => 0.47 * Math.pow(r.lnD / 4.905, 0.12), 'LEDGER shape ': r => (r.x >= 17 ? 3.0 * ledgerF(r.x) : 0.47), }; function synth(rows, truth, mul) { // mul: per-row multiplicative noise or null return rows.map((r, i) => { const c = truth(r) * (mul ? mul(r, i) : 1); const g = 2 * Math.round(c * r.m * r.lnD / 2); return { x: r.x, g, m: r.m, lnD: r.lnD, c: g / (r.m * r.lnD) }; }); } // --- seeded RNG (mulberry32) + noise models --------------------------------- function mulberry32(seed) { let a = seed >>> 0; return function () { a |= 0; a = (a + 0x6D2B79F5) | 0; let t = Math.imul(a ^ (a >>> 15), 1 | a); t = (t + Math.imul(t ^ (t >>> 7), 61 | t)) ^ t; return ((t ^ (t >>> 14)) >>> 0) / 4294967296; }; } // lognormal: c -> c·exp(σZ). EV: g = c·m·(lnD + Gumbel - γ), i.e. the // exact fluctuation of a Poisson-extremes maximum, heteroscedastic in 1/lnD. function noiseLogn(rng, sigma) { return () => { const u1 = Math.max(rng(), 1e-12), u2 = rng(); return Math.exp(sigma * Math.sqrt(-2 * Math.log(u1)) * Math.cos(2 * Math.PI * u2)); }; } function noiseEV(rng) { return r => { const G = -Math.log(-Math.log(Math.max(rng(), 1e-12))); return 1 + (G - EULER_GAMMA) / r.lnD; }; } // ============================================================================ // PART A. THE INSTRUMENT, CALIBRATED BEFORE THE REAL DATA IS READ // ============================================================================ console.log(''); console.log('='.repeat(78)); console.log('PART A. INSTRUMENT CALIBRATION — SYNTHETIC TRUTHS ON THE REAL GRIDS'); console.log('='.repeat(78)); console.log(''); console.log('A1. Deterministic recovery (noise = rounding only), c2\' grid, n = 18.'); console.log(' Truth in c-units; recovered slopes: b_FS (target: γ = +0.577 for'); console.log(' the Gumbel row, 0 for CONST), b_PLND, b_PLNX, b_LEDG (target 1'); console.log(' for the ledger row).'); console.log(''); console.log(' truth b_FS b_PLND b_PLNX b_LEDG'); for (const [name, t] of Object.entries(truths)) { const s = suite(synth(rows2, t, null)); console.log(' ' + name + ' ' + s.FS.b.toFixed(4).padStart(8) + ' ' + s.PLND.b.toFixed(4).padStart(8) + ' ' + s.PLNX.b.toFixed(4).padStart(8) + ' ' + s.LEDG.b.toFixed(4).padStart(8)); } console.log(''); // A2. Noise ensembles: null distribution of the drift slopes under a FLAT // truth, and power against the drifting truths. Sigma is the real ladder's // own scatter under the constant model, measured in this pass (quoted in // PART C before use). const N_REP = 4000; function ensemble(rows, truth, noiseKind, sigma, seed) { const rng = mulberry32(seed); const bPLNX = [], bPLND = [], bCOMP = []; for (let rep = 0; rep < N_REP; rep++) { const mul = noiseKind === 'logn' ? noiseLogn(rng, sigma) : noiseEV(rng); const s = suite(synth(rows, truth, mul)); bPLNX.push(s.PLNX.b); bPLND.push(s.PLND.b); bCOMP.push(s.COMP.b); } bPLNX.sort((a, b) => a - b); bPLND.sort((a, b) => a - b); bCOMP.sort((a, b) => a - b); return { bPLNX, bPLND, bCOMP }; } // Window-level calibration: refit PLNX on rows with x >= xlo, and rank the // observed slope in a null ensemble generated ON THE WINDOW'S OWN GRID with // a flat truth. The lognormal sigma is the window's own scatter under the // constant model (conservative: it still contains any true drift). function windowCal(rows, xlo, seed) { const w = rows.filter(r => r.x >= xlo); const y = w.map(r => Math.log(r.c)); const obs = ols(w.map(r => Math.log(Math.log(r.x))), y); const ybar = y.reduce((a, b) => a + b) / y.length; const sig = Math.sqrt(y.map(v => (v - ybar) ** 2).reduce((a, b) => a + b) / (y.length - 1)); const flat = () => 0.47; const bs = { logn: [], ev: [] }; for (const kind of ['logn', 'ev']) { const rng = mulberry32(seed + (kind === 'ev' ? 1 : 0)); for (let rep = 0; rep < N_REP; rep++) { const mul = kind === 'logn' ? noiseLogn(rng, sig) : noiseEV(rng); const sy = synth(w, flat, mul); bs[kind].push(ols(sy.map(r => Math.log(Math.log(r.x))), sy.map(r => Math.log(r.c))).b); } bs[kind].sort((a, b) => a - b); } return { n: w.length, b: obs.b, se: obs.se, sig, pLogn: pAbove(bs.logn, obs.b), pEV: pAbove(bs.ev, obs.b) }; } function stats(arr) { const n = arr.length, m = arr.reduce((a, b) => a + b) / n; const sd = Math.sqrt(arr.map(v => (v - m) ** 2).reduce((a, b) => a + b) / (n - 1)); return { m, sd, q95: arr[Math.floor(0.95 * n)] }; } function pAbove(sorted, v) { // one-sided rank p-value let lo = 0, hi = sorted.length; while (lo < hi) { const mid = (lo + hi) >> 1; if (sorted[mid] < v) lo = mid + 1; else hi = mid; } return (sorted.length - lo) / sorted.length; } const sigma2 = suite(rows2).constSd; // real c2' scatter under CONST const sigma1 = suite(rows1).constSd; // real c1 scatter under CONST const null2Logn = ensemble(rows2, truths['CONST '], 'logn', sigma2, 20260821); const null2EV = ensemble(rows2, truths['CONST '], 'ev', 0, 20260822); const null1Logn = ensemble(rows1, truths['CONST '], 'logn', sigma1, 20260823); const null1EV = ensemble(rows1, truths['CONST '], 'ev', 0, 20260824); const alt2s30 = ensemble(rows2, truths['PLNX s=0.30 '], 'logn', sigma2, 20260825); const alt1s30 = ensemble(rows1, truths['PLNX s=0.30 '], 'logn', sigma1, 20260826); // The EV-consistent null for the COMP statistic: the truth IS the Gumbel // finite-size law, and the noise IS the Gumbel/lnD fluctuation. COMP's // slope should then be 0; its observed value is ranked in this ensemble. const nullC2 = ensemble(rows2, truths['GUMBEL +γ/lnD '], 'ev', 0, 20260827); const nullC1 = ensemble(rows1, truths['GUMBEL +γ/lnD '], 'ev', 0, 20260828); console.log('A2. Null ensembles (flat truth + noise, 4000 seeded replicates) and'); console.log(' power. σ is the ladder\'s own ln-scatter under the constant model:'); console.log(` σ(c2\' grid) = ${sigma2.toFixed(4)}, σ(c1 grid) = ${sigma1.toFixed(4)}.`); console.log(''); console.log(' grid noise b_PLNX mean±sd 95th pct'); for (const [tag, e] of [['c2\' logn', null2Logn], ['c2\' EV ', null2EV], ['c1 logn', null1Logn], ['c1 EV ', null1EV]]) { const s = stats(e.bPLNX); console.log(` ${tag} ${s.m.toFixed(4).padStart(8)} ± ${s.sd.toFixed(4)} ${s.q95.toFixed(4).padStart(8)}`); } const pow2 = alt2s30.bPLNX.filter(b => b > stats(null2Logn.bPLNX).q95).length / N_REP; const pow1 = alt1s30.bPLNX.filter(b => b > stats(null1Logn.bPLNX).q95).length / N_REP; console.log(''); console.log(` POWER against a true (ln x)^0.30 drift at the 5% level:`); console.log(` c2\' grid (n = 18): ${(100 * pow2).toFixed(1)}% c1 grid (n = 60): ${(100 * pow1).toFixed(1)}%`); console.log(''); console.log(' A1 CROSS-TALK NOTE, load-bearing: ln lnD and ln ln x are nearly'); console.log(' collinear on-range (lnD ≈ θ(x) ≈ x), with regressor ranges in a'); console.log(' ratio ~4.3. A true (lnD)^0.12 reads as (ln x)^0.50 and a true'); console.log(' (ln x)^0.30 reads as (lnD)^0.07 — the two subforms of candidate'); console.log(' (ii) are NOT distinguishable by shape on this range, only the'); console.log(' per-frame RATE is measurable. Any verdict below respects that.'); console.log(''); console.log(' READ A1+A2 BEFORE PART B/C: what the instrument can and cannot do'); console.log(' at these n is now on record, from truths whose answer is known.'); // ============================================================================ // PART B. THE h-SIDE DISCRIMINATOR — c1 OVER ALL 64 TERMS OF A048670 // ============================================================================ console.log(''); console.log('='.repeat(78)); console.log('PART B. THE h-SIDE DISCRIMINATOR — DOES c1 DRIFT THE SAME WAY?'); console.log('='.repeat(78)); console.log(''); const s1 = suite(rows1); console.log('B1. The c1 column (x >= 11, n = 60), head / dip / tail:'); const c1head = rows1.slice(0, 6).map(r => `${r.x}:${r.c.toFixed(4)}`).join(' '); const c1min = rows1.reduce((a, b) => (b.c < a.c ? b : a)); const c1tail = rows1.slice(-5).map(r => `${r.x}:${r.c.toFixed(4)}`).join(' '); console.log(' head ' + c1head); console.log(` min c1 = ${c1min.c.toFixed(4)} at x = ${c1min.x}`); console.log(' tail ' + c1tail); console.log(''); console.log('B2. Full-suite fits on c1 (calibrated p from the in-pass nulls):'); console.log(` FS b = ${s1.FS.b.toFixed(3)} ± ${s1.FS.se.toFixed(3)} (EV/Gumbel predicts +0.577)`); console.log(` PLND b = ${s1.PLND.b.toFixed(4)} ± ${s1.PLND.se.toFixed(4)} p_logn = ${pAbove(null1Logn.bPLND, s1.PLND.b).toFixed(4)} p_EV = ${pAbove(null1EV.bPLND, s1.PLND.b).toFixed(4)}`); console.log(` PLNX b = ${s1.PLNX.b.toFixed(4)} ± ${s1.PLNX.se.toFixed(4)} p_logn = ${pAbove(null1Logn.bPLNX, s1.PLNX.b).toFixed(4)} p_EV = ${pAbove(null1EV.bPLNX, s1.PLNX.b).toFixed(4)}`); console.log(` LEDG b = ${s1.LEDG.b.toFixed(4)} ± ${s1.LEDG.se.toFixed(4)} (ledger truth: b = 1)`); console.log(` COMP s = ${s1.COMP.b.toFixed(4)} ± ${s1.COMP.se.toFixed(4)} p vs EV-consistent null = ${pAbove(nullC1.bCOMP, s1.COMP.b).toFixed(4)}`); console.log(''); console.log('B3. PLNX slope by window, each with its OWN in-pass null (flat truth'); console.log(' on the window\'s grid; σ = the window\'s scatter, conservative):'); console.log(' window n b ± se p_logn p_EV'); let seedW = 20261000; const winB = {}; for (const xlo of [11, 17, 59, 101, 179]) { const w = windowCal(rows1, xlo, (seedW += 10)); winB[xlo] = w; console.log(` x >= ${String(xlo).padStart(3)} ${String(w.n).padStart(3)} ${w.b.toFixed(4).padStart(8)} ± ${w.se.toFixed(4)} ${w.pLogn.toFixed(4)} ${w.pEV.toFixed(4)}`); } // ============================================================================ // PART C. THE c2' VERDICT — THREE CANDIDATES, CALIBRATED // ============================================================================ console.log(''); console.log('='.repeat(78)); console.log('PART C. c2\' ON THE 18 USABLE TRUSTED TERMS — THE THREE CANDIDATES'); console.log('='.repeat(78)); console.log(''); const s2 = suite(rows2); console.log('C1. Full-suite fits on c2\' (x >= 11, n = 18):'); console.log(` FS b = ${s2.FS.b.toFixed(3)} ± ${s2.FS.se.toFixed(3)} (EV/Gumbel predicts +0.577)`); console.log(` PLND b = ${s2.PLND.b.toFixed(4)} ± ${s2.PLND.se.toFixed(4)} p_logn = ${pAbove(null2Logn.bPLND, s2.PLND.b).toFixed(4)} p_EV = ${pAbove(null2EV.bPLND, s2.PLND.b).toFixed(4)}`); console.log(` PLNX b = ${s2.PLNX.b.toFixed(4)} ± ${s2.PLNX.se.toFixed(4)} p_logn = ${pAbove(null2Logn.bPLNX, s2.PLNX.b).toFixed(4)} p_EV = ${pAbove(null2EV.bPLNX, s2.PLNX.b).toFixed(4)}`); console.log(` LEDG b = ${s2.LEDG.b.toFixed(4)} ± ${s2.LEDG.se.toFixed(4)} (ledger truth: b = 1)`); console.log(` COMP s = ${s2.COMP.b.toFixed(4)} ± ${s2.COMP.se.toFixed(4)} p vs EV-consistent null = ${pAbove(nullC2.bCOMP, s2.COMP.b).toFixed(4)}`); console.log(''); // Sensitivity: drop x = 11 (high head), drop x = 37 (the known outlier). for (const drop of [11, 37]) { const sub = rows2.filter(r => r.x !== drop); const f = ols(sub.map(r => Math.log(Math.log(r.x))), sub.map(r => Math.log(r.c))); console.log(` PLNX with x = ${drop} deleted: b = ${f.b.toFixed(4)} ± ${f.se.toFixed(4)}`); } console.log(''); console.log('C1b. PLNX slope by window with its own in-pass null (as B3):'); console.log(' window n b ± se p_logn p_EV'); for (const xlo of [11, 17, 29, 41]) { const w = windowCal(rows2, xlo, (seedW += 10)); console.log(` x >= ${String(xlo).padStart(3)} ${String(w.n).padStart(3)} ${w.b.toFixed(4).padStart(8)} ± ${w.se.toFixed(4)} ${w.pLogn.toFixed(4)} ${w.pEV.toFixed(4)}`); } console.log(''); console.log('C2. AICc over the candidates, both columns, on the shared support'); console.log(' x >= 17 (where the ledger is defined; k counts fitted params):'); function aiccTable(rows, label, xlo) { const sub = rows.filter(r => r.x >= xlo); const y = sub.map(r => Math.log(r.c)); const n = sub.length, ybar = y.reduce((a, b) => a + b) / n; const models = []; models.push(['CONST ', 1, y.map(v => (v - ybar) ** 2).reduce((a, b) => a + b), null]); const mFS = ols(sub.map(r => 1 / r.lnD), y); models.push(['FS a+b/lnD ', 2, mFS.rss, mFS.b]); const mPD = ols(sub.map(r => Math.log(r.lnD)), y); models.push(['PLND (lnD)^b ', 2, mPD.rss, mPD.b]); const mPX = ols(sub.map(r => Math.log(Math.log(r.x))), y); models.push(['PLNX (ln x)^b ', 2, mPX.rss, mPX.b]); const uf = sub.map(r => Math.log(ledgerF(r.x))); const aLed = y.reduce((a, v, i) => a + (v - uf[i]), 0) / n; // scale only models.push(['LEDG k·f(x) ', 1, y.reduce((a, v, i) => a + (v - aLed - uf[i]) ** 2, 0), null]); const ycomp = sub.map((r, i) => y[i] - Math.log(1 + EULER_GAMMA / r.lnD)); const mC = ols(sub.map(r => Math.log(Math.log(r.x))), ycomp); models.push(['COMP γ-fixed ', 2, mC.rss, mC.b]); const scored = models.map(([nm, k, rss, b]) => [nm, k, rss, b, aicc(n, k, rss)]); const best = Math.min(...scored.map(m => m[4])); console.log(` ${label} (n = ${n})`); console.log(' model k rms(ln) fitted b AICc ΔAICc'); for (const [nm, k, rss, b, A] of scored) { const bs = b === null ? ' --' : b.toFixed(4).padStart(8); console.log(` ${nm} ${k} ${Math.sqrt(rss / n).toFixed(4)} ${bs} ${A.toFixed(1).padStart(7)} ${(A - best).toFixed(1).padStart(7)}`); } } aiccTable(rows2, 'c2\' column', 17); console.log(''); aiccTable(rows1, 'c1 column', 17); console.log(''); console.log(' The long-lever discrimination, candidate (i) vs (ii) vs (iii): on'); console.log(' c1\'s post-dip window x >= 59 (lnD 47.0 -> 286.2) the shapes'); console.log(' separate — a b/lnD correction is a SATURATING shape (its regressor'); console.log(' has 0.0035 of movement left past p = 311 against 0.0178 spent'); console.log(' inside the window), the powers keep growing, the ledger bends'); console.log(' between them:'); aiccTable(rows1, 'c1, x >= 59 ', 59); console.log(''); aiccTable(rows2, 'c2\', x >= 41 ', 41); console.log(''); // The convergent reading: if the FS shape is the truth, c approaches a // finite c∞ = e^a from below. Print the implied limits. function fsLimit(rows, xlo) { const sub = rows.filter(r => r.x >= xlo); const f = ols(sub.map(r => 1 / r.lnD), sub.map(r => Math.log(r.c))); return { cinf: Math.exp(f.a), b: f.b }; } const fs2 = fsLimit(rows2, 17), fs1 = fsLimit(rows1, 59); console.log(' IF the finite-size shape is the truth (candidate (i), negative'); console.log(' sign), the columns converge from below to'); console.log(` c2\'∞ = ${fs2.cinf.toFixed(4)} (fit x >= 17, b = ${fs2.b.toFixed(2)}) c1∞ = ${fs1.cinf.toFixed(4)} (fit x >= 59, b = ${fs1.b.toFixed(2)})`); console.log(' — a CONSTANT diagonal law with a slowly-vanishing deficit, i.e.'); console.log(' G2 -> c2\'∞·m·lnD ≈ ' + (2.4026 * fs2.cinf).toFixed(2) + '·x·ln²x. Under candidate (ii) there is'); console.log(' no limit and the polylog power keeps compounding. The data above'); console.log(' cannot separate these; the algebra of PART D prices what each'); console.log(' means for 1d.'); console.log('C3. The ledger scored zero-parameter on the trusted tail: scale'); console.log(' anchored on the custody band x = 17..31, predictions at x >= 41:'); const anchorSet = rows2.filter(r => r.x >= 17 && r.x <= 31); const kLed = Math.exp(anchorSet.reduce((a, r) => a + Math.log(r.c) - Math.log(ledgerF(r.x)), 0) / anchorSet.length); let rmsL = 0, rmsC = 0, nT = 0; const cbandMean = Math.exp(anchorSet.reduce((a, r) => a + Math.log(r.c), 0) / anchorSet.length); console.log(' x c2\' ledger flat(band mean)'); for (const r of rows2.filter(r => r.x >= 41)) { const pred = kLed * ledgerF(r.x); console.log(` ${String(r.x).padStart(3)} ${r.c.toFixed(4)} ${pred.toFixed(4)} ${cbandMean.toFixed(4)}`); rmsL += (Math.log(r.c) - Math.log(pred)) ** 2; rmsC += (Math.log(r.c) - Math.log(cbandMean)) ** 2; nT++; } console.log(` rms(ln), tail x >= 41: ledger ${Math.sqrt(rmsL / nT).toFixed(4)} flat ${Math.sqrt(rmsC / nT).toFixed(4)}`); const led41 = ledgerF(79) / ledgerF(41); console.log(` ledger-predicted rise 41 -> 79: ${(100 * (led41 - 1)).toFixed(1)}% observed: ${(100 * (c2at(79) / c2at(41) - 1)).toFixed(1)}%`); // ============================================================================ // PART D. THE 1d COMPATIBILITY ALGEBRA — c2' UP WHILE G2/x^2 FALLS // ============================================================================ console.log(''); console.log('='.repeat(78)); console.log('PART D. COMPATIBILITY — THE TWO DRIFTS DECOMPOSED EXACTLY'); console.log('='.repeat(78)); console.log(''); console.log(' G2/x² = c2\' · (m·lnD/x²) identically, so over any span'); console.log(' Δln(G2/x²) = Δln c2\' + Δln(m·lnD/x²). Measured, 11 -> 79:'); const r11 = rows2[0], r79 = rows2[rows2.length - 1]; const dC = Math.log(r79.c / r11.c); const dF = Math.log((r79.m * r79.lnD / (79 * 79)) / (r11.m * r11.lnD / (11 * 11))); const dG = Math.log((r79.g / (79 * 79)) / (r11.g / (11 * 11))); check('decomposition is exact: dG = dC + dF', Math.abs(dG - dC - dF) < 1e-12, `${dG.toFixed(4)} = ${dC.toFixed(4)} + ${dF.toFixed(4)}`); console.log(` Δln c2\' = ${dC >= 0 ? '+' : ''}${dC.toFixed(4)} (the drift under test)`); console.log(` Δln(m·lnD/x²) = ${dF.toFixed(4)} (the frame factor, ≈ 2.40·ln²x/x)`); console.log(` Δln(G2/x²) = ${dG.toFixed(4)} (1d\'s trusted lean, falling)`); console.log(''); console.log(' The room: per unit ln x the frame factor falls at rate'); const dlnx = Math.log(79) - Math.log(11); console.log(` -dln(m·lnD/x²)/dln x = ${(-dF / dlnx).toFixed(3)} measured over the ladder,`); console.log(` against a drift rate dln c2\'/dln x = ${(dC / dlnx).toFixed(3)}.`); console.log(` The drift consumes ${(100 * dC / -dF).toFixed(1)}% of the frame\'s fall.`); console.log(''); console.log(' The exact compatibility algebra. Since ln lnD ≈ ln x + O(1) and'); console.log(' d(ln lnD)/d(ln x) ≈ 1 on the diagonal, the PLND slope b IS the'); console.log(' per-ln-x growth rate of c2\'. G2/x² falls exactly while'); console.log(' b_PLND < -dln(m·lnD/x²)/dln x,'); console.log(` a threshold measured at ${(-dF / dlnx).toFixed(3)} on this range and rising toward`); console.log(' its asymptotic value 1 - 2·lnln x/ln x -> 1 (from m·lnD ->'); console.log(` 2.40·x·ln²x). Measured b_PLND = ${s2.PLND.b.toFixed(3)} sits at ${(100 * s2.PLND.b / (-dF / dlnx)).toFixed(0)}% of the`); console.log(' on-range threshold and far below the asymptotic one. In the'); console.log(' lnlnD frame: c2\' ~ (ln x)^s gives G2 ~ x·ln^{2+s}x, so G2/x² ~'); console.log(' ln^{2+s}x/x -> 0 for EVERY fixed s — the full Maier-Pomerance'); console.log(' s = 1 included. The two trusted drifts (c2\' up, G2/x² down) are'); console.log(' therefore not in tension anywhere in candidate space; they'); console.log(' jointly pin the correction BETWEEN m·lnD and x² only this far:'); console.log(' the total polylog correction on x (currently ln^{2+s}x with'); console.log(' s ≈ 0.2-0.4) must stay below x/ln²x-sized growth, a bound the'); console.log(' data sits two orders inside.'); console.log(''); console.log(`SELF-TESTS PASSED: ${nCheck}`); // ============================================================================ // OUTPUT — EMBEDDED, do not hand-edit. Regenerate: // node research/qc/embed.js research/attack-c2drift-01.js // invocation: node research/attack-c2drift-01.js // code-sha256: 0d9911b331f1629ba08eaeff5ac6b6dc28526a380670bdc19a784ed300a13fc6 // out-sha256: cc532be65fd73a0dbf3a1e6db58318a65ff0a7b2a97dec196694ecc5b74d0f5d // body-lines: 206 // streams: stdout // node: v22.21.0 // embedded: 2026-08-21 // elapsed: 1.5 s // ============================================================================ // ============================================================================== // ATTACK c2drift-01 — THE SHAPE OF THE c2' DRIFT, WITH IN-PASS CONTROLS // ============================================================================== // // ------------------------------------------------------------------------------ // SELF-TESTS AND CUSTODY GUARDS // ------------------------------------------------------------------------------ // ok P64 has 64 primes, p_58 = 271, p_64 = 311 // ok H64 has 64 terms, monotone increasing, all even // ok G2 22 terms, custody 14-term overlap exact // ok a(n) = G2 - 1 is 5 mod 6 for n >= 2 (A144311 invariant) // ok G2 >= h pointwise on the shared 22 terms // ok c2' grid has 18 terms (x = 11..79), c1 grid has 60 (x = 11..311) // ok anchor c2'(11) = 0.5004, c2'(79) = 0.5281 (a144311-full-ladder.js) [0.5004, 0.5281] // ok anchor c1(11) = 0.4712, c1(59) = 0.3359, c1(241) = 0.3746 (maxgap-law §6) [0.4712, 0.3359, 0.3746] // ok anchor mean c1 over x = 11..229 (46 terms) = 0.3718 (two-class-l-b §6) [0.3718] // ok ledger r(x) = 2 across both grids (x <= 311) // // ============================================================================== // PART A. INSTRUMENT CALIBRATION — SYNTHETIC TRUTHS ON THE REAL GRIDS // ============================================================================== // // A1. Deterministic recovery (noise = rounding only), c2' grid, n = 18. // Truth in c-units; recovered slopes: b_FS (target: γ = +0.577 for // the Gumbel row, 0 for CONST), b_PLND, b_PLNX, b_LEDG (target 1 // for the ledger row). // // truth b_FS b_PLND b_PLNX b_LEDG // CONST 0.0649 -0.0033 -0.0140 0.0002 // GUMBEL +γ/lnD 0.5164 -0.0319 -0.1341 -0.0313 // PLNX s=1.0 (MP) -3.3868 0.2351 0.9903 0.2772 // PLNX s=0.30 -0.9976 0.0699 0.2948 0.0815 // PLND s=0.12 -1.6908 0.1184 0.4969 0.1370 // LEDGER shape -6.5903 0.4832 2.0526 0.9956 // // A2. Null ensembles (flat truth + noise, 4000 seeded replicates) and // power. σ is the ladder's own ln-scatter under the constant model: // σ(c2' grid) = 0.0729, σ(c1 grid) = 0.0583. // // grid noise b_PLNX mean±sd 95th pct // c2' logn 0.0001 ± 0.0955 0.1576 // c2' EV 0.0319 ± 0.2056 0.3570 // c1 logn -0.0003 ± 0.0372 0.0613 // c1 EV 0.0102 ± 0.0676 0.1153 // // POWER against a true (ln x)^0.30 drift at the 5% level: // c2' grid (n = 18): 92.8% c1 grid (n = 60): 100.0% // // A1 CROSS-TALK NOTE, load-bearing: ln lnD and ln ln x are nearly // collinear on-range (lnD ≈ θ(x) ≈ x), with regressor ranges in a // ratio ~4.3. A true (lnD)^0.12 reads as (ln x)^0.50 and a true // (ln x)^0.30 reads as (lnD)^0.07 — the two subforms of candidate // (ii) are NOT distinguishable by shape on this range, only the // per-frame RATE is measurable. Any verdict below respects that. // // READ A1+A2 BEFORE PART B/C: what the instrument can and cannot do // at these n is now on record, from truths whose answer is known. // // ============================================================================== // PART B. THE h-SIDE DISCRIMINATOR — DOES c1 DRIFT THE SAME WAY? // ============================================================================== // // B1. The c1 column (x >= 11, n = 60), head / dip / tail: // head 11:0.4712 13:0.4873 17:0.4106 19:0.4060 23:0.3758 29:0.3502 // min c1 = 0.3359 at x = 59 // tail 281:0.3734 283:0.3744 293:0.3754 307:0.3804 311:0.3756 // // B2. Full-suite fits on c1 (calibrated p from the in-pass nulls): // FS b = 1.413 ± 0.197 (EV/Gumbel predicts +0.577) // PLND b = -0.0195 ± 0.0076 p_logn = 0.9895 p_EV = 0.9365 // PLNX b = -0.1091 ± 0.0335 p_logn = 0.9972 p_EV = 0.9547 // LEDG b = -0.0574 ± 0.0159 (ledger truth: b = 1) // COMP s = -0.0410 ± 0.0301 p vs EV-consistent null = 0.7782 // // B3. PLNX slope by window, each with its OWN in-pass null (flat truth // on the window's grid; σ = the window's scatter, conservative): // window n b ± se p_logn p_EV // x >= 11 60 -0.1091 ± 0.0335 0.9968 0.9527 // x >= 17 58 0.0238 ± 0.0256 0.1790 0.3643 // x >= 59 48 0.1553 ± 0.0261 0.0000 0.0000 // x >= 101 39 0.1524 ± 0.0182 0.0000 0.0000 // x >= 179 24 0.2187 ± 0.0442 0.0000 0.0000 // // ============================================================================== // PART C. c2' ON THE 18 USABLE TRUSTED TERMS — THE THREE CANDIDATES // ============================================================================== // // C1. Full-suite fits on c2' (x >= 11, n = 18): // FS b = -0.597 ± 0.332 (EV/Gumbel predicts +0.577) // PLND b = 0.0525 ± 0.0197 p_logn = 0.0118 p_EV = 0.1820 // PLNX b = 0.2273 ± 0.0816 p_logn = 0.0092 p_EV = 0.1737 // LEDG b = 0.0894 ± 0.0377 (ledger truth: b = 1) // COMP s = 0.3683 ± 0.0769 p vs EV-consistent null = 0.0473 // // PLNX with x = 11 deleted: b = 0.3252 ± 0.0878 // PLNX with x = 37 deleted: b = 0.2219 ± 0.0578 // // C1b. PLNX slope by window with its own in-pass null (as B3): // window n b ± se p_logn p_EV // x >= 11 18 0.2273 ± 0.0816 0.0095 0.1812 // x >= 17 16 0.3351 ± 0.1098 0.0053 0.0075 // x >= 29 13 0.3181 ± 0.2152 0.0735 0.0103 // x >= 41 10 0.3745 ± 0.1411 0.0213 0.0150 // // C2. AICc over the candidates, both columns, on the shared support // x >= 17 (where the ledger is defined; k counts fitted params): // c2' column (n = 16) // model k rms(ln) fitted b AICc ΔAICc // CONST 1 0.0700 -- -82.8 5.6 // FS a+b/lnD 2 0.0558 -1.7748 -87.4 1.0 // PLND (lnD)^b 2 0.0553 0.0760 -87.7 0.7 // PLNX (ln x)^b 2 0.0542 0.3351 -88.3 0.1 // LEDG k·f(x) 1 0.3861 -- -28.2 60.3 // COMP γ-fixed 2 0.0541 0.4335 -88.4 0.0 // // c1 column (n = 58) // model k rms(ln) fitted b AICc ΔAICc // CONST 1 0.0339 -- -390.4 6.8 // FS a+b/lnD 2 0.0336 0.2749 -389.4 7.9 // PLND (lnD)^b 2 0.0334 0.0074 -390.2 7.0 // PLNX (ln x)^b 2 0.0337 0.0238 -389.2 8.1 // LEDG k·f(x) 1 0.2730 -- -148.5 248.7 // COMP γ-fixed 2 0.0314 0.0743 -397.2 0.0 // // The long-lever discrimination, candidate (i) vs (ii) vs (iii): on // c1's post-dip window x >= 59 (lnD 47.0 -> 286.2) the shapes // separate — a b/lnD correction is a SATURATING shape (its regressor // has 0.0035 of movement left past p = 311 against 0.0178 spent // inside the window), the powers keep growing, the ledger bends // between them: // c1, x >= 59 (n = 48) // model k rms(ln) fitted b AICc ΔAICc // CONST 1 0.0229 -- -360.6 31.5 // FS a+b/lnD 2 0.0163 -3.5218 -391.1 1.1 // PLND (lnD)^b 2 0.0174 0.0293 -384.9 7.2 // PLNX (ln x)^b 2 0.0172 0.1553 -385.8 6.3 // LEDG k·f(x) 1 0.0165 -- -392.1 0.0 // COMP γ-fixed 2 0.0174 0.1817 -384.7 7.4 // // c2', x >= 41 (n = 10) // model k rms(ln) fitted b AICc ΔAICc // CONST 1 0.0296 -- -67.9 3.4 // FS a+b/lnD 2 0.0235 -3.0803 -69.3 2.0 // PLND (lnD)^b 2 0.0227 0.0747 -70.0 1.3 // PLNX (ln x)^b 2 0.0216 0.3745 -71.0 0.3 // LEDG k·f(x) 1 0.0323 -- -66.2 5.1 // COMP γ-fixed 2 0.0213 0.4354 -71.3 0.0 // // IF the finite-size shape is the truth (candidate (i), negative // sign), the columns converge from below to // c2'∞ = 0.5345 (fit x >= 17, b = -1.77) c1∞ = 0.3799 (fit x >= 59, b = -3.52) // — a CONSTANT diagonal law with a slowly-vanishing deficit, i.e. // G2 -> c2'∞·m·lnD ≈ 1.28·x·ln²x. Under candidate (ii) there is // no limit and the polylog power keeps compounding. The data above // cannot separate these; the algebra of PART D prices what each // means for 1d. // C3. The ledger scored zero-parameter on the trusted tail: scale // anchored on the custody band x = 17..31, predictions at x >= 41: // x c2' ledger flat(band mean) // 41 0.5123 0.8517 0.4618 // 43 0.4916 0.8651 0.4618 // 47 0.4842 0.8873 0.4618 // 53 0.5179 0.9122 0.4618 // 59 0.5059 0.9303 0.4618 // 61 0.5019 0.9352 0.4618 // 67 0.5337 0.9475 0.4618 // 71 0.5233 0.9540 0.4618 // 73 0.5188 0.9569 0.4618 // 79 0.5281 0.9643 0.4618 // rms(ln), tail x >= 41: ledger 0.5874 flat 0.1066 // ledger-predicted rise 41 -> 79: 13.2% observed: 3.1% // // ============================================================================== // PART D. COMPATIBILITY — THE TWO DRIFTS DECOMPOSED EXACTLY // ============================================================================== // // G2/x² = c2' · (m·lnD/x²) identically, so over any span // Δln(G2/x²) = Δln c2' + Δln(m·lnD/x²). Measured, 11 -> 79: // ok decomposition is exact: dG = dC + dF [-0.2365 = 0.0540 + -0.2905] // Δln c2' = +0.0540 (the drift under test) // Δln(m·lnD/x²) = -0.2905 (the frame factor, ≈ 2.40·ln²x/x) // Δln(G2/x²) = -0.2365 (1d's trusted lean, falling) // // The room: per unit ln x the frame factor falls at rate // -dln(m·lnD/x²)/dln x = 0.147 measured over the ladder, // against a drift rate dln c2'/dln x = 0.027. // The drift consumes 18.6% of the frame's fall. // // The exact compatibility algebra. Since ln lnD ≈ ln x + O(1) and // d(ln lnD)/d(ln x) ≈ 1 on the diagonal, the PLND slope b IS the // per-ln-x growth rate of c2'. G2/x² falls exactly while // b_PLND < -dln(m·lnD/x²)/dln x, // a threshold measured at 0.147 on this range and rising toward // its asymptotic value 1 - 2·lnln x/ln x -> 1 (from m·lnD -> // 2.40·x·ln²x). Measured b_PLND = 0.052 sits at 36% of the // on-range threshold and far below the asymptotic one. In the // lnlnD frame: c2' ~ (ln x)^s gives G2 ~ x·ln^{2+s}x, so G2/x² ~ // ln^{2+s}x/x -> 0 for EVERY fixed s — the full Maier-Pomerance // s = 1 included. The two trusted drifts (c2' up, G2/x² down) are // therefore not in tension anywhere in candidate space; they // jointly pin the correction BETWEEN m·lnD and x² only this far: // the total polylog correction on x (currently ln^{2+s}x with // s ≈ 0.2-0.4) must stay below x/ln²x-sized growth, a bound the // data sits two orders inside. // // SELF-TESTS PASSED: 11 // ============================================================================ // READINGS // // 1. THE h-SIDE DISCRIMINATOR ANSWERS FIRST: YES — c1 DRIFTS THE SAME WAY. // The one-class column has the same signature as c2': a high head // (0.4712 at x = 11), a dip (min 0.3359 at x = 59), then a slow rise // (0.3756 at x = 311). Post-dip the rise is decisive: b = 0.1553 ± // 0.0261 per ln ln x with rank p = 0.0000 in BOTH in-pass nulls (4000 // flat-truth replicates on the window's own grid, lognormal and // Gumbel/lnD noise), independently confirming maxgap-law.md §6's // (log p)^0.12 with a different regressor and 64 terms. THE DRIFT IS A // PROPERTY OF THE DIAGONAL FRAME, SHARED BY BOTH SIEVE DIMENSIONS — NOT // A G2 ANOMALY. The question the adoption created ("why does c2' // drift?") changes shape: any mechanism must act on one class and two // classes alike, which rules out every twin-specific explanation at a // stroke. // 2. THE c2' DRIFT ITSELF IS REAL AT CALIBRATED SIGNIFICANCE — with the // honest caveat the instrument was built to expose. On x >= 17 the // slope 0.3351 ± 0.1098 has p_logn = 0.0053 and p_EV = 0.0075: // significant under both noise models. On the full n = 18 range the // verdict is noise-model-dependent (p_logn 0.0092, p_EV 0.1737, // because the EV null's slope scatter is 0.2056 at this n). Deleting // the x = 37 outlier leaves b = 0.2219 ± 0.0578 — the outlier does not // carry the drift. A1's calibration also shows the deterministic // GUMBEL truth reads b_PLNX = -0.1341, so a Gumbel head term biases // this estimator DOWN, not up: the quoted drifts are conservative. // 3. CANDIDATE (iii), THE LEDGER SHAPE, IS REFUTED AS A ZERO-PARAMETER // GLOBAL PREDICTOR — AND RESURFACES AS THE BEST DEEP-WINDOW SHAPE. // Scale-anchored on the custody band it overshoots the trusted tail by // 5.5x the flat model's error (rms(ln) 0.5874 vs 0.1066; predicted // rise 41 -> 79 of 13.2% against the observed 3.1%), and its fitted // shape exponent is 0.0894 (c2') and -0.0574 (c1) against the required // 1. The failure sits exactly where its derivation warns: the shape // vanishes at x = e^e and is steepest just above. But on c1's post-dip // window x >= 59 the same one-parameter anchored shape is the outright // AICc winner (-392.1, k = 1) — maxgap-law §7a's "the flatness is a // property of where the data sits on log3 x/(log2 x)^2" survives in // exactly the regime its own derivation claims. // 4. CANDIDATES (i) AND (ii) SPLIT THE VERDICT, AND THIS DATA CANNOT // SEPARATE THEM. The EV-mechanism form of (i) is SIGN-REFUTED: Gumbel // finite-size predicts b_FS = +0.577 (a falling column) and every // fitted b_FS is negative (-0.597 on c2', -3.5218 on c1's long lever). // What survives of (i) is the empirical mirror — a slowly-vanishing // NEGATIVE deficit, c approaching a constant from below — and on the // longest lever it narrowly beats the powers (ΔAICc 1.1 vs 6.3-7.2), // implying convergence to c1∞ = 0.3799, c2'∞ = 0.5345, i.e. // G2 -> 1.28·x·ln²x. Candidate (ii) survives just as well (COMP wins // the c2' x >= 17 table at s = 0.4335; post-head windows read // s = 0.23-0.43, equivalently (lnD)^{0.05-0.08}), and A1's cross-talk // row proves the two (ii) subforms are indistinguishable on-range (a // true (lnD)^0.12 reads as (ln x)^0.50). The cheapest future // discriminator is on the ONE-CLASS side, not ours: under (i) c1 // saturates at its fitted 0.3799; under (ii) it climbs through it. // 5. THE 1d COMPATIBILITY ALGEBRA, EXACT. G2/x² = c2'·(m·lnD/x²) // identically, and over the ladder -0.2365 = +0.0540 + (-0.2905): the // drift consumes 18.6% of the frame factor's fall. G2/x² keeps falling // exactly while the per-ln-x drift rate stays below the frame's fall // rate — measured 0.052 against an on-range threshold of 0.147 that // rises to 1 asymptotically. EVERY fixed polylog drift (ln x)^s, the // full Maier-Pomerance s = 1 included, keeps G2/x² -> 0; only a drift // like a near-unit power of lnD ≈ x could reverse 1d's lean, and the // measured lnD-exponent is 0.05-0.08. The two trusted drifts are in NO // tension; jointly they pin the correction between m·lnD and x² to // polylog size, ln^{2+s}x with s between 0.23 and 0.43 on this range. // 6. LIMITS. c2' has 18 usable terms, 8 of them single-witness (A144311 // a(15)-a(22)), and the c1 tail a(59)-a(64) is Bozek's, single-witness; // the full-range c2' significance is noise-model-dependent and left // that way; the (ii) subforms are unresolvable on-range by A1; the // ledger's r(x) = 2 everywhere reachable, so its r-driven growth term // was never testable here; and A2's power calibration (92.8% at n = 18, // 100.0% at n = 60 against s = 0.30 at the 5% level) is what licenses // the window verdicts — nothing weaker than s ≈ 0.3 was detectable on // the c2' grid, and nothing detected is below that. // ============================================================================