"""Hypothetical variants of the limit constant (double precision; investigation only, nothing here is proved). theta(t) on the band p_{D+1} < t <= p_D (D >= 3) is max{M(t), Q(t)}: M(t) = (D+1)(2-(D+1)(D+2)t) (prime multipliers, degree D+1) Q(t) = sup{U in [D,D+1): min{1, D+1-U+eta(U), cap(U)} >= D(D+1)t} with eta(U) = L0*s(1+1/L0), L0 = 2U/(D+1)-1, for a saving profile s of the sums along the line (a maximum of lines s(V) = 1-lam-kap(V-1) of 'exponent pairs' (kap, lam)), and cap = E_6 = (2D-1)(1-U/(D+1)) for two coefficients. The part t > 1/12 is taken from the program (A_TS_PIECES), optionally improved by further pairs.""" import sys, os sys.path.insert(0, os.path.dirname(os.path.abspath(__file__))); sys.argv = ['x'] import numpy as np from math import log import verify_explicit_waring_stage8 as V # the earlier version of the program (see README.yaml) C0 = float(V.A_C0) DMAX = 4000 def band_Lambda(D, pairs, cap='E6', n=1500, mline=True, ideal=None): a = log(1.0/((D+1)*(D+2))); b = log(1.0/(D*(D+1))) x = np.linspace(a, b, 2*n+1); t = np.exp(x); T = D*(D+1)*t th = np.full_like(t, float(D)) if mline: th = np.maximum(th, (D+1)*(2-(D+1)*(D+2)*t)) if ideal is not None: th = np.maximum(th, ideal(D, t, T)) else: U = D + 1 - T # eta = 0 (the tent) for kap, lam in pairs: # D+1-U + (1-lam)(2U/(D+1)-1) - kap >= T U = np.maximum(U, (D + 1 - (1-lam) - kap - T)/(1 - 2*(1-lam)/(D+1))) if cap == 'E6': U = np.minimum(U, (D+1)*(1 - T/(2*D-1))) th = np.maximum(th, np.maximum(U, D)) f = 1.0/th # integrand in d(log t) h = (b - a)/(2*n) return h/3*(f[0] + f[-1] + 4*f[1:-1:2].sum() + 2*f[2:-1:2].sum()) def low(pairs, **kw): return sum(band_Lambda(D, pairs, n=(1500 if D < 200 else 200), **kw) for D in range(3, DMAX+1)) BASE = [(1/6, 2/3), (1/14, 11/14)] L0 = low(BASE) # check against the exact terms ex3 = 25/104*log(275/171) + 1/8*log(15/11) exD = sum(float(V._A_LSH[D-4]) for D in range(4, DMAX+1)) if hasattr(V, '_A_LSH') else None print('baseline: band 3 =', band_Lambda(3, BASE), 'exact', ex3, '; sum 3..%d =' % DMAX, L0, 'exact', ex3 + exD if exD else None) def const(pairs, **kw): return C0 + 2*(low(pairs, **kw) - L0) if __name__ == '__main__': print('C0* =', C0) print('iota = 1 only :', const([(1/6, 2/3)])) print('A, AA, AAA :', const(BASE + [(1/30, 26/30)])) print('AA replaced by Robert-Sargos (1/13) :', const([(1/6, 2/3), (1/13, 10/13)])) print('AA replaced by (1/12, 9/12) :', const([(1/6, 2/3), (1/12, 9/12)])) hb = [(1/(m*(m-1)), 1 - (m-1)/(m*(m-1))) for m in range(3, 9)] print('derivative tests of H-B type, m=3..8 :', const(hb)) words = [(float(d['kap']), float(d['lam'])) for d in V.A_WORDS] if words: print('all %d word pairs along the line :' % len(words), const(BASE + words), ' with H-B type too:', const(BASE + words + hb)) print('exponent pair conjecture (0, 1/2) :', const([(0.0, 0.5)])) print('two coefficients, ideal (E_6 only) :', const([], ideal=lambda D, t, T: np.minimum((D+1)*(1 - T/(2*D-1)), D + 1.0))) for j in (3, 4, 6): print('%d coefficients, pigeonhole :' % j, const([], ideal=lambda D, t, T, j=j: (D+1)*(1 - T/(min(j, D)*D - min(j, D)*(min(j, D)-1)/2)))) print('all D coefficients, pigeonhole :', const([], ideal=lambda D, t, T: (D+1)*(1 - T/(D*(D+1)/2))))