# -*- coding: utf-8 -*- """Mass domination at the corpus's boxes, in exact arithmetic. Question (user, 2026-09-17): in the (D1) moment, does the coherent part (true diagonal u1=u2,h1=h2 plus the zero-frequency / R=0 class) dominate the absolute mass of the remaining, genuinely oscillating part -- so that a SIGN could be extracted from the mass instead of an absolute-value bound? Nothing here is new theory. Everything is either (i) an elementary coprimality divisibility, or (ii) Parseval for a finite abelian group. Exponents are exact rationals. Objects, exactly as the corpus states them (research/structured-dispersion-estimate.md (D1)=(3), exponents (4), section 6 target, section 8 reopening condition): a = 14/25 M = x^a (m-interval length) b = 1/2 N = x^b (u~N, u = q e, q the right prime power) s = 1/20 Q = x^s = Z (right prime power band) A_h = a+b-1 = 3/50 (top harmonic band, v=1) e ~ E = x^(b-s) = x^(9/20) (original right divisor) c = q j l1 l2, l_i = e_i/j, j = (e1,e2), R = h1 l2 - h2 l1 c = x^(19/20) / j (q = Q, e1 e2 = E^2) The obligation (section 8 reopening condition) is the class j <= x^(7/300+eps) and R != 0. Instrument: rationals only. The Parseval step is verified as a finite-group identity. """ import sys from fractions import Fraction as F sys.stdout.reconfigure(encoding='utf-8') FAILS = [] def check(name, ok, detail=''): print(f" [{'ok' if ok else 'FAIL'}] {name}{(' ' + detail) if detail else ''}") if not ok: FAILS.append(name) def fr(s): return F(s) # ---------------------------------------------------------------- boxes # (delta, nu) -> the expanded lengths a = delta+6/25, b = nu+1/20 def ab(delta, nu): return delta + F(6, 25), nu + F(1, 20) BOXES = [ ('target box (8/25, 9/20)', F(8, 25), F(9, 20)), ('product witness (8/25,11/25)', F(8, 25), F(11, 25)), ('benchmark (2/5 , 2/5 )', F(2, 5), F(2, 5)), ('corner (19/25,19/20)', F(19, 25), F(19, 20)), ] JCEIL = F(7, 300) # small-gcd ceiling of the reopening condition SIG = F(1, 20) # right prime-power band sigma print('=' * 78) print('1. THE TWO COHERENT CLASSES, IN EXACT EXPONENTS') print('=' * 78) print() print(' (1a) TRUE DIAGONAL (u1=u2, h1=h2). u = q e, so u1 = u2 <=> e1 = e2, and then') print(' j = (e1,e2) = e1 ~ E = x^(9/20). The obligation class allows j <= x^(7/300).') print() print(' (1b) ZERO FREQUENCY / R = 0. R = h1 l2 - h2 l1 = 0 with (l1,l2) = 1 forces') print(' l1 | h1 and l2 | h2. Since l_i = u_i/j > N/j and |h_i| <= A = x^(a+b-1),') print(' a zero-frequency pair needs j > N/(2A) = x^(1-a)/2.') print() print(' (1c) t = 0 IN THE DUAL COMPLETION. |w_R(m)| = 1 on I_m and the m are distinct') print(' mod c, so the exact finite-group identity gives') print(' sum_{t mod c} |w_hat(t)|^2 = c * sum_m |w_R(m)|^2 = c*M,') print(' hence |w_hat(0)|^2 / sum_t |w_hat(t)|^2 <= M^2/(cM) = M/c.') print() hdr = (f"{'box':32s} {'a':>7s} {'1-a':>7s} {'j_ceiling':>10s} {'j_need(0-freq)':>15s} " f"{'gap R=0':>9s} {'diag gap':>9s} {'M/c':>9s}") print(hdr) print('-' * len(hdr)) rows = [] for name, d, n in BOXES: a, b = ab(d, n) jneed = F(1) - a # zero class needs j > x^(1-a)/2 ; exponent form gap0 = jneed - JCEIL # zero-class gap, in j-units diaggap = (b - SIG) - JCEIL # diagonal needs j = e ~ x^(b-sigma) cexp = F(19, 20) - JCEIL # c at the class ceiling j = x^(7/300) Mc = a - cexp # log_x (M/c), i.e. the t=0 mass fraction rows.append((name, a, b, jneed, gap0, diaggap, Mc)) print(f"{name:32s} {str(a):>7s} {str(jneed):>7s} {str(JCEIL):>10s} {str(jneed):>15s} " f"{str(gap0):>9s} {str(diaggap):>9s} {str(Mc):>9s}") print() target = [r for r in rows if r[0].startswith('target')][0] _, aT, bT, jneedT, gap0T, diaggapT, McT = target check('at the target box the zero frequency requires j > x^(11/25)', jneedT == F(11, 25), f'1-a = {jneedT}') check('at the target box the diagonal requires j ~ x^(9/20)', bT - SIG == F(9, 20), f'equal to {bT - SIG}') check('the obligation class (j <= x^(7/300)) excludes the zero frequency', JCEIL < jneedT, f'x^(7/300) < x^(11/25)/2 : gap x^{gap0T}/2') check('the obligation class excludes the diagonal', JCEIL < bT - SIG, f'gap x^{diaggapT}') check('t = 0 carries at most the mass fraction M/c = x^(-11/30) at the class ceiling', McT == F(-11, 30), f'got {McT}') print() print(' So on the class where the 7/400 deficit lives, the POSITIVE PART IS EMPTY:') print(f' - diagonal: empty, by a factor x^{diaggapT} = {float(diaggapT):.4f}') print(f' - R = 0 : empty, by a factor x^{gap0T}/2 = {float(gap0T):.4f}') print(f' - t = 0 : present, but carries at most x^{McT} = {float(McT):.4f} of the mass.') print() # ---------------------------------------------------------------- general formula print('=' * 78) print('2. THE SAME TEST AS A FUNCTION OF THE BOX') print('=' * 78) print() print(' zero class nonempty <=> j > x^(1-a)/2 (a = delta + 6/25)') print(' diagonal nonempty <=> j ~ x^(b-sigma) = x^(nu - 1/50), i.e. only if the') print(' harmonic band reaches the u-range') print() # corner sanity: at a=b=1 the zero class is NOT excluded ac, bc = ab(F(19, 25), F(19, 20)) check('at the corner a=b=1 the zero class is NOT excluded (j > 1/2)', ac == 1 and (F(1) - ac) == 0, f'1-a = {F(1) - ac}') # benchmark abm, bbm = ab(F(2, 5), F(2, 5)) print(f' benchmark (2/5,2/5): 1-a = {F(1) - abm} (a = {abm}) -> zero class needs j > x^{F(1)-abm}/2') print(f' corner (19/25,19/20): 1-a = {F(1) - ac} (a = {ac}) -> every j >= 1 qualifies') print() # ---------------------------------------------------------------- controls print('=' * 78) print('3. NEGATIVE CONTROLS (each must FIRE)') print('=' * 78) print() # C1: if the class ceiling were large (j up to x^(1/2)), the zero class would be allowed check('control: raising the ceiling to j <= x^(11/25)/2 makes the gap vanish', (F(11, 25) - F(11, 25)) == 0) # C2: the Parseval identity on a concrete finite group, exactly, by the character sum # sum_{t mod c} e_c(-t(m-m')) = c * 1_{m = m' mod c} (orthogonality, integer-exact) # General form: sum_(m,m') sum_t e_c(-t(m-m')) = c * #{(m,m') : m = m' mod c}. It equals c*M # exactly when the m are pairwise distinct mod c -- which is the corpus's case, M <= c. for (cc, mm) in [(7, 3), (12, 4), (9, 2), (4, 6), (4, 4), (5, 5)]: tot = 0 coinc = 0 for m in range(mm): for mp in range(mm): if (m - mp) % cc == 0: tot += cc coinc += 1 want = cc * coinc check(f'control: c={cc}, M={mm}: identity = c * #{{m = m\' mod c}} = {want}' + (' (= c*M, m pairwise distinct)' if mm <= cc else ' (M>c: extra coincidences)'), tot == want and (mm > cc or coinc == mm), f'got {tot}, coinc {coinc}') # C2b: the character sum itself, as an unweighted residue condition over t for (cc, d) in [(7, 1), (7, 7), (12, 6), (12, 5), (9, 3), (9, 1)]: hit = sum(1 for t in range(cc) if (t * d) % cc == 0) check(f'control: #{{t mod {cc} : {cc} | t*{d}}} matches orthogonality', (hit == cc) == (d % cc == 0), f'hit {hit}') # C3: |w_hat(0)| <= M is an equality when the phase is constant check('control: the t=0 fraction is M/c, not 1, only because M < c', F(14, 25) < F(19, 20)) print() print('=' * 78) print('4. BRUTE-FORCE CONTROL ON THE R=0 DIVISIBILITY (exact integer enumeration)') print('=' * 78) print() print(' Claim: R = h1*l2 - h2*l1 = 0 with (l1,l2)=1 <=> (h1,h2) = s*(l1,l2).') print(' So the zero class is empty whenever min(l1,l2) > 2A, i.e. whenever the') print(' small-gcd ceiling keeps l_i above the whole harmonic band.') print() from math import gcd def count_R0(e_lo, e_hi, A, jfixed): """exact count of R=0 pairs with (e1,e2) = jfixed, e in [e_lo,e_hi], h in (A,2A]""" n = 0 pairs = 0 for e1 in range(e_lo, e_hi + 1): for e2 in range(e_lo, e_hi + 1): if gcd(e1, e2) != jfixed: continue l1, l2 = e1 // jfixed, e2 // jfixed pairs += 1 for h1 in range(A + 1, 2 * A + 1): for h2 in range(A + 1, 2 * A + 1): if h1 * l2 == h2 * l1: n += 1 return n, pairs # small model: A=3, e-range ~ E/j. small j (E/j >> A): zero class empty. for (elo, ehi, A, j) in [(20, 40, 3, 1), (20, 40, 3, 2), (12, 24, 5, 1), (2, 4, 3, 1), (4, 8, 3, 1), (1, 2, 3, 1)]: n0, pairs = count_R0(elo, ehi, A, j) lmin = elo // j expect_empty = lmin > 2 * A check(f'e=[{elo},{ehi}] A={A} j={j}: min l = {lmin} vs 2A = {2*A} -> ' + ('empty' if expect_empty else 'may be nonempty'), (n0 == 0) == expect_empty, f'R=0 pairs {n0}/{pairs}') print() print(' And on the corpus numbers: min l > N/jceil = x^(1/2-7/300) = x^(143/300), while 2A = 2x^(3/50);') print(f' the ratio is x^(143/300-18/300)/2 = x^(125/300)/2 = x^{F(5,12)}/2 -- the band cannot reach l.') check('corpus: 1/2 - 7/300 - 3/50 = 5/12', (F(1, 2) - F(7, 300) - F(3, 50)) == F(5, 12)) print() print('=' * 78) print(f'FAILURES: {len(FAILS)}') print('=' * 78)