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 horizontal_wrapping(r, digits=100):
r = QQ(r) # height divided by width; exact rational input
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)
P01 = F(QQ(2)/(3*r)).sqrt()*(3*T(6*r)-4*T(8*r/3)+T(2*r/3))/(2*E**2)
return 1-X-P01
horizontal_wrapping('3/2')Sage 10.9 and FLINT/Arb real balls enclose the displayed analytic expression at 513 bits for 100 significant decimal digits. Exact rational inputs are enclosed before evaluation. The generator evaluates $1-X-P_{0,1}$, cancelling the constant theta terms in the rank-one numerator 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)})$; absolute coefficients bound the signed rank-one tail. 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 full 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 23 stored decimal intervals with the different event sum $X+P_{1,0}+D$ at 640 bits. It evaluates the original five residue Gaussian sums and the original two-dimensional cross partition sums, with native Arb eta independent of the production eta product, plus a separate reciprocal-product check using native theta and eta. The homology sum uses $1\leq a,b\leq32$ with an explicit exterior Gaussian majorant. The full event partition and oriented axis-exchange identity pass. Controls reject altered digits, reciprocal orientation, one-coordinate aspect errors, omitted slope multiplicity, different events, a doubled color count, zero, NaN and wide balls. These are builder checks within the same CFT input, not an independent scientific verdict or proof of the physical limit. NumberDB decimals denote uncertainty of one unit in the last place.