"""Job #187: Bettin-Chandee (arXiv:1502.00769v1, the only arXiv version) as imported by seven research notes. Source statements, read in the arXiv e-print LaTeX (quoted with locators in the report): Theorem 1: B(M,N,A) << |a||b||nu| (1+|th|A/(MN))^(1/2) [ (AMN)^(7/20+e)(M+N)^(1/4) + (AMN)^(3/8+e)(AN+AM)^(1/8) ] Remark 1: a C^1 phase perturbation with derivatives << X/(x^2 y), X/(x y^2) replaces |th|A by |th|A + X in the first factor Corollary 1: error (eta R)^(3/2) |a||b| (N1 N2)^(7/20) (N1+N2)^(1/4+e) (M1 M2)^e DFI95 (as quoted there): error (eta R)^(19/8) |a||b| (N1 N2)^(3/8) (N1+N2)^(11/48+e) (M1 M2)^e Each check below derives a note's stated monomial or number from the source statement with exact Fractions and compares. Monomials are exponent vectors over the symbols the notes use (P = MN, Q = M+N, A, x, u = P/x), with AN + AM = A*Q exactly. Prints PASS/FAIL per check and exits 1 on any FAIL. stdout is deterministic. """ from fractions import Fraction as F import sys fails = 0 def check(name, got, want): global fails ok = got == want fails += not ok print(f"{'PASS' if ok else 'FAIL'} {name}: {got}" + ("" if ok else f" (note says {want})")) def mono(**e): return {k: F(v) for k, v in e.items() if F(v) != 0} def mul(*ms): out = {} for m in ms: for k, v in m.items(): out[k] = out.get(k, F(0)) + v return {k: v for k, v in out.items() if v != 0} def show(m): return " ".join(f"{k}^{v}" for k, v in sorted(m.items())) or "1" # Theorem 1 brackets, over A, P, Q (AMN = A*P, AN+AM = A*Q) T1 = mono(A=F(7, 20), P=F(7, 20), Q=F(1, 4)) T2 = mono(A=F(3, 8) + F(1, 8), P=F(3, 8), Q=F(1, 8)) print("== endpoint-fourier.md (10): norms |xi||zeta| = P^(1/2), Fourier norm A^(-1/2)") nf = mono(P=F(1, 2), A=F(-1, 2)) check("first term", show(mul(nf, T1)), show(mono(P=F(17, 20), Q=F(1, 4), A=F(-3, 20)))) check("second term", show(mul(nf, T2)), show(mono(P=F(7, 8), Q=F(1, 8)))) print("== endpoint-pairing.md (5): norms of xi/m, zeta/n = P^(-1/2), harmonic norm A^(1/2), integration x") npair = mono(P=F(-1, 2), A=F(1, 2), x=1) stated1 = mul(mono(A=1, x=1, P=-1), mono(P=F(17, 20), Q=F(1, 4), A=F(-3, 20))) # (A/u) B1 A^(-3/20), u = P/x stated2 = mul(mono(A=1, x=1, P=-1), mono(P=F(7, 8), Q=F(1, 8))) # (A/u) B2 check("first term, A/u branch", show(mul(npair, T1)), show(stated1)) check("second term, A/u branch", show(mul(npair, T2)), show(stated2)) # Remark 1 factor: derivative parameter X = O(A x): (|th|A + A x)/P = O(A x / P) = O(A/u) check("Remark 1 factor argument A x / P equals A/u", show(mono(A=1, x=1, P=-1)), show(mul(mono(A=1), mono(P=-1, x=1)))) print("== dispersion-range.md (4): endpoint-pairing (5) at A <= u, general norms") b1_at_u = mul(mono(P=F(17, 20), Q=F(1, 4)), mono(P=F(-3, 20), x=F(3, 20))) # B1 u^(-3/20) check("x^(3/20) |xi||zeta| (MN)^(1/5) (M+N)^(1/4), with |xi||zeta| = P^(1/2)", show(b1_at_u), show(mono(x=F(3, 20), P=F(1, 2) + F(1, 5), Q=F(1, 4)))) check("|xi||zeta| (MN)^(3/8) (M+N)^(1/8)", show(mono(P=F(7, 8), Q=F(1, 8))), show(mono(P=F(1, 2) + F(3, 8), Q=F(1, 8)))) print("== coefficient-structure.md (9): Fourier norm A^(-1/2) times the brackets") check("(MN)^(7/20)(M+N)^(1/4)A^(-3/20)", show(mul(mono(A=F(-1, 2)), T1)), show(mono(P=F(7, 20), Q=F(1, 4), A=F(-3, 20)))) check("(MN)^(3/8)(M+N)^(1/8)", show(mul(mono(A=F(-1, 2)), T2)), show(mono(P=F(3, 8), Q=F(1, 8)))) print("== dispersion-range.md / prime-power-dispersion.md: G <= (25/22)(C - 3/20) with C = 3/20 + 7S/10 + M/4, G = 7S/8 + M/8") # G - (25/22)(C - 3/20) = (7/88)(S - 2M) <= 0 because S = a + b <= 2 max(a,b) = 2M coefS = F(7, 8) - F(25, 22) * F(7, 10); coefM = F(1, 8) - F(25, 22) * F(1, 4) check("coefficients of S and M in G - (25/22)(C - 3/20)", (coefS, coefM), (F(7, 88), F(-14, 88))) check("2143/2200 = (25/22)(53/50 - 3/20) - (6/25)/4", F(25, 22) * (F(53, 50) - F(3, 20)) - F(6, 25) / 4, F(2143, 2200)) check("2161/2200 = (25/22)(28/25 - 3/20) - (6/25)/2", F(25, 22) * (F(28, 25) - F(3, 20)) - F(6, 25) / 2, F(2161, 2200)) print("== small-divisor-kernel.md (11) at a = 14/25, b = 1/2, alpha = 3/50") a, b, al = F(14, 25), F(1, 2), F(3, 50) check("1/2 + (7/20)(a+b+alpha) + (1/4)max(a,b) = 129/125", F(1, 2) + F(7, 20) * (a + b + al) + F(1, 4) * max(a, b), F(129, 125)) check("second bracket 1/2 + (3/8)(a+b+alpha) + (1/8)(alpha+max(a,b)) = 399/400", F(1, 2) + F(3, 8) * (a + b + al) + F(1, 8) * (al + max(a, b)), F(399, 400)) check("kappa threshold 27/140", (1 - F(1, 2) - F(7, 20) * (a + b + al)) / max(a, b), F(27, 140)) check("gamma threshold 9/28", (1 - F(1, 2) - F(1, 4) * max(a, b)) / (a + b + al), F(9, 28)) print("== determinant-corollary.md (7)-(9), section 8, section 7") e = lambda A_, B_: F(17, 20) * (A_ + B_) + F(1, 4) * max(A_, B_) # norms (N1N2)^(1/2) times (N1N2)^(7/20)(N1+N2)^(1/4) check("norm 1/2 + source 7/20 = 17/20", F(1, 2) + F(7, 20), F(17, 20)) check("sup delta+nu = 40/39 - 6/25 - 1/20", F(40, 39) - F(6, 25) - F(1, 20), F(2869, 3900)) aa, bb = F(8, 25) + F(6, 25), F(9, 20) + F(1, 20) check("gamma < 33/106 at (8/25,9/20)", (1 - F(1, 4) * aa) / (aa + bb) - F(1, 2), F(33, 106)) check("kappa < 99/560 at (8/25,9/20)", (1 - (F(1, 2) + F(7, 20)) * (aa + bb)) / aa, F(99, 560)) check("deficit at (2/5,2/5) = 173/2000", e(F(2, 5) + F(6, 25), F(2, 5) + F(1, 20)) - 1, F(173, 2000)) check("diagonal all-pieces threshold 1387/3900", (20 - F(613, 100)) / 39, F(1387, 3900)) check("BC diagonal 20/39", 1 / (F(17, 10) + F(1, 4)), F(20, 39)) check("DFI95 diagonal 48/95 (norm 1/2 + 3/8 = 7/8, 11/48)", 1 / (2 * (F(1, 2) + F(3, 8)) + F(11, 48)), F(48, 95)) check("(11): (7/8 S + 11/48 M) - (17/20 S + 1/4 M) coefficients", (F(7, 8) - F(17, 20), F(11, 48) - F(1, 4)), (F(1, 40), F(-1, 48))) print(f"\n{'ALL PASS' if fails == 0 else f'{fails} FAIL'}") sys.exit(1 if fails else 0)