#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Job #2690: the two load-bearing facts of the class obstruction, verified rather than asserted. (A) COEFFICIENT WITNESSES. Each of the band's three modulus weights is NON-ZERO at a modulus the prescribed splitting cannot reach, so the identity in Definition 2/2.3/2.4 of the factorable classes fails there. The three weights and their values at a witness: raw, modulus arrangement (fixed-endpoint 2.3/2.4): lambda_m = mu(m) log m, m squarefree in (x/(2e1), x/e0]; at a prime m the value is -log m != 0. Vaughan Type I (fixed-endpoint 2.3): sum_{r<=UV} c(r) 1_{r|m}, c(1) = 1 from (V); at a prime m > UV only r = 1 survives, so the value is exactly c(1) = 1. Vaughan Type II (fixed-endpoint 2.3): sum_{ab=m, a>U, b>V} mu(a) gamma_V(b); at m = p^2 with p > max(U,V) the only pair is (p,p) (a,b > 1 forces both), value mu(p)gamma_V(p). i.e. the piece that avoided the prime obstruction (Type II, composite support only) has its own witness, m = p^2 with p^2 <= Q and p beyond every admissible factor. (B) FACTOR CAP. Definition 2.4 (programmably factorable), read from the LaTeX source of arXiv:2109.02851v2 (file lineartwinANT2.tex), (2.1): Q1 <= N x^{-delta}, N^2 Q2 Q3^2 <= x^{1-delta}, N^2 Q1 Q2^4 Q3^3 <= x^{2-delta}, N Q1 Q2^5 Q3^2 <= x^{2-delta}, for every N in [x^{2 delta}, x^{1/3 + delta/2}], and then lambda = gamma1*gamma2*gamma3. Q1 <= N x^{-delta} <= x^{1/3 - delta/2} is exact and immediate. The script also maximizes log_x Q3 and log_x Q2 under the full system plus Q1Q2Q3 = Q, by exact rational-feasibility scan, to show the whole prescribed factorization is confined below x^{1/3}: hence a prime modulus above that cap is in the support of the interval weights but in none of the classes. """ import json import math import os import sys from fractions import Fraction as F sys.stdout.reconfigure(encoding="utf-8", errors="replace") RUN = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) def mu(n): if n == 1: return 1 c = 0 d = 2 while d * d <= n: if n % d == 0: n //= d if n % d == 0: return 0 c += 1 d += 1 if n > 1: c += 1 return -1 if c % 2 else 1 def c_vaughan(r, U, V): return sum(mu(d) * mu(k) for d in range(1, U + 1) if r % d == 0 for k in range(1, V + 1) if r % k == 0 and d * k == r) def gamma_V(b, V): return sum(mu(k) for k in range(1, b + 1) if b % k == 0 and k > V) def part_A(): primes = [2, 3, 5, 7, 11, 13, 101, 1009, 10007] typ1 = {} typ1_exact = True for U, V in ((3, 3), (2, 5), (4, 6), (1, 1)): # Type I coefficient at a prime m > UV: only r = 1 can divide m for p in primes: if p <= U * V: continue val = sum(c_vaughan(r, U, V) for r in (1, p) if r <= U * V) if val != c_vaughan(1, U, V): typ1_exact = False typ1.setdefault((U, V), []).append(val) # the exact value c(1) for each (U,V) c1 = {f"{U},{V}": c_vaughan(1, U, V) for U, V in ((3, 3), (2, 5), (4, 6), (1, 1))} typ2 = {} for U, V in ((3, 3), (2, 5), (4, 6), (1, 1)): vals = {} for p in (5, 7, 11, 13, 101, 1009): if p <= max(U, V): continue vals[p] = mu(p) * gamma_V(p, V) typ2[f"{U},{V}"] = vals # sanity of the witnesses themselves: p^2 beyond the caps, and 2p in the Type II support return {"type_I_at_prime_m_equals_c1": typ1_exact, "type_I_c1_values": c1, "type_II_at_m_p_squared": typ2, "type_II_nonzero_witness_holds": all(v != 0 for d in typ2.values() for v in d.values())} def part_B(eps_p, delta, Qexp): """Maximize log_x Q2, log_x Q3 over the system (2.1) with Q1Q2Q3 = x^{Qexp}. Variables (a,b,c) = (log_x Q1, log_x Q2, log_x Q3) >= 0, a+b+c = Qexp. At the worst N (the top of the range, N = x^{1/3+delta/2}) the system is a <= 1/3 - delta/2 2/3 + delta + b + 2c <= 1 - delta 2/3 + delta + a + 4b + 3c <= 2 - delta 1/3 + delta/2 + a + 5b + 2c <= 2 - delta (a smaller N only relaxes the last three and tightens nothing but Q1 <= N x^{-delta}, which is weakest at the top, so the top of the range is the binding N). Scan exact rationals on a grid. """ best = {"Q2": None, "Q3": None, "Q1_upper": F(1, 3) - F(delta, 2)} step = F(1, 400) a, b, c = F(0), F(0), F(0) # grid over b, c; a is then determined bc = [] i = 0 while i * step <= F(3, 4): j = 0 while j * step <= F(3, 4): bb, cc = i * step, j * step aa = Qexp - bb - cc if aa < 0: j += 1 continue ok = (aa <= F(1, 3) - F(delta, 2) and F(2, 3) + F(delta) + bb + 2 * cc <= 1 - F(delta) and F(2, 3) + F(delta) + aa + 4 * bb + 3 * cc <= 2 - F(delta) and F(1, 3) + F(delta, 2) + aa + 5 * bb + 2 * cc <= 2 - F(delta)) if ok: bc.append((aa, bb, cc)) j += 1 i += 1 if bc: best["Q2"] = float(max(x[1] for x in bc)) best["Q3"] = float(max(x[2] for x in bc)) best["max_of_all_three"] = float(max(max(x) for x in bc)) best["a_sup"] = float(max(x[0] for x in bc)) best["feasible_points"] = len(bc) return {k: (float(v) if isinstance(v, F) else v) for k, v in best.items()} def main(): out = {"at": "2026-09-19", "A_coefficient_witnesses": part_A(), "B_factor_caps": {}} for eps_p, delta in ((F(1, 50), F(1, 1000)), (F(1, 50), F(1, 100)), (F(1, 10), F(1, 1000))): Qexp = F(1, 2) + eps_p out["B_factor_caps"]["eps'=%s, delta=%s" % (eps_p, delta)] = part_B(eps_p, delta, Qexp) print(json.dumps(out, ensure_ascii=False, indent=1)) with open(os.path.join(RUN, "artifacts", "witness2690.json"), "w", encoding="utf-8", newline="\n") as fh: fh.write(json.dumps(out, ensure_ascii=False, indent=1) + "\n") return 0 if __name__ == "__main__": sys.exit(main())