import numberdb.sage
from sage.rings.rational_field import QQ
from sage.rings.real_arb import RealBallField
from sage.rings.complex_arb import ComplexBallField
def both_wrapping(r, digits=100):
r = QQ(r) # exact height/width ratio
if r <= 0:
raise ValueError("Require r > 0")
F = RealBallField(numberdb.sage.bits(digits, losing=180))
C = ComplexBallField(F.precision())
def T(t):
return C(0).jacobi_theta(C(0, F(t)))[2].real()
E = C(0, F(r)).modular_eta().real()
X = (T(3*r/8)*T(8*r/3) - T(3*r/2)*T(2*r/3))/(2*E**2)
def P(a,b):
A = a*a/r + b*b*r
return F(QQ(2)/(3*r)).sqrt()*(3*T(6*A)-4*T(8*A/3)+T(2*A/3))/(2*E**2)
result = 1-X-P(1,0)-P(0,1)
if not result.is_finite() or result.lower() <= 0 or result.accuracy() < numberdb.sage.bits(digits):
raise ArithmeticError("Increase working precision")
return result
both_wrapping('3/2')Sage 10.9 and FLINT/Arb real balls enclose the analytic expression at 513 bits for 100 significant decimal digits. Exact rational inputs are enclosed before evaluation. The generator evaluates $1-X-P_{1,0}-P_{0,1}$ using theta series and eta products, cancelling the constant terms of each axial winding combination algebraically. The omitted two-sided theta tail after $|k|\leq N$ is bounded by $2e^{-\pi t(N+1)^2}/(1-e^{-\pi t(2N+3)})$. For an axial combination, absolute coefficients give the bound $8e^{-c(N+1)^2}/(1-e^{-c(2N+3)})$, where $c=2\pi A/3$ and $A=a^2/r+b^2r$. For $q=e^{-2\pi r}$, the eta omitted product after $M$ factors lies between $1-q^{M+1}/(1-q)$ and $1$. All tails, input uncertainty and arithmetic errors propagate through the complete expression. Verified theta and eta reciprocity is used where helpful. All production balls are finite, strictly between zero and one, and retain at least 476 bits of relative accuracy.
The executable builder check compares all 12 stored decimal intervals with the separate event sum $X+D$ at 640 bits. It evaluates original residue Gaussian sums and original two-dimensional cross partition sums, with native Arb eta independent of the production eta product, plus a reciprocal-product check with native theta and eta. The homology sum uses $1\leq a,b\leq32$ and an explicit exterior Gaussian majorant. The event partition, reciprocal shapes, published square benchmark to its supported precision and deliberately wrong controls are checked. These are builder checks within the same CFT input, not an independent scientific verdict or a proof of the physical limit. NumberDB decimals denote uncertainty of one unit in the last place.