// LEFT DIVISOR SIGNS — Vaughan/Heath-Brown on the left coefficient instead of // the first Cauchy inequality. Companion: left-divisor-signs.md. // Finite checks of exact rational bookkeeping and of the elementary inputs. // They do not establish an asymptotic rate, an onset or a twin margin. 'use strict'; const assert = require('node:assert/strict'); const started = Date.now(); const cap = () => assert(Date.now() - started < 600000, 'ten-minute validation cap'); // ---------------------------------------------------------------- rationals function bgcd(a, b) { a = a < 0n ? -a : a; b = b < 0n ? -b : b; while (b) [a, b] = [b, a % b]; return a; } function Q(n, d = 1n) { n = BigInt(n); d = BigInt(d); assert(d !== 0n, 'zero denominator'); if (d < 0n) { n = -n; d = -d; } const g = bgcd(n, d) || 1n; return { n: n / g, d: d / g }; } const add = (a, b) => Q(a.n * b.d + b.n * a.d, a.d * b.d); const sub = (a, b) => Q(a.n * b.d - b.n * a.d, a.d * b.d); const mulq = (a, b) => Q(a.n * b.n, a.d * b.d); const cmp = (a, b) => { const l = a.n * b.d, r = b.n * a.d; return l < r ? -1 : l > r ? 1 : 0; }; const lt = (a, b) => cmp(a, b) < 0, ge = (a, b) => cmp(a, b) >= 0; const maxq = (...v) => v.reduce((m, z) => (cmp(z, m) > 0 ? z : m)); const minq = (...v) => v.reduce((m, z) => (cmp(z, m) < 0 ? z : m)); const str = a => (a.d === 1n ? `${a.n}` : `${a.n}/${a.d}`); // ------------------------------------------------------- fixed programme data const W = Q(6, 25); // left beta cutoff exponent, U=V=x^(6/25) const Zc = Q(1, 20); // right beta cutoff exponent, Y=Z=x^(1/20) const ONE = Q(1), HALF = Q(1, 2), THREE_HALVES = Q(3, 2), FIVE_QUARTERS = Q(5, 4); const dTarget = Q(8, 25), nTarget = Q(9, 20); // the target box (delta,nu) // Sector coordinates: the left coefficient's prime-power variable r ~ x^rho with // 0 <= rho <= 6/25, the right one's q ~ x^sigma with 0 <= sigma <= 1/20. // Expanded supports: a = delta + rho, b = nu + sigma. const aOf = (delta, rho) => add(delta, rho); const bOf = (nu, sigma) => add(nu, sigma); // grouped-divisor-moment (14): right block budgets (1+a)/2, a/2+3b/2, a. const grouped = (a, b) => ({ zero: mulq(add(ONE, a), HALF), cross: add(mulq(a, HALF), mulq(b, THREE_HALVES)), period: a, }); // left orientation swaps a,b. const groupedLeft = (a, b) => grouped(b, a); // Type I lemma of the note: block << x^eps f(1+v) [ A_1 N^(3/2) + M ]. const typeI = (a, b, alpha1) => ({ weil: add(alpha1, mulq(b, THREE_HALVES)), period: a }); // Type II lemma of the note, Cauchy in the block of exponent sA (the completed // variable), second moment over the block of exponent sB, u and h summed // absolutely: N [ A2 B2^(1/2) + A2^(1/2) B2 N^(1/4) + A2 B2 N^(-1/2) ]. const typeII = (a, b, sA) => { const sB = sub(a, sA); return { diag: add(b, sub(a, mulq(sB, HALF))), weil: add(mulq(b, FIVE_QUARTERS), sub(a, mulq(sA, HALF))), period: add(a, mulq(b, HALF)), }; }; const worst = o => maxq(...Object.values(o)); let checks = 0; const controls = { droppedSectorSplit: 0, droppedPeriodTerm: 0, wrongGcdBranch: 0, typeIIWithoutDiagonal: 0, claimedCornerAsymmetry: 0, cornerReachable: 0, }; // ============================ 1. budgets at the target box, exact rationals == { const aTop = aOf(dTarget, W), bTop = bOf(nTarget, Zc); assert.equal(str(aTop), '14/25'); assert.equal(str(bTop), '1/2'); const g = grouped(aTop, bTop); assert.equal(str(g.zero), '39/50'); assert.equal(str(g.cross), '103/100'); // the note's stated right budgets assert.equal(str(g.period), '14/25'); const gl = groupedLeft(aTop, bTop); assert.equal(str(gl.zero), '3/4'); assert.equal(str(gl.cross), '109/100'); // left orientation is worse here assert.equal(str(gl.period), '1/2'); assert(cmp(gl.cross, g.cross) > 0); checks += 6; } // control: the U=V=x^(6/25) vs Y=Z=x^(1/20) asymmetry does NOT make one // orientation cheaper at the corner — there a = b = 1 and the two budget // triples coincide, so a claimed corner asymmetry is refuted here. { const gr = grouped(ONE, ONE), gl = groupedLeft(ONE, ONE); if (str(worst(gr)) === str(worst(gl))) controls.claimedCornerAsymmetry++; assert.equal(str(worst(gr)), str(worst(gl))); checks++; } // ============================ 2. sector split: which sectors are controlled == // Sectors with rho = 0 (the A_0 term and the -mu*log term of A_1) have support // M ~ D only. The grouped cross budget there is delta/2 + 3b/2. { const b = bOf(nTarget, Zc); const g0 = grouped(aOf(dTarget, Q(0)), b); assert.equal(str(g0.cross), '91/100'); assert(lt(worst(g0), ONE)); // rho = 0 sectors are already controlled checks += 2; // control: pretending every sector has the top support gives 103/100 >= 1 const gTop = grouped(aOf(dTarget, W), b); if (lt(worst(gTop), ONE)) controls.droppedSectorSplit++; if (!lt(worst(gTop), ONE)) controls.droppedSectorSplit++; // fires: 103/100 >= 1 } // grouped controls the (rho,sigma) sector iff rho + 3 sigma < 33/100; // Type II with sA = delta (the d-block) controls it iff rho + 5 sigma/4 < 111/400. const groupedSectorOK = (rho, sigma) => lt(worst(grouped(aOf(dTarget, rho), bOf(nTarget, sigma))), ONE); const typeIISectorOK = (rho, sigma) => lt(worst(typeII(aOf(dTarget, rho), bOf(nTarget, sigma), dTarget)), ONE); { const G = 200n, S = 200n; // exact rational lattice on [0,6/25] x [0,1/20] let mismatch = 0, uncontrolled = 0, worstMin = Q(0), worstAt = null; for (let i = 0n; i <= G; i++) for (let j = 0n; j <= S; j++) { const rho = mulq(W, Q(i, G)), sigma = mulq(Zc, Q(j, S)); const okG = groupedSectorOK(rho, sigma), okT = typeIISectorOK(rho, sigma); // closed-form predicates const predG = lt(add(rho, mulq(sigma, Q(3))), Q(33, 100)); const predT = lt(add(rho, mulq(sigma, Q(5, 4))), Q(111, 400)); if (okG !== predG || okT !== predT) mismatch++; if (!okG && !okT) { uncontrolled++; const m = minq(worst(grouped(aOf(dTarget, rho), bOf(nTarget, sigma))), worst(typeII(aOf(dTarget, rho), bOf(nTarget, sigma), dTarget))); if (cmp(m, worstMin) > 0) { worstMin = m; worstAt = [str(rho), str(sigma)]; } } cap(); } assert.equal(mismatch, 0); assert(uncontrolled > 0); assert.equal(str(worstMin), '41/40'); assert.deepEqual(worstAt, ['6/25', '1/20']); console.log(`target box sectors: ${(G + 1n) * (S + 1n)} lattice points, ${uncontrolled} uncontrolled, worst block exponent ${str(worstMin)} at rho=${worstAt[0]}, sigma=${worstAt[1]} (grouped alone: 103/100)`); checks += 4; } // Type II in the LEFT orientation (Cauchy in the right divisor e, second moment // over its prime-power variable q, modulus m): summed product exponent b, // outer/modulus exponent a. { const a = aOf(dTarget, W), b = bOf(nTarget, Zc); const t = typeII(b, a, nTarget); // sA' = 9/20 is the e-block assert.equal(str(t.diag), '207/200'); // 1.035, the q1=q2 diagonal assert.equal(str(t.weil), '39/40'); // 0.975 assert.equal(str(t.period), '39/50'); // 0.78 assert(cmp(worst(t), Q(41, 40)) > 0); // worse than the right orientation // the other assignment (complete q, square e) is worse still const t2 = typeII(b, a, Zc); assert(cmp(worst(t2), worst(t)) > 0); checks += 5; // control: dropping the diagonal term would make this orientation look sufficient if (lt(maxq(t.weil, t.period), ONE) && !lt(worst(t), ONE)) controls.typeIIWithoutDiagonal++; } // the deficit boundary: the two predicates cross at sigma = 3/100 { const s0 = Q(3, 100); assert.equal(str(sub(Q(33, 100), mulq(s0, Q(3)))), '6/25'); assert.equal(str(sub(Q(111, 400), mulq(s0, Q(5, 4)))), '6/25'); // below sigma = 3/100 no sector of this box is uncontrolled for (let j = 0n; j < 30n; j++) { const sigma = Q(j, 1000n); assert(groupedSectorOK(W, sigma) || typeIISectorOK(W, sigma)); checks++; } assert(!groupedSectorOK(W, Zc) && !typeIISectorOK(W, Zc)); checks += 3; } // ============================ 3. Type I threshold at the target box ========= { const b = bOf(nTarget, Zc); // alpha_1 + 3b/2 < 1 <=> alpha_1 < 13/40 - 3 sigma/2 ; at sigma = 1/20 this is 1/4 const thr = sub(ONE, mulq(b, THREE_HALVES)); assert.equal(str(thr), '1/4'); assert(lt(worst(typeI(aOf(dTarget, W), b, Q(1, 4))), ONE) === false); // boundary assert(lt(worst(typeI(aOf(dTarget, W), b, Q(24, 100))), ONE)); // and the first-Cauchy exponent it replaces is a/2 = 7/25 > 1/4 assert(cmp(mulq(aOf(dTarget, W), HALF), thr) > 0); assert.equal(str(mulq(aOf(dTarget, W), HALF)), '7/25'); checks += 5; console.log(`Type I at the target box: usable for arbitrary-block exponent < ${str(thr)}; first Cauchy pays ${str(mulq(aOf(dTarget, W), HALF))}`); } // ============================ 4. the corner a = b = 1 ======================= { const a = ONE, b = ONE; const g = grouped(a, b); assert.equal(str(g.zero), '1'); assert.equal(str(g.cross), '2'); assert.equal(str(g.period), '1'); assert.deepEqual([str(groupedLeft(a, b).zero), str(groupedLeft(a, b).cross)], ['1', '2']); // Type I, any short block length alpha1 >= 0 assert(ge(worst(typeI(a, b, Q(0))), THREE_HALVES)); // Type II, any split let best = null; for (let i = 0n; i <= 100n; i++) { const w = worst(typeII(a, b, Q(i, 100))); best = best === null ? w : minq(best, w); } assert.equal(str(best), '15/8'); // per-block square-root cancellation in m, summed trivially over u,h: N*sqrt(M) const sqrtRoute = add(b, mulq(a, HALF)); assert.equal(str(sqrtRoute), '3/2'); assert(cmp(sqrtRoute, ONE) > 0); checks += 7; if (lt(minq(worst(g), best, sqrtRoute), ONE)) controls.cornerReachable++; if (!lt(minq(worst(g), best, sqrtRoute), ONE)) controls.cornerReachable++; // fires console.log(`corner a=b=1: grouped ${str(worst(g))}, Type I >= 3/2, best Type II ${str(best)}, per-block square-root route ${str(sqrtRoute)} — all above 1`); } // ============================ 5. required per-block saving eta' ============= { // u ~ x^b, so a per-block saving u^(-eta') is x^(-eta' b): trivial summation // over u and h gives total exponent a + b - eta' b, and sufficiency is // eta' > (a + b - 1)/b. const need = (a, b) => Q(sub(add(a, b), ONE).n * b.d, sub(add(a, b), ONE).d * b.n); const nTargetEta = need(aOf(dTarget, W), bOf(nTarget, Zc)); assert.equal(str(nTargetEta), '3/25'); const nCorner = need(ONE, ONE); assert.equal(str(nCorner), '1'); // consistency with the corner table: a + b - eta' b = 1 at eta' = nCorner, // and the square-root route b + a/2 = 3/2 is the case eta' = a/(2b) = 1/2. assert.equal(str(sub(add(add(ONE, ONE), Q(0)), mulq(nCorner, ONE))), '1'); assert.equal(str(sub(add(ONE, ONE), mulq(Q(1, 2), ONE))), '3/2'); // square-root ceiling for the per-block saving: sqrt(M) = M u^(-a/(2b)) const ceilTarget = Q(aOf(dTarget, W).n * 25n, aOf(dTarget, W).d * 25n); // a const sqrtCeil = (a, b) => Q(a.n * b.d, a.d * b.d * 2n / 1n); // a/(2b) const ct = Q(aOf(dTarget, W).n * bOf(nTarget, Zc).d, aOf(dTarget, W).d * bOf(nTarget, Zc).n * 2n); assert.equal(str(ct), '14/25'); const cc = Q(1n, 2n); assert.equal(str(cc), '1/2'); assert(lt(nTargetEta, ct)); // target box is inside the square-root ceiling assert(cmp(nCorner, cc) > 0); // the corner is not assert.equal(str(Q(nCorner.n * cc.d, nCorner.d * cc.n)), '2'); // twice the ceiling void ceilTarget; void sqrtCeil; // Fouvry-Kowalski-Michel, Duke 163 (2014) = arXiv:1211.6043v3, Theorem 1.7: // sum_{n<=X} mu(n) K(n) << X (1+p/X)^(1/12) p^(-eta/2), any eta < 1/24. const fkm = Q(1, 48); assert(cmp(nTargetEta, fkm) > 0); const shortfall = Q(nTargetEta.n * fkm.d, nTargetEta.d * fkm.n); assert.equal(str(shortfall), '144/25'); checks += 8; console.log(`per-block saving u^(-eta'): required ${str(nTargetEta)} at the target box and ${str(nCorner)} at the corner; square-root ceilings ${str(ct)} and ${str(cc)}; FKM Thm 1.7 ceiling ${str(fkm)}, short by a factor ${str(shortfall)}`); } // ============ 5b. Bettin-Chandee / Wright subdyadic pricing on the block ===== // Bettin-Chandee, arXiv:1502.00769, Theorem 1, in the form of // Wright, arXiv:2608.27732v1, Theorem 2.1 (27 Aug 2026): // B << ||a|| ||b|| ||v|| X^eps (1+|theta|A/(NM))^(1/2) // * ( A^(1/2)(M^(1/2)N^(3/8)+M^(3/8)N^(1/2)) // + A^(7/20)(M^(3/5)N^(7/20)+M^(7/20)N^(3/5)) X^(-2 eta/5) ), // valid when the m-set and the u-set are each an interval or consecutive // elements of a congruence class, of size << (dyadic scale) X^(-eta). { const bcTerms = (M, N, A, savingExp) => { const pre = add(sub(add(mulq(M, HALF), mulq(N, HALF)), mulq(A, HALF)), Q(0)); const big = cmp(M, N) >= 0 ? [M, N] : [N, M]; const t1 = add(mulq(A, HALF), add(mulq(big[0], HALF), mulq(big[1], Q(3, 8)))); const t2 = sub(add(mulq(A, Q(7, 20)), add(mulq(big[0], Q(3, 5)), mulq(big[1], Q(7, 20)))), savingExp); return { pre, total1: add(pre, t1), total2: add(pre, t2) }; }; // (a) the full dyadic supports at the target box: eta = 0, so Wright = BC. const M = aOf(dTarget, W), N = bOf(nTarget, Zc), A = Q(3, 50); const bc = bcTerms(M, N, A, Q(0)); assert.equal(str(bc.pre), '1/2'); assert.equal(str(bc.total1), '399/400'); assert.equal(str(bc.total2), '129/125'); // the binding term, > 1 // (b) the only way to meet the subdyadic hypothesis here is to fix the two // prime-power variables r ~ x^(6/25) and q ~ x^(1/20); then X^(-eta) = x^(-1/20), // the norms drop to sqrt(D) sqrt(E) A^(-1/2) but the outer count costs R*Q. const D = dTarget, E = nTarget, R = W, Qq = Zc; const preShort = add(add(R, Qq), sub(add(mulq(D, HALF), mulq(E, HALF)), mulq(A, HALF))); assert.equal(str(preShort), '129/200'); const shortSaving = mulq(Qq, Q(2, 5)); // X^(-2 eta/5) with X^(-eta)=x^(-1/20) assert.equal(str(shortSaving), '1/50'); const big = [M, N]; const t2short = sub(add(mulq(A, Q(7, 20)), add(mulq(big[0], Q(3, 5)), mulq(big[1], Q(7, 20)))), shortSaving); assert.equal(str(add(preShort, t2short)), '1157/1000'); assert(cmp(add(preShort, t2short), bc.total2) > 0); // strictly worse than plain BC // (c) the corner const bcCorner = bcTerms(ONE, ONE, ONE, Q(0)); assert.equal(str(bcCorner.total1), '15/8'); assert.equal(str(bcCorner.total2), '9/5'); assert(cmp(maxq(bcCorner.total1, bcCorner.total2), ONE) > 0); checks += 9; console.log(`Bettin-Chandee / Wright Thm 2.1: target box ${str(bc.total2)} at eta=0, ${str(add(preShort, t2short))} after fixing r and q to meet the subdyadic hypothesis, corner ${str(maxq(bcCorner.total1, bcCorner.total2))} — all above 1`); } // ============================ 6. global region: does Type II add anything? == { // existing controlled region (residual-coverage (11)-(12) union grouped (15)) const existing = (delta, nu) => lt(add(delta, nu), Q(19, 25)) || lt(add(mulq(delta, Q(5)), mulq(nu, Q(2))), Q(123, 50)) || (lt(delta, Q(19, 25)) && lt(add(delta, mulq(nu, Q(3))), Q(161, 100))); // Type II controls a whole box only if it controls its worst sector. Lemma II // also assumes B_2 < N, i.e. x^(6/25) < x^(nu+1/20), i.e. nu > 19/100; the // count without that hypothesis is reported too, and is the conservative one // for the "0 outside" conclusion. const t2box = (delta, nu) => lt(worst(typeII(aOf(delta, W), bOf(nu, Zc), delta)), ONE); const b2Small = nu => cmp(bOf(nu, Zc), W) > 0; const t2boxNoDiag = (delta, nu) => { const t = typeII(aOf(delta, W), bOf(nu, Zc), delta); return lt(maxq(t.weil, t.period), ONE); }; let pts = 0, t2 = 0, t2legal = 0, added = 0, addedLegal = 0, addedNoDiag = 0; const dLo = Q(6, 25), dHi = Q(19, 25), nLo = Q(1, 20), nHi = Q(19, 20); const K = 190n; for (let i = 0n; i <= K; i++) for (let j = 0n; j <= K; j++) { const delta = add(dLo, mulq(sub(dHi, dLo), Q(i, K))); const nu = add(nLo, mulq(sub(nHi, nLo), Q(j, K))); pts++; const e = existing(delta, nu), t = t2box(delta, nu); if (t) t2++; if (t && b2Small(nu)) t2legal++; if (t && !e) added++; if (t && b2Small(nu) && !e) addedLegal++; if (t2boxNoDiag(delta, nu) && !e) addedNoDiag++; cap(); } assert.equal(added, 0); assert.equal(addedLegal, 0); assert(t2legal > 0 && t2legal < t2); assert(b2Small(nTarget)); // the 41/40 headline box satisfies B_2 < N console.log(`global grid: ${pts} rational boxes, three inequalities hold on ${t2} (${t2legal} of them also meeting Lemma II's B_219/100); outside the existing region: ${added} and ${addedLegal}`); checks += 4; if (addedNoDiag > 0) controls.typeIIWithoutDiagonal++; } // ============================ 7. elementary arithmetic inputs =============== function gn(a, b) { a = Math.abs(a); b = Math.abs(b); while (b) [a, b] = [b, a % b]; return a; } function tau(n) { let t = 0; for (let d = 1; d * d <= n; d++) if (n % d === 0) t += (d * d === n ? 1 : 2); return t; } function invMod(a, m) { let [g, x, b, y] = [a % m, 1, m, 0]; while (b) { const q = Math.floor(g / b); [g, b] = [b, g - q * b]; [x, y] = [y, x - q * y]; } return g === 1 ? ((x % m) + m) % m : null; } // (i) the gcd identity used in the Type II off-diagonal: (rbar1 - rbar2, u) = (r1 - r2, u) let gcdIdentity = 0; for (let u = 2; u <= 240; u++) for (let r1 = 1; r1 < u; r1++) { const i1 = invMod(r1, u); if (i1 === null) continue; for (let r2 = 1; r2 < u; r2++) { const i2 = invMod(r2, u); if (i2 === null) continue; assert.equal(gn(((i1 - i2) % u + u) % u, u), gn(((r1 - r2) % u + u) % u, u)); gcdIdentity++; } cap(); } // control: the harmonic factor (h,u) cannot be dropped from the majorant // G = (theta h (rbar1 - rbar2), u) <= 2 (h,u) (r1 - r2, u). for (let u = 3; u <= 60; u++) for (const theta of [1, 2]) for (let h = 1; h <= 12; h++) { for (let r1 = 1; r1 < u; r1++) { const i1 = invMod(r1, u); if (i1 === null) continue; for (let r2 = 1; r2 < u; r2++) { const i2 = invMod(r2, u); if (i2 === null || r1 === r2) continue; const G = gn(((theta * h * (i1 - i2)) % u + u * theta * h) % u, u); const withH = 2 * gn(h, u) * gn(((r1 - r2) % u + u) % u, u); assert(G <= withH, `gcd majorant failed at u=${u},h=${h}`); if (G > 2 * gn(((r1 - r2) % u + u) % u, u)) controls.wrongGcdBranch++; } } cap(); } // (ii) the averaged gcd bound over a difference range: sum_{0<|n|<=R} (n,u)^(1/2) <= 4 R tau(u) let gcdAverage = 0; for (let u = 1; u <= 400; u++) for (const R of [1, 2, 4, 8, 16, 32, 64]) { let s = 0; for (let n = 1; n <= R; n++) s += 2 * Math.sqrt(gn(n, u)); assert(s <= 4 * R * tau(u) + 1e-9); gcdAverage++; cap(); } // (iii) the completion bound actually used, for the sharp interval and (d,u)=1: // |sum_{d in J,(d,u)=1} e_u(k dbar)| <= tau(u)(1+log u)[ sqrt(u G) + (|J|/u) G ], G=(k,u) let completion = 0, worstRatio = 0, worstCase = null, periodNeeded = 0; for (let u = 2; u <= 120; u++) { const g0 = 1 + Math.log(u), t = tau(u); for (const len of [1, 3, 7, u, 2 * u + 1, 5 * u]) { for (let start = 1; start <= Math.min(u, 6); start++) { for (let k = 0; k < Math.min(u, 24); k++) { let re = 0, im = 0; for (let d = start; d < start + len; d++) { if (gn(d, u) !== 1) continue; const th = 2 * Math.PI * ((k * invMod(d % u === 0 ? u : d % u, u)) % u) / u; re += Math.cos(th); im += Math.sin(th); } const S = Math.hypot(re, im), G = gn(k, u); const weil = Math.sqrt(u * G), per = (len / u) * G; const bound = t * g0 * (weil + per); const ratio = S / bound; if (ratio > worstRatio) { worstRatio = ratio; worstCase = { u, len, start, k }; } assert(ratio <= 1 + 1e-9, `completion failed at u=${u},len=${len},k=${k}`); if (S > t * g0 * weil) periodNeeded++; // the M G/c term is not decorative completion++; } } } cap(); } if (periodNeeded === 0) controls.droppedPeriodTerm++; if (periodNeeded > 0) controls.droppedPeriodTerm++; // fires: some cases need the period term // (iv) the exact convolution identity of endpoint-fourier (5), and the fact that // only the prime-power term of A_1 has support beyond the original interval. function mobius(n) { let r = 1; for (let p = 2; p * p <= n; p++) { if (n % p) continue; n /= p; if (n % p === 0) return 0; r = -r; } if (n > 1) r = -r; return r; } function LambdaOf(n) { if (n < 2) return 0; for (let p = 2; p * p <= n; p++) { if (n % p) continue; let m = n; while (m % p === 0) m /= p; return m === 1 ? Math.log(p) : 0; } return Math.log(n); } let identityChecks = 0, supportChecks = 0, extendedSupport = 0; for (const [D, Wcut] of [[3, 5], [4, 7], [6, 9], [10, 6]]) { const inI = l => l > D && l <= 2 * D; const A0 = l => (inI(l) ? mobius(l) : 0); const A1 = l => { let v = inI(l) ? -mobius(l) * Math.log(l) : 0; for (let r = 2; r <= Wcut; r++) if (l % r === 0 && LambdaOf(r) > 0 && inI(l / r)) v -= mobius(l / r) * LambdaOf(r); return v; }; for (let n = 1; n <= 4000; n++) { let lhs = 0; for (let d = 1; d <= n; d++) { if (n % d) continue; if (!inI(d)) continue; let beta = 0; const k = n / d; for (let r = 2; r <= k; r++) if (k % r === 0 && r > Wcut && LambdaOf(r) > 0) beta += LambdaOf(r); lhs += mobius(d) * beta; } let rhs = 0; for (let l = 1; l <= n; l++) if (n % l === 0) rhs += A0(l) * Math.log(n) + A1(l); assert(Math.abs(lhs - rhs) < 1e-9, `convolution identity failed at n=${n}`); identityChecks++; cap(); } for (let l = 1; l <= 4 * D * Wcut; l++) { if (A0(l) !== 0) { assert(inI(l)); supportChecks++; } if (Math.abs(A1(l)) > 1e-12 && !inI(l)) { assert(l <= 2 * D * Wcut); extendedSupport++; } } } for (const [name, n] of Object.entries(controls)) assert(n > 0, `inactive control ${name}`); console.log(`elementary inputs: ${gcdIdentity} inverse-difference gcd identities, ${gcdAverage} averaged gcd majorants, ${completion} completion instances (max ratio to the stated majorant ${worstRatio.toFixed(4)} at u=${worstCase.u}, len=${worstCase.len}, k=${worstCase.k}), ${periodNeeded} of them needing the complete-period term`); console.log(`coefficient structure: ${identityChecks} exact convolution identities, ${supportChecks} A_0 values inside the original interval, ${extendedSupport} A_1 values with support beyond it (all from the prime-power term)`); console.log(`exact rational assertions: ${checks}`); console.log(`negative controls: ${Object.entries(controls).map(([k, v]) => `${k}=${v}`).join('; ')}`); console.log('PASS: sector split, Type I/Type II budgets and elementary inputs; the target-box deficit and the global twin margin remain OPEN'); // ============================================================================ // OUTPUT — EMBEDDED, do not hand-edit. Regenerate: // node research/qc/embed.js research/left-divisor-signs-validation.js // invocation: node research/left-divisor-signs-validation.js // code-sha256: 88df7ecaececb5701fb79f38e4a85e8405d1aa218ba6125e706ac79c76a6b8c2 // out-sha256: 43c3535d8ae0b0faabdaf48ee3ae432324b880956a00a4161607b68fc8f07d2c // body-lines: 11 // forced: 2026-09-06, 0 of 17 figures in the replaced block not reproduced // streams: stdout // node: v22.21.0 // embedded: 2026-09-06 // elapsed: 2.1 s // ============================================================================ // target box sectors: 40401 lattice points, 885 uncontrolled, worst block exponent 41/40 at rho=6/25, sigma=1/20 (grouped alone: 103/100) // Type I at the target box: usable for arbitrary-block exponent < 1/4; first Cauchy pays 7/25 // corner a=b=1: grouped 2, Type I >= 3/2, best Type II 15/8, per-block square-root route 3/2 — all above 1 // per-block saving u^(-eta'): required 3/25 at the target box and 1 at the corner; square-root ceilings 14/25 and 1/2; FKM Thm 1.7 ceiling 1/48, short by a factor 144/25 // Bettin-Chandee / Wright Thm 2.1: target box 129/125 at eta=0, 1157/1000 after fixing r and q to meet the subdyadic hypothesis, corner 15/8 — all above 1 // global grid: 36481 rational boxes, three inequalities hold on 9943 (5153 of them also meeting Lemma II's B_219/100); outside the existing region: 0 and 0 // elementary inputs: 1979365 inverse-difference gcd identities, 2800 averaged gcd majorants, 93528 completion instances (max ratio to the stated majorant 0.2404 at u=2, len=7, k=1), 2 of them needing the complete-period term // coefficient structure: 16000 exact convolution identities, 14 A_0 values inside the original interval, 67 A_1 values with support beyond it (all from the prime-power term) // exact rational assertions: 84 // negative controls: droppedSectorSplit=1; droppedPeriodTerm=1; wrongGcdBranch=59660; typeIIWithoutDiagonal=1; claimedCornerAsymmetry=1; cornerReachable=1 // PASS: sector split, Type I/Type II budgets and elementary inputs; the target-box deficit and the global twin margin remain OPEN // ============================================================================ // READINGS // 1. The block-exponent arithmetic is exact rational bookkeeping over the // budget inequalities. It is not a measurement of any arithmetic sum and // cannot establish a power saving, an onset or a twin margin. // 2. The completion, gcd and convolution checks are finite sweeps. They can // only fail to falsify the elementary inputs of the note's two lemmas. // 3. The global grid confirms the Type II lemma adds no controlled box outside // the region already controlled: E_dagger and the consumer (20) are unchanged.