Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Definitions for Topological entanglement entropy

Definition
QAlgorithms_Papers_Independent_Intake100_P48

by Gohan · Oct 30, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

The objects the formalized statements of Topological entanglement entropy (arXiv:hep-th/0510092) are stated in. Each was checked against the paper by a blind read-back and a moderator.

  • tripartite: PDF p.2, (5): seven-region inclusion-exclusion, with A,B,C numbered 0,1,2.
  • diskWedge: PDF p.2, Fig.1(a): three closed wedges of one planar disk of radius t. A and B are the upper quadrants; C is the lower semicircle. Intersections are common interfaces; boundary points do not contribute length twice to a union.
  • regionUnion: PDF pp.2,4: union of the selected actual planar pieces. The empty union is empty.
  • boundaryLength: PDF pp.1–2: boundary length is one-dimensional Hausdorff measure, in the Euclidean metric on the plane. The geometric statements establish finiteness before this real-valued length is used; toReal at infinity is otherwise 0.
  • boundaryCount: PDF p.4: actual number of connected components of the boundary. Nat.card is 0 on an infinite type; the geometric conclusions establish finiteness.
  • SpatialState: PDF p.1: a finite spatial regulator of a normalized pure ground state. Only purity and normalization are needed for the conditional inference. A mass gap or a microscopic area law is not asserted or inferred from this interface.
  • RegionBasis: PDF pp.1–2: tensor factor selected by membership of each regulated site in R.
  • ExteriorBasis: PDF pp.1–2: complementary tensor factor at the same regulator.
  • joinConfiguration: PDF p.1: assemble an interior and exterior configuration into one global one.
  • spatialMarginal: PDF pp.1–2: actual partial trace of the normalized global pure state. Every region uses the same state and the same placement of tensor factors.
  • spatialEntropy: PDF p.2: entropy of the actual regulated region marginal, in nats.
  • scaledRectangle: PDF p.4, Fig.3: closed rectangles [a,b]×[c,d] at common scale t.
  • figureThreePiece: PDF p.4, Fig.3: A and C are side bars, B is two disjoint caps; the unselected central square belongs to the exterior. ABC is a square annulus.
  • effectiveEntropy: PDF p.4: the explicitly conditional effective entropy, one -gamma per boundary component, with a common coefficient of actual boundary length.
  • FusionData: PDF pp.1,3: the finite commutative rigid fusion algebra and its positive dimension character. N a b c counts the outgoing c-channel, not vacuum multiplicity Nabc. These are structural charge data, with no entropy axiom.
  • totalDimension: PDF p.1, (3): total quantum dimension of finitely many sectors. Physical uses have a vacuum sector, so the sector type is nonempty.
  • vacuumCycle: PDF p.3, (9): canonical positive vacuum row of the modular S matrix, viewed as the effective vacuum state in the complementary charge basis.
  • punctureProbability: PDF p.3, (9): Born probability for the constructed vacuum-cycle vector.
  • PairFusionBasis: PDF p.3, (10): basis of the full a tensor b fusion space, with outgoing charge.
  • TripleFusionBasis: PDF p.3, (13): a tensor b tensor c basis with its internal channel and both fusion multiplicity labels.
  • chargeProjector: PDF p.3, (10),(13): a charge projector in a specified fusion basis.
  • quantumTrace: PDF p.3: quantum trace assigns each simple outgoing sector its dimension. An ordinary trace would omit the d_c factor in (10).
  • fusionProbability: PDF p.3, (10): normalized quantum trace of the outgoing-charge projector. The dimension character gives positive denominator d_a d_b, as a conclusion.
  • tripleFusionProbability: PDF p.3, (13): the three-input fusion experiment, including internal channels.
  • vacuumMultiplicityThree: PDF p.3, (10)–(12): vacuum multiplicity, retaining the conjugate of c.
  • vacuumMultiplicityFour: PDF p.3, (13): vacuum multiplicity composed through the internal x-channel.
  • jointThree: PDF p.3, (11): independent a,b puncture draws followed by fusion to bar(c).
  • jointFour: PDF p.3, (13): independent a,b,c draws followed by fusion to bar(d).
  • ThreeBasis: PDF p.3, (12): distinguishable vacuum fusion states of a three-punctured sphere. Zero multiplicities provide no basis labels.
  • FourBasis: PDF p.3, (14): distinguishable four-puncture vacuum fusion states; the internal channel and both multiplicity labels are retained.
  • threeDensity: PDF p.3, (11)–(12): canonical effective density, diagonal in the fusion basis. Every distinguishable state with external labels a,b,c has weight d_a d_b d_c/D^4. Normalization and the entropy formula are conclusions, never hypotheses.
  • fourDensity: PDF p.3, (13)–(14): canonical effective four-puncture density with weight d_a d_b d_c d_d/D^6 per distinguishable fusion basis state.
  • meanLogDimension: PDF p.3: mean log quantum dimension in the puncture charge law.
  • vacuumOnly: Vacuum-only structural example: no sectors or probabilities are supplied by an axiom.
Definition code
import Mathlib
import Definitions.Def_QAlgorithms_Defs_Ensemble

/-!
Kitaev and Preskill, arXiv:hep-th/0510092v2, PDF pp.1–4.
Only the conditional geometric calculations and the finite effective charge
calculation are stated here. No identification with an unspecified microscopic
phase, adiabatic wormhole construction, or heuristic CFT limit is assumed.
All paper-local definitions have complete bodies; entropies are in nats.
-/

noncomputable section

namespace QAlgorithms.Papers.Independent.Intake100.P48

open Filter
open scoped Topology ComplexConjugate

attribute [local instance] Classical.propDecidable

/-- PDF p.2, (5): seven-region inclusion-exclusion, with A,B,C numbered 0,1,2. -/
def tripartite (s : Finset (Fin 3) → ℝ) : ℝ :=
  s {0} + s {1} + s {2} - s {0, 1} - s {1, 2} - s {0, 2} + s {0, 1, 2}

/-- PDF p.2, Fig.1(a): three closed wedges of one planar disk of radius t.
A and B are the upper quadrants; C is the lower semicircle. Intersections
are common interfaces; boundary points do not contribute length twice to a union. -/
def diskWedge (t : ℝ) (i : Fin 3) : Set ℂ :=
  {z | ‖z‖ ≤ t ∧ if i = 0 then 0 ≤ z.im ∧ 0 ≤ z.re
    else if i = 1 then 0 ≤ z.im ∧ z.re ≤ 0 else z.im ≤ 0}

/-- PDF pp.2,4: union of the selected actual planar pieces. The empty union is empty. -/
def regionUnion (pieces : Fin 3 → Set ℂ) (u : Finset (Fin 3)) : Set ℂ :=
  ⋃ i ∈ u, pieces i

/-- PDF pp.1–2: boundary length is one-dimensional Hausdorff measure, in the
Euclidean metric on the plane. The geometric statements establish finiteness
before this real-valued length is used; toReal at infinity is otherwise 0. -/
def boundaryLength (r : Set ℂ) : ℝ :=
  (MeasureTheory.Measure.hausdorffMeasure 1 (frontier r)).toReal

/-- PDF p.4: actual number of connected components of the boundary.
Nat.card is 0 on an infinite type; the geometric conclusions establish finiteness. -/
def boundaryCount (r : Set ℂ) : ℕ := Nat.card (ConnectedComponents (frontier r))

/-- PDF p.1: a finite spatial regulator of a normalized pure ground state.
Only purity and normalization are needed for the conditional inference. A mass
gap or a microscopic area law is not asserted or inferred from this interface. -/
structure SpatialState where
  sites : ℕ
  localDim : ℕ
  localDim_pos : 0 < localDim
  location : Fin sites → ℂ
  amplitude : (Fin sites → Fin localDim) → ℂ
  normalized : ∑ x, Complex.normSq (amplitude x) = 1

