Documentation

Lightlike.SpinFoam.Tests

Trust checks for the Ooguri vertex amplitude, the 3-3 move and the gauge rule #

The vertex conventions (Vertex.lean) #

vertexContr_eq proves for all colourings that the contraction of the canonical intertwiners with FourD's strand rule is the closed form vertexAmp (the 15j symbol fifteenJSimplex in the pentagram order (s₀, s₂, s₄, s₁, s₃), with signs), for both orientations. The checks below evaluate the closed form on explicit colourings at the level of positions (ampP), where vertexAmp s col = ampP J K with J p q = col (s∖{s_p, s_q}) and K i = col (s∖{sᵢ}) holds by definition.

checkvaluetheorem
all spins 01ampP_zero, vertexAmp_zero
spins ½ on the triangles {0,1}ᶜ, {0,3}ᶜ, {1,2}ᶜ, {2,3}ᶜ, virtual spins ½ on the tetrahedra at positions 1, 21/2ampP_cycle
spins ½ on the three triangles and three tetrahedra through the edge of positions 0, 11/√2ampP_tri

The last two values agree with the direct numerical contraction of the five intertwiners with the strand rule, for both orientations (scripts/spinfoam/vertex_check.py; numerical evidence, not proof). tri_of_ampP_ne_zero (Ooguri.lean) lists the ten triads that a nonzero vertex amplitude needs.

Wrong input: the 15j symbol with the identity labelling (s₀, s₁, s₂, s₃, s₄) instead of the pentagram order, i.e. fifteenJSimplex fed directly with the vertex order of Complex4, gives 0 on the same colouring, because it couples the wrong pairs of triangles at the tetrahedron opposite s₀ (fifteenJSimplex_identity_labels).

The 3-3 move (Move33.lean) #

Non-vacuity: amplitudeGF_move33_example applies amplitudeGF_move33 to the 3-3 move {0,2,3} → {4,5,6} on the closed 4-sphere Lightlike.FourD.Tests.K2 (34 triangles, 30 tetrahedra, 12 4-simplices), with no gauge fixing and the cutoffs 3 on the two inner triangles, 6 on every tetrahedron and 1 on every other triangle. All cutoff hypotheses are checked by decide +kernel, so the theorem applies to a genuine complex. amplitudeGF_move33_T33 applies it with the nonempty gauge set T33, which fixes every colourable face of K2 at spin 0 except the triangle {0,2,3} that the move removes and its three tetrahedra.

The gauge-fixed state sum #

The state sum is also defined for an arbitrary vertex amplitude a (amplitudeGFWith, equal to amplitudeGF for a = ampP), so that a deliberately wrong amplitude can be run through it.

checkvaluetheorem
∂Δ⁵, every face outside the edge {0,1} fixed at 0, cutoff ½ on the faces through it5amplitudeGF_sphere6_edge
3-3 move on K2 with the gauge set T33, both sides1amplitudeGF_T33
the same with the wrong amplitude ampBad1 after, 3 beforeampBad_breaks_move33

The first value agrees with the direct numerical state sum, where every tetrahedron is summed over all its admissible virtual spins (scripts/recoupling/ooguri_moves_check.py; numerical evidence, not proof). In it only the zero colouring and the constant colouring ½ contribute (1 + 4).

Wrong model: ampBad is ampP plus 1 on the single colouring (e34, 0) (spin ½ on one triangle), where ampP vanishes. Before the 3-3 move the colouring colStar with spin ½ on {0,2,3} gives each of the three 4-simplices around that triangle this colouring, so it adds 2 · 1³ to the state sum. After the move only the zero colouring survives. The invariance amplitudeGF_move33 therefore depends on the vertex amplitude, not only on the combinatorics of the state sum.

The 2-4 move (Move24.lean, Move24Global.lean) #

Non-vacuity: amplitudeGF_move24_example applies amplitudeGF_move24 to the 2-4 move {0,1,2,3} → {5,6} on K1, the 1-5 subdivision of ∂Δ⁵, with the cutoffs cut24; every cutoff hypothesis is checked by the kernel, and the vertices of the tetrahedron are read in sorted order through orderEmbOfFin_unique.

The 1-5 move (Move15.lean, Move15Global.lean) #

Non-vacuity: amplitudeGF_move15_example applies amplitudeGF_move15 to the 1-5 move {0,1,2,3,4} → {6} on K0 = ∂Δ⁵, with the cutoffs cut15; the sixteen cutoff conditions Cut15 are checked by the kernel, and the vertices of the 4-simplex are read in sorted order through orderEmbOfFin_unique.

The gauge rule (Ooguri.lean) #

checkvaluetheorem
∂Δ⁵, the ten triangles through a vertexgauge rule holds; state sum 1 for every cutoffisGauge_starT, amplitudeGF_starT
∂Δ⁵, ten triangles with no common vertexgauge rule holds; state sum 1 for every cutoffisGauge_twistT, amplitudeGF_twistT
K2, the fifteen triangles through a vertex, before and after the 3-3 movegauge rule holds; state sum 1 for every cutoffisGauge_star1, amplitudeGF_K2_star1, amplitudeGF_K3_star1

Wrong input: gauge9, the star of ∂Δ⁵ without one triangle, breaks the gauge rule (nine triangles, where E − V + 1 = 10; not_isGauge_gauge9), and its state sum with cutoff ½ is 5 instead of 1 (amplitudeGF_gauge9_one): the spins on the faces through the edge it leaves free are summed over.

Non-vacuity: amplitudeGF_move33_star1 applies amplitudeGF_move33_gauge to the 3-3 move on K2 with the gauge set star1 and the cutoffs cut33, with every hypothesis checked by the kernel.

Numerical evidence, not proof: on ∂Δ⁵ a set of ten triangles obeys the gauge rule exactly when it forces all twenty triangles to spin 0, for all 184756 such sets.

Inputs: the Pachner moves (Lightlike/FourD/Pachner.lean) #

Lightlike.FourD.Tests computes the 1-5, 2-4 and 3-3 moves K0 → K1 → K2 → K3 on the boundary of the 5-simplex and their inverses directly. The checks below run the two general theorems on the same moves and compare them with the computation.

checkvaluetheoremcomputed
the moves with σ and τ exchanged undo the three movesK1 → K0, K2 → K1, K3 → K2pachner_move_move_predictspachner_move_move_direct
Euler characteristic of K1, K2, K3 from that of K02pachner_euler4_predictspachner_euler4_direct

Wrong inputs: repeating the 1-5 move on K1 without exchanging σ and τ is not a move, and the move formula then returns K1 itself, not K0 (pachner_repeat_fails); without the signs (-1)^k the face count f₀ + ⋯ + f₄ is 62 on K0 and 92 on K1, so the signs in euler4 are what makes it invariant (pachner_unsigned_euler_fails). Non-vacuity: isMove15, isMove24 and isMove33 are genuine moves, checked by the kernel, and the theorems are applied to them. scripts/recoupling/ooguri_moves_check.py repeats the sequence with an independent implementation (numerical evidence, not proof).

Inputs: the injectivity criterion for the EPRL map (Lightlike/Spin4/Fusion.lean) #

eprlIntertwiner_injective_iff says that for 0 < γ < 1 the EPRL map is injective exactly when Σ_a 2j⁺_a is even or there are no SU(2) intertwiners. Lightlike.Spin4.Test already checks the first branch through eprlIntertwiner_injective (injective_third) and the failure of both (not_injective_counterexample); the checks below cover the second branch.

