// Audit of the two closed-form claims in research/corner-log-average.md that are // checkable without the literature, plus the measure-theoretic consequence of // Tao-Teravainen v2 Theorem 3.1 as actually stated. // No compute beyond double arithmetic. Under a second. console.log('=== 1. corner-log-average.md section 4: the 1/(96e) claim ==='); // "gives an optimistic exponent c0/12, with c0 = t^2 log(1/(2t)). Its unrestricted // maximum is 1/(96e)." // c0(t) = t^2 ln(1/(2t)). c0'(t) = 2t ln(1/(2t)) - t = t(2 ln(1/(2t)) - 1). // Stationary at ln(1/(2t)) = 1/2 => t* = 1/(2 sqrt(e)), c0(t*) = t*^2 * (1/2) = 1/(8e). const c0 = t => t * t * Math.log(1 / (2 * t)); const tStar = 1 / (2 * Math.sqrt(Math.E)); const c0Max = c0(tStar); console.log(' t* = 1/(2 sqrt e) = ' + tStar.toFixed(9)); console.log(' c0(t*) = ' + c0Max.toFixed(12) + ' 1/(8e) = ' + (1 / (8 * Math.E)).toFixed(12) + ' ' + (Math.abs(c0Max - 1 / (8 * Math.E)) < 1e-15 ? 'EQUAL' : 'DIFFER')); console.log(' c0(t*)/12 = ' + (c0Max / 12).toFixed(12) + ' 1/(96e) = ' + (1 / (96 * Math.E)).toFixed(12) + ' ' + (Math.abs(c0Max / 12 - 1 / (96 * Math.E)) < 1e-15 ? 'EQUAL' : 'DIFFER')); // numerical confirmation that t* is the global max on (0, 1/2) let best = 0, bestT = 0; for (let t = 1e-6; t < 0.5; t += 1e-6) { const v = c0(t); if (v > best) { best = v; bestT = t; } } console.log(' grid search on (0,1/2): max ' + best.toFixed(12) + ' at t = ' + bestT.toFixed(6) + ' ' + (Math.abs(best - c0Max) < 1e-9 ? 'confirms the stationary point is the global max' : 'CHECK')); console.log(' => the 1/(96e) figure is exactly max_t c0(t)/12. VERIFIED.'); console.log(' (It is an optimisation of the displayed parameterisation, not a theorem constant:'); console.log(' Pilatte v3 abstract states only "for some absolute constant c > 0".)'); console.log('\n=== 2. corner-log-average.md section 3: the Abel constant 4 ==='); // T_x(y) = sum_{n<=y} a_x(n)/n, sup_{y<=x}|T_x(y)| <= E. Claim: |sum_{n in J_x} a_x(n)| <= 4xE. // Partial summation on J = (u,v]: sum_{u v * E + u * E + (v - u) * E; for (const [u, v, lab] of [[1, 2, '(x,2x] dyadic block'], [1, 1.5, '(x,1.5x]'], [0, 1, '(0,x]']]) console.log(' J = ' + lab.padEnd(22) + ' bound = ' + bound(u, v, 1).toFixed(1) + ' x E'); console.log(' => on the dyadic block the constant is exactly 4. VERIFIED.'); // Monte-Carlo sanity: the inequality is never violated on random sign patterns let worst = 0; // Seeded so the sampled figures below are reproducible. Math.random() is unseeded // and these values are printed to stdout, so the script's output changed on every // run and no reviewer could reproduce the recorded numbers. mulberry32, 32-bit, // self-contained, no dependency. The sampled values move; the conclusion does not. let _s = 0x9E3779B9 >>> 0; const rnd = () => { _s = (_s + 0x6D2B79F5) >>> 0; let t = _s; t = Math.imul(t ^ (t >>> 15), t | 1) >>> 0; t = (t ^ (t + Math.imul(t ^ (t >>> 7), t | 61))) >>> 0; return ((t ^ (t >>> 14)) >>> 0) / 4294967296; }; for (let trial = 0; trial < 2000; trial++) { const N = 400, a = []; for (let n = 1; n <= 2 * N; n++) a[n] = (rnd() < 0.5 ? -1 : 1) * rnd() * 3; let E = 0, T = 0; const Tv = [0]; for (let n = 1; n <= 2 * N; n++) { T += a[n] / n; Tv[n] = T; if (Math.abs(T) > E) E = Math.abs(T); } let S = 0; for (let n = N + 1; n <= 2 * N; n++) S += a[n]; const r = Math.abs(S) / (4 * N * E); if (r > worst) worst = r; } console.log(' 2000 random trials: max |sum| / (4xE) = ' + worst.toFixed(4) + ' ' + (worst <= 1 ? '(never violated)' : '*** VIOLATED ***')); console.log('\n=== 3. What Theorem 3.1 permits: the dyadic sequence is measure zero ==='); // Tao-Teravainen v2 Thm 3.1 (verified verbatim from arXiv 2512.01739v2): there EXISTS // an exceptional set E subset [sqrt X, X] with (1/log X) * int_E dt/t << L^{-c}, // and the correlation bound holds only for N in [sqrt X, X] \ E. // The constraint on E is a bound on LOGARITHMIC MEASURE. A prescribed dyadic sequence // {2^k} is countable, hence has logarithmic measure exactly 0, so it is admissible // as a subset of E for ANY L and c. console.log(' exceptional set constrained only by (1/log X) int_E dt/t << L^-c'); const X = Math.pow(2, 200); const dyadic = []; for (let k = Math.ceil(Math.log2(Math.sqrt(X))); k <= Math.log2(X); k++) dyadic.push(k); console.log(' dyadic scales in [sqrt X, X] for X = 2^200: ' + dyadic.length + ' points'); console.log(' logarithmic measure of those ' + dyadic.length + ' points: int dt/t over a finite set = 0'); console.log(' so E may contain every one of them while satisfying the density bound for any L, c.'); console.log(' => Theorem 3.1 yields NO bound at a prescribed dyadic sequence without an'); console.log(' additional input that locates or thins E. The documents section 3 caveat'); console.log(' ("continuous scale integrals do not automatically bound a prescribed'); console.log(' discrete dyadic sequence") is therefore structural, not merely prudential.'); console.log(' PROVEN, elementary (a finite or countable set is Lebesgue-null for dt/t).'); console.log('\n=== 4. Parameter restrictions in Thm 3.1 that section 4 does not record ==='); console.log(' (a) shifts and modulus: b, h1, h2 = O(L^c) and W in [L^c] - bounded by a small'); console.log(' power of L, not free.'); console.log(' (b) range: the conclusion holds for N in [sqrt X, X] only.'); console.log(' (c) h1 != h2 is required.'); console.log(' (d) the EQUIDISTRIBUTED branch (i) carries technical condition (3.2), g1(p) = 1 for'); console.log(' exp(log^{1/11} X) <= p <= exp(log^{1/10} X); the route in prime-band-transfer'); console.log(' uses the NON-PRETENTIOUS branch (ii), which does not. That choice is correct'); console.log(' and worth stating explicitly, since (3.2) would be false for the mu-twisted'); console.log(' family used there.');