/-- PDF pp.1–2: tensor factor selected by membership of each regulated site in R. -/
abbrev RegionBasis (s : SpatialState) (r : Set ℂ) :=
  {i : Fin s.sites // s.location i ∈ r} → Fin s.localDim

/-- PDF pp.1–2: complementary tensor factor at the same regulator. -/
abbrev ExteriorBasis (s : SpatialState) (r : Set ℂ) :=
  {i : Fin s.sites // s.location i ∉ r} → Fin s.localDim

/-- PDF p.1: assemble an interior and exterior configuration into one global one. -/
def joinConfiguration (s : SpatialState) (r : Set ℂ)
    (x : RegionBasis s r) (y : ExteriorBasis s r) (i : Fin s.sites) :
    Fin s.localDim :=
  if h : s.location i ∈ r then x ⟨i, h⟩ else y ⟨i, h⟩

/-- PDF pp.1–2: actual partial trace of the normalized global pure state.
Every region uses the same state and the same placement of tensor factors. -/
def spatialMarginal (s : SpatialState) (r : Set ℂ) :
    Matrix (RegionBasis s r) (RegionBasis s r) ℂ :=
  fun x y => ∑ e : ExteriorBasis s r,
    s.amplitude (joinConfiguration s r x e) *
      conj (s.amplitude (joinConfiguration s r y e))

/-- PDF p.2: entropy of the actual regulated region marginal, in nats. -/
def spatialEntropy (s : SpatialState) (r : Set ℂ) : ℝ :=
  (Real.log 2 * QAlgorithms.vnEntropy (spatialMarginal s r))

/-- PDF p.4, Fig.3: closed rectangles [a,b]×[c,d] at common scale t. -/
def scaledRectangle (t a b c d : ℝ) : Set ℂ :=
  {z | t * a ≤ z.re ∧ z.re ≤ t * b ∧ t * c ≤ z.im ∧ z.im ≤ t * d}

/-- PDF p.4, Fig.3: A and C are side bars, B is two disjoint caps; the
unselected central square belongs to the exterior. ABC is a square annulus. -/
def figureThreePiece (t : ℝ) (i : Fin 3) : Set ℂ :=
  if i = 0 then scaledRectangle t 0 1 0 3
  else if i = 1 then scaledRectangle t 1 2 0 1 ∪ scaledRectangle t 1 2 2 3
  else scaledRectangle t 2 3 0 3

/-- PDF p.4: the explicitly conditional effective entropy, one -gamma per
boundary component, with a common coefficient of actual boundary length. -/
def effectiveEntropy (alpha gamma : ℝ) (r : Set ℂ) : ℝ :=
  alpha * boundaryLength r - gamma * boundaryCount r

example (pieces : Fin 3 → Set ℂ) : regionUnion pieces ∅ = ∅ := by
  simp [regionUnion]

example (s : SpatialState) (r : Set ℂ) (x : RegionBasis s r)
    (e : ExteriorBasis s r) (i : Fin s.sites) (h : s.location i ∈ r) :
    joinConfiguration s r x e i = x ⟨i, h⟩ := by
  simp [joinConfiguration, h]

example (alpha gamma : ℝ) : effectiveEntropy alpha gamma ∅ = 0 := by
  haveI : IsEmpty (ConnectedComponents (∅ : Set ℂ)) :=
    ConnectedComponents.isEmpty_iff_isEmpty.mpr (by infer_instance)
  have hcount : boundaryCount (∅ : Set ℂ) = 0 := by
    unfold boundaryCount
    rw [frontier_empty]
    exact Nat.card_of_isEmpty
  simp [effectiveEntropy, hcount, boundaryLength, frontier_empty]

/-- PDF pp.1,3: the finite commutative rigid fusion algebra and its positive
dimension character. N a b c counts the outgoing c-channel, not vacuum
multiplicity Nabc. These are structural charge data, with no entropy axiom. -/
structure FusionData (A : Type*) [Fintype A] [DecidableEq A] where
  vacuum : A
  dual : A → A
  dual_involutive : Function.Involutive dual
  dual_vacuum : dual vacuum = vacuum
  mult : A → A → A → ℕ
  comm : ∀ a b c, mult a b c = mult b a c
  unit : ∀ a c, mult vacuum a c = if a = c then 1 else 0
  vacuum_mult : ∀ a b, mult a b vacuum = if dual a = b then 1 else 0
  assoc : ∀ a b c e,
    ∑ x, mult a b x * mult x c e = ∑ y, mult b c y * mult a y e
  reciprocity : ∀ a b c, mult a b c = mult (dual a) c b
  dim : A → ℝ
  dim_pos : ∀ a, 0 < dim a
  dim_vacuum : dim vacuum = 1
  dim_dual : ∀ a, dim (dual a) = dim a
  dim_character : ∀ a b, ∑ c, (mult a b c : ℝ) * dim c = dim a * dim b

variable {A : Type*} [Fintype A] [DecidableEq A]

/-- PDF p.1, (3): total quantum dimension of finitely many sectors.
Physical uses have a vacuum sector, so the sector type is nonempty. -/
def totalDimension (dim : A → ℝ) : ℝ := Real.sqrt (∑ a, dim a ^ 2)

/-- PDF p.3, (9): canonical positive vacuum row of the modular S matrix,
viewed as the effective vacuum state in the complementary charge basis. -/
def vacuumCycle (f : FusionData A) (a : A) : ℂ :=
  (f.dim a / totalDimension f.dim : ℝ)

/-- PDF p.3, (9): Born probability for the constructed vacuum-cycle vector. -/
def punctureProbability (f : FusionData A) (a : A) : ℝ :=
  Complex.normSq (vacuumCycle f a)

/-- PDF p.3, (10): basis of the full a tensor b fusion space, with outgoing charge. -/
abbrev PairFusionBasis (f : FusionData A) (a b : A) := Σ c : A, Fin (f.mult a b c)

/-- PDF p.3, (13): a tensor b tensor c basis with its internal channel and
both fusion multiplicity labels. -/
abbrev TripleFusionBasis (f : FusionData A) (a b c : A) :=
  Σ x : A, Σ mu : Fin (f.mult a b x), Σ y : A, Fin (f.mult x c y)

/-- PDF p.3, (10),(13): a charge projector in a specified fusion basis. -/
def chargeProjector {I : Type*} [DecidableEq I] (charge : I → A) (a : A) :
    Matrix I I ℂ := Matrix.diagonal (fun i => if charge i = a then 1 else 0)

/-- PDF p.3: quantum trace assigns each simple outgoing sector its dimension.
An ordinary trace would omit the d_c factor in (10). -/
def quantumTrace {I : Type*} [Fintype I] (weight : I → ℝ)
    (m : Matrix I I ℂ) : ℝ := ∑ i, weight i * (m i i).re

/-- PDF p.3, (10): normalized quantum trace of the outgoing-charge projector.
The dimension character gives positive denominator d_a d_b, as a conclusion. -/
def fusionProbability (f : FusionData A) (a b c : A) : ℝ :=
  let weight : PairFusionBasis f a b → ℝ := fun i => f.dim i.1
  quantumTrace weight (chargeProjector (fun i => i.1) c) /
    quantumTrace weight (1 : Matrix (PairFusionBasis f a b) (PairFusionBasis f a b) ℂ)

/-- PDF p.3, (13): the three-input fusion experiment, including internal channels. -/
def tripleFusionProbability (f : FusionData A) (a b c d : A) : ℝ :=
  let weight : TripleFusionBasis f a b c → ℝ := fun i => f.dim i.2.2.1
  quantumTrace weight (chargeProjector (fun i => i.2.2.1) d) /
    quantumTrace weight
      (1 : Matrix (TripleFusionBasis f a b c) (TripleFusionBasis f a b c) ℂ)

/-- PDF p.3, (10)–(12): vacuum multiplicity, retaining the conjugate of c. -/
def vacuumMultiplicityThree (f : FusionData A) (a b c : A) : ℕ :=
  f.mult a b (f.dual c)

/-- PDF p.3, (13): vacuum multiplicity composed through the internal x-channel. -/
def vacuumMultiplicityFour (f : FusionData A) (a b c d : A) : ℕ :=
  ∑ x, f.mult a b x * f.mult x c (f.dual d)

/-- PDF p.3, (11): independent a,b puncture draws followed by fusion to bar(c). -/
def jointThree (f : FusionData A) (a b c : A) : ℝ :=
  punctureProbability f a * punctureProbability f b * fusionProbability f a b (f.dual c)

/-- PDF p.3, (13): independent a,b,c draws followed by fusion to bar(d). -/
def jointFour (f : FusionData A) (a b c d : A) : ℝ :=
  punctureProbability f a * punctureProbability f b * punctureProbability f c *
    tripleFusionProbability f a b c (f.dual d)

/-- PDF p.3, (12): distinguishable vacuum fusion states of a three-punctured sphere.
Zero multiplicities provide no basis labels. -/
abbrev ThreeBasis (f : FusionData A) :=
  Σ a : A, Σ b : A, Σ c : A, Fin (vacuumMultiplicityThree f a b c)

/-- PDF p.3, (14): distinguishable four-puncture vacuum fusion states;
the internal channel and both multiplicity labels are retained. -/
abbrev FourBasis (f : FusionData A) :=
  Σ a : A, Σ b : A, Σ c : A, Σ d : A, Σ x : A,
    Fin (f.mult a b x) × Fin (f.mult x c (f.dual d))

/-- PDF p.3, (11)–(12): canonical effective density, diagonal in the fusion basis.
Every distinguishable state with external labels a,b,c has weight d_a d_b d_c/D^4.
Normalization and the entropy formula are conclusions, never hypotheses. -/
def threeDensity (f : FusionData A) : Matrix (ThreeBasis f) (ThreeBasis f) ℂ :=
  Matrix.diagonal (fun i =>
    ((f.dim i.1 * f.dim i.2.1 * f.dim i.2.2.1 / totalDimension f.dim ^ 4 : ℝ) : ℂ))

/-- PDF p.3, (13)–(14): canonical effective four-puncture density with weight
 d_a d_b d_c d_d/D^6 per distinguishable fusion basis state. -/
def fourDensity (f : FusionData A) : Matrix (FourBasis f) (FourBasis f) ℂ :=
  Matrix.diagonal (fun i =>
    ((f.dim i.1 * f.dim i.2.1 * f.dim i.2.2.1 * f.dim i.2.2.2.1 /
      totalDimension f.dim ^ 6 : ℝ) : ℂ))

/-- PDF p.3: mean log quantum dimension in the puncture charge law. -/
def meanLogDimension (f : FusionData A) : ℝ :=
  ∑ a, punctureProbability f a * Real.log (f.dim a)

/-- Vacuum-only structural example: no sectors or probabilities are supplied by an axiom. -/
def vacuumOnly : FusionData Unit where
  vacuum := ()
  dual := id
  dual_involutive := fun _ => rfl
  dual_vacuum := rfl
  mult := fun _ _ _ => 1
  comm := fun _ _ _ => rfl
  unit := by intros; simp
  vacuum_mult := by intros; simp
  assoc := by intros; simp
  reciprocity := fun _ _ _ => rfl
  dim := fun _ => 1
  dim_pos := fun _ => by norm_num
  dim_vacuum := rfl
  dim_dual := fun _ => rfl
  dim_character := by intros; simp

example : totalDimension vacuumOnly.dim = 1 := by
  simp [totalDimension, vacuumOnly]

example : punctureProbability vacuumOnly () = 1 := by
  simp [punctureProbability, vacuumCycle, totalDimension, vacuumOnly]

example (f : FusionData A) (a b c : A)
    (h : vacuumMultiplicityThree f a b c = 0) :
    IsEmpty (Fin (vacuumMultiplicityThree f a b c)) := by
  rw [h]
  infer_instance

example {I : Type*} [Fintype I] [DecidableEq I] :
    (Real.log 2 * QAlgorithms.vnEntropy (1 : Matrix I I ℂ)) = 0 := by
  simp [QAlgorithms.vnEntropy, cfc_one]

end QAlgorithms.Papers.Independent.Intake100.P48
Source
Topological entanglement entropy, arXiv:hep-th/0510092v2, https://arxiv.org/abs/hep-th/0510092v2
Read-back

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

QAlgorithms.Papers.Independent.Intake100.P48.ExteriorBasis

For any spatial state sss, comprising NNN sites, a positive local dimension ddd, locations ℓi∈C\ell_i\in\mathbb Cℓi​∈C, and amplitudes A(x)A(x)A(x) satisfying ∑x∣A(x)∣2=1\sum_x|A(x)|^2=1∑x​∣A(x)∣2=1, and any subset r⊆Cr\subseteq\mathbb Cr⊆C, this denotes the type of all functions

{i∈{0,…,N−1}:ℓi∉r}⟶{0,…,d−1}.\{i\in\{0,\ldots,N-1\}:\ell_i\notin r\}\longrightarrow\{0,\ldots,d-1\}.{i∈{0,…,N−1}:ℓi​∈/r}⟶{0,…,d−1}.

Thus its elements assign a local label to each site whose location is outside rrr. If there are no such sites, this type has exactly one element, the empty function.

QAlgorithms.Papers.Independent.Intake100.P48.FourBasis

Let AAA be a finite type with decidable equality, and let fff comprise a vacuum e∈Ae\in Ae∈A, an involution a↦a∗a\mapsto a^*a↦a∗ fixing eee, multiplicities Nabc∈NN_{ab}^{c}\in\mathbb NNabc​∈N, and dimensions δa>0\delta_a>0δa​>0. These satisfy, for all indices, Nabc=NbacN_{ab}^{c}=N_{ba}^{c}Nabc​=Nbac​, Neac=1a=cN_{ea}^{c}=\mathbf1_{a=c}Neac​=1a=c​, Nabe=1a∗=bN_{ab}^{e}=\mathbf1_{a^*=b}Nabe​=1a∗=b​, ∑xNabxNxcr=∑yNbcyNayr\sum_xN_{ab}^{x}N_{xc}^{r}=\sum_yN_{bc}^{y}N_{ay}^{r}∑x​Nabx​Nxcr​=∑y​Nbcy​Nayr​, Nabc=Na∗cbN_{ab}^{c}=N_{a^*c}^{b}Nabc​=Na∗cb​, δe=1\delta_e=1δe​=1, δa∗=δa\delta_{a^*}=\delta_aδa∗​=δa​, and ∑cNabcδc=δaδb\sum_cN_{ab}^{c}\delta_c=\delta_a\delta_b∑c​Nabc​δc​=δa​δb​, where 1P\mathbf1_P1P​ denotes the indicator of PPP. This abbreviation denotes the type of tuples

(a,b,c,d,x,μ,ν),a,b,c,d,x∈A,0≤μ<Nabx,0≤ν<Nxcd∗,(a,b,c,d,x,\mu,\nu),\qquad a,b,c,d,x\in A,\quad 0\leq\mu<N_{ab}^{x},\quad 0\leq\nu<N_{xc}^{d^*},(a,b,c,d,x,μ,ν),a,b,c,d,x∈A,0≤μ<Nabx​,0≤ν<Nxcd∗​,

where μ,ν\mu,\nuμ,ν are natural numbers. A choice of charges supplies no elements if either multiplicity is zero.

QAlgorithms.Papers.Independent.Intake100.P48.FusionData

For a finite type AAA with decidable equality, a fusion datum consists of an element v∈Av\in Av∈A, a function a↦a∗a\mapsto a^*a↦a∗ from AAA to itself, natural numbers NabcN_{ab}^{c}Nabc​ for every a,b,c∈Aa,b,c\in Aa,b,c∈A, and real numbers dad_ada​ for every a∈Aa\in Aa∈A, together with the following requirements: (a∗)∗=a(a^*)^*=a(a∗)∗=a for every aaa, v∗=vv^*=vv∗=v, Nabc=NbacN_{ab}^{c}=N_{ba}^{c}Nabc​=Nbac​ for all a,b,ca,b,ca,b,c, Nvac=1N_{va}^{c}=1Nvac​=1 if a=ca=ca=c and 000 otherwise, Nabv=1N_{ab}^{v}=1Nabv​=1 if a∗=ba^*=ba∗=b and 000 otherwise, and

∑x∈ANabxNxce=∑y∈ANbcyNaye(a,b,c,e∈A),Nabc=Na∗cb(a,b,c∈A).\sum_{x\in A}N_{ab}^{x}N_{xc}^{e} =\sum_{y\in A}N_{bc}^{y}N_{ay}^{e} \quad(a,b,c,e\in A), \qquad N_{ab}^{c}=N_{a^*c}^{b} \quad(a,b,c\in A).x∈A∑​Nabx​Nxce​=y∈A∑​Nbcy​Naye​(a,b,c,e∈A),Nabc​=Na∗cb​(a,b,c∈A).

The dimension requirements are da>0d_a>0da​>0 for every aaa, dv=1d_v=1dv​=1, da∗=dad_{a^*}=d_ada∗​=da​ for every aaa, and

∑c∈ANabcdc=dadb(a,b∈A).\sum_{c\in A}N_{ab}^{c}d_c=d_ad_b \quad(a,b\in A).c∈A∑​Nabc​dc​=da​db​(a,b∈A).

The specified vacuum element means no such datum exists when AAA is empty.

QAlgorithms.Papers.Independent.Intake100.P48.PairFusionBasis

For any finite type AAA with decidable equality, any fusion datum fff on AAA, and any a,b∈Aa,b\in Aa,b∈A, this abbreviates the type of pairs

{(c,μ):c∈A, μ∈N, 0≤μ<Nabc}.\{(c,\mu):c\in A,\ \mu\in\mathbb N,\ 0\le\mu<N_{ab}^{c}\}.{(c,μ):c∈A, μ∈N, 0≤μ<Nabc​}.

Here fff supplies a vacuum vvv, an involution x↦x∗x\mapsto x^*x↦x∗ fixing vvv, natural multiplicities NxyzN_{xy}^{z}Nxyz​, and positive real dimensions dxd_xdx​, satisfying Nxyz=NyxzN_{xy}^{z}=N_{yx}^{z}Nxyz​=Nyxz​, Nvxz=1x=zN_{vx}^{z}=\mathbf1_{x=z}Nvxz​=1x=z​, Nxyv=1x∗=yN_{xy}^{v}=\mathbf1_{x^*=y}Nxyv​=1x∗=y​, ∑rNxyrNrzw=∑sNyzsNxsw\sum_rN_{xy}^{r}N_{rz}^{w}=\sum_sN_{yz}^{s}N_{xs}^{w}∑r​Nxyr​Nrzw​=∑s​Nyzs​Nxsw​, Nxyz=Nx∗zyN_{xy}^{z}=N_{x^*z}^{y}Nxyz​=Nx∗zy​, dv=1d_v=1dv​=1, dx∗=dxd_{x^*}=d_xdx∗​=dx​, and ∑zNxyzdz=dxdy\sum_zN_{xy}^{z}d_z=d_xd_y∑z​Nxyz​dz​=dx​dy​, for all applicable indices. A charge ccc with Nabc=0N_{ab}^{c}=0Nabc​=0 contributes no pairs.

QAlgorithms.Papers.Independent.Intake100.P48.RegionBasis

For any spatial state sss, comprising NNN sites, a positive local dimension ddd, locations ℓi∈C\ell_i\in\mathbb Cℓi​∈C, and amplitudes A(x)A(x)A(x) satisfying ∑x∣A(x)∣2=1\sum_x|A(x)|^2=1∑x​∣A(x)∣2=1, and any subset r⊆Cr\subseteq\mathbb Cr⊆C, this denotes the type of all functions

{i∈{0,…,N−1}:ℓi∈r}⟶{0,…,d−1}.\{i\in\{0,\ldots,N-1\}:\ell_i\in r\}\longrightarrow\{0,\ldots,d-1\}.{i∈{0,…,N−1}:ℓi​∈r}⟶{0,…,d−1}.

Thus its elements assign a local label to each site located in rrr. If there are no such sites, this type has exactly one element, the empty function.

QAlgorithms.Papers.Independent.Intake100.P48.SpatialState

A spatial state consists of a natural number NNN of sites, a natural number d>0d>0d>0, a location function ℓ:{0,…,N−1}→C\ell:\{0,\ldots,N-1\}\to\mathbb Cℓ:{0,…,N−1}→C, and a complex amplitude function AAA on all configurations x:{0,…,N−1}→{0,…,d−1}x:\{0,\ldots,N-1\}\to\{0,\ldots,d-1\}x:{0,…,N−1}→{0,…,d−1}, together with the normalization requirement

∑x:{0,…,N−1}→{0,…,d−1}∣A(x)∣2=1.\sum_{x:\{0,\ldots,N-1\}\to\{0,\ldots,d-1\}}|A(x)|^2=1.x:{0,…,N−1}→{0,…,d−1}∑​∣A(x)∣2=1.

Locations need not be distinct. The value N=0N=0N=0 is allowed; in that case there is exactly one configuration, and its amplitude must have squared modulus 111.

QAlgorithms.Papers.Independent.Intake100.P48.ThreeBasis

Let AAA be a finite type with decidable equality, and let fff comprise a vacuum e∈Ae\in Ae∈A, an involution a↦a∗a\mapsto a^*a↦a∗ fixing eee, multiplicities Nabc∈NN_{ab}^{c}\in\mathbb NNabc​∈N, and dimensions δa>0\delta_a>0δa​>0. These satisfy, for all indices, Nabc=NbacN_{ab}^{c}=N_{ba}^{c}Nabc​=Nbac​, Neac=1a=cN_{ea}^{c}=\mathbf1_{a=c}Neac​=1a=c​, Nabe=1a∗=bN_{ab}^{e}=\mathbf1_{a^*=b}Nabe​=1a∗=b​, ∑xNabxNxcr=∑yNbcyNayr\sum_xN_{ab}^{x}N_{xc}^{r}=\sum_yN_{bc}^{y}N_{ay}^{r}∑x​Nabx​Nxcr​=∑y​Nbcy​Nayr​, Nabc=Na∗cbN_{ab}^{c}=N_{a^*c}^{b}Nabc​=Na∗cb​, δe=1\delta_e=1δe​=1, δa∗=δa\delta_{a^*}=\delta_aδa∗​=δa​, and ∑cNabcδc=δaδb\sum_cN_{ab}^{c}\delta_c=\delta_a\delta_b∑c​Nabc​δc​=δa​δb​, where 1P\mathbf1_P1P​ denotes the indicator of PPP. This abbreviation denotes the type of tuples

(a,b,c,μ),a,b,c∈A,μ∈N,0≤μ<Nabc∗.(a,b,c,\mu),\qquad a,b,c\in A,\quad \mu\in\mathbb N,\quad 0\leq\mu<N_{ab}^{c^*}.(a,b,c,μ),a,b,c∈A,μ∈N,0≤μ<Nabc∗​.

A triple with Nabc∗=0N_{ab}^{c^*}=0Nabc∗​=0 supplies no elements of this type.

QAlgorithms.Papers.Independent.Intake100.P48.TripleFusionBasis

For any finite type AAA with decidable equality, any fusion datum fff on AAA, and any a,b,c∈Aa,b,c\in Aa,b,c∈A, this abbreviates the type of tuples

{(x,μ,y,ν):x,y∈A, 0≤μ<Nabx, 0≤ν<Nxcy},\{(x,\mu,y,\nu):x,y\in A,\ 0\le\mu<N_{ab}^{x},\ 0\le\nu<N_{xc}^{y}\},{(x,μ,y,ν):x,y∈A, 0≤μ<Nabx​, 0≤ν<Nxcy​},

where μ,ν\mu,\nuμ,ν are natural numbers. The datum fff consists of a vacuum vvv, an involution r↦r∗r\mapsto r^*r↦r∗ fixing vvv, natural multiplicities NrshN_{rs}^{h}Nrsh​, and positive real dimensions drd_rdr​, satisfying Nrsh=NsrhN_{rs}^{h}=N_{sr}^{h}Nrsh​=Nsrh​, Nvrh=1r=hN_{vr}^{h}=\mathbf1_{r=h}Nvrh​=1r=h​, Nrsv=1r∗=sN_{rs}^{v}=\mathbf1_{r^*=s}Nrsv​=1r∗=s​, ∑uNrsuNuhk=∑wNshwNrwk\sum_uN_{rs}^{u}N_{uh}^{k}=\sum_wN_{sh}^{w}N_{rw}^{k}∑u​Nrsu​Nuhk​=∑w​Nshw​Nrwk​, Nrsh=Nr∗hsN_{rs}^{h}=N_{r^*h}^{s}Nrsh​=Nr∗hs​, dv=1d_v=1dv​=1, dr∗=drd_{r^*}=d_rdr∗​=dr​, and ∑hNrshdh=drds\sum_hN_{rs}^{h}d_h=d_rd_s∑h​Nrsh​dh​=dr​ds​, for all applicable indices. Either multiplicity being zero excludes the corresponding tuples; the final label yyy is unrestricted within AAA.

QAlgorithms.Papers.Independent.Intake100.P48.boundaryCount

For every subset r⊆Cr\subseteq\mathbb Cr⊆C, this defines the natural-number cardinality of the set of connected components of its topological boundary ∂r\partial r∂r, with the boundary carrying its subspace topology. If there are finitely many components, the result is their number; if there are infinitely many, the result is 000. An empty boundary also gives 000.

QAlgorithms.Papers.Independent.Intake100.P48.boundaryLength

For every subset r⊆Cr\subseteq\mathbb Cr⊆C, this defines a real number by taking the one-dimensional Hausdorff measure of the topological boundary ∂r\partial r∂r and converting that extended nonnegative real value to a real number. A finite measure retains its value under this conversion, while an infinite measure is converted to 000; an empty boundary also gives 000.

QAlgorithms.Papers.Independent.Intake100.P48.chargeProjector

For types AAA and III with decidable equality, any function q:I→Aq:I\to Aq:I→A, and any a∈Aa\in Aa∈A, this defines the complex matrix PaP_aPa​, with rows and columns indexed by III, by

(Pa)ij={1,i=j and q(i)=a,0,otherwise.(P_a)_{ij}= \begin{cases} 1,&i=j\text{ and }q(i)=a,\\ 0,&\text{otherwise}. \end{cases}(Pa​)ij​={1,0,​i=j and q(i)=a,otherwise.​

Neither index type is required to be finite. If no element of III has charge aaa, this is the zero matrix, including when III is empty.

QAlgorithms.Papers.Independent.Intake100.P48.diskWedge

For every real ttt and every i∈{0,1,2}i\in\{0,1,2\}i∈{0,1,2}, this defines a subset of C\mathbb CC consisting of those zzz with ∣z∣≤t|z|\le t∣z∣≤t that additionally satisfy Im⁡z≥0\operatorname{Im}z\ge0Imz≥0 and Re⁡z≥0\operatorname{Re}z\ge0Rez≥0 when i=0i=0i=0, Im⁡z≥0\operatorname{Im}z\ge0Imz≥0 and Re⁡z≤0\operatorname{Re}z\le0Rez≤0 when i=1i=1i=1, or Im⁡z≤0\operatorname{Im}z\le0Imz≤0 when i=2i=2i=2. All the inequalities are non-strict, so the indicated axes are included. For t<0t<0t<0 each set is empty, and for t=0t=0t=0 each is {0}\{0\}{0}.

QAlgorithms.Papers.Independent.Intake100.P48.effectiveEntropy

For arbitrary real numbers α,γ\alpha,\gammaα,γ and any subset R⊆CR\subseteq\mathbb CR⊆C, this defines

Eα,γ(R)=αL(R)−γB(R),L(R)=(H1(∂R))toReal,B(R)=Nat.card⁡(ConnectedComponents⁡(∂R)),E_{\alpha,\gamma}(R)=\alpha L(R)-\gamma B(R), \qquad L(R)=\bigl(\mathcal H^1(\partial R)\bigr)_{\mathrm{toReal}}, \qquad B(R)=\operatorname{Nat.card}\bigl(\operatorname{ConnectedComponents}(\partial R)\bigr),Eα,γ​(R)=αL(R)−γB(R),L(R)=(H1(∂R))toReal​,B(R)=Nat.card(ConnectedComponents(∂R)),

where ∂R\partial R∂R is the topological frontier and H1\mathcal H^1H1 is one-dimensional Hausdorff measure. For finite measure, the conversion to a real number gives that measure; infinite measure is converted to 000. The quantity B(R)B(R)B(R) is the number of connected components when there are finitely many, and is 000 when there are infinitely many. No finiteness or sign assumptions are imposed.

QAlgorithms.Papers.Independent.Intake100.P48.figureThreePiece

For every real number ttt and index i∈{0,1,2}i\in\{0,1,2\}i∈{0,1,2}, this defines a subset Pi(t)P_i(t)Pi​(t) of the complex plane by

Pi(t)={{z:0≤Re⁡z≤t, 0≤Im⁡z≤3t},i=0,{z:t≤Re⁡z≤2t, 0≤Im⁡z≤t} ∪ {z:t≤Re⁡z≤2t, 2t≤Im⁡z≤3t},i=1,{z:2t≤Re⁡z≤3t, 0≤Im⁡z≤3t},i=2.P_i(t)= \begin{cases} \{z:0\le \operatorname{Re}z\le t,\ 0\le \operatorname{Im}z\le 3t\},&i=0,\\ \{z:t\le \operatorname{Re}z\le 2t,\ 0\le \operatorname{Im}z\le t\} \ \cup\ \{z:t\le \operatorname{Re}z\le 2t,\ 2t\le \operatorname{Im}z\le 3t\},&i=1,\\ \{z:2t\le \operatorname{Re}z\le 3t,\ 0\le \operatorname{Im}z\le 3t\},&i=2. \end{cases}Pi​(t)=⎩⎨⎧​{z:0≤Rez≤t, 0≤Imz≤3t},{z:t≤Rez≤2t, 0≤Imz≤t} ∪ {z:t≤Rez≤2t, 2t≤Imz≤3t},{z:2t≤Rez≤3t, 0≤Imz≤3t},​i=0,i=1,i=2.​

All inequalities are inclusive. There is no positivity assumption on ttt: all three sets are empty when t<0t<0t<0, and all three equal {0}\{0\}{0} when t=0t=0t=0.

QAlgorithms.Papers.Independent.Intake100.P48.fourDensity

Let AAA be a finite type with decidable equality, and let fff comprise a vacuum e∈Ae\in Ae∈A, an involution a↦a∗a\mapsto a^*a↦a∗ fixing eee, multiplicities Nabc∈NN_{ab}^{c}\in\mathbb NNabc​∈N, and dimensions δa>0\delta_a>0δa​>0. These satisfy, for all indices, Nabc=NbacN_{ab}^{c}=N_{ba}^{c}Nabc​=Nbac​, Neac=1a=cN_{ea}^{c}=\mathbf1_{a=c}Neac​=1a=c​, Nabe=1a∗=bN_{ab}^{e}=\mathbf1_{a^*=b}Nabe​=1a∗=b​, ∑xNabxNxcr=∑yNbcyNayr\sum_xN_{ab}^{x}N_{xc}^{r}=\sum_yN_{bc}^{y}N_{ay}^{r}∑x​Nabx​Nxcr​=∑y​Nbcy​Nayr​, Nabc=Na∗cbN_{ab}^{c}=N_{a^*c}^{b}Nabc​=Na∗cb​, δe=1\delta_e=1δe​=1, δa∗=δa\delta_{a^*}=\delta_aδa∗​=δa​, and ∑cNabcδc=δaδb\sum_cN_{ab}^{c}\delta_c=\delta_a\delta_b∑c​Nabc​δc​=δa​δb​, where 1P\mathbf1_P1P​ denotes the indicator of PPP. Put D=∑x∈Aδx2>0D=\sqrt{\sum_{x\in A}\delta_x^2}>0D=∑x∈A​δx2​​>0. This declaration defines a complex diagonal matrix indexed by tuples i=(a,b,c,d,x,μ,ν)i=(a,b,c,d,x,\mu,\nu)i=(a,b,c,d,x,μ,ν) with a,b,c,d,x∈Aa,b,c,d,x\in Aa,b,c,d,x∈A, 0≤μ<Nabx0\leq\mu<N_{ab}^{x}0≤μ<Nabx​, and 0≤ν<Nxcd∗0\leq\nu<N_{xc}^{d^*}0≤ν<Nxcd∗​. Its entry at (i,i)(i,i)(i,i) is the real number

δaδbδcδdD6\frac{\delta_a\delta_b\delta_c\delta_d}{D^6}D6δa​δb​δc​δd​​

viewed as a complex number, and every entry at distinct indices is zero. The diagonal value does not depend on x,μ,νx,\mu,\nux,μ,ν; a zero multiplicity supplies no corresponding index.

QAlgorithms.Papers.Independent.Intake100.P48.fusionProbability

Let AAA be a finite type with decidable equality, and let fff comprise a vacuum e∈Ae\in Ae∈A, an involution a↦a∗a\mapsto a^*a↦a∗ fixing eee, multiplicities Nabc∈NN_{ab}^{c}\in\mathbb NNabc​∈N, and dimensions δa>0\delta_a>0δa​>0. These satisfy, for all indices, Nabc=NbacN_{ab}^{c}=N_{ba}^{c}Nabc​=Nbac​, Neac=1a=cN_{ea}^{c}=\mathbf1_{a=c}Neac​=1a=c​, Nabe=1a∗=bN_{ab}^{e}=\mathbf1_{a^*=b}Nabe​=1a∗=b​, ∑xNabxNxcr=∑yNbcyNayr\sum_xN_{ab}^{x}N_{xc}^{r}=\sum_yN_{bc}^{y}N_{ay}^{r}∑x​Nabx​Nxcr​=∑y​Nbcy​Nayr​, Nabc=Na∗cbN_{ab}^{c}=N_{a^*c}^{b}Nabc​=Na∗cb​, δe=1\delta_e=1δe​=1, δa∗=δa\delta_{a^*}=\delta_aδa∗​=δa​, and ∑cNabcδc=δaδb\sum_cN_{ab}^{c}\delta_c=\delta_a\delta_b∑c​Nabc​δc​=δa​δb​, where 1P\mathbf1_P1P​ is 111 when PPP holds and 000 otherwise. For any a,b,c∈Aa,b,c\in Aa,b,c∈A, this declaration defines the real number

Nabcδc∑x∈ANabxδx.\frac{N_{ab}^{c}\delta_c}{\sum_{x\in A}N_{ab}^{x}\delta_x}.∑x∈A​Nabx​δx​Nabc​δc​​.

Explicitly, the underlying basis consists of pairs (x,μ)(x,\mu)(x,μ) with x∈Ax\in Ax∈A and 0≤μ<Nabx0\leq\mu<N_{ab}^{x}0≤μ<Nabx​; each has weight δx\delta_xδx​, and the numerator sums the weights of those with x=cx=cx=c, while the denominator sums all weights. A zero multiplicity supplies no basis elements. The denominator is δaδb>0\delta_a\delta_b>0δa​δb​>0.

QAlgorithms.Papers.Independent.Intake100.P48.joinConfiguration

For any spatial state with NNN sites, positive local dimension ddd, locations ℓi\ell_iℓi​, and normalized amplitudes AAA satisfying ∑x∣A(x)∣2=1\sum_x|A(x)|^2=1∑x​∣A(x)∣2=1, any subset r⊆Cr\subseteq\mathbb Cr⊆C, any assignment x:{i:ℓi∈r}→{0,…,d−1}x:\{i:\ell_i\in r\}\to\{0,\ldots,d-1\}x:{i:ℓi​∈r}→{0,…,d−1}, any assignment y:{i:ℓi∉r}→{0,…,d−1}y:\{i:\ell_i\notin r\}\to\{0,\ldots,d-1\}y:{i:ℓi​∈/r}→{0,…,d−1}, and any site i∈{0,…,N−1}i\in\{0,\ldots,N-1\}i∈{0,…,N−1}, this defines the local label

Jr(x,y)(i)={x(i),ℓi∈r,y(i),ℓi∉r.J_r(x,y)(i)= \begin{cases} x(i),&\ell_i\in r,\\ y(i),&\ell_i\notin r. \end{cases}Jr​(x,y)(i)={x(i),y(i),​ℓi​∈r,ℓi​∈/r.​

This combines the two assignments into a configuration on all sites; when N=0N=0N=0, the combined configuration is the unique empty function.

QAlgorithms.Papers.Independent.Intake100.P48.jointFour

Let AAA be a finite type with decidable equality, and let fff comprise a vacuum e∈Ae\in Ae∈A, an involution a↦a∗a\mapsto a^*a↦a∗ fixing eee, multiplicities Nabc∈NN_{ab}^{c}\in\mathbb NNabc​∈N, and dimensions δa>0\delta_a>0δa​>0. These satisfy, for all indices, Nabc=NbacN_{ab}^{c}=N_{ba}^{c}Nabc​=Nbac​, Neac=1a=cN_{ea}^{c}=\mathbf1_{a=c}Neac​=1a=c​, Nabe=1a∗=bN_{ab}^{e}=\mathbf1_{a^*=b}Nabe​=1a∗=b​, ∑xNabxNxcr=∑yNbcyNayr\sum_xN_{ab}^{x}N_{xc}^{r}=\sum_yN_{bc}^{y}N_{ay}^{r}∑x​Nabx​Nxcr​=∑y​Nbcy​Nayr​, Nabc=Na∗cbN_{ab}^{c}=N_{a^*c}^{b}Nabc​=Na∗cb​, δe=1\delta_e=1δe​=1, δa∗=δa\delta_{a^*}=\delta_aδa∗​=δa​, and ∑cNabcδc=δaδb\sum_cN_{ab}^{c}\delta_c=\delta_a\delta_b∑c​Nabc​δc​=δa​δb​, where 1P\mathbf1_P1P​ denotes the indicator of PPP. Put D=∑x∈Aδx2D=\sqrt{\sum_{x\in A}\delta_x^2}D=∑x∈A​δx2​​. For any a,b,c,d∈Aa,b,c,d\in Aa,b,c,d∈A, this declaration defines

(δaD)2(δbD)2(δcD)2δd∗∑x∈ANabxNxcd∗∑x,y∈ANabxNxcyδy.\left(\frac{\delta_a}{D}\right)^2 \left(\frac{\delta_b}{D}\right)^2 \left(\frac{\delta_c}{D}\right)^2 \frac{\delta_{d^*}\sum_{x\in A}N_{ab}^{x}N_{xc}^{d^*}} {\sum_{x,y\in A}N_{ab}^{x}N_{xc}^{y}\delta_y}.(Dδa​​)2(Dδb​​)2(Dδc​​)2∑x,y∈A​Nabx​Nxcy​δy​δd∗​∑x∈A​Nabx​Nxcd∗​​.

Each of the first three factors is the squared complex norm of the corresponding real quotient viewed as a complex number. All denominators are positive under the stated assumptions, and a vanishing numerator in the final factor gives value zero.

QAlgorithms.Papers.Independent.Intake100.P48.jointThree

Let AAA be a finite type with decidable equality, and let fff comprise a vacuum e∈Ae\in Ae∈A, an involution a↦a∗a\mapsto a^*a↦a∗ fixing eee, multiplicities Nabc∈NN_{ab}^{c}\in\mathbb NNabc​∈N, and dimensions δa>0\delta_a>0δa​>0. These satisfy, for all indices, Nabc=NbacN_{ab}^{c}=N_{ba}^{c}Nabc​=Nbac​, Neac=1a=cN_{ea}^{c}=\mathbf1_{a=c}Neac​=1a=c​, Nabe=1a∗=bN_{ab}^{e}=\mathbf1_{a^*=b}Nabe​=1a∗=b​, ∑xNabxNxcr=∑yNbcyNayr\sum_xN_{ab}^{x}N_{xc}^{r}=\sum_yN_{bc}^{y}N_{ay}^{r}∑x​Nabx​Nxcr​=∑y​Nbcy​Nayr​, Nabc=Na∗cbN_{ab}^{c}=N_{a^*c}^{b}Nabc​=Na∗cb​, δe=1\delta_e=1δe​=1, δa∗=δa\delta_{a^*}=\delta_aδa∗​=δa​, and ∑cNabcδc=δaδb\sum_cN_{ab}^{c}\delta_c=\delta_a\delta_b∑c​Nabc​δc​=δa​δb​, where 1P\mathbf1_P1P​ denotes the indicator of PPP. Put D=∑x∈Aδx2D=\sqrt{\sum_{x\in A}\delta_x^2}D=∑x∈A​δx2​​. For any a,b,c∈Aa,b,c\in Aa,b,c∈A, this declaration defines the real number

(δaD)2(δbD)2Nabc∗δc∗∑x∈ANabxδx.\left(\frac{\delta_a}{D}\right)^2 \left(\frac{\delta_b}{D}\right)^2 \frac{N_{ab}^{c^*}\delta_{c^*}} {\sum_{x\in A}N_{ab}^{x}\delta_x}.(Dδa​​)2(Dδb​​)2∑x∈A​Nabx​δx​Nabc∗​δc∗​​.

The first two factors are the squared complex norms of the real numbers δa/D\delta_a/Dδa​/D and δb/D\delta_b/Dδb​/D, viewed as complex numbers. All denominators are positive under the stated assumptions; the value is zero when Nabc∗=0N_{ab}^{c^*}=0Nabc∗​=0.

QAlgorithms.Papers.Independent.Intake100.P48.meanLogDimension

Let AAA be a finite type with decidable equality, and let fff comprise a vacuum e∈Ae\in Ae∈A, an involution a↦a∗a\mapsto a^*a↦a∗ fixing eee, multiplicities Nabc∈NN_{ab}^{c}\in\mathbb NNabc​∈N, and dimensions δa>0\delta_a>0δa​>0. These satisfy, for all indices, Nabc=NbacN_{ab}^{c}=N_{ba}^{c}Nabc​=Nbac​, Neac=1a=cN_{ea}^{c}=\mathbf1_{a=c}Neac​=1a=c​, Nabe=1a∗=bN_{ab}^{e}=\mathbf1_{a^*=b}Nabe​=1a∗=b​, ∑xNabxNxcr=∑yNbcyNayr\sum_xN_{ab}^{x}N_{xc}^{r}=\sum_yN_{bc}^{y}N_{ay}^{r}∑x​Nabx​Nxcr​=∑y​Nbcy​Nayr​, Nabc=Na∗cbN_{ab}^{c}=N_{a^*c}^{b}Nabc​=Na∗cb​, δe=1\delta_e=1δe​=1, δa∗=δa\delta_{a^*}=\delta_aδa∗​=δa​, and ∑cNabcδc=δaδb\sum_cN_{ab}^{c}\delta_c=\delta_a\delta_b∑c​Nabc​δc​=δa​δb​, where 1P\mathbf1_P1P​ denotes the indicator of PPP. Put D=∑x∈Aδx2>0D=\sqrt{\sum_{x\in A}\delta_x^2}>0D=∑x∈A​δx2​​>0. This declaration defines the real number

∑a∈A(δaD)2log⁡δa,\sum_{a\in A}\left(\frac{\delta_a}{D}\right)^2\log\delta_a,a∈A∑​(Dδa​​)2logδa​,

where the squared quotient is the squared complex norm of δa/D\delta_a/Dδa​/D viewed as a complex number, and log⁡\loglog is the natural logarithm. The sum includes every a∈Aa\in Aa∈A; all logarithm arguments are positive.

QAlgorithms.Papers.Independent.Intake100.P48.punctureProbability

For any finite type AAA with decidable equality, any fusion datum fff on AAA, and any a∈Aa\in Aa∈A, this defines

pf(a)=∣da∑b∈Adb2∣2,p_f(a)=\left|\frac{d_a}{\sqrt{\sum_{b\in A}d_b^2}}\right|^2,pf​(a)=​∑b∈A​db2​​da​​​2,

the squared complex modulus of the real quotient embedded in C\mathbb CC. Here fff consists of a vacuum vvv, an involution b↦b∗b\mapsto b^*b↦b∗ fixing vvv, natural multiplicities NbceN_{bc}^{e}Nbce​, and positive real dimensions dbd_bdb​, subject to Nbce=NcbeN_{bc}^{e}=N_{cb}^{e}Nbce​=Ncbe​, Nvbe=1b=eN_{vb}^{e}=\mathbf1_{b=e}Nvbe​=1b=e​, Nbcv=1b∗=cN_{bc}^{v}=\mathbf1_{b^*=c}Nbcv​=1b∗=c​, ∑xNbcxNxeh=∑yNceyNbyh\sum_xN_{bc}^{x}N_{xe}^{h}=\sum_yN_{ce}^{y}N_{by}^{h}∑x​Nbcx​Nxeh​=∑y​Ncey​Nbyh​, Nbce=Nb∗ecN_{bc}^{e}=N_{b^*e}^{c}Nbce​=Nb∗ec​, dv=1d_v=1dv​=1, db∗=dbd_{b^*}=d_bdb∗​=db​, and ∑eNbcede=dbdc\sum_eN_{bc}^{e}d_e=d_bd_c∑e​Nbce​de​=db​dc​, for all applicable indices. In particular, the vacuum and its dimension make the denominator positive.

QAlgorithms.Papers.Independent.Intake100.P48.quantumTrace

For any finite type III, any real-valued weight function w:I→Rw:I\to\mathbb Rw:I→R, and any complex matrix MMM with rows and columns indexed by III, this defines

QTr⁡w(M)=∑i∈Iw(i)Re⁡(Mii).\operatorname{QTr}_{w}(M)=\sum_{i\in I}w(i)\operatorname{Re}(M_{ii}).QTrw​(M)=i∈I∑​w(i)Re(Mii​).

No sign or normalization condition is imposed on the weights, and no Hermitian or positivity condition is imposed on MMM. The value is 000 when III is empty.

QAlgorithms.Papers.Independent.Intake100.P48.regionUnion

For any three subsets P0,P1,P2P_0,P_1,P_2P0​,P1​,P2​ of C\mathbb CC and any subset u⊆{0,1,2}u\subseteq\{0,1,2\}u⊆{0,1,2}, this defines

⋃i∈uPi={z∈C:∃i∈u, z∈Pi}.\bigcup_{i\in u}P_i=\{z\in\mathbb C:\exists i\in u,\ z\in P_i\}.i∈u⋃​Pi​={z∈C:∃i∈u, z∈Pi​}.

No disjointness or other conditions are imposed on the pieces; when uuu is empty, the result is empty.

QAlgorithms.Papers.Independent.Intake100.P48.scaledRectangle

For any real numbers t,a,b,c,dt,a,b,c,dt,a,b,c,d, this defines the subset

{z∈C:ta≤Re⁡z≤tb and tc≤Im⁡z≤td}.\{z\in\mathbb C:ta\le\operatorname{Re}z\le tb \ \text{and}\ tc\le\operatorname{Im}z\le td\}.{z∈C:ta≤Rez≤tb and tc≤Imz≤td}.

No positivity or ordering assumptions are imposed on the parameters, and the endpoints are used in precisely this order. The set is empty if ta>tbta>tbta>tb or tc>tdtc>tdtc>td; equality of endpoints is allowed and may give a line segment or a point. For t=0t=0t=0, the set is {0}\{0\}{0}.

QAlgorithms.Papers.Independent.Intake100.P48.spatialEntropy

For any spatial state with NNN sites, positive local dimension ddd, locations ℓi\ell_iℓi​, and amplitudes AAA satisfying ∑x∣A(x)∣2=1\sum_x|A(x)|^2=1∑x​∣A(x)∣2=1, and any subset r⊆Cr\subseteq\mathbb Cr⊆C, form the matrix

(ρr)x,y=∑eA(Jr(x,e)) A(Jr(y,e))‾,(\rho_r)_{x,y}=\sum_e A(J_r(x,e))\,\overline{A(J_r(y,e))},(ρr​)x,y​=e∑​A(Jr​(x,e))A(Jr​(y,e))​,

where x,yx,yx,y assign local labels to sites in rrr, eee assigns local labels to sites outside rrr, and JrJ_rJr​ combines these assignments by choosing the one appropriate to each site's location. This defines the real number

−(ln⁡2)Re⁡tr⁡(h(ρr)),h(u)=ulog⁡2u,-(\ln 2)\operatorname{Re}\operatorname{tr}\bigl(h(\rho_r)\bigr), \qquad h(u)=u\log_2 u,−(ln2)Retr(h(ρr​)),h(u)=ulog2​u,

where h(ρr)h(\rho_r)h(ρr​) is obtained by continuous functional calculus and h(0)=0h(0)=0h(0)=0. Equivalently, for the eigenvalues λj\lambda_jλj​ of ρr\rho_rρr​, counted with multiplicity, the value is −(ln⁡2)∑jλjlog⁡2λj-(\ln2)\sum_j\lambda_j\log_2\lambda_j−(ln2)∑j​λj​log2​λj​, with zero eigenvalues contributing 000. If there are no sites in rrr, this value is 000.

QAlgorithms.Papers.Independent.Intake100.P48.spatialMarginal

For any spatial state with NNN sites, positive local dimension ddd, locations ℓi\ell_iℓi​, and amplitudes AAA satisfying ∑x∣A(x)∣2=1\sum_x|A(x)|^2=1∑x​∣A(x)∣2=1, and any subset r⊆Cr\subseteq\mathbb Cr⊆C, this defines a complex matrix ρr\rho_rρr​ whose rows and columns are assignments of labels in {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1} to the sites located in rrr, with entries

(ρr)x,y=∑e:{i:ℓi∉r}→{0,…,d−1}A(Jr(x,e)) A(Jr(y,e))‾,(\rho_r)_{x,y} =\sum_{e:\{i:\ell_i\notin r\}\to\{0,\ldots,d-1\}} A(J_r(x,e))\,\overline{A(J_r(y,e))},(ρr​)x,y​=e:{i:ℓi​∈/r}→{0,…,d−1}∑​A(Jr​(x,e))A(Jr​(y,e))​,

where Jr(x,e)(i)J_r(x,e)(i)Jr​(x,e)(i) equals x(i)x(i)x(i) for ℓi∈r\ell_i\in rℓi​∈r and e(i)e(i)e(i) otherwise. If there are no exterior sites, the sum has one term, corresponding to the empty assignment. If there are no sites in rrr, the matrix has one row and one column, and its sole entry is 111.

QAlgorithms.Papers.Independent.Intake100.P48.threeDensity

Let AAA be a finite type with decidable equality, and let fff comprise a vacuum e∈Ae\in Ae∈A, an involution a↦a∗a\mapsto a^*a↦a∗ fixing eee, multiplicities Nabc∈NN_{ab}^{c}\in\mathbb NNabc​∈N, and dimensions δa>0\delta_a>0δa​>0. These satisfy, for all indices, Nabc=NbacN_{ab}^{c}=N_{ba}^{c}Nabc​=Nbac​, Neac=1a=cN_{ea}^{c}=\mathbf1_{a=c}Neac​=1a=c​, Nabe=1a∗=bN_{ab}^{e}=\mathbf1_{a^*=b}Nabe​=1a∗=b​, ∑xNabxNxcr=∑yNbcyNayr\sum_xN_{ab}^{x}N_{xc}^{r}=\sum_yN_{bc}^{y}N_{ay}^{r}∑x​Nabx​Nxcr​=∑y​Nbcy​Nayr​, Nabc=Na∗cbN_{ab}^{c}=N_{a^*c}^{b}Nabc​=Na∗cb​, δe=1\delta_e=1δe​=1, δa∗=δa\delta_{a^*}=\delta_aδa∗​=δa​, and ∑cNabcδc=δaδb\sum_cN_{ab}^{c}\delta_c=\delta_a\delta_b∑c​Nabc​δc​=δa​δb​, where 1P\mathbf1_P1P​ denotes the indicator of PPP. Put D=∑x∈Aδx2>0D=\sqrt{\sum_{x\in A}\delta_x^2}>0D=∑x∈A​δx2​​>0. This declaration defines a complex diagonal matrix indexed by tuples i=(a,b,c,μ)i=(a,b,c,\mu)i=(a,b,c,μ) with a,b,c∈Aa,b,c\in Aa,b,c∈A and 0≤μ<Nabc∗0\leq\mu<N_{ab}^{c^*}0≤μ<Nabc∗​. Its entry at (i,i)(i,i)(i,i) is the real number

δaδbδcD4\frac{\delta_a\delta_b\delta_c}{D^4}D4δa​δb​δc​​

viewed as a complex number, and every entry at distinct indices is zero. The diagonal value does not depend on μ\muμ; a zero multiplicity supplies no corresponding index.

QAlgorithms.Papers.Independent.Intake100.P48.totalDimension

For any finite type AAA and any real-valued function d:A→Rd:A\to\mathbb Rd:A→R, this defines

D(d)=∑a∈Ada2.D(d)=\sqrt{\sum_{a\in A}d_a^2}.D(d)=a∈A∑​da2​​.

There is no positivity or normalization assumption on ddd. In particular, the value is 000 when AAA is empty or when every dad_ada​ is 000.

QAlgorithms.Papers.Independent.Intake100.P48.tripartite

For any function sss assigning a real number to each subset of {0,1,2}\{0,1,2\}{0,1,2}, this defines the real number

s({0})+s({1})+s({2})−s({0,1})−s({1,2})−s({0,2})+s({0,1,2}).s(\{0\})+s(\{1\})+s(\{2\})-s(\{0,1\})-s(\{1,2\})-s(\{0,2\})+s(\{0,1,2\}).s({0})+s({1})+s({2})−s({0,1})−s({1,2})−s({0,2})+s({0,1,2}).

There are no assumptions on sss, and its value on the empty set does not enter this expression.

QAlgorithms.Papers.Independent.Intake100.P48.tripleFusionProbability

Let AAA be a finite type with decidable equality, and let fff comprise a vacuum e∈Ae\in Ae∈A, an involution a↦a∗a\mapsto a^*a↦a∗ fixing eee, multiplicities Nabc∈NN_{ab}^{c}\in\mathbb NNabc​∈N, and dimensions δa>0\delta_a>0δa​>0. These satisfy, for all indices, Nabc=NbacN_{ab}^{c}=N_{ba}^{c}Nabc​=Nbac​, Neac=1a=cN_{ea}^{c}=\mathbf1_{a=c}Neac​=1a=c​, Nabe=1a∗=bN_{ab}^{e}=\mathbf1_{a^*=b}Nabe​=1a∗=b​, ∑xNabxNxcr=∑yNbcyNayr\sum_xN_{ab}^{x}N_{xc}^{r}=\sum_yN_{bc}^{y}N_{ay}^{r}∑x​Nabx​Nxcr​=∑y​Nbcy​Nayr​, Nabc=Na∗cbN_{ab}^{c}=N_{a^*c}^{b}Nabc​=Na∗cb​, δe=1\delta_e=1δe​=1, δa∗=δa\delta_{a^*}=\delta_aδa∗​=δa​, and ∑cNabcδc=δaδb\sum_cN_{ab}^{c}\delta_c=\delta_a\delta_b∑c​Nabc​δc​=δa​δb​, where 1P\mathbf1_P1P​ denotes the indicator of PPP. For any a,b,c,d∈Aa,b,c,d\in Aa,b,c,d∈A, this declaration defines

δd∑x∈ANabxNxcd∑x,y∈ANabxNxcyδy.\frac{\delta_d\sum_{x\in A}N_{ab}^{x}N_{xc}^{d}} {\sum_{x,y\in A}N_{ab}^{x}N_{xc}^{y}\delta_y}.∑x,y∈A​Nabx​Nxcy​δy​δd​∑x∈A​Nabx​Nxcd​​.

The underlying basis consists of tuples (x,μ,y,ν)(x,\mu,y,\nu)(x,μ,y,ν) with 0≤μ<Nabx0\leq\mu<N_{ab}^{x}0≤μ<Nabx​ and 0≤ν<Nxcy0\leq\nu<N_{xc}^{y}0≤ν<Nxcy​; each has weight δy\delta_yδy​. The numerator sums weights for y=dy=dy=d, and the denominator sums all weights. Zero multiplicities supply no such tuples. The denominator is δaδbδc>0\delta_a\delta_b\delta_c>0δa​δb​δc​>0.

QAlgorithms.Papers.Independent.Intake100.P48.vacuumCycle

For any finite type AAA with decidable equality, any fusion datum fff on AAA, and any a∈Aa\in Aa∈A, this defines the complex number

Cf(a)=da∑b∈Adb2,C_f(a)=\frac{d_a}{\sqrt{\sum_{b\in A}d_b^2}},Cf​(a)=∑b∈A​db2​​da​​,

where the real quotient is embedded in C\mathbb CC. Here a fusion datum supplies a vacuum vvv, an involution b↦b∗b\mapsto b^*b↦b∗ fixing vvv, natural multiplicities NbceN_{bc}^{e}Nbce​, and positive real dimensions dbd_bdb​, satisfying Nbce=NcbeN_{bc}^{e}=N_{cb}^{e}Nbce​=Ncbe​, Nvbe=1b=eN_{vb}^{e}=\mathbf1_{b=e}Nvbe​=1b=e​, Nbcv=1b∗=cN_{bc}^{v}=\mathbf1_{b^*=c}Nbcv​=1b∗=c​, ∑xNbcxNxeh=∑yNceyNbyh\sum_xN_{bc}^{x}N_{xe}^{h}=\sum_yN_{ce}^{y}N_{by}^{h}∑x​Nbcx​Nxeh​=∑y​Ncey​Nbyh​, Nbce=Nb∗ecN_{bc}^{e}=N_{b^*e}^{c}Nbce​=Nb∗ec​, dv=1d_v=1dv​=1, db∗=dbd_{b^*}=d_bdb∗​=db​, and ∑eNbcede=dbdc\sum_eN_{bc}^{e}d_e=d_bd_c∑e​Nbce​de​=db​dc​, for all applicable indices. These conditions ensure that the denominator is positive.

QAlgorithms.Papers.Independent.Intake100.P48.vacuumMultiplicityFour

Let AAA be a finite type with decidable equality, and let fff comprise a vacuum e∈Ae\in Ae∈A, an involution a↦a∗a\mapsto a^*a↦a∗ fixing eee, multiplicities Nabc∈NN_{ab}^{c}\in\mathbb NNabc​∈N, and dimensions δa>0\delta_a>0δa​>0. These satisfy, for all indices, Nabc=NbacN_{ab}^{c}=N_{ba}^{c}Nabc​=Nbac​, Neac=1a=cN_{ea}^{c}=\mathbf1_{a=c}Neac​=1a=c​, Nabe=1a∗=bN_{ab}^{e}=\mathbf1_{a^*=b}Nabe​=1a∗=b​, ∑xNabxNxcr=∑yNbcyNayr\sum_xN_{ab}^{x}N_{xc}^{r}=\sum_yN_{bc}^{y}N_{ay}^{r}∑x​Nabx​Nxcr​=∑y​Nbcy​Nayr​, Nabc=Na∗cbN_{ab}^{c}=N_{a^*c}^{b}Nabc​=Na∗cb​, δe=1\delta_e=1δe​=1, δa∗=δa\delta_{a^*}=\delta_aδa∗​=δa​, and ∑cNabcδc=δaδb\sum_cN_{ab}^{c}\delta_c=\delta_a\delta_b∑c​Nabc​δc​=δa​δb​, where 1P\mathbf1_P1P​ denotes the indicator of PPP. For any a,b,c,d∈Aa,b,c,d\in Aa,b,c,d∈A, this declaration defines the natural number

∑x∈ANabxNxcd∗.\sum_{x\in A}N_{ab}^{x}N_{xc}^{d^*}.x∈A∑​Nabx​Nxcd∗​.

Every x∈Ax\in Ax∈A is included, and a term contributes zero if either of its multiplicities is zero.

QAlgorithms.Papers.Independent.Intake100.P48.vacuumMultiplicityThree

Let AAA be a finite type with decidable equality, and let fff comprise a vacuum e∈Ae\in Ae∈A, an involution a↦a∗a\mapsto a^*a↦a∗ fixing eee, multiplicities Nabc∈NN_{ab}^{c}\in\mathbb NNabc​∈N, and dimensions δa>0\delta_a>0δa​>0. These satisfy, for all indices, Nabc=NbacN_{ab}^{c}=N_{ba}^{c}Nabc​=Nbac​, Neac=1a=cN_{ea}^{c}=\mathbf1_{a=c}Neac​=1a=c​, Nabe=1a∗=bN_{ab}^{e}=\mathbf1_{a^*=b}Nabe​=1a∗=b​, ∑xNabxNxcr=∑yNbcyNayr\sum_xN_{ab}^{x}N_{xc}^{r}=\sum_yN_{bc}^{y}N_{ay}^{r}∑x​Nabx​Nxcr​=∑y​Nbcy​Nayr​, Nabc=Na∗cbN_{ab}^{c}=N_{a^*c}^{b}Nabc​=Na∗cb​, δe=1\delta_e=1δe​=1, δa∗=δa\delta_{a^*}=\delta_aδa∗​=δa​, and ∑cNabcδc=δaδb\sum_cN_{ab}^{c}\delta_c=\delta_a\delta_b∑c​Nabc​δc​=δa​δb​, where 1P\mathbf1_P1P​ denotes the indicator of PPP. For any a,b,c∈Aa,b,c\in Aa,b,c∈A, this declaration defines the natural number Nabc∗N_{ab}^{c^*}Nabc∗​, including the value 000 when that multiplicity vanishes.

QAlgorithms.Papers.Independent.Intake100.P48.vacuumOnly

This declaration defines fusion data on the one-element type {∗}\{\ast\}{∗}: the vacuum is ∗\ast∗, the dual map is the identity, the sole multiplicity is N∗∗∗=1N_{\ast\ast}^{\ast}=1N∗∗∗​=1, and the sole dimension is δ∗=1\delta_\ast=1δ∗​=1. It supplies proofs that duality is involutive and fixes the vacuum; that the multiplicities are commutative, satisfy Neac=1a=cN_{ea}^{c}=\mathbf1_{a=c}Neac​=1a=c​ and Nabe=1a∗=bN_{ab}^{e}=\mathbf1_{a^*=b}Nabe​=1a∗=b​, obey ∑xNabxNxcr=∑yNbcyNayr\sum_xN_{ab}^{x}N_{xc}^{r}=\sum_yN_{bc}^{y}N_{ay}^{r}∑x​Nabx​Nxcr​=∑y​Nbcy​Nayr​, and satisfy Nabc=Na∗cbN_{ab}^{c}=N_{a^*c}^{b}Nabc​=Na∗cb​; and that dimensions are positive, equal 111 at the vacuum, are preserved by duality, and satisfy ∑cNabcδc=δaδb\sum_cN_{ab}^{c}\delta_c=\delta_a\delta_b∑c​Nabc​δc​=δa​δb​. Here every charge index necessarily equals ∗\ast∗, and 1P\mathbf1_P1P​ is 111 when PPP holds and 000 otherwise.

Human review
  • Endorsed by Shuze Chen · Oct 30, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 30, 2026

    Confirmed by the mission captain (proposal self-audit).

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