"""Job #2799 (route 46 rev 3 pursuit): price the named d-edge inputs at the split w = 6/25, 1/5, 1/8. Exact rationals, stdlib only. Output (stdout) is deterministic JSON; nothing is timed. Object (reachability-coverage.md section 3.1 (3)): sum_Q lambda_s(Q) sum_{r prime ~ x^w} (log r) C_{Y,Z}(Qr - 2), Q ~ x^(1-w), with C_{Y,Z}(N) = sum_{e | N, Y < e <= E0, N/e > Z} mu(e) beta_Z(N/e) and beta_Z(t) = log t - sum_{l | t, l <= Z} Lambda(l) (prime-detection-spec.md section 4). So C = mu_(Y,E0] * L - mu_(Y,E0] * Lambda_<=Z * 1: the modulus-side variable e ~ x^nu carries mu(e), the complementary variable t (resp. m) is smooth. nu is the exponent of e (residual-coverage.md section 1). Rows (statements read at source this run; locators in the report): BC Bettin-Chandee arXiv:1502.00769v1 Cor. 1 (1.4) through the register's condition (22 max(A,B) + 17 min(A,B))/20 < 1 at (A,B) = (1-w, w) [CONTROL: 20.8/20, 21/20, 21.375/20]. BV bilinear large sieve at level 1/2 (Drappeau 1504.05549v4 Lemma 5.2 = [IK04, Thm 17.4]): max over residues, absolute values over moduli, so mu(e)-weighted moduli are allowed; needs modulus <= x^(1/2)/R, both variables long. C's second piece mu(e) Lambda(l), l <= Z = x^v, has modulus e*l, so the whole of C is inside for nu < 1/2 - v = 9/20 (the first piece alone for nu < 1/2). D51 Drappeau Thm 5.1: x^eta <= N <= Q^(2/3 - eta), x^(1/4) <= Q <= x^(1/2 + delta), fixed residue, NO weight on q in (5.6). Short variable N = r = x^w. delta = delta(eta) unquantified. DI12 Deshouillers-Iwaniec Thm 12 = Drappeau Thm 2.1 at q = 1: g smooth in c and d (2.2). TOP Topacogullari 1605.02364v1 Lemma 2.1 / Thm 1.1: every weight v_i smooth (2.3). PAS Pascadi GAFA doi:10.1007/s00039-026-00746-0 Lemmas 3.2 (Ramanujan) and 3.3 (Weil): complete sums, no sizes. (arXiv:2404.04239v3 has no Lemma 3.x; its DI-type statement is Corollary 18, smooth c, d in Phi.) DISP the corpus's own dispersion row (reachability-coverage.md 3.4): trivial completion needs e1 e2 <= Q, i.e. nu <= (1 - w)/2. """ from fractions import Fraction as F import json W = {"6/25": F(6, 25), "1/5": F(1, 5), "1/8": F(1, 8)} V = F(1, 20) # v = y, the e-side cutoff exponent (residual-coverage.md section 1) NU_MAX = 1 - V # e <= E0 ~ x^(19/20) HALF = F(1, 2) def s(q): return f"{q.numerator}/{q.denominator}" if q.denominator != 1 else str(q.numerator) rows = {} for name, w in W.items(): A, B = 1 - w, w bc = (22 * max(A, B) + 17 * min(A, B)) / 20 # register price exponent d51_upper = F(2, 3) * HALF # N <= Q^(2/3) at Q = x^(1/2) (eta, delta -> 0) rows[name] = { "w": s(w), "level_D_2w": s(2 * w), "BC_exponent": s(bc), "BC_times20": s(bc * 20), "BC_verdict": "fail" if bc >= 1 else "hold", "BC_margin": s(1 - bc), # BV: nu-range covered on the d-edge (mu(e) allowed, absolute values), independent of w for fixed w > 0 "BV_nu_covered": f"nu < {s(HALF - V)} (first piece alone: nu < {s(HALF)})", "BV_needs": "w >= eps (r long), 1-w >= eps (Q long)", "BV_share_of_nu_range": s((HALF - V - V) / (NU_MAX - V)), # Drappeau 5.1 short-variable window at Q = x^(1/2): eta <= w < 1/3 "D51_short_window_upper": s(d51_upper), "D51_window_margin": s(d51_upper - w), "D51_window": "inside" if 0 < w < d51_upper else "outside", "D51_mu_weighted_moduli": "outside hypothesis ((5.6) carries no weight on q)", "D51_nu_covered_if_unweighted": "nu < 1/2 + delta(eta)", "DI12": "silent: needs smooth c,d; mu(e) on the modulus side; no w in the obstruction", "TOP": "silent: all weights smooth; lambda_s(Q), primes r, mu(e) are not", "PAS": "silent: complete-sum bounds (Ramanujan, Weil), no size parameters", "DISP_trivial_completion_nu_max": s((1 - w) / 2), "DISP_inside_BV": (1 - w) / 2 < HALF - V, "uncovered_nu_band_at_d_edge": f"[{s(HALF - V)}, {s(NU_MAX)}]", } # sign of d(exponent)/dw per row signs = { "BC": "d/dw (1.1 - w/4) = -1/4: worsens as w falls (register reading)", "BV": "0 (w-free for fixed w > 0)", "D51": "0 inside eta <= w < 1/3 (delta depends on eta only); window margin 1/3 - w grows as w falls", "DI12": "none (silent at every w)", "TOP": "none (silent at every w)", "PAS": "none (w-free)", "DISP": "d/dw (1-w)/2 = -1/2: completion range grows as w falls, but stays below 1/2", } control = [rows[k]["BC_times20"] for k in ("6/25", "1/5", "1/8")] checks = { "control_BC_times20": control, "control_ok": control == ["104/5", "21", "171/8"], # 20.8, 21.0, 21.375 "BC_formula_identity": all( (F(17, 20) * (1) + F(1, 4) * max(1 - w, w)) == (22 * max(1 - w, w) + 17 * min(1 - w, w)) / 20 for w in W.values()), "D51_window_all_inside": all(r["D51_window"] == "inside" for r in rows.values()), "DISP_all_inside_BV": all(r["DISP_inside_BV"] for r in rows.values()), } print(json.dumps({"rows": rows, "signs": signs, "checks": checks}, indent=1, sort_keys=True))