Skip to content

A fourth derivative can be numerically stable and still differentiate the wrong mass. This laboratory reproduces a published sphere response, then changes the geometry while retaining the same flavor generator. A separate probability-density calculation checks the derivatives without differentiating the partition function numerically.

Prepare with ABJM masses and squashing and current two-point normalizations. The localization derivation belongs to those lessons. Here the aim is to turn their precisely normalized answer into a reproducible calculation and a useful failure test.

Use compact U(1)1×U(1)−1U(1)_1\times U(1)_{-1} ABJM, retaining both gauge circles and adding no quotient of their common center. The rank and positive level are exactly N=k=1N=k=1. The undeformed flat conformal theory has sixteen real Poincaré supercharges and sixteen conformal partners. Its manifest three-dimensional N=2\mathcal N=2 formulation has four real Poincaré generators. Our generic toric background supplies one Euclidean rigid-label direction of each R charge; this is not a count of all symmetries at a special conformal point.

Let L>0L>0 be a length and b>0b>0 the dimensionless squashing parameter. Set ℓ1=Lb\ell_1=Lb, ℓ2=L/b\ell_2=L/b, and use 0≤χ≤π/20\leq\chi\leq\pi/2, with both angles of period 2π2\pi. The complete background inherited from the prerequisite is

ds2=f2dχ2+ℓ12cos⁡2χ dφ2+ℓ22sin⁡2χ dϑ2,f2=ℓ12sin⁡2χ+ℓ22cos⁡2χ,H=if,V=C=0,A(R)=12(1−ℓ1f)dφ+12(1−ℓ2f)dϑ.(LAB12.1)\begin{aligned} ds^2&=f^2d\chi^2+\ell_1^2\cos^2\chi\,d\varphi^2 +\ell_2^2\sin^2\chi\,d\vartheta^2,\\ f^2&=\ell_1^2\sin^2\chi+\ell_2^2\cos^2\chi,\qquad H=\frac{i}{f},\qquad V=C=0,\\ A^{(R)}&=\frac12\left(1-\frac{\ell_1}{f}\right)d\varphi +\frac12\left(1-\frac{\ell_2}{f}\right)d\vartheta. \end{aligned} \tag{LAB12.1}

Use the orientation of the ordered diagonal coframe, the unique spin structure on the unquotiented sphere and the trivial R line bundle. The two-form source has patch potentials with dB=dvol/fdB=d\mathrm{vol}/f; it need not have one global potential. The round limit has H=+i/LH=+i/L. This positive branch gives the first-node Cartan phase e−iπs2e^{-i\pi s^2} and the opposite second-node phase, as derived in the prerequisite. It does not change the inherited coefficient +ik/(4π)+ik/(4\pi) of the Euclidean gauge Chern–Simons action.

In the ordered chiral list (A1,A2,B2,B1)(A_1,A_2,B_2,B_1) take scalar R-charge 1/21/2 and the flavor generator

T=12diag⁡(1,1,−1,−1),Tr⁡4T2=1,x=LσF.(LAB12.2)T=\frac12\operatorname{diag}(1,1,-1,-1),\qquad \operatorname{Tr}_4T^2=1,\qquad x=L\sigma_F. \tag{LAB12.2}

Here xx is the dimensionless source and σF\sigma_F its dimensional value. Freeze the flavor multiplet at aF=0a_F=0, σF=x/L\sigma_F=x/L, DF=−HσFD_F=-H\sigma_F, and zero gauginos. Each chiral therefore feels mass +x/(2L)+x/(2L) or −x/(2L)-x/(2L). The auxiliary source changes with the mass. It is not eliminated by a field equation.

This is the first generator in Binder–Chester–Pufu (3.7). In integer-charge units the source is M=x/2M=x/2. The prerequisite’s displayed charge table chooses a different Cartan direction; the interchange symmetry in Kubo–Nosaka–Pang (2.5) gives the same one-mass partition function. The conversion of charge units does not identify the two charge tables field by field.