checkvaluefrom the criterionwithout the criterion
γ = 1/3, J = (3, 3, 3, 3): SU(2) intertwiners exist, Σ 2j⁺ = 8injectiveeprl_injective_iff_parity_predictsinjective_third (from eprlIntertwiner_injective)
γ = 1/2, J = (4, 4, 4, 16): no SU(2) intertwiners (triangle condition; Σ J = 28 is even), Σ 2j⁺ = 21 oddinjectiveeprl_injective_iff_empty_predictseprl_injective_iff_empty_direct (from the intertwiner basis)

Wrong model: the criterion without the alternative "no SU(2) intertwiners", "injective exactly when Σ_a 2j⁺_a is even", is false at J = (4, 4, 4, 16) (eprl_injective_parity_only_fails). Non-vacuity: the labels label_half_four, label_half_sixteen and label_third_three satisfy the hypotheses of the theorem. scripts/recoupling/intertwiner_check.py (section 6) counts the SU(2) intertwiners from the weights (numerical evidence, not proof).

Inputs: Clebsch–Gordan on the diagonal SU(2) (Lightlike/Spin4/ClebschGordan.lean) #

spin4_diag_clebschGordan gives a linear equivalence that carries (n/2, m/2) at (g, g) to the block-diagonal matrix cgMat n m g with the spins (n + m)/2 − k, k ≤ min(n, m). Lightlike.Spin4.Test checks the total dimension of the blocks (card_cgIdx) but never applies the equivalence; the checks below compare traces, which an equivalence preserves (trace_eq_of_intertwine), so cg_trace_predicts turns the theorem into an identity of characters.

checkvaluefrom the theoremcomputed
trace of cgMat 1 1 at diag(e^{iθ}, e^{−iθ})2 cos 2θ + 2cg_trace_half_half_predictscg_trace_half_half_direct (the spin-1 block plus the spin-0 block, and the trace of (½, ½) at (g, g))

Wrong input: off the diagonal. At (g₊, g₋) = (−1, 1) the trace of (½, ½) is −4, while the blocks have trace 4 at −1, so no equivalence carries (½, ½) at every pair (g, h) to the blocks at g (cg_offdiag_fails): the theorem needs g₊ = g₋. Non-vacuity: the theorem has no hypotheses; it is applied at n = m = 1 for every θ. scripts/recoupling/intertwiner_check.py (section 7) compares the two characters as Laurent polynomials for all doubled n, m ≤ 8 and repeats the off-diagonal control (numerical evidence, not proof).

Inputs: the double cover Spin(4) → SO(4) (Lightlike/Spin4/SO4.lean) #

toSO4 sends (p, q) ∈ SU(2) × SU(2) to x ↦ p x q̄ on the quaternions, and toSO4_eq_one_iff says that its kernel is {(1, 1), (−1, −1)}. The checks compare the theorem with the action computed from toSO4_apply.

checkvaluefrom the theoremcomputed
(−1, −1)the identityso4_kernel_predictsso4_kernel_direct (x ↦ (−1) x (−1)* = x)
(1, −1) and (−1, 1)one element, not the identityso4_half_kernel_predictsso4_half_kernel_direct (both are x ↦ −x), so4Mat_one_negOne (the matrix −1)
(i, 1)1 ↦ i, j ↦ kso4_left_i_values

Wrong input: "toSO4 is injective" fails, since (−1, −1) lies in the kernel (so4_trivial_kernel_fails). Non-vacuity: toSO4_eq_one_iff has no hypotheses; it is applied at (−1, −1), (1, −1) and (−1, 1). scripts/recoupling/intertwiner_check.py (section 8) computes the matrices of the 64 pairs from the quaternion group {±1, ±i, ±j, ±k}, finds the kernel {(1, 1), (−1, −1)} among them and checks that every image lies in SO(4) (an independent computation, not proof).

Inputs: completeness of the (j₊, j₋) representations (Lightlike/Spin4/Completeness.lean) #

spin4Rep_complete says that every continuous irreducible representation of Spin(4) on ℂᵈ is equivalent to some (n/2, m/2); Lightlike.Spin4.Test.spin4Rep_complete_needs_continuity shows that the continuity hypothesis is needed. The checks below apply the theorem to the vector representation vecRep, the SO(4) matrix of toSO4Mat with its entries viewed as complex numbers.

checkvaluefrom the theoremcomputed
labels of vecRep(½, ½)completeness_vector_predicts (some (n/2, m/2)) and completeness_vector_labels (any equivalence has n = m = 1: dimension (n + 1)(m + 1) = 4, traces −4 at (1, −1) and (−1, 1))completeness_vector_direct (an explicit equivalence, from half_half_equiv_vector)

Wrong input: (3/2, 0) and (0, 3/2) also have dimension 4, but vecRep is equivalent to neither (completeness_vector_wrong_labels): one of the two traces would be +4. Non-vacuity: vecRep satisfies the hypotheses (continuous_vecRep, vecRep_irreducible). scripts/recoupling/intertwiner_check.py (section 9) lists the labels of dimension 4, finds that the traces force (1, 1), and compares the character 4 cos a cos b of vecRep on the torus with χ_½(a) χ_½(b) and with the characters of the wrong labels (an independent computation, not proof).

References #

theorem Lightlike.SpinFoam.ampP_zero :
(ampP (fun (x x_1 : Fin 5) => 0) fun (x : Fin 5) => 0) = 1

Value check. With all spins 0 the vertex amplitude is 1.

theorem Lightlike.SpinFoam.vertexAmp_zero {V : Type u_1} [LinearOrder V] (s : Finset V) (hs : s.card = 5) :
(vertexAmp s hs fun (x : Finset V) => 0) = 1

Value check (any 4-simplex). The vertex amplitude of the zero colouring is 1.

The triangle spins of the cycle colouring: ½ (doubled 1) on {0,1}ᶜ, {0,3}ᶜ, {1,2}ᶜ, {2,3}ᶜ.

