"""Job #4569 (first look, route 45 rev 5). QUESTION: can ANY decomposition of Lambda import Yang's (1.1) (or BFI/Maynard/Lichtman/Pascadi) for the carrier A(x) = sum_{e<=Q, e odd squarefree} 2^omega(e) |psi(x;e,-2) - x/phi(e)| (#1815; Q = floor(x/ceil(x^{12/25}))), whatever the shape of the pieces? SOURCE FACTS (served extraction job1503-yang2608.13299.txt, sha256 12a8ae14..., lines ~120-206): in (1.1) the modulus dq carries gamma_d (arbitrary divisor-bounded, d ~ x^theta with theta < nu, the corollary) times lambda_q, a WELL-FACTORABLE function of level x^{L(nu)-theta-eps}; BFI's and Pascadi's fixed-residue theorems likewise weight the modulus by a well-factorable lambda_q. The lines 149-156 results with a weight on l are prior literature (Pan-Ding-Wang 1975, |f(l)| <= 1, level x^{1/2}; Wang 2018, unweighted l, level x^{4/7}), not Yang's theorem. LEMMA (one line). If lambda is well-factorable of level Q then, taking the split Q1 = Q2 = sqrt(Q), lambda = lambda1 * lambda2 with supports in [1, sqrt Q], so lambda(q) = 0 unless q has a divisor a in [q/sqrt(Q), sqrt(Q)]. In particular lambda vanishes on every prime q in (sqrt Q, Q]. CONSEQUENCE. The carrier's modulus coefficient is sgn(Delta_e) 2^omega(e) (absolute value), and the exchange's is (mu*mu)(e) = -2 on primes: neither is well-factorable, and on moduli e > sqrt(x) with no divisor in [e/x^{L/2}, x^{L/2}] (a "no-window" modulus) EVERY well-factorable weight of level x^L is 0, so no theorem of this family says anything about Delta_e there, whatever the decomposition of Lambda. (The gamma_d slot only reaches d < x^nu, the trivial Type I range of a long smooth variable, and cannot host the pure-prime part of Lambda, whose l = 1.) PRE-REGISTERED. C1: A(x)/x = 0.1508437803, 0.1101..., 0.0815... at x = 1e6, 1e7, 1e8 and the beyond-sqrt shares 0.2048857502, 0.2083811857, 0.2270504005 (#1815 carrier2796.out) reproduce to 1e-8 relative; C2 prime counts 78498, 664579, 5761455; C3 beyond-sqrt prime-modulus share of A(x) 0.0305, 0.0245, 0.0221 (#1981). M (measurement): the share of A(x) on no-window moduli beyond sqrt(x) at L = 5/8 (Pascadi/Yang) and L = 4/7 (BFI), and the beyond-sqrt share on moduli WITH a window (the only ones Maynard 2006.06572's absolute-value result for moduli with a conveniently sized factor can address, up to its exceptional O(delta Q) moduli). No prediction for M beyond: prime share <= no-window share <= beyond-sqrt share. Deterministic; stdout is the artifact.""" import sys, json, math import numpy as np led = [] def check(tag, ok, detail): led.append(f"{'PASS' if ok else 'FAIL'} {tag} :: {detail}"); print(led[-1], file=sys.stderr, flush=True) XS = [10 ** 6, 10 ** 7, 10 ** 8]; X = XS[-1] s = np.ones(X + 1, dtype=bool); s[:2] = False for p in range(2, math.isqrt(X) + 1): if s[p]: s[p * p::p] = False primes = np.flatnonzero(s) pis = {x: int(np.searchsorted(primes, x, side='right')) for x in XS} check('C2_prime_counts', [pis[x] for x in XS] == [78498, 664579, 5761455], str(pis)) lam = np.zeros(X + 1, dtype=np.float64); lam[primes] = np.log(primes.astype(np.float64)) for p in primes[primes <= math.isqrt(X)].tolist(): pk = p * p; lp = math.log(p) while pk <= X: lam[pk] = lp; pk *= p del s def Qdef(x): return x // math.ceil(x ** (12 / 25)) E = Qdef(X) spf = np.zeros(E + 1, dtype=np.int64) for p in range(2, E + 1): if spf[p] == 0: spf[p::p] = np.where(spf[p::p] == 0, p, spf[p::p]) def factor(n): f = [] while n > 1: p = int(spf[n]); f.append(p); n //= p return f def info(e): f = factor(e); sq = len(f) == len(set(f)); ph = 1 for p in set(f): ph *= (p - 1) * p ** (f.count(p) - 1) return sq, len(set(f)), ph, f def divisors(fs): ds = [1] for p in fs: ds = ds + [d * p for d in ds] return ds def has_window(e, fs, x, L): lo = e / x ** (L / 2); hi = x ** (L / 2) return any(lo <= d <= hi for d in divisors(fs)) pub_A = {10 ** 6: 0.1508437803} pub_share = {10 ** 6: 0.2048857502, 10 ** 7: 0.2083811857, 10 ** 8: 0.2270504005} pub_prime_share = {10 ** 6: 0.0305, 10 ** 7: 0.0245, 10 ** 8: 0.0221} rows = [] for x in XS: Q = Qdef(x); rt = math.isqrt(x) A = A_lo = A_hi = A_hi_p = 0.0; A_nw = {'5/8': 0.0, '4/7': 0.0}; n_nw = {'5/8': 0, '4/7': 0}; n_hi = 0 for e in range(1, Q + 1, 2): sq, w, ph, fs = info(e) if e > 1 else (True, 0, 1, []) if not sq: continue ps_ = float(lam[1:x + 1].sum()) if e == 1 else float(lam[e - 2:x + 1:e].sum()) dev = abs(ps_ - (x if e == 1 else x / ph)) * 2 ** w A += dev if e <= rt: A_lo += dev; continue A_hi += dev; n_hi += 1 if len(fs) == 1: A_hi_p += dev for lab, L in (('5/8', 5 / 8), ('4/7', 4 / 7)): if not has_window(e, fs, x, L): A_nw[lab] += dev; n_nw[lab] += 1 rows.append({'x': x, 'Q': Q, 'A_over_x': A / x, 'beyond_share': A_hi / A, 'beyond_prime_share': A_hi_p / A, 'n_beyond': n_hi, 'nowindow_share_5_8': A_nw['5/8'] / A, 'nowindow_share_4_7': A_nw['4/7'] / A, 'n_nowindow_5_8': n_nw['5/8'], 'n_nowindow_4_7': n_nw['4/7'], 'window_share_5_8': (A_hi - A_nw['5/8']) / A}) print(f'x={x} done', file=sys.stderr, flush=True) r6 = rows[0] check('C1_reproduces_1815', abs(r6['A_over_x'] / pub_A[10 ** 6] - 1) < 1e-8 and all(abs(r['beyond_share'] / pub_share[r['x']] - 1) < 1e-8 for r in rows), '; '.join(f"x={r['x']:.0e}: A/x={r['A_over_x']:.10f} beyond share {r['beyond_share']:.10f}" for r in rows)) check('C3_prime_share_matches_1981', all(abs(r['beyond_prime_share'] - pub_prime_share[r['x']]) < 6e-4 for r in rows), '; '.join(f"x={r['x']:.0e}: {r['beyond_prime_share']:.4f}" for r in rows)) check('M_order', all(r['beyond_prime_share'] <= r['nowindow_share_5_8'] + 1e-15 <= r['beyond_share'] + 2e-15 for r in rows), 'prime share <= no-window share (L=5/8) <= beyond-sqrt share at every x') led.append('INFO M: ' + '; '.join(f"x={r['x']:.0e} (Q={r['Q']}): beyond-sqrt share {r['beyond_share']:.4f} = no-window {r['nowindow_share_5_8']:.4f} (L=5/8, {r['n_nowindow_5_8']} of {r['n_beyond']} moduli; L=4/7: {r['nowindow_share_4_7']:.4f}, {r['n_nowindow_4_7']}) + with-window {r['window_share_5_8']:.4f}; primes {r['beyond_prime_share']:.4f}" for r in rows)) print('\n'.join(led)) print('VERDICT ' + json.dumps({'all_pass': all(l.startswith(('PASS', 'INFO')) for l in led), 'rows': rows}))