import numberdb.sage as numberdb
from sage.rings.rational_field import QQ
from sage.rings.real_arb import RealBallField
from sage.rings.complex_arb import ComplexBallField
def even_power_determinant(n, normalization='bessel', digits=100):
n = int(n)
if n < 1 or normalization not in ('bessel', 'period'):
raise ValueError('positive n; normalization bessel or period')
r = (n+1)//2
R = RealBallField(numberdb.bits(digits, losing=96))
if n % 2:
v = R.pi().sqrt()**(r*(r+1)) * R(2).sqrt()**(r*(r-3))
for a in range(1,r):
v *= R(a)**(r-a) / R(2*a+1).sqrt()**(2*a+1)
else:
v = R.pi().sqrt()**((r+1)**2) / (R(2).sqrt()**(r*(r+3))*R(QQ(r+1)/2).gamma())
for a in range(1,r):
v *= R(QQ((2*a+1)**(r-a))/QQ((a+1)**(a+1)))
C = ComplexBallField(R.precision())
if normalization == 'bessel':
return C(v)
s = r*(r-1)//2
return C(v*(-1)**(n*r-s)*QQ(2)**(n*r-2*s)*R.pi()**s)*C.gen(0)**s
# Default selection: all n=1..16, bessel then period.
even_power_determinant(17, 'period')The proved products in (2) and (3) are evaluated using exact integer and rational factors, positive real square roots, and Sage/Arb pi and gamma balls. The 100-digit computation uses 429 working bits, including 96 guard bits. The weakest nonzero component retains 419 relative accuracy bits before serialization. Every written last-place interval contains the full recomputation at 180 requested decimal digits. The exactly zero component follows from the explicit algebraic phase, not from rounding.
A separate mpmath implementation at 190 working decimal digits uses the coupled recurrences of [1], equation (29), starting with $\Delta_1=\pi/2$ and $\Delta_2=\pi^2/4$. Every result in both normalizations lies inside its recorded 100-digit interval. Its period scaling is computed by separate products of row and column factors.
All 16 defining moment matrices, 408 entries per working precision, were separately integrated by direct-$t$ tanh-sinh quadrature at 70 and 100 working decimal digits. The largest relative determinant errors against the recurrence values were $3.8e-52$ and $5.2e-81$, respectively. The quadrature checks use Arb Bessel midpoints, with $K_0$ evaluated through Tricomi $U$ [6]; they are heuristic checks, not integration certificates. The rigorous digit bounds come from the proved products. The four nonzero moment controls $\int K_0=\pi/2$, $\int K_0^2=\pi^2/4$, $\int tK_0=1$ and $\int tK_0^2=1/2$ pass. Wrong sign, phase, a perturbation at relative size $10^{-90}$, NaN, infinity and vacuously wide intervals are rejected.
The attached generator, argument-selection note, executable checks, moment checkpoints, numerical evidence and matching archived skill manifest preserve the computation. Reproduction against the generator is checked separately from mathematical agreement.