Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Quantum 6j categorical data and graphical networks

Definition
QuantumSixJNetwork

by igor.kh · Nov 13, 2026 · Mathlib 0df444a (Lean v4.33.1)

monoidal-categoriesquantum-groupsspin-networks

Let K=C(q)K=\mathbb C(q)K=C(q) and let ι:Q(q)↪K\iota:\mathbb Q(q)\hookrightarrow Kι:Q(q)↪K fix the indeterminate. The data are a KKK-linear preadditive monoidal category whose tensor product is additive and linear in each variable, labeled objects VnV_nVn​ for n∈Nn\in\mathbb Nn∈N, an isomorphism V0≅1V_0\cong\mathbb1V0​≅1, and exact self-pairings giving cups and caps satisfying both zigzag identities.

The category axioms are scalar endomorphisms of each labeled object with unique coefficient, vanishing morphisms between distinct labels, the admissible SL(2)\mathrm{SL}(2)SL(2) fusion decompositions, and loop values Δn\Delta_nΔn​. A vertex family chooses a morphism Va⊗Vb⊗Vc→1V_a\otimes V_b\otimes V_c\to\mathbb1Va​⊗Vb​⊗Vc​→1 for each natural triple. Its other vertex forms, horizontally and vertically coupled networks H,XH,XH,X, reflections, and rung operators are defined by explicit compositions using cups and caps. Composition is read left to right, and tensor factors are ordered top to bottom.

The graphical tetrahedral network of equation (6) is

T(a,b,c,d;j,l)=X(a,d,c,b;j)≫HR(a,d,c,b;l)T(a,b,c,d;j,l)=X(a,d,c,b;j)\mathbin{\gg}H^R(a,d,c,b;l)T(a,b,c,d;j,l)=X(a,d,c,b;j)≫HR(a,d,c,b;l)

for nonnegative channels j,lj,lj,l, and zero if either channel is negative. The last channel is the inner rung. In Lean this is Vertex.tet; it is an endomorphism of the tensor unit.

VertexNormalized assumes only the theta value and cyclicity of the trivalent vertex. The separate assumption TetSeed specifies the last-slot-222 initial values

T(a,b,c,d;j,2)=ι ⁣(Tet⁡sum(a,b,c,d;j,2))id1.T(a,b,c,d;j,2)=\iota\!\left(\operatorname{Tet}^{\mathrm{sum}}(a,b,c,d;j,2)\right)\mathrm{id}_{\mathbb1}.T(a,b,c,d;j,2)=ι(Tetsum(a,b,c,d;j,2))id1​.

These values are seed data for the solution of the recurrence and also input to its derivation, rather than vertex-normalization conditions. TetSeed.tet_two states the displayed equality for all natural external labels and natural jjj. No all-channel numerical evaluation, second initial evaluation, braiding or general tetrahedral rotation is assumed.

Kauffman–Lins is the standard reference for diagrammatic notation. Etingof–Ostrik and Chen provide accessible online accounts grounding the category axioms. The relevant representation theory of suq(2)\mathrm{su}_q(2)suq​(2) is not available in Mathlib; constructing it is outside this scope, so the properties required by the argument are assumed explicitly rather than supplied by a constructed category.

Definition code
import Definitions.Def_QuantumSixJScalar

/-!
Diagram conventions for the doc comments below.

* Morphisms compose left to right; each vertical bar `|` is one composition,
  with `≫` or `⊗≫` written above it. A `⊗≫` bar only regroups strands
  (associators and unitors) and draws nothing.
* Tensor factors are stacked top to bottom, so in `X ◁ f` the whisker `X` is
  the top strand and in `f ▷ X` it is the bottom strand.
* Strands carry twice-spin labels: `a` stands for `V a`. A strand ends at the
  left edge if it is an input and at the right edge if it is an output.
* A cup `(` opens two strands of equal label; a cap `)` closes them.
-/

noncomputable section
namespace QuantumSixJ.Network
open CategoryTheory MonoidalCategory
open QuantumSixJ
open scoped BigOperators

universe v u

/-- The scalar field `ℂ(q)`. -/
abbrev K := RatFunc ℂ

/-- The coefficient embedding `ℚ(q) → ℂ(q)`, fixing `q`. -/
def ι : Scalar →+* K :=
  RatFunc.mapRingHom (Polynomial.mapRingHom (algebraMap ℚ ℂ))
    (nonZeroDivisors_le_comap_nonZeroDivisors_of_injective _
      (Polynomial.map_injective _ (algebraMap ℚ ℂ).injective))

open scoped Classical in
/-- The labels `c ≤ a + b` such that `(a, b, c)` is admissible. -/
def fusionRange (a b : ℕ) : Finset ℕ :=
  (Finset.range (a + b + 1)).filter fun c => Admissible (a : ℤ) b c

variable (C : Type u) [Category.{v} C] [Preadditive C] [Linear K C] [MonoidalCategory C]
  [MonoidalPreadditive C] [MonoidalLinear K C]

/-- Label data: labelled objects, each self-dual through one cup and one cap
satisfying both zigzag identities. -/
structure SuQ2Data where
  V : ℕ → C
  unitIso : V 0 ≅ 𝟙_ C
  pairing : ∀ a, ExactPairing (V a) (V a)

variable {C}

namespace SuQ2Data

variable (S : SuQ2Data C)

/-- The cup `𝟙 ⟶ a ⊗ a`.
```text
  .--- a
 (
  `--- a
```
-/
def cup (a : ℕ) : 𝟙_ C ⟶ S.V a ⊗ S.V a := (S.pairing a).coevaluation'

/-- The cap `a ⊗ a ⟶ 𝟙`.
```text
  a ---.
        )
  a ---'