Keep the inherited double-sine prescription, the Abel-defined Cartan integral, and no added integer background Chern–Simons counterterms or new subtraction scale. Define Fb(x)=−log⁡Zb(x)F_b(x)=-\log Z_b(x) on the branch continuous from real zero mass. The rank-one result is

Zb(x)=Db(x/2)2.(LAB12.3)Z_b(x)=D_b(x/2)^2. \tag{LAB12.3}

The function DbD_b pairs two chiral determinants. This is KNP (4.11), with its ABJM masses (m1,m2,m3)=(x,0,0)(m_1,m_2,m_3)=(x,0,0) and dual variables (ζ,m)=(x/2,−x/2)(\zeta,m)=(x/2,-x/2). No large-rank approximation is used. We keep real xx; we do not follow that paper’s special complex adjoint-mass tuning mb=i(b2−3)/(4b)m_b=i(b^2-3)/(4b).

Reproduce the round answer and change one input

Section titled “Reproduce the round answer and change one input”

At b=1b=1, D1(w)=1/(2cosh⁡πw)D_1(w)=1/(2\cosh\pi w). Consequently

Z1(0)=14,F1(x)=log⁡4+π2x24−π4x496+O(x6),Fxx(1;0)=π22,Fxxxx(1;0)=−π44.(LAB12.4)\begin{aligned} Z_1(0)&=\frac14,\\ F_1(x)&=\log4+\frac{\pi^2x^2}{4}-\frac{\pi^4x^4}{96}+O(x^6),\\ F_{xx}(1;0)&=\frac{\pi^2}{2},\qquad \boxed{F_{xxxx}(1;0)=-\frac{\pi^4}{4}.} \end{aligned} \tag{LAB12.4}

The last line reproduces BCP (3.43). It is the derivative of the complete source-dependent action. Quadratic scalar-mass terms contribute, so it is not just an integrated four-point function of the linear insertion. The correlator calculation derives that distinction. In BCP’s normalization, (3.9) gives cT=32Re⁡Fxx/π2=16c_T=32\operatorname{Re}F_{xx}/\pi^2=16 at this round point, where one free real scalar has cT=1c_T=1.

For the controlled change b2=3b^2=3, the finite product KNP (A.8) gives

D3(w)=11+2cosh⁡(2πw/3),F3(x)=2log⁡[1+2cosh⁡(πx/3)].(LAB12.5)D_{\sqrt3}(w)=\frac1{1+2\cosh(2\pi w/\sqrt3)},\qquad F_{\sqrt3}(x)=2\log[1+2\cosh(\pi x/\sqrt3)]. \tag{LAB12.5}

To obtain the denominator, multiply the two factors 2cosh⁡(u+iπ/6)2\cosh(u+i\pi/6) and 2cosh⁡(u−iπ/6)2\cosh(u-i\pi/6). Their product is 4cosh⁡2u−1=1+2cosh⁡2u4\cosh^2u-1=1+2\cosh2u. Expanding the logarithm at x=0x=0 gives

Fixed geometryZero-mass partition functionSecond mass derivativeFourth mass derivative
b2=1b^2=11/41/4π2/2\pi^2/2−π4/4-\pi^4/4
b2=3b^2=31/91/94π2/94\pi^2/9−4π4/27-4\pi^4/27

Every derivative in this table is with respect to xx at fixed b,Lb,L. Comparing the rows changes the background; it does not compute ∂b2F\partial_b^2F. Nor does inserting the second row into the round-sphere formula define a new flat-space cTc_T.

The subtraction at zero mass turns the regulated determinant representation into a convergent real integral. Define

Qb=b+b−1,Kb(t)=sinh⁡(Qbt/2)sinh⁡(bt)sinh⁡(t/b).Q_b=b+b^{-1},\qquad K_b(t)=\frac{\sinh(Q_bt/2)}{\sinh(bt)\sinh(t/b)}.

Subtract KNP (A.10) at w=0w=0, combine the two halves of its contour, and put w=x/2w=x/2. The result and its differentiated forms are

