import numberdb.sage
from sage.rings.rational_field import QQ
from sage.rings.integer_ring import ZZ
from sage.rings.complex_arb import ComplexBallField
# An exterior value at the actual polynomial coefficient k.
k = ZZ(5)
C = ComplexBallField(450)
u = k**4
B = (C(u).log()/4 - C(QQ(6)/u) * C(QQ(256)/u).hypergeometric(
[QQ(5)/4, QQ(3)/2, QQ(7)/4, 1, 1], [2, 2, 2, 2])).real()
print(B)
# Attached generate.py handles the endpoint and Fermat case, and enumerates
# 0, all integers 4..16, positive roots 648^(1/4), 2304^(1/4), and 28.
Exact rational constant-term series and Arb logarithms enclose every k>4 value at 433 working bits. In z=256/k^4 the positive hypergeometric coefficient ratios are less than one, giving an explicit geometric tail. Algebraic coefficients are evaluated using their exact fourth powers, so rounded roots are never substituted. At k=0 Arb zeta and pi enclose the Fermat evaluation.
At k=4 the integrated Clausen square is split at t=1/2. The Gauss connection formula at t=1 gives analytic and square-root series in s=1-t. Their positive coefficients are bounded by one; exact rational polynomial integration and a bound 400*2^(-N-1)/(N+1), with N=426, enclose the omitted high-half integral. Arb encloses gamma factors and algebraic prefactors. All resulting radii are below 1e-120 before 100 significant digits are stored. The attached mathematical-checks.md derives the bounds.
Independent mpmath integration of the Gauss square at 135 and 175 working decimal digits agrees for all 15 exterior coefficients. Independent PARI modular and primitive character L-functions at 140 and 180 digits verify the endpoint and all four CM comparisons, matching the newforms by Fourier coefficients. Independent mpmath zeta checks the Fermat value. Nonzero known-answer controls and deliberately wrong normalization, value and modular-form controls pass. These checks test the implementation and normalization; the rigorous uncertainty comes from the explicit bounds and Arb computation. Executable checks and numerical evidence are attached.