"""Job #2692 (rescue, route 110). QUESTION. Does the one published family of absolute-value bounds over ALL moduli beyond x^(1/2) for a fixed class (BFI II: sum_{q~Q}|psi(x;q,a)-x/phi(q)| << x (log y/log x)^2 (log log x)^B with y = Q^2/x; BFI III / Maynard I Theorem A: << delta^2 x + x (log log x)^O(1)/log^2 x in psi-normalisation at Q = x^(1/2+delta)) pay the band's sufficient input (4.9), sum_{q odd <= Q_1} tau(q)^3 sup_t |Delta_q(t;-2)| = o(x/log x), either at the band's power width (Q_1 = 2x^(1/2+eps')(log x)^(3L)) or at a logarithmic width (Q = x^(1/2)(log x)^b, |b| <= B)? This script evaluates the bounds' block sums as stated, both exactly at three scales and in their asymptotic form; the (log log x)^B factor of BFI II is set to 1 in the theorems' favour; the band's multiplicity is priced at its two bounds tau(q)^3 -> (log x)^(2L) with L = A+13, A = 1, and at the Cauchy-Schwarz cost (log x)^31 against the trivial |Delta_q| << x/phi(q). It estimates no Delta_q. Stdout is the table. (4.9) is an asymptotic statement, so the asymptotic column decides; the exact rows show how far from asymptotic every computable scale is. RUN: python logband2692.py > logband2692.out """ import math def rows(): out = [] eps = 1 / 50 for ex in (10, 20, 50, 200, 1000): L = ex * math.log(10); LL = math.log(L) nb = int(eps * L / math.log(2)) # dyadic blocks in the power band power = sum((j * math.log(2) / L) ** 2 for j in range(1, nb + 1)) # sum over blocks of delta_j^2, relative to x power_asy = eps ** 3 * L / (3 * math.log(2)) # asymptotic form of the same sum for B in (2, 5, 10): nblk = int(2 * B * LL / math.log(2)) + 1 # dyadic blocks in the log band logw = sum((2 * (-B + k * math.log(2) / LL) * LL / L) ** 2 for k in range(nblk)) logw_asy = (8 * B ** 3 / (3 * math.log(2))) * LL ** 3 / L ** 2 # asymptotic form out.append((ex, 'log', B, nblk, logw, logw_asy, logw * L, L ** 28)) out.append((ex, 'power', eps, nb, power, power_asy, power * L, None)) return out if __name__ == '__main__': print('unweighted block sums of the published bounds, relative to x; "ratio" = block sum / (x/log x): (4.9) needs ratio -> 0') print(f"{'x':<8}{'width':<7}{'param':<7}{'blocks':<7}{'exact sum/x':<14}{'asymptotic':<14}{'ratio':<12}{'multiplicity (log x)^28'}") for ex, kind, par, nb, s, asy, ratio, mult in rows(): m = f'{mult:.1e}' if mult else '-' print(f"1e{ex:<6}{kind:<7}{par:<7}{nb:<7}{s:<14.3e}{asy:<14.3e}{ratio:<12.3e}{m}") L = 50 / 0.02 ** 3 * 3 * math.log(2) print('asymptotics: power width ratio ~ eps\'^3 (log x)^2 / (3 log 2) -> infinity; = 1 at log x = %.0f (x = 10^%.0f) for eps\' = 1/50; below x = 10^15 the power band holds less than one dyadic block' % (math.sqrt(3 * math.log(2) / 0.02 ** 3), math.sqrt(3 * math.log(2) / 0.02 ** 3) / math.log(10))) print(' log width ratio ~ (8B^3/(3 log 2)) (log log x)^3 / log x -> 0, but > 1 at every scale printed up to B = 2, x = 10^1000; the multiplicity (log x)^28 exceeds 1/ratio everywhere') print('reading: at power width the unweighted sum fails (4.9) asymptotically (the matrix arithmetic); at log width it passes asymptotically by one logarithm, and only there; the band\'s multiplicity weight then costs (log x)^28 against that single logarithm')