Trust checks for the contour identity #
For the regular tetrahedron with unit spins the face sums are aᵢ = 3, the quadrilateral sums
bₖ = 4, and Racah's sum has the two terms t = 3, 4:
racahSum = −4! + 5! = 96, so that {1 1 1; 1 1 1} = 96 / 24² = 1/6.
- Known value. Racah's sum of the regular tetrahedron is
96(racahSum_regular), and the residues of Racah's kernel att = 3andt = 4are the two Racah terms−24and120(racahT_regular,tendsto_mul_racahKernel_regular). The integral formracahSum = −(1/π) Im ∫ fis checked numerically on three paths and four spin sets, with maximal relative error8 · 10⁻²⁸(scripts/asymptotics/contour_identity_check.py). - Wrong input fails. For the single pole
1/zwith residue1, the logarithmic primitivelog(−i z)givesIm (Φ(1/2) − Φ(−1/2)) = −π, but0when both end points lie right of the pole (im_log_pole_wrong). So the hypothesisx₁ < n < x₂for every polen ∈ Mis needed; the script shows the same for Racah's kernel whenx₁is put between two poles. - Non-vacuity.
racahSum_eq_im_primitiveapplies to the regular tetrahedron withx₁ = 0andx₂ = 5and gives−Im (Φ(5) − Φ(0)) / π = 96(im_primitive_regular); its proof appliesexists_primitive_im_sub, so the hypotheses of that lemma can all be met. - Junk values. Lean's
x / 0 = 0makesracahKernel a b n = 0at every integern(racahKernel_intCast), where the true kernel has a pole; this is why the derivative statement excludes the integers and the residues are limits over punctured neighbourhoods. Mathlib'sΓ(−n) = 0gives(Γ(−n))⁻¹ = 0, which is the true value of the entire function1/Γ(inv_Gamma_intCast_add_onematches it withinvFact).Complex.log 0 = 0is never used: the end pointsx₁, x₂lie outsideM, so−i (xⱼ − m) ≠ 0for everym ∈ M.
Known value: Racah's sum of the regular unit tetrahedron is −4! + 5! = 96.
Known value: the entire factor of Racah's kernel at t = 3 and t = 4 is Racah's term
without its sign, 4! = 24 and 5! = 120, for the regular unit tetrahedron.
Known value: the residue of Racah's kernel of the regular unit tetrahedron at t = 3 is
Racah's term −4! = −24.
Wrong input fails: for the single pole 1/z with residue 1, the logarithmic primitive
gives Im (Φ(1/2) − Φ(−1/2)) = −π when the pole lies between the end points, but 0 when both
end points 1 and 2 lie right of it.
Non-vacuity of racahSum_eq_im_primitive: for the regular unit tetrahedron, with end
points 0 < 3 and 5 > 4, Racah's kernel has a primitive Φ, continuous at 0 and 5, with
−Im (Φ(5) − Φ(0)) / π = 96.