ΔFb(x)≡Fb(x)−Fb(0)=4∫0∞Kb(t)tsin⁡2xt2 dt,Fxx(b;0)=2∫0∞tKb(t) dt,Fxxxx(b;0)=−2∫0∞t3Kb(t) dt.(LAB12.6)\begin{aligned} \Delta F_b(x)&\equiv F_b(x)-F_b(0) =4\int_0^\infty\frac{K_b(t)}t\sin^2\frac{xt}{2}\,dt,\\ F_{xx}(b;0)&=2\int_0^\infty tK_b(t)\,dt,\\ F_{xxxx}(b;0)&=-2\int_0^\infty t^3K_b(t)\,dt. \end{aligned} \tag{LAB12.6}

Near zero, Kb(t)=Qb/(2t)+O(t)K_b(t)=Q_b/(2t)+O(t). Thus the three integrands approach Qbx2/2Q_bx^2/2, QbQ_b, and zero, respectively. At infinity they decay exponentially for fixed positive bb. These bounds also justify the mass derivatives on a bounded real interval. The unsubtracted real integral would diverge; it must not be used to guess the absolute normalization. We get Zb(0)Z_b(0) from the exact finite product instead.

The program supports b2=1,3,5,7,9b^2=1,3,5,7,9. For b2=2n−1b^2=2n-1, that product is

Db(w)=∏j=1n[2cosh⁡(πwb+iθj)]−1,θj=πb2(n+12−j).(LAB12.7)D_b(w)=\prod_{j=1}^{n} \left[2\cosh\left(\frac{\pi w}{b}+i\theta_j\right)\right]^{-1}, \qquad \theta_j=\frac{\pi}{b^2}\left(\frac{n+1}{2}-j\right). \tag{LAB12.7}

Conjugate factors pair, giving a positive determinant for real ww. Its analytic derivatives test the integral at each supported geometry. The implementation evaluates KbK_b using exponentials and expm1, rather than overflowing hyperbolic functions or subtracting nearly equal numbers. It uses sin⁡2(xt/2)\sin^2(xt/2) rather than 1−cos⁡xt1-\cos xt near zero.

Mathematical quantityProgram name
b2b^2, dimensionless geometryb_squared
x=LσFx=L\sigma_F, dimensionless test massmass
Db(w)D_b(w), absolutely normalized paired determinantdeterminant(w, b_squared)
Fxx,FxxxxF_{xx},F_{xxxx} at zero massFxx, Fxxxx
Upper integration limitcutoff

Download these four files into one folder:

Download the complete lab (ZIP) with the program, pinned dependencies, reference output and run instructions.

The tested environment is Python 3.13.7 with mpmath 1.3.0. No notebook, repository imports or network access are used during the calculation. From that folder run:

python -m venv .venv
.venv\Scripts\python -m pip install -r requirements.txt
.venv\Scripts\python -I sphere_responses.py
.venv\Scripts\python -I sphere_responses.py --b-squared 3

On systems using a bin directory for virtual environments, replace .venv\Scripts\python with .venv/bin/python. The default run uses 50 decimal digits and a separate mass probe x=0.2x=0.2; the reported derivatives remain at zero mass. Its key values are

Z_zero_mass = 0.25
Z_probe = 0.2268631269963737601119551
Fxx = 4.934802200544679309417245
Fxxxx = -24.35227275850060930911008
round_cT = 16

The JSON distinguishes the integral and product evaluations. Six comparisons, including a repeat at 70 digits, must satisfy a scaled tolerance of 10−3510^{-35}. The program stops with an error if they fail. This tolerance applies to those comparisons, not to finite differentiation steps.

Run the deliberate error separately:

.venv\Scripts\python -I sphere_responses.py --wrong-mass-normalization

It differentiates Db(x)2D_b(x)^2 instead of Db(x/2)2D_b(x/2)^2. The second derivative is four times too large and the fourth is sixteen times too large. The output must say detected: true. This is a changed source, not a rounding error. To test arithmetic precision without changing the source, use --dps 40 or --dps 70.

First, truncating the integral has an analytic bound. For t≥Tt\geq T, put c=Qb/2c=Q_b/2 and dT=(1−e−2bT)(1−e−2T/b)d_T=(1-e^{-2bT})(1-e^{-2T/b}). The exponential form of the kernel gives Kb(t)≤2e−ct/dTK_b(t)\leq2e^{-ct}/d_T. Hence