Equations
Instances For

    The virtual spins of the cycle colouring: ½ at positions 1 and 2.

    Equations
    Instances For

      Value check. The vertex amplitude of the cycle colouring is 1/2 (numerically, the direct contraction with the strand rule gives 0.5 for both orientations).

      theorem Lightlike.SpinFoam.fourJ_eq_zero_of_not_tri {j₁ j₂ j₃ j₄ k : ℕ} (h : ¬Pentagon.Tri j₁ j₂ k) (m₁ m₂ m₃ m₄ : ℤ) :
      Recoupling.fourJ j₁ j₂ j₃ j₄ k m₁ m₂ m₃ m₄ = 0

      An intertwiner vanishes unless its first two spins and its virtual spin form a triad.

      Wrong input. The 15j symbol with the identity labelling of the vertices (the vertex order of Complex4 fed directly to fifteenJSimplex) vanishes on the cycle colouring, where the vertex amplitude is 1/2: at the tetrahedron opposite s₀ it couples the spins ½ and 0 to the virtual spin 0.

      The cutoffs of the non-vacuity check of the 3-3 move: 3 on the inner triangles {0,2,3} and {4,5,6}, 6 on the tetrahedra, 1 on the other triangles.

      Equations
      Instances For

        Non-vacuity of the 3-3 invariance. On the closed 4-sphere K2 of the FourD tests, the 3-3 move {0,2,3} → {4,5,6} leaves the state sum with the cutoffs cut33 unchanged; every hypothesis of amplitudeGF_move33 is checked by the kernel.

        The cutoffs of the non-vacuity check of the 2-4 move: 12 on {3,5,6}, 24 on {1,5,6} and {2,5,6}, 100 on the tetrahedra, 1 on the other faces.

        Equations
        Instances For

          Non-vacuity of the 2-4 invariance. On K1 (the 1-5 subdivision of ∂Δ⁵), the 2-4 move {0,1,2,3} → {5,6} leaves the state sum with the cutoffs cut24 unchanged, the new triangle {0,5,6} being fixed; every hypothesis of amplitudeGF_move24 is checked by the kernel.

          The cutoffs of the non-vacuity check of the 1-5 move: 3 on the triangles {6,1,2}, {6,1,3} and {6,2,3}, 10 on the tetrahedra, 1 on the other faces.

          Equations
          Instances For

            Non-vacuity of the 1-5 invariance. On K0 = ∂Δ⁵, the 1-5 move {0,1,2,3,4} → {6} leaves the state sum with the cutoffs cut15 unchanged, the four new triangles {6,0,j} being fixed; every hypothesis of amplitudeGF_move15 is checked by the kernel.

            Trust checks of the gauge-fixed state sum #

            The state sum with an arbitrary vertex amplitude (amplitudeGFWith), and value checks on ∂Δ⁵ and on K2. The support of ampP (tri_of_ampP_ne_zero) is in Ooguri.lean.

            noncomputable def Lightlike.SpinFoam.simpWith {V : Type u_1} [LinearOrder V] (a : (Fin 5 → Fin 5 → ℕ) → (Fin 5 → ℕ) → ℝ) (col : Finset V → ℕ) (s : Finset V) :

            The amplitude of a 4-simplex for an arbitrary vertex amplitude a in place of ampP, read off the colouring at the positions of the sorted vertices exactly as simpW does. It runs the state sum with a deliberately wrong vertex amplitude.

            Equations
            • One or more equations did not get rendered due to their size.
            Instances For
              noncomputable def Lightlike.SpinFoam.weightWith {V : Type u_1} [LinearOrder V] (a : (Fin 5 → Fin 5 → ℕ) → (Fin 5 → ℕ) → ℝ) (K : FourD.Complex4 V) (col : Finset V → ℕ) :

              The weight of a colouring for the vertex amplitude a, as in weight.

              Equations
              Instances For
                noncomputable def Lightlike.SpinFoam.amplitudeGFWith {V : Type u_1} [LinearOrder V] (a : (Fin 5 → Fin 5 → ℕ) → (Fin 5 → ℕ) → ℝ) (K : FourD.Complex4 V) (T : Finset (Finset V)) (cut : Finset V → ℕ) :

                The gauge-fixed state sum for the vertex amplitude a, as in amplitudeGF.

                Equations
                • One or more equations did not get rendered due to their size.
                Instances For
                  theorem Lightlike.SpinFoam.simpWith_ampP {V : Type u_1} [LinearOrder V] (col : Finset V → ℕ) (s : Finset V) :
                  simpWith ampP col s = simpW col s

                  For the Ooguri amplitude ampP, simpWith is simpW.

                  theorem Lightlike.SpinFoam.weightWith_ampP {V : Type u_1} [LinearOrder V] (K : FourD.Complex4 V) (col : Finset V → ℕ) :
                  weightWith ampP K col = weight K col

                  For the Ooguri amplitude ampP, weightWith is weight.

                  theorem Lightlike.SpinFoam.amplitudeGFWith_ampP {V : Type u_1} [LinearOrder V] (K : FourD.Complex4 V) (T : Finset (Finset V)) (cut : Finset V → ℕ) :

                  For the Ooguri amplitude ampP, amplitudeGFWith is amplitudeGF.

                  theorem Lightlike.SpinFoam.simpWith_of_table {V : Type u_1} [LinearOrder V] (a : (Fin 5 → Fin 5 → ℕ) → (Fin 5 → ℕ) → ℝ) (col : Finset V → ℕ) {s : Finset V} (hs : s.card = 5) {v : Fin 5 → V} (hmem : ∀ (i : Fin 5), v i ∈ s) (hv : StrictMono v) {T : Fin 5 → Fin 5 → Finset V} (hT : ∀ (p q : Fin 5), (s.erase (v p)).erase (v q) = T p q) :
                  simpWith a col s = a (fun (p q : Fin 5) => col (T p q)) fun (i : Fin 5) => col (T i i)

                  Evaluation from a table of faces: if v lists the vertices of s in increasing order and T p q is s without v p and v q (so T p p is the tetrahedron opposite v p), the amplitude of s is a at the colours of the table.

                  theorem Lightlike.SpinFoam.simpWith_eq {V : Type u_1} [LinearOrder V] (a : (Fin 5 → Fin 5 → ℕ) → (Fin 5 → ℕ) → ℝ) {col : Finset V → ℕ} {s : Finset V} (hs : s.card = 5) {v : Fin 5 → V} (hmem : ∀ (i : Fin 5), v i ∈ s) (hv : StrictMono v) (T : Fin 5 → Fin 5 → Finset V) (hT : ∀ (p q : Fin 5), (s.erase (v p)).erase (v q) = T p q) {J : Fin 5 → Fin 5 → ℕ} {K : Fin 5 → ℕ} (hJ : ∀ (p q : Fin 5), col (T p q) = J p q) (hK : ∀ (i : Fin 5), col (T i i) = K i) :
                  simpWith a col s = a J K

                  simpWith_of_table with the colours of the table given explicitly.

                  theorem Lightlike.SpinFoam.simpWith_congr {V : Type u_1} [LinearOrder V] (a : (Fin 5 → Fin 5 → ℕ) → (Fin 5 → ℕ) → ℝ) {col col' : Finset V → ℕ} {s : Finset V} (h : ∀ f ⊆ s, f.card = 3 ∨ f.card = 4 → col f = col' f) :
                  simpWith a col s = simpWith a col' s

                  The amplitude of s depends only on the colours of its triangles and tetrahedra.

                  theorem Lightlike.SpinFoam.weightWith_zero {V : Type u_1} [LinearOrder V] {a : (Fin 5 → Fin 5 → ℕ) → (Fin 5 → ℕ) → ℝ} (ha : (a (fun (x x_1 : Fin 5) => 0) fun (x : Fin 5) => 0) = 1) (K : FourD.Complex4 V) :
                  (weightWith a K fun (x : Finset V) => 0) = 1

                  If a is 1 on the zero colouring, the zero colouring has weight 1.

                  theorem Lightlike.SpinFoam.prod_simpWith_filter {V : Type u_1} [LinearOrder V] {a : (Fin 5 → Fin 5 → ℕ) → (Fin 5 → ℕ) → ℝ} (ha : (a (fun (x x_1 : Fin 5) => 0) fun (x : Fin 5) => 0) = 1) (K : FourD.Complex4 V) {col : Finset V → ℕ} (σ : Finset V) (hcol : ∀ (f : Finset V), ¬σ ⊆ f → col f = 0) :
                  ∏ s ∈ K.simps, simpWith a col s = ∏ s ∈ K.simps with σ ⊆ s, simpWith a col s

                  If the colouring vanishes on every face that does not contain σ, only the 4-simplices containing σ contribute to the product of the vertex amplitudes: the others see the zero colouring.

                  A value with six nonzero spins #

                  theorem Lightlike.SpinFoam.fourJ_h0h0 (m m' : ℤ) :
                  Recoupling.fourJ 1 0 1 0 1 m 0 m' 0 = if m = 1 ∧ m' = -1 then 1 / √2 else if m = -1 ∧ m' = 1 then -1 / √2 else 0

                  The intertwiner (½, 0, ½, 0; ½) with zero projections on its spin-0 legs: ±1/√2 on the two opposite projections, 0 otherwise.

                  theorem Lightlike.SpinFoam.fourJ_0h0h (m m' : ℤ) :
                  Recoupling.fourJ 0 1 0 1 1 0 m 0 m' = if m = 1 ∧ m' = -1 then 1 / √2 else if m = -1 ∧ m' = 1 then -1 / √2 else 0

                  The intertwiner (0, ½, 0, ½; ½) with zero projections on its spin-0 legs: ±1/√2 on the two opposite projections, 0 otherwise.

                  theorem Lightlike.SpinFoam.fifteenJSimplex_tri :
                  Recoupling.fifteenJSimplex 0 0 0 0 1 0 1 0 1 0 0 1 1 0 1 = 1 / √2

                  Value check. The 15j symbol with spin ½ on three triangles and three virtual spins (the faces through one edge, below) is 1/√2.

                  Spin 1/2 (doubled 1) on the faces among positions 2, 3, 4, zero elsewhere.

                  Equations
                  Instances For

                    Spin 1/2 on the tetrahedra opposite positions 2, 3, 4, zero elsewhere.

                    Equations
                    Instances For

                      Value check. The vertex amplitude of the colouring with spin ½ on the three triangles and the three tetrahedra through the edge of positions 0, 1 is 1/√2. The direct contraction of the five intertwiners with the strand rule gives the same value for both orientations (scripts/spinfoam/vertex_check.py; numerical evidence, not proof).

                      Support of the vertex amplitude on explicit 4-simplices #

                      theorem Lightlike.SpinFoam.tri_zero_left {y z : ℕ} (h : Pentagon.Tri 0 y z) :
                      y = z

                      A triad with first spin 0 has equal second and third spins.

                      theorem Lightlike.SpinFoam.tri_zero_mid {x z : ℕ} (h : Pentagon.Tri x 0 z) :
                      x = z

                      A triad with second spin 0 has equal first and third spins.

                      theorem Lightlike.SpinFoam.tri_zero_right {x y : ℕ} (h : Pentagon.Tri x y 0) :
                      x = y

                      A triad with third spin 0 has equal first and second spins.

                      theorem Lightlike.SpinFoam.ampP_eq_of_ne_zero {J : Fin 5 → Fin 5 → ℕ} {K : Fin 5 → ℕ} (h : ampP J K ≠ 0) (h02 : J 0 2 = 0) (h03 : J 0 3 = 0) (h04 : J 0 4 = 0) (h12 : J 1 2 = 0) (h14 : J 1 4 = 0) :
                      J 2 3 = K 2 ∧ J 2 4 = K 2 ∧ J 3 4 = K 2 ∧ K 3 = K 2 ∧ K 4 = K 2

                      If the vertex amplitude is nonzero and the triangles opposite the position pairs 02, 03, 04, 12, 14 have spin 0, then the triangles opposite 23, 24, 34 and the tetrahedra opposite 2, 3, 4 all carry the same spin.

                      theorem Lightlike.SpinFoam.simpW_rel {V : Type u_1} [LinearOrder V] {col : Finset V → ℕ} {s : Finset V} (hs : s.card = 5) {v : Fin 5 → V} (hmem : ∀ (i : Fin 5), v i ∈ s) (hv : StrictMono v) {T : Fin 5 → Fin 5 → Finset V} (hT : ∀ (p q : Fin 5), (s.erase (v p)).erase (v q) = T p q) (h : simpW col s ≠ 0) (h0 : col (T 0 2) = 0 ∧ col (T 0 3) = 0 ∧ col (T 0 4) = 0 ∧ col (T 1 2) = 0 ∧ col (T 1 4) = 0) :
                      col (T 2 3) = col (T 2 2) ∧ col (T 2 4) = col (T 2 2) ∧ col (T 3 4) = col (T 2 2) ∧ col (T 3 3) = col (T 2 2) ∧ col (T 4 4) = col (T 2 2)

                      ampP_eq_of_ne_zero for a 4-simplex given by a table of faces.

                      theorem Lightlike.SpinFoam.extS_eq_self {V : Type u_1} [LinearOrder V] {S : Finset (Finset V)} {col : Finset V → ℕ} (h : ∀ f ∉ S, col f = 0) :
                      (PR.extS S fun (f : Finset V) (x : f ∈ S) => col f) = col

                      Extending the restriction to S of a colouring that vanishes outside S gives it back.

                      theorem Lightlike.SpinFoam.extS_apply {V : Type u_1} [LinearOrder V] {S : Finset (Finset V)} (c : (f : Finset V) → f ∈ S → ℕ) {f : Finset V} (hf : f ∈ S) :
                      PR.extS S c f = c f hf

                      Lightlike.PR.extS evaluated on a face of S.

                      The face table of the 4-simplex {0, 1, 3, 4, 5}: entry (p, q) is the simplex without its p-th and q-th vertices.

                      Equations
                      • One or more equations did not get rendered due to their size.
                      Instances For

                        The face table of the 4-simplex {0, 1, 2, 4, 5}: entry (p, q) is the simplex without its p-th and q-th vertices.

                        Equations
                        • One or more equations did not get rendered due to their size.
                        Instances For

                          The face table of the 4-simplex {0, 1, 2, 3, 5}: entry (p, q) is the simplex without its p-th and q-th vertices.

                          Equations
                          • One or more equations did not get rendered due to their size.
                          Instances For

                            The face table of the 4-simplex {0, 1, 2, 3, 4}: entry (p, q) is the simplex without its p-th and q-th vertices.

                            Equations
                            • One or more equations did not get rendered due to their size.
                            Instances For

                              The face table of the 4-simplex {0, 2, 3, 5, 6}: entry (p, q) is the simplex without its p-th and q-th vertices.

                              Equations
                              • One or more equations did not get rendered due to their size.
                              Instances For

                                The face table of the 4-simplex {0, 2, 3, 4, 6}: entry (p, q) is the simplex without its p-th and q-th vertices.

                                Equations
                                • One or more equations did not get rendered due to their size.
                                Instances For

                                  The face table of the 4-simplex {0, 2, 3, 4, 5}: entry (p, q) is the simplex without its p-th and q-th vertices.

                                  Equations
                                  • One or more equations did not get rendered due to their size.
                                  Instances For

                                    The face table of the 4-simplex {2, 3, 4, 5, 6}: entry (p, q) is the simplex without its p-th and q-th vertices.

                                    Equations
                                    • One or more equations did not get rendered due to their size.
                                    Instances For

                                      The face table of the 4-simplex {0, 3, 4, 5, 6}: entry (p, q) is the simplex without its p-th and q-th vertices.

                                      Equations
                                      • One or more equations did not get rendered due to their size.
                                      Instances For

                                        Value on the boundary of the 5-simplex #

                                        The colourable faces of the boundary ∂Δ⁵ that contain the edge {0, 1}.

                                        Equations
                                        Instances For

                                          Colour 1 (spin 1/2) on the faces of sphereFree, 0 elsewhere.

                                          Equations
                                          Instances For

                                            The colouring sphereCol of ∂Δ⁵ has weight 4: the four triangles of spin ½ give 2⁴ = 16, the four 4-simplices through the edge {0, 1} give 1/√2 each, and the other two see the zero colouring.

                                            theorem Lightlike.SpinFoam.sphere_rel {col : Finset (Fin 6) → ℕ} (hS : ∀ s ∈ FourD.Tests.sphere6.simps, simpW col s ≠ 0) (hn : ∀ f ∉ sphereFree, col f = 0) (f : Finset (Fin 6)) :
                                            f ∈ sphereFree → col f = col {0, 1, 2}

                                            On ∂Δ⁵, a colouring supported on sphereFree whose vertex amplitudes are all nonzero is constant on sphereFree.

                                            Value check of the gauge-fixed state sum. On the 4-sphere ∂Δ⁵ (sphere6), with every face outside sphereFree fixed at spin 0 and the cutoff ½ on the triangles and tetrahedra through the edge {0, 1}, the state sum is 1 + 4 = 5: only the zero colouring and the constant colouring ½ contribute. The direct numerical state sum, with every face summed over its admissible spins, gives 5 too (scripts/recoupling/ooguri_moves_check.py).

                                            A wrong amplitude breaks the 3-3 invariance #

                                            Spin 1/2 on the face opposite positions 3 and 4 of a 4-simplex, 0 on the others.

                                            Equations
                                            Instances For
                                              theorem Lightlike.SpinFoam.ampP_e34 :
                                              (ampP e34 fun (x : Fin 5) => 0) = 0

                                              The vertex amplitude vanishes on (e34, 0): the triad (0, ½, 0) of the intertwiner at the tetrahedron opposite position 4 is not admissible.

                                              noncomputable def Lightlike.SpinFoam.ampBad (J : Fin 5 → Fin 5 → ℕ) (K : Fin 5 → ℕ) :

                                              A deliberately wrong vertex amplitude: ampP plus 1 on the single colouring (e34, 0), where ampP vanishes.

                                              Equations
                                              Instances For
                                                theorem Lightlike.SpinFoam.ampBad_zero :
                                                (ampBad (fun (x x_1 : Fin 5) => 0) fun (x : Fin 5) => 0) = 1

                                                ampBad is 1 on the zero colouring, like ampP.

                                                theorem Lightlike.SpinFoam.ampBad_e34 :
                                                (ampBad e34 fun (x : Fin 5) => 0) = 1

                                                ampBad is 1 on (e34, 0), where ampP vanishes.

                                                theorem Lightlike.SpinFoam.ampBad_supp (J : Fin 5 → Fin 5 → ℕ) (K : Fin 5 → ℕ) (h : ampBad J K ≠ 0) :
                                                ampP J K ≠ 0 ∨ J = e34 ∧ K = fun (x : Fin 5) => 0

                                                ampBad vanishes outside the support of ampP and the colouring (e34, 0).

                                                theorem Lightlike.SpinFoam.rel_left_of_ne_zero {a : (Fin 5 → Fin 5 → ℕ) → (Fin 5 → ℕ) → ℝ} (ha : ∀ (J : Fin 5 → Fin 5 → ℕ) (K : Fin 5 → ℕ), a J K ≠ 0 → ampP J K ≠ 0 ∨ J = e34 ∧ K = fun (x : Fin 5) => 0) {J : Fin 5 → Fin 5 → ℕ} {K : Fin 5 → ℕ} (h : a J K ≠ 0) (h04 : J 0 4 = 0) (h24 : J 2 4 = 0) (h14 : J 1 4 = 0) (h13 : J 1 3 = 0) :
                                                J 3 4 ≤ 1 ∧ K 3 = 0 ∧ K 4 = 0

                                                For an amplitude supported like ampBad: if it is nonzero and the triangles opposite 04, 24, 14, 13 have spin 0, then the triangle opposite 34 has spin at most ½ and the tetrahedra opposite 3, 4 have spin 0.

                                                theorem Lightlike.SpinFoam.rel_right_of_ne_zero {a : (Fin 5 → Fin 5 → ℕ) → (Fin 5 → ℕ) → ℝ} (ha : ∀ (J : Fin 5 → Fin 5 → ℕ) (K : Fin 5 → ℕ), a J K ≠ 0 → ampP J K ≠ 0 ∨ J = e34 ∧ K = fun (x : Fin 5) => 0) {J : Fin 5 → Fin 5 → ℕ} {K : Fin 5 → ℕ} (h : a J K ≠ 0) (h02 : J 0 2 = 0) (h04 : J 0 4 = 0) (h03 : J 0 3 = 0) (h13 : J 1 3 = 0) (h34 : J 3 4 = 0) :
                                                J 0 1 = 0 ∧ K 0 = 0 ∧ K 1 = 0

                                                For an amplitude supported like ampBad: if it is nonzero and the triangles opposite 02, 04, 03, 13, 34 have spin 0, then the triangle opposite 01 and the tetrahedra opposite 0, 1 have spin 0.

                                                theorem Lightlike.SpinFoam.simpWith_rel_left {V : Type u_1} [LinearOrder V] {a : (Fin 5 → Fin 5 → ℕ) → (Fin 5 → ℕ) → ℝ} (ha : ∀ (J : Fin 5 → Fin 5 → ℕ) (K : Fin 5 → ℕ), a J K ≠ 0 → ampP J K ≠ 0 ∨ J = e34 ∧ K = fun (x : Fin 5) => 0) {col : Finset V → ℕ} {s : Finset V} (hs : s.card = 5) {v : Fin 5 → V} (hmem : ∀ (i : Fin 5), v i ∈ s) (hv : StrictMono v) {T : Fin 5 → Fin 5 → Finset V} (hT : ∀ (p q : Fin 5), (s.erase (v p)).erase (v q) = T p q) (h : simpWith a col s ≠ 0) (h0 : col (T 0 4) = 0 ∧ col (T 2 4) = 0 ∧ col (T 1 4) = 0 ∧ col (T 1 3) = 0) :
                                                col (T 3 4) ≤ 1 ∧ col (T 3 3) = 0 ∧ col (T 4 4) = 0

                                                rel_left_of_ne_zero for a 4-simplex given by a table of faces.

                                                theorem Lightlike.SpinFoam.simpWith_rel_right {V : Type u_1} [LinearOrder V] {a : (Fin 5 → Fin 5 → ℕ) → (Fin 5 → ℕ) → ℝ} (ha : ∀ (J : Fin 5 → Fin 5 → ℕ) (K : Fin 5 → ℕ), a J K ≠ 0 → ampP J K ≠ 0 ∨ J = e34 ∧ K = fun (x : Fin 5) => 0) {col : Finset V → ℕ} {s : Finset V} (hs : s.card = 5) {v : Fin 5 → V} (hmem : ∀ (i : Fin 5), v i ∈ s) (hv : StrictMono v) {T : Fin 5 → Fin 5 → Finset V} (hT : ∀ (p q : Fin 5), (s.erase (v p)).erase (v q) = T p q) (h : simpWith a col s ≠ 0) (h0 : col (T 0 2) = 0 ∧ col (T 0 4) = 0 ∧ col (T 0 3) = 0 ∧ col (T 1 3) = 0 ∧ col (T 3 4) = 0) :
                                                col (T 0 1) = 0 ∧ col (T 0 0) = 0 ∧ col (T 1 1) = 0

                                                rel_right_of_ne_zero for a 4-simplex given by a table of faces.

                                                The faces of K2 left free in the wrong-amplitude check: the triangle {0,2,3} that the 3-3 move removes and its three tetrahedra.

                                                Equations
                                                Instances For

                                                  The faces that the 3-3 move creates: the triangle {4,5,6} and its three tetrahedra.

                                                  Equations
                                                  Instances For

                                                    The gauge set of the wrong-amplitude check: every colourable face of K2 outside freeK2.

                                                    Equations
                                                    Instances For

                                                      Colour 1 on the triangle {0,2,3}, 0 elsewhere.

                                                      Equations
                                                      Instances For
                                                        theorem Lightlike.SpinFoam.K2_rel {a : (Fin 5 → Fin 5 → ℕ) → (Fin 5 → ℕ) → ℝ} (ha : ∀ (J : Fin 5 → Fin 5 → ℕ) (K : Fin 5 → ℕ), a J K ≠ 0 → ampP J K ≠ 0 ∨ J = e34 ∧ K = fun (x : Fin 5) => 0) {col : Finset (Fin 8) → ℕ} (hS : ∀ s ∈ FourD.Tests.K2.simps, simpWith a col s ≠ 0) (hn : ∀ f ∉ freeK2, col f = 0) :
                                                        col {0, 2, 3} ≤ 1 ∧ col {0, 2, 3, 4} = 0 ∧ col {0, 2, 3, 5} = 0 ∧ col {0, 2, 3, 6} = 0

                                                        On K2, for an amplitude supported like ampBad: a colouring supported on freeK2 with all vertex amplitudes nonzero has spin at most ½ on {0, 2, 3} and 0 on its three tetrahedra.

                                                        theorem Lightlike.SpinFoam.K3_rel {a : (Fin 5 → Fin 5 → ℕ) → (Fin 5 → ℕ) → ℝ} (ha : ∀ (J : Fin 5 → Fin 5 → ℕ) (K : Fin 5 → ℕ), a J K ≠ 0 → ampP J K ≠ 0 ∨ J = e34 ∧ K = fun (x : Fin 5) => 0) {col : Finset (Fin 8) → ℕ} (hS : ∀ s ∈ (FourD.Tests.K2.move FourD.Tests.isMove33).simps, simpWith a col s ≠ 0) (hn : ∀ f ∉ freeK3, col f = 0) :
                                                        col {4, 5, 6} = 0 ∧ col {0, 4, 5, 6} = 0 ∧ col {2, 4, 5, 6} = 0 ∧ col {3, 4, 5, 6} = 0

                                                        After the 3-3 move, for an amplitude supported like ampBad: a colouring supported on freeK3 with all vertex amplitudes nonzero vanishes.

                                                        theorem Lightlike.SpinFoam.amplitudeGFWith_move33_T33 {a : (Fin 5 → Fin 5 → ℕ) → (Fin 5 → ℕ) → ℝ} (ha : ∀ (J : Fin 5 → Fin 5 → ℕ) (K : Fin 5 → ℕ), a J K ≠ 0 → ampP J K ≠ 0 ∨ J = e34 ∧ K = fun (x : Fin 5) => 0) (h1 : (a (fun (x x_1 : Fin 5) => 0) fun (x : Fin 5) => 0) = 1) :

                                                        After the 3-3 move, the state sum with the gauge set T33 is 1 for every amplitude supported like ampBad with value 1 on the zero colouring: only the zero colouring contributes.

                                                        theorem Lightlike.SpinFoam.weightWith_colStar {a : (Fin 5 → Fin 5 → ℕ) → (Fin 5 → ℕ) → ℝ} (h1 : (a (fun (x x_1 : Fin 5) => 0) fun (x : Fin 5) => 0) = 1) :
                                                        weightWith a FourD.Tests.K2 colStar = 2 * (a e34 fun (x : Fin 5) => 0) ^ 3

                                                        On K2, the colouring colStar has weight 2 · a(e34, 0)³: the triangle {0, 2, 3} gives 2, and each of the three 4-simplices through it sees the colouring (e34, 0).

                                                        theorem Lightlike.SpinFoam.amplitudeGFWith_K2_T33 {a : (Fin 5 → Fin 5 → ℕ) → (Fin 5 → ℕ) → ℝ} (ha : ∀ (J : Fin 5 → Fin 5 → ℕ) (K : Fin 5 → ℕ), a J K ≠ 0 → ampP J K ≠ 0 ∨ J = e34 ∧ K = fun (x : Fin 5) => 0) (h1 : (a (fun (x x_1 : Fin 5) => 0) fun (x : Fin 5) => 0) = 1) :
                                                        amplitudeGFWith a FourD.Tests.K2 T33 cut33 = 1 + 2 * (a e34 fun (x : Fin 5) => 0) ^ 3

                                                        Before the 3-3 move, the state sum with the gauge set T33 is 1 + 2 · a(e34, 0)³ for every amplitude supported like ampBad with value 1 on the zero colouring: the zero colouring and colStar contribute.

                                                        Value check of the 3-3 move with a gauge set. For the Ooguri amplitude both sides of the 3-3 move on K2 with the gauge set T33 are 1, because ampP vanishes on (e34, 0).

                                                        Non-vacuity with a nonempty gauge set. amplitudeGF_move33 applies to the 3-3 move on K2 with the gauge set T33, which fixes every colourable face except the triangle {0, 2, 3} that the move removes and its three tetrahedra; the kernel checks every hypothesis.

                                                        Wrong model. For the deliberately wrong vertex amplitude ampBad the two sides of the same 3-3 move differ (1 after the move, 3 before), so the invariance amplitudeGF_move33 is a property of the Ooguri amplitude and not of the combinatorics of the state sum.

                                                        The gauge rule #

                                                        Value checks of IsGauge and of the forcing lemmas of Ooguri.lean. The collapses and the forcing orders are certificates found by a search outside Lean; the kernel checks each of them (collapsible_of_collapsesBy, forces_of_forcesBy).

                                                        The ten triangles of ∂Δ⁵ through the vertex 5: the cone from 5 on the edges of the opposite 4-simplex.

                                                        Equations
                                                        Instances For

                                                          Non-vacuity of the gauge rule. starT obeys the gauge rule on ∂Δ⁵: the vertices, the edges and starT collapse onto the vertex 5.

                                                          Value check. In the gauge starT the state sum on ∂Δ⁵ is 1 for every cutoff: the ten fixed triangles force every other triangle and every virtual spin to 0.

                                                          A second gauge set on ∂Δ⁵, not a star: ten triangles that collapse with the edges onto the vertex 5, with no vertex common to all of them.

                                                          Equations
                                                          Instances For

                                                            Non-vacuity of the gauge rule, a set that is not a star.

                                                            Gauge independence on ∂Δ⁵. The state sum in the gauge twistT is 1 for every cutoff, the same value as in the gauge starT.

                                                            starT without the triangle {0, 1, 5}: nine triangles, one fewer than the gauge rule needs.

                                                            Equations
                                                            Instances For

                                                              Wrong input for the gauge rule. gauge9 does not obey the gauge rule: a gauge set of ∂Δ⁵ has E − V + 1 = 15 − 6 + 1 = 10 triangles (IsGauge.card_eq).

                                                              In the gauge gauge9 the state sum on ∂Δ⁵ equals the state sum in which only the faces through the edge {0, 1} are free: the nine fixed triangles force every other face to 0.

                                                              Wrong gauge, different value. With one triangle too few fixed, the state sum on ∂Δ⁵ with cutoff ½ is 5, not 1: the spins on the faces through the edge {0, 1} are no longer fixed.

                                                              The fifteen triangles of K2 through the vertex 1.

                                                              Equations
                                                              Instances For

                                                                Non-vacuity on K2. star1 obeys the gauge rule on the closed 4-sphere K2, with E − V + 1 = 21 − 7 + 1 = 15: the vertices, the edges and star1 collapse onto the vertex 6.

                                                                Value check. In the gauge star1 the state sum on K2 is 1 for every cutoff.

                                                                Value check after the move. In the same gauge star1 the state sum on K2 after the 3-3 move {0, 2, 3} → {4, 5, 6} is 1 for every cutoff.

                                                                Non-vacuity of the gauge-fixed 3-3 invariance. amplitudeGF_move33_gauge applies to the 3-3 move on K2 with the gauge set star1, which obeys the gauge rule and does not contain the removed triangle {0, 2, 3}; the kernel checks every hypothesis.

                                                                Trust checks of the Pachner moves (Lightlike/FourD/Pachner.lean) #

                                                                The inverse moves undo the moves, from move_move. The moves with σ and τ exchanged take K1 back to K0, K2 to K1 and K3 to K2.

                                                                The same three equalities, computed by the kernel from the lists of 4-simplices, without move_move.

                                                                The Euler characteristic along the moves, from euler4_move. The boundary of the 5-simplex K0 has Euler characteristic 2 (computed); the theorem then gives 2 for K1, K2 and K3.

                                                                The same Euler characteristics, computed from the face numbers, without euler4_move.

                                                                Wrong input for move_move: the 1-5 move repeated without exchanging σ and τ. On K1 the data {0, 1, 2, 3, 4}, {6} is not a move (the vertex 6 is already there), and the move formula applied to it anyway returns K1 unchanged, which is not K0.

                                                                Wrong model for euler4_move: the unsigned face count. Without the signs (-1)^k, the count f₀ + f₁ + f₂ + f₃ + f₄ is 62 on K0 and 92 on K1, so it changes under the 1-5 move.

                                                                Trust checks of the injectivity criterion for the EPRL map (Lightlike/Spin4/Fusion.lean) #

                                                                γ = 1/2, j = 8: (j₊, j₋) = (6, 2).

                                                                theorem Lightlike.SpinFoam.channel_4_4_4_16 :
                                                                Spin4.channel (3 + 1) (3 + 1) (3 + 1) (12 + 4) = ∅

                                                                Doubled spins (4, 4, 4, 16) admit no SU(2) intertwiner, by the triangle condition alone (their sum 28 is even): a spin coupling 4 and 4 is at most 8, a spin coupling 4 and 16 at least 12.

                                                                theorem Lightlike.SpinFoam.eprl_injective_iff_parity_predicts :
                                                                (Spin4.channel (2 + 1) (2 + 1) (2 + 1) (2 + 1)).Nonempty ∧ ∀ (T : Matrix (Spin4.Idx (2 + 1) (2 + 1)) (Spin4.Idx (2 + 1) (2 + 1)) ℂ), Spin4.IsIntertwiner (2 + 1) (2 + 1) (2 + 1) (2 + 1) T → Spin4.eprlIntertwiner 2 2 2 2 1 1 1 1 T = 0 → T = 0

                                                                The parity branch of eprlIntertwiner_injective_iff. For γ = 1/3 and four links j = 3/2 there are SU(2) intertwiners (z = 0 couples all four links), Σ_a 2j⁺_a = 8 is even, and the criterion gives injectivity, as Lightlike.Spin4.Test.injective_third does from eprlIntertwiner_injective.

                                                                theorem Lightlike.SpinFoam.eprl_injective_iff_empty_predicts (T : Matrix (Spin4.Idx (3 + 1) (3 + 1)) (Spin4.Idx (3 + 1) (12 + 4)) ℂ) :
                                                                Spin4.IsIntertwiner (3 + 1) (3 + 1) (3 + 1) (12 + 4) T → Spin4.eprlIntertwiner 3 3 3 12 1 1 1 4 T = 0 → T = 0

                                                                The empty-space branch of eprlIntertwiner_injective_iff. For γ = 1/2 and doubled spins J = (4, 4, 4, 16) the labels are 2j⁺ = (3, 3, 3, 12), so the parity condition of the theorem fails (Σ_a 2j⁺_a = 21 is odd); the criterion still gives injectivity, because the triangle condition leaves no SU(2) intertwiners (channel_4_4_4_16).

                                                                theorem Lightlike.SpinFoam.eprl_injective_iff_empty_direct (T : Matrix (Spin4.Idx (3 + 1) (3 + 1)) (Spin4.Idx (3 + 1) (12 + 4)) ℂ) :
                                                                Spin4.IsIntertwiner (3 + 1) (3 + 1) (3 + 1) (12 + 4) T → Spin4.eprlIntertwiner 3 3 3 12 1 1 1 4 T = 0 → T = 0

                                                                The same injectivity, directly: an SU(2) intertwiner for (4, 4, 4, 16) is the sum of its components along the basis ι_z over the empty channel (eq_sum_ivec), so it is 0; neither the EPRL map nor eprlIntertwiner_injective_iff is used.

                                                                theorem Lightlike.SpinFoam.eprl_injective_parity_only_fails :
                                                                ¬((∀ (T : Matrix (Spin4.Idx (3 + 1) (3 + 1)) (Spin4.Idx (3 + 1) (12 + 4)) ℂ), Spin4.IsIntertwiner (3 + 1) (3 + 1) (3 + 1) (12 + 4) T → Spin4.eprlIntertwiner 3 3 3 12 1 1 1 4 T = 0 → T = 0) ↔ Even (3 + 3 + 3 + 12))

                                                                Wrong model: the parity condition alone. Without the alternative "no SU(2) intertwiners" the criterion would read "injective exactly when Σ_a 2j⁺_a is even"; for γ = 1/2 and doubled spins J = (4, 4, 4, 16) the map is injective (the triangle condition leaves no SU(2) intertwiners, although Σ_a J_a = 28 is even) while Σ_a 2j⁺_a = 21 is odd.

                                                                Trust checks of Clebsch–Gordan on the diagonal SU(2) (Lightlike/Spin4/ClebschGordan.lean) #

                                                                Characters from spin4_diag_clebschGordan: on the diagonal pairs (g, g), the trace of (n/2, m/2) is the trace of the block-diagonal matrix with the spins (n+m)/2 - k.

                                                                theorem Lightlike.SpinFoam.trace_spinMat_torusExp (n : ℕ) (θ : ℝ) :
                                                                (SU2.spinMat n ↑(Spin4.torusExp θ)).trace = ∑ k : Fin (n + 1), Complex.exp (↑((↑n - 2 * ↑↑k) * θ) * Complex.I)

                                                                The trace of spin n/2 at diag(e^{iθ}, e^{-iθ}) is Σ_k e^{i(n-2k)θ}.

                                                                The blocks of (½, ½), computed: cgMat 1 1 has the blocks spin 1 and spin 0, so at diag(e^{iθ}, e^{-iθ}) its trace is (e^{2iθ} + 1 + e^{-2iθ}) + 1 = 2 cos 2θ + 2, the trace of (½, ½) at (g, g) (trace_spin4Mat_half_half_torus).

                                                                The same trace from the theorem: cg_trace_predicts and the trace of (½, ½) at (g, g) give 2 cos 2θ + 2 for the blocks of cgMat 1 1.

                                                                theorem Lightlike.SpinFoam.cg_offdiag_fails :
                                                                (Spin4.spin4Mat 1 1 (SU2.negOne, 1)).trace = -4 ∧ (Spin4.cgMat 1 1 SU2.negOne).trace = 4 ∧ ¬∃ (T : (Spin4.Idx 1 1 → ℂ) ≃ₗ[ℂ] Spin4.CGIdx 1 1 → ℂ), ∀ (g h : ↥SU2) (v : Spin4.Idx 1 1 → ℂ), T ((Spin4.spin4Mat 1 1 (g, h)).mulVec v) = (Spin4.cgMat 1 1 g).mulVec (T v)

                                                                Wrong input: off the diagonal. At (g₊, g₋) = (-1, 1) the trace of (½, ½) is -4, while the blocks of cgMat 1 1 have trace 4 at both -1 and 1; so no equivalence carries (½, ½) at (g, h) to the blocks at g for all pairs, and the theorem needs g₊ = g₋.

                                                                Trust checks of the double cover Spin(4) → SO(4) (Lightlike/Spin4/SO4.lean) #

                                                                Prediction (toSO4_eq_one_iff): (-1, -1) lies in the kernel of Spin(4) → SO(4).

                                                                Direct computation: x ↦ (-1) x (-1)* = x for every quaternion x.

                                                                Prediction: (1, -1) and (-1, 1) differ by the kernel element (-1, -1), so they have the same image, and that image is not the identity.

                                                                Direct computation: (1, -1) and (-1, 1) both act as x ↦ -x.

                                                                The 4 × 4 matrix of (1, -1) is -1.

                                                                theorem Lightlike.SpinFoam.normSq_i :
                                                                Quaternion.normSq { re := 0, imI := 1, imJ := 0, imK := 0 } = 1

                                                                |i|² = 1.

                                                                The unit quaternion i.

                                                                Equations
                                                                Instances For
                                                                  theorem Lightlike.SpinFoam.so4_left_i (x : Quaternion ℝ) :
                                                                  ↑(Spin4.toSO4 (Spin4.quatEquiv quatI, 1)) x = { re := 0, imI := 1, imJ := 0, imK := 0 } * x

                                                                  (i, 1) acts as left multiplication by i.

                                                                  theorem Lightlike.SpinFoam.so4_left_i_values :
                                                                  ↑(Spin4.toSO4 (Spin4.quatEquiv quatI, 1)) 1 = { re := 0, imI := 1, imJ := 0, imK := 0 } ∧ ↑(Spin4.toSO4 (Spin4.quatEquiv quatI, 1)) { re := 0, imI := 0, imJ := 1, imK := 0 } = { re := 0, imI := 0, imJ := 0, imK := 1 }

                                                                  Explicit values: (i, 1) sends 1 ↦ i and j ↦ k.

                                                                  Wrong input: "Spin(4) → SO(4) is injective" fails; (-1, -1) is a second kernel element.

                                                                  Trust checks of the completeness of Spin(4) irreps (Lightlike/Spin4/Completeness.lean) #

                                                                  noncomputable def Lightlike.SpinFoam.vecRep :

                                                                  The vector representation of Spin(4) on ℂ⁴: the SO(4) matrix, complexified.

                                                                  Equations
                                                                  Instances For
                                                                    theorem Lightlike.SpinFoam.vecRep_apply (g : Spin4) :
                                                                    vecRep g = (↑(Spin4.toSO4Mat g)).map fun (r : ℝ) => ↑r

                                                                    vecRep g is the SO(4) matrix of g with real entries viewed as complex numbers.

                                                                    The vector representation is continuous.

                                                                    theorem Lightlike.SpinFoam.vecRep_irreducible (W : Submodule ℂ (Fin 4 → ℂ)) (hW : ∀ (g : Spin4), ∀ v ∈ W, (vecRep g).mulVec v ∈ W) :
                                                                    W = ⊥ ∨ W = ⊤

                                                                    The vector representation is irreducible (via the intertwiner with (1/2, 1/2)).

                                                                    theorem Lightlike.SpinFoam.completeness_vector_predicts :
                                                                    ∃ (n : ℕ) (m : ℕ) (T : (Fin 4 → ℂ) ≃ₗ[ℂ] Spin4.Idx n m → ℂ), ∀ (g : Spin4) (v : Fin 4 → ℂ), T ((vecRep g).mulVec v) = (Spin4.spin4Mat n m g).mulVec (T v)

                                                                    Prediction (spin4Rep_complete): the vector representation is some (n/2, m/2).

                                                                    (1, -1) and (-1, 1) act as -1 on ℂ⁴, so both traces are -4.

                                                                    theorem Lightlike.SpinFoam.completeness_vector_labels {n m : ℕ} (T : (Fin 4 → ℂ) ≃ₗ[ℂ] Spin4.Idx n m → ℂ) (hT : ∀ (g : Spin4) (v : Fin 4 → ℂ), T ((vecRep g).mulVec v) = (Spin4.spin4Mat n m g).mulVec (T v)) :
                                                                    n = 1 ∧ m = 1

                                                                    The labels are forced: any intertwiner from the vector representation to (n/2, m/2) has n = m = 1. The dimension gives (n + 1)(m + 1) = 4; the traces of (1, -1) and (-1, 1), (-1)ᵐ · 4 and (-1)ⁿ · 4, must both be -4, so n and m are odd.

                                                                    theorem Lightlike.SpinFoam.completeness_vector_direct :
                                                                    ∃ (T : (Fin 4 → ℂ) ≃ₗ[ℂ] Spin4.Idx 1 1 → ℂ), ∀ (g : Spin4) (v : Fin 4 → ℂ), T ((vecRep g).mulVec v) = (Spin4.spin4Mat 1 1 g).mulVec (T v)

                                                                    Direct computation: the vector representation is (1/2, 1/2), with an explicit intertwiner (half_half_equiv_vector, inverted).

                                                                    theorem Lightlike.SpinFoam.completeness_vector_wrong_labels :
                                                                    (¬∃ (T : (Fin 4 → ℂ) ≃ₗ[ℂ] Spin4.Idx 3 0 → ℂ), ∀ (g : Spin4) (v : Fin 4 → ℂ), T ((vecRep g).mulVec v) = (Spin4.spin4Mat 3 0 g).mulVec (T v)) ∧ ¬∃ (T : (Fin 4 → ℂ) ≃ₗ[ℂ] Spin4.Idx 0 3 → ℂ), ∀ (g : Spin4) (v : Fin 4 → ℂ), T ((vecRep g).mulVec v) = (Spin4.spin4Mat 0 3 g).mulVec (T v)

                                                                    Wrong input: (3/2, 0) and (0, 3/2) also have dimension 4, but neither is the vector representation: the trace of (1, -1) or (-1, 1) would be +4.