Audit of Physlib's 6j symbols against standard values #
We build Milestones 4–5 on PhyslibAlpha's 6j symbols (PhyslibAlpha.Sl2.sixJSym, Physlib commit
cdfa609, Alpha tier). As with the curvature definitions, we first check that the definition
gives the standard numbers, by Lean proofs (kernel-checked, no sorry) evaluating their
definition - a sum over projections of four Racah-formula 3j symbols - at concrete arguments.
Method: restrict the 6j sum to the projection tuples where all four 3j symbols are admissible
(completeness of that list is checked by kernel decide over the whole projection box), then
evaluate each 3j symbol exactly (factorials, Real.sqrt, Racah's alternating sum).
Reference values: computed independently with SymPy's wigner_6j (Racah's formula), and agree
with the standard closed form for a zero argument {a b c; 0 c b} = (-1)^(a+b+c)/√((2b+1)(2c+1)).
| 6j symbol | doubled arguments | value | theorem |
|---|---|---|---|
| {0 0 0; 0 0 0} | 0 0 0 0 0 0 | 1 | sixJ_000000 |
| {½ ½ 0; ½ ½ 0} | 1 1 0 1 1 0 | -1/2 | sixJ_hh0_hh0 |
| {½ ½ 1; ½ ½ 0} | 1 1 2 1 1 0 | 1/2 | sixJ_hh1_hh0 |
| {½ ½ 0; ½ ½ 1} | 1 1 0 1 1 2 | 1/2 | sixJ_hh0_hh1 |
| {½ ½ 1; ½ ½ 1} | 1 1 2 1 1 2 | 1/6 | sixJ_hh1_hh1 |
| {1 1 1; 1 1 0} | 2 2 2 2 2 0 | -1/3 | sixJ_111_110 |
| {1 1 1; ½ ½ ½} | 2 2 2 1 1 1 | -1/3 | sixJ_111_hhh |
| {1 1 3; 1 1 1} | 2 2 6 2 2 2 | 0 (triangle rule) | sixJ_113_111 |
| {½ ½ ½; ½ ½ ½} | 1 1 1 1 1 1 | 0 (½+½+½ not an integer) | sixJ_hhh_hhh |
| {2 2 1; 1 1 1} | 4 4 2 2 2 2 | -√5/10 | sixJ_221_111 |
| {2 2 2; 1 1 1} | 4 4 4 2 2 2 | √21/30 | sixJ_222_111 |
| {2 2 2; 2 2 2} | 4 4 4 4 4 4 | -3/70 | sixJ_222_222 |
| {5/2 5/2 1; ½ ½ 2} | 5 5 2 1 1 4 | √35/30 | sixJ_5h5h1_hh2 |
| {5/2 5/2 1; 5/2 5/2 1} | 5 5 2 5 5 2 | -31/210 | sixJ_5h5h1_5h5h1 |
The last five (spins 2 and 5/2, no zero argument) are evaluated through sixJSym_eq_triple, a
general reduction of the 6j sum to three free projections; see the section "Larger spins".
The signs (−1/2, −1/3) confirm the standard Racah–Wigner phase convention; half-integer spins are
covered. General vanishing lemmas: sixJSym_eq_zero_of_triangle, sixJSym_eq_zero_of_parity.
Conventions (for Ponzano–Regge) #
- Units.
sixJSym j₁ … j₆takes doubled spins2j ∈ ℕ:{j₁ … j₆} = sixJSym (2j₁) … (2j₆). - Arrangement. Triads
(j₁ j₂ j₃), (j₁ j₅ j₆), (j₄ j₂ j₆), (j₄ j₅ j₃)- the standard{j₁ j₂ j₃; j₄ j₅ j₆}(columns = pairs of opposite edges of the tetrahedron). - Normalisation/phase. Standard Racah–Wigner 6j: tetrahedral symmetry (
sixJSymEdge_comp_map), orthogonalityΣ (2j₁₂+1)(2j₂₃+1){…}{…} = δ(sum_sixJ_mul_sixJ), recoupling relation⟨(j₁j₂)j₁₂,j₃;J|j₁,(j₂j₃)j₂₃;J⟩ = (-1)^(j₁+j₂+j₃+J) √((2j₁₂+1)(2j₂₃+1)) {j₁ j₂ j₁₂; j₃ J j₂₃}with Condon–Shortley Clebsch–Gordan phases - and the values above. This is the 6j symbol of the Ponzano–Regge state sum, so no rescaling is needed; the Ponzano–Regge edge, triangle and vertex factors ((2j+1), signs(-1)^(…)) are separate and must be added by the amplitude. - Edge indexing.
sixJSymEdge jlabels the six arguments by pairs of triads (vertices of the dual tetrahedron). For a geometric tetrahedron with vertices0…3, the face opposite vertexiis triadi, and facesi, kshare the edge{0,1,2,3} \ {i,k}; so the spin on Physlib's pairs(i,k)is the spin of the geometric edge complementary to{i,k}. All 24 relabellings leave the symbol invariant, so any consistent labelling works.
sixSum as a finite sum over z ∈ [a₁, b₁] (outside, invFact of a negative argument is 0).
A sixJTerm vanishes unless all four 3j symbols are admissible.
Sums over an integer interval as sums over range, so that simp can unroll them.
Restrict the 6j sum to an explicit duplicate-free list l of projection tuples, given that
every other tuple in the box has an inadmissible 3j symbol (checked by decide).
A 6j symbol whose first triad violates the triangle inequality vanishes.
{0 0 0; 0 0 0} = 1.
{½ ½ 0; ½ ½ 0} = -½ (half-integer spins; doubled arguments 1 1 0 1 1 0).
{½ ½ 1; ½ ½ 0} = ½ (doubled 1 1 2 1 1 0).
{½ ½ 1; ½ ½ 1} = 1/6 (half-integer spins, no zero argument; doubled 1 1 2 1 1 2).
{1 1 1; 1 1 0} = -1/3 (integer spins; doubled 2 2 2 2 2 0).
{1 1 3; 1 1 1} = 0 by the triangle rule (3 > 1 + 1; doubled 2 2 6 2 2 2).
{½ ½ ½; ½ ½ ½} = 0: ½ + ½ + ½ is not an integer (doubled perimeter 3 is odd).
{½ ½ 0; ½ ½ 1} = ½ (doubled 1 1 0 1 1 2).
{1 1 1; ½ ½ ½} = -1/3 (doubled 2 2 2 1 1 1).
Larger spins (2 and 5/2) #
The decide over the whole projection box used above does not scale: at spin 2 the box has
9⁶ = 531 441 tuples. sixJSym_eq_triple instead reduces the sum, for all spins, to the three free
projections m₁, m₂, m₄ (admissibility of the 3j symbols fixes the other three). The values are
then sums of products of square roots, closed by surd_finish: split every √n over the primes
2, 3, 5, 7 (sqrt_split_n, each proven by squaring), clear denominators, reduce powers.
The projection tuple fixed by the free projections m₁ = 2i - j₁, m₂ = 2k - j₂,
m₄ = 2l - j₄; the other three are forced by the zero-sum condition of the 3j symbols.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The 6j sum over three free projections. Only tuples with admissible 3j symbols contribute
(sixJTerm_eq_zero); admissibility fixes m₃, m₅, m₆ from m₁, m₂, m₄ and makes each jᵢ - mᵢ
even. So the sum over the ∏ (jᵢ + 1)-element box reduces to (j₁ + 1)(j₂ + 1)(j₄ + 1) terms,
which norm_num unrolls without a kernel decide over the box.
Prove a square-root splitting √n = a * (√p * …) by squaring both sides.
Equations
- Lightlike.SixJAudit.tacticSurd_split = Lean.ParserDescr.node `Lightlike.SixJAudit.tacticSurd_split 1024 (Lean.ParserDescr.nonReservedSymbol "surd_split" false)
Instances For
Finish an identity between sums of products of square roots of small integers.
Equations
- Lightlike.SixJAudit.tacticSurd_finish = Lean.ParserDescr.node `Lightlike.SixJAudit.tacticSurd_finish 1024 (Lean.ParserDescr.nonReservedSymbol "surd_finish" false)
Instances For
{2 2 1; 1 1 1} = -√5/10 (doubled 4 4 2 2 2 2; no zero argument).
{2 2 2; 1 1 1} = √21/30 (doubled 4 4 4 2 2 2; no zero argument).
{2 2 2; 2 2 2} = -3/70 (doubled 4 4 4 4 4 4; no zero argument).
{5/2 5/2 1; ½ ½ 2} = √35/30 (doubled 5 5 2 1 1 4; no zero argument).
{5/2 5/2 1; 5/2 5/2 1} = -31/210 (doubled 5 5 2 5 5 2; no zero argument).