∣tail(Fxx)∣≤4Γ(2,cT)dTc2,∣tail(Fxxxx)∣≤4Γ(4,cT)dTc4,∣tail(ΔF)∣≤8e−cTdTcT.(LAB12.8)\begin{aligned} |\mathrm{tail}(F_{xx})|&\leq\frac{4\Gamma(2,cT)}{d_Tc^2},& |\mathrm{tail}(F_{xxxx})|&\leq\frac{4\Gamma(4,cT)}{d_Tc^4},\\ |\mathrm{tail}(\Delta F)|&\leq\frac{8e^{-cT}}{d_TcT}. \end{aligned} \tag{LAB12.8}

Here Γ(a,z)=∫z∞ua−1e−udu\Gamma(a,z)=\int_z^\infty u^{a-1}e^{-u}du is the upper incomplete gamma function. The default round cutoff is about 149.668149.668. Its fourth-response tail is bounded by 1.369×10−581.369\times10^{-58}. This bound controls the omitted interval, not the quadrature on the retained interval.

Second, the precision repeat tests arithmetic and adaptive integration. It is not an interval-certified quadrature theorem. The independent product comparison makes an undetected integration error less likely.

Third, finite differences retain their own bias. The program prints steps h=0.08,0.04,0.02h=0.08,0.04,0.02 even though it does not need them for its derivative result. At the last step the round fourth-difference estimate is about −24.32027-24.32027, still about 0.032010.03201 away from the derivative. More working digits at the same hh do not remove that error.

The exact Fourier identity KNP (A.7) supplies a different test. Since Db(s)>0D_b(s)>0 here and ∫Db(s)ds=Db(0)\int D_b(s)ds=D_b(0), define the probability density

pb(s)=Db(s)Db(0),Zb(x)Zb(0)=[∫−∞∞pb(s)eiπxs ds]2.(LAB12.9)p_b(s)=\frac{D_b(s)}{D_b(0)},\qquad \frac{Z_b(x)}{Z_b(0)}= \left[\int_{-\infty}^{\infty}p_b(s)e^{i\pi xs}\,ds\right]^2. \tag{LAB12.9}

The frequency is πx\pi x, not 2πx2\pi x, because the determinant argument is x/2x/2. Expanding the characteristic function and then its logarithm yields

Fxx=2π2⟨s2⟩,Fxxxx=−2π4(⟨s4⟩−3⟨s2⟩2).(LAB12.10)F_{xx}=2\pi^2\langle s^2\rangle, \qquad F_{xxxx}=-2\pi^4 \bigl(\langle s^4\rangle-3\langle s^2\rangle^2\bigr). \tag{LAB12.10}

Direct integration of this positive density checks both normalization and the connected fourth moment. It gives (⟨s2⟩,⟨s4⟩)=(1/4,5/16)(\langle s^2\rangle,\langle s^4\rangle)=(1/4,5/16) at b2=1b^2=1 and (2/9,2/9)(2/9,2/9) at b2=3b^2=3, reproducing the table. The independent calculation also checks b2=5,7,9b^2=5,7,9. This auxiliary probability measure is a representation of the normalized determinant, not a claim that the original oscillatory gauge integral is a positive measure.

At b=1b=1, let the dimensional source be μ\mu and x=Lμx=L\mu. Find the second and fourth μ\mu derivatives at zero. Then add an allowed integer-level background counterterm in the compact integer-charge cover, ΔF=iπκM2\Delta F=i\pi\kappa M^2, where M=x/2M=x/2 and κ∈Z\kappa\in\mathbb Z. Which of the reported real responses changes? Compare with the deliberate wrong-normalization mode.

Hint 1

Each μ\mu derivative contributes a factor of LL. Distinguish rescaling the variable from adding a polynomial to the function.

Hint 2

The counterterm is iπκx2/4i\pi\kappa x^2/4. It has no fourth derivative, and its second derivative is imaginary.

Solution