```
-/
def cap (a : ℕ) : S.V a ⊗ S.V a ⟶ 𝟙_ C := (S.pairing a).evaluation'

end SuQ2Data

/-- Category axioms: simplicity of the labelled objects, the `SL(2)` fusion
rules, and the loop values. -/
structure SuQ2Axioms (S : SuQ2Data C) : Prop where
  simple : ∀ a (f : S.V a ⟶ S.V a), ∃! s : K, f = s • 𝟙 (S.V a)
  disjoint : ∀ a b, a ≠ b → ∀ f : S.V a ⟶ S.V b, f = 0
  /-- Fusion: maps `i c` and `p c` with, for `c ∈ fusionRange a b`,
  `i c ≫ p c = 𝟙 (V c)`, and `∑ c ∈ fusionRange a b, p c ≫ i c = 𝟙 (V a ⊗ V b)`.
  ```text
                    ≫                                         ≫
          +-----+       |  +-----+                 +-----+       |  +-----+
          |     |-- a --|--|     |         a ------|     |       |  |     |------ a
  c ------| i c |       |  | p c |------ c         | p c |-- c --|--| i c |
          |     |-- b --|--|     |         b ------|     |       |  |     |------ b
          +-----+       |  +-----+                 +-----+       |  +-----+

          i c ≫ p c  =  c ----- c          sum over c of  p c ≫ i c  =  identity on a, b
  ```
  -/
  fusion : ∀ a b, ∃ (i : ∀ c, S.V c ⟶ S.V a ⊗ S.V b) (p : ∀ c, S.V a ⊗ S.V b ⟶ S.V c),
    (∀ c ∈ fusionRange a b, i c ≫ p c = 𝟙 (S.V c)) ∧
      ∑ c ∈ fusionRange a b, p c ≫ i c = 𝟙 (S.V a ⊗ S.V b)
  /-- The loop `cup a ≫ cap a` is the scalar `Δ a`.
  ```text
               ≫
     .--- a ---|--- a ---.
    (          |          )      =  ι (Δ a) • 𝟙
     `--- a ---|--- a ---'
  ```
  -/
  loop : ∀ a, S.cup a ≫ S.cap a = ι (Δ a) • 𝟙 (𝟙_ C)

/-- Vertex data: a chosen 3-vertex for each triple of labels.
`vertex a b c` has inputs `a, b, c`, top to bottom, and no outputs.
```text
       +-------+
  a ---|       |
  b ---|vertex |
  c ---| a b c |
       +-------+
```
-/
structure Vertex (S : SuQ2Data C) where
  vertex : ∀ a b c, S.V a ⊗ S.V b ⊗ S.V c ⟶ 𝟙_ C

namespace Vertex

variable {S : SuQ2Data C} (W : Vertex S)

/-- Move the first leg of a 3-leg covector to the last place.
The leg that `f` takes first (top) is carried around the right end and becomes
the last (bottom) input; the picture has no crossings.
```text
               ⊗≫                      ⊗≫                     ⊗≫
     𝟙         |    cup a ▷ (b⊗c⊗a)    |     a ◁ (f ▷ a)      |  cap a
               |                       |                      |
               |    .------- a --------|--------- a ----------|---.
               |   (                   |                      |    \
               |    `------- a --------|------ a ---+---+     |     \
               |                       |            |   |     |      |
 b ----------- | ----------- b --------|------ b ---| f |     |      |
               |                       |            |   |     |      |
 c ----------- | ----------- c --------|------ c ---+---+     |      |
               |                       |                      |     /
 a ----------- | ----------- a --------|--------- a ----------|----'
```
-/
def rotate {a b c : ℕ} (f : S.V a ⊗ S.V b ⊗ S.V c ⟶ 𝟙_ C) :
    S.V b ⊗ S.V c ⊗ S.V a ⟶ 𝟙_ C :=
  𝟙 _ ⊗≫ (S.cup a ▷ (S.V b ⊗ S.V c ⊗ S.V a)) ⊗≫
    (S.V a ◁ (f ▷ S.V a)) ⊗≫ S.cap a

/-- `I^{abc}`: the vertex `I_{cba}` with all three legs bent, by nested cups.
```text
           ⊗≫        ⊗≫          ⊗≫            ⊗≫
     (1)   |   (2)   |    (3)    |     (4)     |  (5)
           |         |           |  +-------+  |
  .-- c ---|--- c ---|---- c ----|--|       |  |
 (         |         |           |  |       |  |
  |        |  .- b --|---- b ----|--| c b a |  |
  |        | (       |           |  |       |  |
  |        |  |      |  .- a ----|--|       |  |
  |        |  |      | (         |  +-------+  |
  |        |  |      |  `- a ----|-------------|---- a
  |        |  `- b --|---- b ----|-------------|---- b
  |        |         |           |             |
  `-- c ---|--- c ---|---- c ----|-------------|---- c

  (1) cup c                 (2) c ◁ (cup b ▷ c)    (3) c ◁ ((b ◁ (cup a ▷ b)) ▷ c)
  (4) vertex c b a ▷ (a ⊗ b ⊗ c)                   (5) 𝟙
```
-/
def vertexUp (a b c : ℕ) : 𝟙_ C ⟶ S.V a ⊗ S.V b ⊗ S.V c :=
  S.cup c ⊗≫ (S.V c ◁ (S.cup b ▷ S.V c)) ⊗≫
    (S.V c ◁ ((S.V b ◁ (S.cup a ▷ S.V b)) ▷ S.V c)) ⊗≫
    (W.vertex c b a ▷ (S.V a ⊗ S.V b ⊗ S.V c)) ⊗≫ 𝟙 _

/-- `I_l^{ab} : V_l → V_a ⊗ V_b`: the vertex `I_{bal}` with its first two legs bent.
```text
         ⊗≫          ⊗≫           ⊗≫          ⊗≫
   (1)   |    (2)    |    (3)     |    (4)    |  (5)
         |           |            |           |
         |  .-- a ---|---- a -----|----- a ---|---- a
         | (         |            |           |
         |  |        |  .-- b ----|----- b ---|---- b
         |  |        | (          |  +-----+  |
         |  |        |  `-- b ----|--|     |  |
         |  |        |            |  |     |  |
         |  `-- a ---|---- a -----|--|b a l|  |
         |           |            |  |     |  |
  l -----|---- l ----|---- l -----|--|     |  |
         |           |            |  +-----+  |

  (1) 𝟙    (2) cup a ▷ l    (3) a ◁ ((cup b ▷ a) ▷ l)
  (4) a ◁ b ◁ vertex b a l    (5) 𝟙
```
-/
def split (l a b : ℕ) : S.V l ⟶ S.V a ⊗ S.V b :=
  𝟙 _ ⊗≫ (S.cup a ▷ S.V l) ⊗≫ (S.V a ◁ ((S.cup b ▷ S.V a) ▷ S.V l)) ⊗≫
    (S.V a ◁ S.V b ◁ W.vertex b a l) ⊗≫ 𝟙 _

/-- `I_{ab}^l : V_a ⊗ V_b → V_l`: the vertex `I_{abl}` with its last leg bent.
```text
         ⊗≫        ⊗≫          ⊗≫
   (1)   |   (2)   |    (3)    |  (4)
         |         |  +-----+  |
  a -----|--- a ---|--|     |  |
         |         |  |     |  |
  b -----|--- b ---|--|a b l|  |
         |         |  |     |  |
         |  .- l --|--|     |  |
         | (       |  +-----+  |
         |  `- l --|---- l ----|---- l

  (1) 𝟙    (2) (a ⊗ b) ◁ cup l    (3) vertex a b l ▷ l    (4) 𝟙
```
-/
def fuse (a b l : ℕ) : S.V a ⊗ S.V b ⟶ S.V l :=
  𝟙 _ ⊗≫ ((S.V a ⊗ S.V b) ◁ S.cup l) ⊗≫ (W.vertex a b l ▷ S.V l) ⊗≫ 𝟙 _

/-- The vertical state `X_l`.
```text
            ⊗≫            ⊗≫
    (1)     |     (2)     |  (3)
            |  +-------+  |
  .--- l ---|--| split |--|--- a
 (          |  | l a b |  |
  |         |  |       |--|--- b
  |         |  +-------+  |
  |         |  +-------+  |
  |         |  |       |--|--- c
  |         |  | split |  |
  `--- l ---|--| l c d |--|--- d
            |  +-------+  |

  (1) cup l    (2) split l a b ⊗ₘ split l c d    (3) 𝟙
```
-/
def X (a b c d l : ℕ) : 𝟙_ C ⟶ S.V a ⊗ S.V b ⊗ S.V c ⊗ S.V d :=
  S.cup l ⊗≫ (W.split l a b ⊗ₘ W.split l c d) ⊗≫ 𝟙 _

/-- The reflected vertical state `X_l^R`.
```text
         ⊗≫                 ⊗≫
   (1)   |       (2)        |   (3)
         |   +---------+    |
  a -----|---|  fuse   |    |
         |   |  a b l  |-l--|---.
  b -----|---|         |    |    \
         |   +---------+    |     |
         |   +---------+    |     |
  c -----|---|  fuse   |    |    /
         |   |  c d l  |-l--|---'
  d -----|---|         |    |
         |   +---------+    |

  (1) 𝟙    (2) fuse a b l ⊗ₘ fuse c d l    (3) cap l
```
-/
def Xcov (a b c d l : ℕ) : S.V a ⊗ S.V b ⊗ S.V c ⊗ S.V d ⟶ 𝟙_ C :=
  𝟙 _ ⊗≫ (W.fuse a b l ⊗ₘ W.fuse c d l) ⊗≫ S.cap l

/-- The horizontal state `H_j`.
```text
                    ⊗≫                 ⊗≫
         (1)        |       (2)        |  (3)
  +----------+      |                  |
  |          |-- a -|------- a --------|--- a
  | vertexUp |      |   +---------+    |
  |  a j d   |-- j -|---|  split  |----|--- b
  |          |      |   |  j b c  |    |
  |          |      |   |         |----|--- c
  |          |      |   +---------+    |
  |          |-- d -|------- d --------|--- d
  +----------+      |                  |

  (1) vertexUp a j d    (2) a ◁ (split j b c ▷ d)    (3) 𝟙
```
-/
def H (a b c d j : ℕ) : 𝟙_ C ⟶ S.V a ⊗ S.V b ⊗ S.V c ⊗ S.V d :=
  W.vertexUp a j d ⊗≫ (S.V a ◁ (W.split j b c ▷ S.V d)) ⊗≫ 𝟙 _

/-- The reflected horizontal state `H_j^R`.
```text
         ⊗≫                 ⊗≫
   (1)   |       (2)        |      (3)
         |                  |  +-------+
  a -----|------- a --------|--|       |
         |   +---------+    |  |       |
  b -----|---|  fuse   |    |  |vertex |
         |   |  b c j  |-j--|--| a j d |
  c -----|---|         |    |  |       |
         |   +---------+    |  |       |
  d -----|------- d --------|--|       |
         |                  |  +-------+

  (1) 𝟙    (2) a ◁ (fuse b c j ▷ d)    (3) vertex a j d
```
-/
def Hcov (a b c d j : ℕ) : S.V a ⊗ S.V b ⊗ S.V c ⊗ S.V d ⟶ 𝟙_ C :=
  𝟙 _ ⊗≫ (S.V a ◁ (W.fuse b c j ▷ S.V d)) ⊗≫ W.vertex a j d

/-- The operator `K2` on `V_a ⊗ V_b`, with the two dotted vertices of the paper:
`[a][b]` times a rung of label `2` from the `a` strand to the `b` strand.
```text
                   ⊗≫
          (1)      |       (2)
       +-------+   |
  a ---| split |---|------- a -------- a
       | a a 2 |   |
       |       |-2-|---+-------+
       +-------+   |   | fuse  |
  b ---------------|---| 2 b b |------ b
                   |   +-------+

  ι ([a] [b]) • ( (1) ⊗≫ (2) ),    (1) split a a 2 ▷ b    (2) a ◁ fuse 2 b b
```
-/
def K2 (a b : ℕ) : S.V a ⊗ S.V b ⟶ S.V a ⊗ S.V b :=
  ι (⟬(a : ℤ)⟭ * ⟬(b : ℤ)⟭) •
    ((W.split a a 2 ▷ S.V b) ⊗≫ (S.V a ◁ W.fuse 2 b b))

/-- The operator `L`: `K2` acting on the first two of the four legs.
```text
         ⊗≫             ⊗≫
   (1)   |      (2)     |  (3)
         |   +-------+  |
  a -----|---|       |--|--- a
         |   |  K2   |  |
  b -----|---|  a b  |--|--- b
         |   +-------+  |
  c -----|------ c -----|--- c
  d -----|------ d -----|--- d

  (1) 𝟙    (2) K2 a b ▷ (c ⊗ d)    (3) 𝟙
```
-/
def Kop (a b c d : ℕ) :
    S.V a ⊗ S.V b ⊗ S.V c ⊗ S.V d ⟶ S.V a ⊗ S.V b ⊗ S.V c ⊗ S.V d :=
  𝟙 _ ⊗≫ (W.K2 a b ▷ (S.V c ⊗ S.V d)) ⊗≫ 𝟙 _

open scoped Classical in
/-- The graphical tetrahedral network of equation (6).
Composition is read left to right; l is the inner rung.
```text
                 ≫
  +---------+    |   +---------+
  |         |-a--|---|         |
  |   X_j   |-d--|---|  H_l^R  |
  | a d c b |-c--|---| a d c b |
  |         |-b--|---|         |
  +---------+    |   +---------+

  X a d c b j   ≫   Hcov a d c b l
```
The value is zero if either channel is negative.
-/
def tet (a b c d : ℕ) (j l : ℤ) : 𝟙_ C ⟶ 𝟙_ C :=
  if 0 ≤ j ∧ 0 ≤ l then W.X a d c b j.toNat ≫ W.Hcov a d c b l.toNat else 0

end Vertex

/-- Vertex normalization: the normalization of the chosen vertex. -/
structure VertexNormalized {S : SuQ2Data C} (W : Vertex S) : Prop where
  /-- The theta network.
  ```text
                     ≫
    +----------+     |   +--------+
    |          |- a -|---|        |
    | vertexUp |- b -|---| vertex |      =  ι (θ a b c) • 𝟙
    |  a b c   |- c -|---| a b c  |
    +----------+     |   +--------+
  ```
  -/
  theta : ∀ a b c : ℕ, W.vertexUp a b c ≫ W.vertex a b c = ι (θ a b c) • 𝟙 (𝟙_ C)
  /-- Cyclicity: the `rotate` diagram with `f = vertex a b c` equals `vertex b c a`. -/
  cyclic : ∀ a b c : ℕ, Vertex.rotate (W.vertex a b c) = W.vertex b c a

/-- Seed data for the graphical tetrahedral recurrence: its values at inner
rung `l = 2`. These initial values also serve as input to the derivation of
the recurrence, separately from vertex normalization.
-/
structure TetSeed {S : SuQ2Data C} (W : Vertex S) : Prop where
  /-- The `tet` diagram with inner rung `l = 2` equals the Appendix sum `tetSum`.
  The scalar arguments remain `a b c d j 2`; only the network presentation
  permutes the boundary labels to `a d c b`.
  -/
  tet_two : ∀ a b c d j : ℕ, W.tet a b c d j 2 = ι (tetSum a b c d j 2) • 𝟙 (𝟙_ C)

end QuantumSixJ.Network
end
Source
I. Khavkine, Recurrence relation for the 6j-symbol of su_q(2) as a symmetric eigenvalue problem, International Journal of Geometric Methods in Modern Physics (2015); https://doi.org/10.1142/S0219887815501170; https://arxiv.org/abs/1009.2261. Eq. (6), graphical Tet; Eqs. (23), (24). Notation: Kauffman–Lins (1994), https://press.princeton.edu/books/paperback/9780691036403/temperley-lieb-recoupling-theory-and-invariants-of-3-manifolds. Category properties: Etingof–Ostrik, https://arxiv.org/abs/math/0302130, §2; Chen, https://arxiv.org/abs/1502.06845.
Read-back

What the Lean code literally says, in plain math · openai/gpt-6.1-sol

Labelled monoidal networks and tetrahedral seed values

Conventions and scalar quantities

All labels denoted by a,b,c,da,b,c,da,b,c,d below are natural numbers unless a different domain is stated. The ambient category CCC has objects in a universe uuu and morphisms in a universe vvv, with a category structure, an additive abelian-group structure on each morphism space compatible with composition, a KKK-linear structure, a monoidal structure, and compatibility of tensoring with addition and KKK-scalar multiplication. Here uuu and vvv are arbitrary. Write 1\mathbf11 for the tensor unit and 1A1_A1A​ for the identity of an object AAA. Composition f;gf;gf;g means first fff, then ggg. Tensor expressions below use the associators and unitors to regroup factors without permuting them; lists of factors are always ordered. No braiding, dagger, positivity, or chosen complex value of the parameter is part of these data. The structures introduced below are separate: choosing a vertex does not assert the category axioms, vertex normalization, or tetrahedral seed identities.

Scalar quantities used below. The coefficient field is Q(q)\mathbb Q(q)Q(q), with qqq the image of the polynomial indeterminate, and [n]=(qn−q−n)/(q−q−1)[n]=(q^n-q^{-n})/(q-q^{-1})[n]=(qn−q−n)/(q−q−1) for every integer nnn. Define [n]!=0[n]!=0[n]!=0 when n<0n<0n<0, and [n]!=∏k=1n[k][n]!=\prod_{k=1}^{n}[k][n]!=∏k=1n​[k] otherwise, so [0]!=1[0]!=1[0]!=1. A triple (a,b,c)(a,b,c)(a,b,c) of integers is admissible precisely when all three entries are nonnegative, a≤b+ca\le b+ca≤b+c, b≤c+ab\le c+ab≤c+a, c≤a+bc\le a+bc≤a+b, and a+b+ca+b+ca+b+c is even. Define Δ(j)=(−1)j[j+1]\Delta(j)=(-1)^j[j+1]Δ(j)=(−1)j[j+1] for j≥0j\ge0j≥0 and 000 otherwise. For an admissible triple put s=(a+b+c)/2s=(a+b+c)/2s=(a+b+c)/2 and θ(a,b,c)=(−1)s[s+1]![s−a]![s−b]![s−c]!/([a]![b]![c]!)\theta(a,b,c)=(-1)^s[s+1]![s-a]![s-b]![s-c]!/([a]![b]![c]!)θ(a,b,c)=(−1)s[s+1]![s−a]![s−b]![s−c]!/([a]![b]![c]!); put θ(a,b,c)=0\theta(a,b,c)=0θ(a,b,c)=0 for every other triple. All quotients are field quotients, with division by zero assigned zero; these definitions make no pointwise specialization assertion.

The finite scalar tetrahedral sum. For any six integers a,b,c,d,j,la,b,c,d,j,la,b,c,d,j,l, define the four-entry list A=((a+d+j)/2,(b+c+j)/2,(a+b+l)/2,(c+d+l)/2)A=((a+d+j)/2,(b+c+j)/2,(a+b+l)/2,(c+d+l)/2)A=((a+d+j)/2,(b+c+j)/2,(a+b+l)/2,(c+d+l)/2) and the three-entry list B=((b+d+j+l)/2,(a+c+j+l)/2,(a+b+c+d)/2)B=((b+d+j+l)/2,(a+c+j+l)/2,(a+b+c+d)/2)B=((b+d+j+l)/2,(a+c+j+l)/2,(a+b+c+d)/2), where each division by 222 is integer division, rounding down. Put F(S)=(−1)S[S+1]!/(∏i=14[S−Ai]!∏k=13[Bk−S]!)F(S)=(-1)^S[S+1]!/(\prod_{i=1}^{4}[S-A_i]!\prod_{k=1}^{3}[B_k-S]!)F(S)=(−1)S[S+1]!/(∏i=14​[S−Ai​]!∏k=13​[Bk​−S]!) for every integer SSS. If all four triples (a,d,j),(b,c,j),(a,b,l),(c,d,l)(a,d,j),(b,c,j),(a,b,l),(c,d,l)(a,d,j),(b,c,j),(a,b,l),(c,d,l) are admissible, define T(a,b,c,d,j,l)=(∏i=14∏k=13[Bk−Ai]!)/([a]![b]![c]![d]![j]![l]!)  ∑S=0a+b+c+d+j+lF(S)T(a,b,c,d,j,l)=(\prod_{i=1}^{4}\prod_{k=1}^{3}[B_k-A_i]!)/([a]![b]![c]![d]![j]![l]!)\;\sum_{S=0}^{a+b+c+d+j+l}F(S)T(a,b,c,d,j,l)=(∏i=14​∏k=13​[Bk​−Ai​]!)/([a]![b]![c]![d]![j]![l]!)∑S=0a+b+c+d+j+l​F(S), where the sum is over the inclusive integer interval. Otherwise define T=0T=0T=0. An interval with upper endpoint below zero is empty; any negative factorial argument gives zero, and a zero denominator gives a zero quotient. There is no additional support guard in FFF and no nonvanishing hypothesis in this definition.

Coefficients, labelled objects, and category axioms

KKK. The scalar field for morphisms is K=C(q)K=\mathbb C(q)K=C(q), the rational-function field over the complex numbers.

ι\iotaι. The specified unital ring homomorphism ι:Q(q)→C(q)\iota:\mathbb Q(q)\to\mathbb C(q)ι:Q(q)→C(q) is induced by applying the canonical inclusion Q→C\mathbb Q\to\mathbb CQ→C to polynomial coefficients and then extending to rational functions. In particular it sends the formal indeterminate to the formal indeterminate; it is not evaluation at a complex number.

Fusion range. For every a,b∈Na,b\in\mathbb Na,b∈N, the finite set R(a,b)R(a,b)R(a,b) consists of all natural numbers c<a+b+1c<a+b+1c<a+b+1 for which (a,b,c)(a,b,c)(a,b,c) is admissible in the integer sense above. Thus its bound is inclusive at a+ba+ba+b; zero labels are included whenever they satisfy those inequalities and parity.

Label data (SuQ2Data\mathrm{SuQ2Data}SuQ2Data). For a category CCC as above, these data consist of an object VaV_aVa​ for every a∈Na\in\mathbb Na∈N, an isomorphism V0≅1V_0\cong\mathbf1V0​≅1, and an exact pairing of VaV_aVa​ with itself for every a∈Na\in\mathbb Na∈N. Such a pairing supplies a coevaluation 1→Va⊗Va\mathbf1\to V_a\otimes V_a1→Va​⊗Va​ and an evaluation Va⊗Va→1V_a\otimes V_a\to\mathbf1Va​⊗Va​→1 satisfying both snake identities: (coev⁡a⊗1Va);(1Va⊗ev⁡a)=1Va(\operatorname{coev}_a\otimes1_{V_a});(1_{V_a}\otimes\operatorname{ev}_a)=1_{V_a}(coeva​⊗1Va​​);(1Va​​⊗eva​)=1Va​​ and (1Va⊗coev⁡a);(ev⁡a⊗1Va)=1Va(1_{V_a}\otimes\operatorname{coev}_a);(\operatorname{ev}_a\otimes1_{V_a})=1_{V_a}(1Va​​⊗coeva​);(eva​⊗1Va​​)=1Va​​, with the intervening associators and unitors. These data impose no compatibility between the isomorphism at zero and the pairing at zero.

Cup. Given any label data SSS and any a∈Na\in\mathbb Na∈N, cup⁡a:1→Va⊗Va\operatorname{cup}_a:\mathbf1\to V_a\otimes V_acupa​:1→Va​⊗Va​ is exactly the coevaluation supplied by the chosen self-pairing at aaa.

Cap. Given any label data SSS and any a∈Na\in\mathbb Na∈N, cap⁡a:Va⊗Va→1\operatorname{cap}_a:V_a\otimes V_a\to\mathbf1capa​:Va​⊗Va​→1 is exactly the evaluation supplied by the same chosen self-pairing at aaa.

Category axioms (SuQ2Axioms\mathrm{SuQ2Axioms}SuQ2Axioms). For given label data SSS, this proposition has exactly four fields. The first says that for every a∈Na\in\mathbb Na∈N and every endomorphism f:Va→Vaf:V_a\to V_af:Va​→Va​ there exists a unique s∈Ks\in Ks∈K such that f=s 1Vaf=s\,1_{V_a}f=s1Va​​. The second says that for all a,b∈Na,b\in\mathbb Na,b∈N with a≠ba\ne ba=b and every f:Va→Vbf:V_a\to V_bf:Va​→Vb​, one has f=0f=0f=0. The third says that for every a,b∈Na,b\in\mathbb Na,b∈N there exist families ic:Vc→Va⊗Vbi_c:V_c\to V_a\otimes V_bic​:Vc​→Va​⊗Vb​ and pc:Va⊗Vb→Vcp_c:V_a\otimes V_b\to V_cpc​:Va​⊗Vb​→Vc​, indexed by every c∈Nc\in\mathbb Nc∈N, such that ic;pc=1Vci_c;p_c=1_{V_c}ic​;pc​=1Vc​​ for every c∈R(a,b)c\in R(a,b)c∈R(a,b) and ∑c∈R(a,b)pc;ic=1Va⊗Vb\sum_{c\in R(a,b)}p_c;i_c=1_{V_a\otimes V_b}∑c∈R(a,b)​pc​;ic​=1Va​⊗Vb​​. These families are not asserted unique, and no equation for indices outside R(a,b)R(a,b)R(a,b) or cross equation between distinct indices is a separate field. The fourth says that for every a∈Na\in\mathbb Na∈N, cup⁡a;cap⁡a=ι(Δ(a)) 11\operatorname{cup}_a;\operatorname{cap}_a=\iota(\Delta(a))\,1_{\mathbf1}cupa​;capa​=ι(Δ(a))11​. All four fields quantify over zero labels as well; the fusion sum, if empty, is the zero morphism. This proposition is not an implicit hypothesis of the network definitions or of the two propositions at the end.

Vertices and their composites

Vertex data (Vertex\mathrm{Vertex}Vertex). For given label data SSS, a vertex choice WWW consists of one morphism wabc:Va⊗(Vb⊗Vc)→1w_{abc}:V_a\otimes(V_b\otimes V_c)\to\mathbf1wabc​:Va​⊗(Vb​⊗Vc​)→1 for every a,b,c∈Na,b,c\in\mathbb Na,b,c∈N, with no admissibility restriction and no equations or nonzero conditions. Throughout the composites below, SSS and WWW are arbitrary; no category axioms or normalization are assumed.

Rotation (rotate\mathrm{rotate}rotate). For any label data SSS, any a,b,c∈Na,b,c\in\mathbb Na,b,c∈N, and any morphism f:Va⊗(Vb⊗Vc)→1f:V_a\otimes(V_b\otimes V_c)\to\mathbf1f:Va​⊗(Vb​⊗Vc​)→1, its rotation is the morphism Vb⊗(Vc⊗Va)→1V_b\otimes(V_c\otimes V_a)\to\mathbf1Vb​⊗(Vc​⊗Va​)→1 obtained by starting with the identity on these inputs, inserting cup⁡a\operatorname{cup}_acupa​ before all three factors to obtain the ordered list (a,a,b,c,a)(a,a,b,c,a)(a,a,b,c,a), applying 1Va⊗(f⊗1Va)1_{V_a}\otimes(f\otimes1_{V_a})1Va​​⊗(f⊗1Va​​), and finally applying cap⁡a\operatorname{cap}_acapa​ to the two remaining aaa factors. Unit and associativity identifications occur between these stages. Rotation depends on SSS and fff, not on a choice of WWW.

Raised vertex (vertexUp\mathrm{vertexUp}vertexUp). For every a,b,c∈Na,b,c\in\mathbb Na,b,c∈N, define uabc:1→Va⊗(Vb⊗Vc)u_{abc}:\mathbf1\to V_a\otimes(V_b\otimes V_c)uabc​:1→Va​⊗(Vb​⊗Vc​) by the following ordered composite: apply cup⁡c\operatorname{cup}_ccupc​, then 1Vc⊗(cup⁡b⊗1Vc)1_{V_c}\otimes(\operatorname{cup}_b\otimes1_{V_c})1Vc​​⊗(cupb​⊗1Vc​​), then 1Vc⊗((1Vb⊗(cup⁡a⊗1Vb))⊗1Vc)1_{V_c}\otimes((1_{V_b}\otimes(\operatorname{cup}_a\otimes1_{V_b}))\otimes1_{V_c})1Vc​​⊗((1Vb​​⊗(cupa​⊗1Vb​​))⊗1Vc​​), and then wcba⊗1Va⊗(Vb⊗Vc)w_{cba}\otimes1_{V_a\otimes(V_b\otimes V_c)}wcba​⊗1Va​⊗(Vb​⊗Vc​)​, followed by an identity and canonical regrouping. Immediately before applying wcbaw_{cba}wcba​ the ordered factors are (c,b,a,a,b,c)(c,b,a,a,b,c)(c,b,a,a,b,c), and it consumes the first three. There is no independent raised-vertex datum and no conjugation of coefficients.

Split (split\mathrm{split}split). For every l,a,b∈Nl,a,b\in\mathbb Nl,a,b∈N, define slab:Vl→Va⊗Vbs_l^{ab}:V_l\to V_a\otimes V_bslab​:Vl​→Va​⊗Vb​ by an initial identity, then cup⁡a⊗1Vl\operatorname{cup}_a\otimes1_{V_l}cupa​⊗1Vl​​, then 1Va⊗((cup⁡b⊗1Va)⊗1Vl)1_{V_a}\otimes((\operatorname{cup}_b\otimes1_{V_a})\otimes1_{V_l})1Va​​⊗((cupb​⊗1Va​​)⊗1Vl​​), then 1Va⊗1Vb⊗wbal1_{V_a}\otimes1_{V_b}\otimes w_{bal}1Va​​⊗1Vb​​⊗wbal​, then an identity, with canonical regrouping between stages. The ordered factors before the vertex are (a,b,b,a,l)(a,b,b,a,l)(a,b,b,a,l), and wbalw_{bal}wbal​ consumes the last three. The definition applies to all triples, without assuming that (a,b,l)(a,b,l)(a,b,l) is admissible or that this is a splitting of another map.

Fuse (fuse\mathrm{fuse}fuse). For every a,b,l∈Na,b,l\in\mathbb Na,b,l∈N, define fabl:Va⊗Vb→Vlf_{ab}^{l}:V_a\otimes V_b\to V_lfabl​:Va​⊗Vb​→Vl​ by an initial identity, then 1Va⊗Vb⊗cup⁡l1_{V_a\otimes V_b}\otimes\operatorname{cup}_l1Va​⊗Vb​​⊗cupl​, then wabl⊗1Vlw_{abl}\otimes1_{V_l}wabl​⊗1Vl​​, then an identity, with canonical regrouping. The ordered list before the vertex is (a,b,l,l)(a,b,l,l)(a,b,l,l); it consumes the first three. This definition has no admissibility guard, no normalization factor, and no inverse relation to the split maps as a hypothesis.

Vertical state (XXX). For all a,b,c,d,l∈Na,b,c,d,l\in\mathbb Na,b,c,d,l∈N, Xabcd;l:1→Va⊗(Vb⊗(Vc⊗Vd))X_{abcd;l}:\mathbf1\to V_a\otimes(V_b\otimes(V_c\otimes V_d))Xabcd;l​:1→Va​⊗(Vb​⊗(Vc​⊗Vd​)) is cup⁡l;(slab⊗slcd)\operatorname{cup}_l;(s_l^{ab}\otimes s_l^{cd})cupl​;(slab​⊗slcd​), followed by canonical regrouping and an identity. There is no channel guard in this definition.

Vertical covector (Xcov\mathrm{Xcov}Xcov). For all a,b,c,d,l∈Na,b,c,d,l\in\mathbb Na,b,c,d,l∈N, Xabcd;l∨:Va⊗(Vb⊗(Vc⊗Vd))→1X^\vee_{abcd;l}:V_a\otimes(V_b\otimes(V_c\otimes V_d))\to\mathbf1Xabcd;l∨​:Va​⊗(Vb​⊗(Vc​⊗Vd​))→1 is an initial identity and regrouping, followed by (fabl⊗fcdl);cap⁡l(f_{ab}^{l}\otimes f_{cd}^{l});\operatorname{cap}_l(fabl​⊗fcdl​);capl​. The superscript denotes this specified composite, not an assumed Hermitian adjoint.

Horizontal state (HHH). For all a,b,c,d,j∈Na,b,c,d,j\in\mathbb Na,b,c,d,j∈N, Habcd;j:1→Va⊗(Vb⊗(Vc⊗Vd))H_{abcd;j}:\mathbf1\to V_a\otimes(V_b\otimes(V_c\otimes V_d))Habcd;j​:1→Va​⊗(Vb​⊗(Vc​⊗Vd​)) is uajd;(1Va⊗(sjbc⊗1Vd))u_{ajd};(1_{V_a}\otimes(s_j^{bc}\otimes1_{V_d}))uajd​;(1Va​​⊗(sjbc​⊗1Vd​​)), followed by canonical regrouping and an identity. Thus the jjj factor of the ordered list (a,j,d)(a,j,d)(a,j,d) is replaced by (b,c)(b,c)(b,c).

Horizontal covector (Hcov\mathrm{Hcov}Hcov). For all a,b,c,d,j∈Na,b,c,d,j\in\mathbb Na,b,c,d,j∈N, Habcd;j∨:Va⊗(Vb⊗(Vc⊗Vd))→1H^\vee_{abcd;j}:V_a\otimes(V_b\otimes(V_c\otimes V_d))\to\mathbf1Habcd;j∨​:Va​⊗(Vb​⊗(Vc​⊗Vd​))→1 is an initial identity and regrouping, followed by (1Va⊗(fbcj⊗1Vd));wajd(1_{V_a}\otimes(f_{bc}^{j}\otimes1_{V_d}));w_{ajd}(1Va​​⊗(fbcj​⊗1Vd​​));wajd​. Its definition includes no evaluation formula or relation to a scalar inner product.

Two-leg operator (K2K2K2). For every a,b∈Na,b\in\mathbb Na,b∈N, define the endomorphism Kab(2)K^{(2)}_{ab}Kab(2)​ of Va⊗VbV_a\otimes V_bVa​⊗Vb​ by Kab(2)=ι([a][b])((saa,2⊗1Vb);(1Va⊗f2bb))K^{(2)}_{ab}=\iota([a][b])\big((s_a^{a,2}\otimes1_{V_b});(1_{V_a}\otimes f_{2b}^{b})\big)Kab(2)​=ι([a][b])((saa,2​⊗1Vb​​);(1Va​​⊗f2bb​)), with canonical regrouping between the two maps. In particular the split has input aaa and outputs a,2a,2a,2, and the fuse has inputs 2,b2,b2,b and output bbb; no reversal of these labels is implicit. The formula is defined even when a=0a=0a=0 or b=0b=0b=0, without a separate branch; the displayed scalar factor then vanishes because [0]=0[0]=0[0]=0.

Four-leg operator (Kop\mathrm{Kop}Kop). For every a,b,c,d∈Na,b,c,d\in\mathbb Na,b,c,d∈N, define KabcdK_{abcd}Kabcd​ on Va⊗(Vb⊗(Vc⊗Vd))V_a\otimes(V_b\otimes(V_c\otimes V_d))Va​⊗(Vb​⊗(Vc​⊗Vd​)) by an initial identity, then Kab(2)⊗1Vc⊗VdK^{(2)}_{ab}\otimes1_{V_c\otimes V_d}Kab(2)​⊗1Vc​⊗Vd​​, then an identity, with the canonical regrouping of factors at both ends. Thus the same two-leg operator acts on the first two ordered factors and the last two are unchanged.

Tetrahedral network (tet\mathrm{tet}tet). For every a,b,c,d∈Na,b,c,d\in\mathbb Na,b,c,d∈N and every pair of integers j,lj,lj,l, define the endomorphism τabcd;jl\tau_{abcd;jl}τabcd;jl​ of 1\mathbf11 to be Xadcb;j;Hadcb;l∨X_{adcb;j};H^\vee_{adcb;l}Xadcb;j​;Hadcb;l∨​ if both j≥0j\ge0j≥0 and l≥0l\ge0l≥0, using their corresponding natural-number values in these two factors, and to be the zero morphism otherwise. In the nonnegative branch the four boundary factors have order (a,d,c,b)(a,d,c,b)(a,d,c,b); explicitly, the composite is cup⁡j;(sjad⊗sjcb);(1Va⊗(fdcl⊗1Vb));walb\operatorname{cup}_j;(s_j^{ad}\otimes s_j^{cb});(1_{V_a}\otimes(f_{dc}^{l}\otimes1_{V_b}));w_{alb}cupj​;(sjad​⊗sjcb​);(1Va​​⊗(fdcl​⊗1Vb​​));walb​ with canonical regrouping. The first channel is the label on the cup and splits, and the last channel is the output of the inner fuse. This definition has no separate admissibility test and no assumed equality with the scalar finite sum. In particular the negative-channel branch is chosen before converting either channel to a natural number.

The two separate vertex propositions

Vertex normalization (VertexNormalized\mathrm{VertexNormalized}VertexNormalized). For any given label data SSS and vertex choice WWW, this proposition has exactly two fields: theta, asserting for every a,b,c∈Na,b,c\in\mathbb Na,b,c∈N that uabc;wabc=ι(θ(a,b,c)) 11u_{abc};w_{abc}=\iota(\theta(a,b,c))\,1_{\mathbf1}uabc​;wabc​=ι(θ(a,b,c))11​, and cyclic, asserting for every a,b,c∈Na,b,c\in\mathbb Na,b,c∈N that rotating wabcw_{abc}wabc​ by the cup-and-cap construction specified above gives wbcaw_{bca}wbca​. Both fields quantify over all triples, including zero labels and inadmissible triples; for an inadmissible triple the theta field says that this closed composite is zero. Neither field asserts that an individual vertex must vanish on an inadmissible triple. No category-axiom hypothesis is included, and this proposition has no tetrahedral finite-sum evaluation field.

Tetrahedral seed (TetSeed\mathrm{TetSeed}TetSeed). For any given label data SSS and vertex choice WWW, this proposition has exactly one field, tet_two: for every a,b,c,d,j∈Na,b,c,d,j\in\mathbb Na,b,c,d,j∈N, τabcd;j,2=ι(T(a,b,c,d,j,2)) 11\tau_{abcd;j,2}=\iota(T(a,b,c,d,j,2))\,1_{\mathbf1}τabcd;j,2​=ι(T(a,b,c,d,j,2))11​. Thus the left side is exactly Xadcb;j;Hadcb;2∨X_{adcb;j};H^\vee_{adcb;2}Xadcb;j​;Hadcb;2∨​, while the scalar sum on the right retains the argument order (a,b,c,d,j,2)(a,b,c,d,j,2)(a,b,c,d,j,2). The quantified variables have no positivity or admissibility hypotheses and include j=0j=0j=0 and every zero external label. If any of (a,d,j),(b,c,j),(a,b,2),(c,d,2)(a,d,j),(b,c,j),(a,b,2),(c,d,2)(a,d,j),(b,c,j),(a,b,2),(c,d,2) is inadmissible, the right side is zero and the asserted network is zero. The network's signed-channel guard is always satisfied in this field because jjj is natural and the last channel is 222. This proposition assumes neither vertex normalization nor the category axioms, does not extend either proposition, and asserts no evaluation at other last-channel values or at negative first-channel indices.

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me