At fixed LL, Fμμ=L2π2/2F_{\mu\mu}=L^2\pi^2/2 and Fμμμμ=−L4π4/4F_{\mu\mu\mu\mu}=-L^4\pi^4/4. These powers restore the dimensions of derivatives with respect to a mass. The specified counterterm shifts FxxF_{xx} by iπκ/2i\pi\kappa/2 and leaves FxxxxF_{xxxx} unchanged. Thus neither real response changes in this contact-term comparison. It does change a phase-sensitive second source response. The integer condition refers to the stated compact cover, not an arbitrary redefinition of the faithful flavor group.

By contrast, the wrong-normalization mode replaces the entire function by F(2x)F(2x), multiplying its real second and fourth derivatives by four and sixteen. No imaginary quadratic counterterm repairs that mismatch. The lab fixes κ=0\kappa=0 throughout its outputs.

For an even analytic FF, write ΔF(h)=c2h2/2!+c4h4/4!+c6h6/6!+⋯\Delta F(h)=c_2h^2/2!+c_4h^4/4!+c_6h^6/6!+\cdots. Derive the leading errors in

D2(h)=2ΔF(h)h2,D4(h)=2ΔF(2h)−8ΔF(h)h4.D_2(h)=\frac{2\Delta F(h)}{h^2},\qquad D_4(h)=\frac{2\Delta F(2h)-8\Delta F(h)}{h^4}.

Evaluate the round-theory prediction for the fourth-difference error at h=0.02h=0.02. If each of the five raw free energies in the symmetric fourth-difference stencil has absolute numerical error at most ϵ\epsilon, bound its contribution to the derivative error.

Hint 1

The coefficients of h2h^2 in the fourth-difference numerator cancel. Keep the h6h^6 term.

Hint 2

The round expansion has c6=π6/2c_6=\pi^6/2. The five stencil coefficients are 1,−4,6,−4,11,-4,6,-4,1.

Solution

Substitution gives D2=c2+c4h2/12+O(h4)D_2=c_2+c_4h^2/12+O(h^4) and D4=c4+c6h2/6+O(h4)D_4=c_4+c_6h^2/6+O(h^4). Therefore the round fourth-difference bias starts at π6h2/12\pi^6h^2/12, about 0.03204630.0320463 at the chosen step; the actual 0.03200600.0320060 includes the next terms. Halving hh reduces the leading bias by four. This is a convergence prediction, not an exact finite-step equality.

The triangle inequality bounds the numerical-error contribution by 16ϵ/h416\epsilon/h^4. Decreasing the step eventually magnifies fixed input errors, so step and working precision must be varied separately. The released derivative integrals avoid this subtraction problem; the stencil remains a diagnostic.

3. Recover a connected response from moments

Section titled “3. Recover a connected response from moments”

At b2=3b^2=3, use the density moments ⟨s2⟩=2/9\langle s^2\rangle=2/9 and ⟨s4⟩=2/9\langle s^4\rangle=2/9 to recover both mass responses. What wrong fourth response results from using the raw fourth moment? Explain why the correct negative answer is compatible with a positive current two-point coefficient.

Hint 1

Expand the characteristic function to fourth order. Its logarithm subtracts the square of the quadratic term.

Hint 2

The fourth cumulant is 2/9−3(2/9)2=2/272/9-3(2/9)^2=2/27, not 2/92/9.

Solution

Equation (LAB12.10) gives Fxx=4π2/9F_{xx}=4\pi^2/9 and Fxxxx=−4π4/27F_{xxxx}=-4\pi^4/27. Replacing the cumulant with the raw moment instead gives −4π4/9-4\pi^4/9, three times the correct answer. The logarithm of the partition function selects connected combinations. Positivity fixes the sign of the appropriate two-point norm; it does not require every fourth derivative of FF to be positive. The positive density has a positive variance and a positive fourth cumulant here, which produce a positive second and negative fourth response because their Fourier and logarithm signs differ.

These tests establish a specified rank-one response and its controlled background variation. Higher rank, another level, a different mass path or a separated-point four-point function requires additional physics. The deformed-sphere correlator study explains how to pose that next calculation without discarding the nonlinear source terms.