Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Definitions for Simplified formalism of the algebra of partially transposed permutation operators with applications

Definition
QAlgorithms_Papers_Independent_Extend50_P28

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

prove2quantum

The objects the formalized statements of Simplified formalism of the algebra of partially transposed permutation operators with applications (arXiv:1708.02434) are stated in. Each was checked against the paper by a blind read-back and a moderator.

  • irrepDim: PDF pp.3,10: actual Specht dimension, distinguished from tensor multiplicity.
  • oneBoxBranch: PDF pp.9–10: one-box branching. The types already fix consecutive sizes.
  • LowerShapes: PDF p.9: removable lower shapes in a fixed upper shape.
  • UpperShapes: PDF pp.10,13: every addable upper shape, including zero Gram branches.
  • PRIRBlockIndex: PDF p.10: grouped PRIR indices before a coordinate reordering.
  • extendPerm: PDF pp.9–13: the subgroup embedding fixes the last letter.
  • cosetRep: PDF pp.10–13: coset representative, including the identity at the last letter.
  • lowerPerm: PDF p.12: recover the lower permutation on the subgroup image. Outside that image this total helper returns identity; inducedAction only evaluates it in the branch where the argument fixes the last letter.
  • CoherentPRIR: PDF pp.9–10, Definition 22: coherent based PRIRs. Character equalities pin each representation to the actual shape-labelled Specht irrep, rather than arbitrary blocks. The coordinate equivalence is precisely regrouping (30). The restriction condition uses one common lower matrix for each label. Real transposition entries implement Remark 9. None of (32)–(60) is an assumption here.
  • prirBlock: PDF p.10: extract a block using its specified, shared lower-shape indices.
  • weightedBlock: PDF pp.10–12: weighted alpha diagonal block over every induced branch.
  • inducedAction: PDF p.13, Eq.(54): the concrete induced coset action.
  • ZColumn: PDF p.13: column labels of Z, flattened only within each upper irrep. The inverse of R.coord restores precisely the printed (nu,xi,j) labels.
  • explicitZR: PDF p.13, Eq.(55): explicit normalized matrix, with all addable branches.
  • prirDirectSumAction: PDF p.13, Eq.(56): full block diagonal upper action, without height truncation.
  • columnT: PDF p.14, Eq.(59): the explicitly constructed column vectors.
  • gramQ: PDF p.5, Definition 7: dI on diagonal coset blocks; ordinary transposition blocks off diagonal. The conjugated permutation fixes the last letter.
  • contentEigenvalue: PDF pp.6–7, Eqs.(9)–(10): d plus the signed content of the added cell. The sum has one term for a genuine one-box branch; diagonal additions have content zero.
  • contentDiagonal: PDF p.14, Eq.(60): a branch eigenvalue on each internal coordinate.
  • lastPartialTranspose: PDF pp.3–4: partial transpose on the last factor in the fixed tensor basis. N counts preceding factors; the matrix acts on N+1 factors.
  • transposedSwap: PDF p.21, Eq.(100): unnormalized partially transposed swap T_a.
  • pbtOperator: PDF p.21: rho is the concrete sum of N=n-1 unnormalized generators.
  • normalizedSignal: PDF p.21, Eq.(100): normalized individual signal; resource pairs are normalized.
  • normalizedPBTOperator: PDF p.21: rho-tilde is the sum of signals, not a trace-one state for N>1.
  • pbtFidelity: PDF p.21, Eq.(99), equivalently p.24, Eq.(121): square-root-measurement entanglement fidelity, using the actual normalized signals and their sum. The support inverse is imported Mathlib cfc with x mapped to (sqrt x) inverse, which is zero at zero. Completing the measurement on the common signal kernel adds zero to this trace. For d=0 this total helper returns zero; every theorem assumes d>=2.
  • tensorIntertwiners: PDF p.3: intertwiner space from the actual Specht irrep to the actual permutation representation. Its dimension is the occurrence multiplicity; no character-average theorem is used as a definition or assumption.
  • tensorMultiplicity: PDF pp.3,15–16: actual tensor occurrence multiplicity.
  • cycleCount: PDF p.22: cycle count includes fixed points; S(0) has zero cycles.
  • eigenMultiplicity: PDF p.22: geometric eigenvalue multiplicity, equal to the spectral multiplicity for the Hermitian operator rho.
  • inverseRoot: PDF p.26, Proposition 59: the printed domain lambda>=0 is corrected to lambda>0, as required by its use on positive eigenvalues on p.28. The printed second derivative is 3/4 times lambda^(-5/2), verified from the PDF image.
  • PhysicalLower: PDF pp.17–19: physical lower shapes, including the empty diagram.
  • PhysicalUpper: PDF pp.17–19: physical upper shapes, independent of any chosen predecessor.
  • Retained: PDF pp.17–19: all retained one-box branches above a given alpha.
  • embeddedProjector: PDF p.17, Eq.(76), and p.18, Eq.(83): character projector embedded in the specified tensor prefix. The group embeddings are fixed in every invocation.
  • subgroupMatrixUnit: PDF p.17, Eq.(76): ordinary lower-group matrix units on the physical n=k+2 factor space, with the source's inverse permutation and reversed j,i entry.
  • constructedE: PDF p.17, Eq.(75): actual physical matrix product. No multiplication law or isotypic-basis equality is built into the definition. Physical shapes guarantee positive tensor multiplicities; nonbranch choices are allowed for Remark 41.
  • aggregatedP: PDF p.19, Eq.(96): sum of the constructed internal diagonal units. This is distinct from either ordinary central projector P_mu or P_alpha.
  • unitSynthesis: PDF pp.19–20: the linear combination of the specified physical units.
  • IsMatrixAlgebraModel: PDF pp.19–20: precise algebra-isomorphism-onto-the-span assertion. The explicit synthesis map is complex linear, multiplicative, injective, and has exactly the physical span as image. Thus even a proper nonunital physical corner is isomorphic to the complete source matrix algebra.
  • secondKindIntertwiners: PDF pp.8,25: actual copies of the second-kind module inside physical tensor space. They intertwine the full ordinary subgroup and are annihilated by every moving-last-letter swap generator. This independently defines occurrence multiplicity, with no use of either (25) or (129).
  • secondKindMultiplicity: PDF p.25: M_nu is actual physical second-kind occurrence multiplicity.
  • SecondShapes: PDF p.25: second-kind labels have strictly fewer than d rows.
  • firstKindDimension: PDF pp.5,8,25: the independently computed dimension of the first-kind carrier, namely the range of Q. No diagonal rank formula is an assumption.
  • naturalTrace: PDF pp.23–24, Eqs.(112),(118): actual full-tensor unnormalized trace, using the support inverse, and retaining its complex value.
Definition code
import Mathlib
import Definitions.Def_QAlgorithms_Defs_SchurWeylDecomposition

/-!
Statements from arXiv:1708.02434v2. All new objects are paper-local and computed
from tensor permutations or actual Specht modules. Abstract PRIR coordinates
carry only representation and restriction data, never the summation identities.
The physical-carrier statements requiring independently identified mixed-algebra
isotypic subspaces are deferred in HARD.md. Compilation awaits the batch handoff.
-/

noncomputable section

namespace QAlgorithms.Papers.Independent.Extend50.P28

open scoped Matrix Matrix.Norms.L2Operator ComplexOrder

attribute [local instance] Classical.propDecidable Classical.decEq

/- PDF pp.3,9: notation for the imported partition type, with no height truncation. -/
local notation "Shape" => (fun k : ℕ => QAlgorithms.Schur.Partition k k)

/-- PDF pp.3,10: actual Specht dimension, distinguished from tensor multiplicity. -/
def irrepDim {h k : ℕ} (alpha : QAlgorithms.Schur.Partition h k) : ℕ :=
  Module.finrank ℂ (QAlgorithms.Schur.spechtSpace alpha)

/-- PDF pp.9–10: one-box branching. The types already fix consecutive sizes. -/
def oneBoxBranch {k : ℕ} (alpha : Shape k) (nu : Shape (k + 1)) : Prop :=
  alpha.val.cells ⊆ nu.val.cells

/-- PDF p.9: removable lower shapes in a fixed upper shape. -/
abbrev LowerShapes {k : ℕ} (nu : Shape (k + 1)) :=
  {alpha : Shape k // oneBoxBranch alpha nu}

/-- PDF pp.10,13: every addable upper shape, including zero Gram branches. -/
abbrev UpperShapes {k : ℕ} (alpha : Shape k) :=
  {nu : Shape (k + 1) // oneBoxBranch alpha nu}

/-- PDF p.10: grouped PRIR indices before a coordinate reordering. -/
abbrev PRIRBlockIndex {k : ℕ} (nu : Shape (k + 1)) :=
  (alpha : LowerShapes nu) × Fin (irrepDim alpha.val)

/-- PDF pp.9–13: the subgroup embedding fixes the last letter. -/
def extendPerm {k : ℕ} (sigma : Equiv.Perm (Fin k)) : Equiv.Perm (Fin (k + 1)) :=
  Equiv.permCongr (finSumFinEquiv : Fin k ⊕ Fin 1 ≃ Fin (k + 1))
    (Equiv.Perm.sumCongr sigma (1 : Equiv.Perm (Fin 1)))

/-- PDF pp.10–13: coset representative, including the identity at the last letter. -/
def cosetRep {k : ℕ} (a : Fin (k + 1)) : Equiv.Perm (Fin (k + 1)) :=
  Equiv.swap a (Fin.last k)

/-- PDF p.12: recover the lower permutation on the subgroup image. Outside that
image this total helper returns identity; inducedAction only evaluates it in the
branch where the argument fixes the last letter. -/
def lowerPerm {k : ℕ} (sigma : Equiv.Perm (Fin (k + 1))) : Equiv.Perm (Fin k) :=
  if h : ∃ tau : Equiv.Perm (Fin k), extendPerm tau = sigma then Classical.choose h else 1

/-- PDF pp.9–10, Definition 22: coherent based PRIRs. Character equalities pin each
representation to the actual shape-labelled Specht irrep, rather than arbitrary
blocks. The coordinate equivalence is precisely regrouping (30). The restriction
condition uses one common lower matrix for each label. Real transposition entries
implement Remark 9. None of (32)–(60) is an assumption here. -/
structure CoherentPRIR (k : ℕ) where
  lower : (alpha : Shape k) → Equiv.Perm (Fin k) →
    Matrix (Fin (irrepDim alpha)) (Fin (irrepDim alpha)) ℂ
  upper : (nu : Shape (k + 1)) → Equiv.Perm (Fin (k + 1)) →
    Matrix (Fin (irrepDim nu)) (Fin (irrepDim nu)) ℂ
  lower_one : ∀ alpha, lower alpha 1 = 1
  lower_mul : ∀ alpha sigma tau, lower alpha (sigma * tau) = lower alpha sigma * lower alpha tau
  upper_one : ∀ nu, upper nu 1 = 1
  upper_mul : ∀ nu sigma tau, upper nu (sigma * tau) = upper nu sigma * upper nu tau
  lower_unitary : ∀ alpha sigma, (lower alpha sigma)ᴴ * lower alpha sigma = 1
  upper_unitary : ∀ nu sigma, (upper nu sigma)ᴴ * upper nu sigma = 1
  lower_character : ∀ alpha sigma, (lower alpha sigma).trace =
    QAlgorithms.Schur.spechtCharacter alpha sigma
  upper_character : ∀ nu sigma, (upper nu sigma).trace =
    QAlgorithms.Schur.spechtCharacter nu sigma
  lower_positive : ∀ (alpha : Shape k), 0 < irrepDim alpha
  upper_positive : ∀ (nu : Shape (k + 1)), 0 < irrepDim nu
  coord : (nu : Shape (k + 1)) → PRIRBlockIndex nu ≃ Fin (irrepDim nu)
  restriction : ∀ nu (alpha beta : LowerShapes nu)
    (i : Fin (irrepDim alpha.val)) (j : Fin (irrepDim beta.val)) sigma,
    upper nu (extendPerm sigma) (coord nu ⟨alpha,i⟩) (coord nu ⟨beta,j⟩) =
      if h : alpha.val = beta.val then
        lower alpha.val sigma i (Fin.cast (congrArg irrepDim h.symm) j) else 0
  transposition_real : ∀ nu a i j, (upper nu (cosetRep a) i j).im = 0

/-- PDF p.10: extract a block using its specified, shared lower-shape indices. -/
def prirBlock {k : ℕ} (R : CoherentPRIR k) (nu : Shape (k + 1))
    (alpha beta : Shape k) (ha : oneBoxBranch alpha nu) (hb : oneBoxBranch beta nu)
    (sigma : Equiv.Perm (Fin (k + 1)))
    (i : Fin (irrepDim alpha)) (j : Fin (irrepDim beta)) : ℂ :=
  R.upper nu sigma (R.coord nu ⟨⟨alpha,ha⟩,i⟩) (R.coord nu ⟨⟨beta,hb⟩,j⟩)

/-- PDF pp.10–12: weighted alpha diagonal block over every induced branch. -/
def weightedBlock {k : ℕ} (R : CoherentPRIR k) (alpha : Shape k)
    (sigma : Equiv.Perm (Fin (k + 1)))
    (i j : Fin (irrepDim alpha)) : ℂ :=
  ∑ nu : UpperShapes alpha, (irrepDim nu.val : ℂ) *
    prirBlock R nu.val alpha alpha nu.property nu.property sigma i j

/-- PDF p.13, Eq.(54): the concrete induced coset action. -/
def inducedAction {k : ℕ} (R : CoherentPRIR k) (alpha : Shape k)
    (sigma : Equiv.Perm (Fin (k + 1))) :
    Matrix (Fin (k + 1) × Fin (irrepDim alpha))
      (Fin (k + 1) × Fin (irrepDim alpha)) ℂ :=
  fun p q => if p.1 = sigma q.1 then
    R.lower alpha (lowerPerm (cosetRep p.1 * sigma * cosetRep q.1)) p.2 q.2 else 0

/-- PDF p.13: column labels of Z, flattened only within each upper irrep.
The inverse of R.coord restores precisely the printed (nu,xi,j) labels. -/
abbrev ZColumn {k : ℕ} (alpha : Shape k) :=
  (nu : UpperShapes alpha) × Fin (irrepDim nu.val)

/-- PDF p.13, Eq.(55): explicit normalized matrix, with all addable branches. -/
def explicitZR {k : ℕ} (R : CoherentPRIR k) (alpha : Shape k) :
    Matrix (Fin (k + 1) × Fin (irrepDim alpha)) (ZColumn alpha) ℂ :=
  fun p q =>
    ((Real.sqrt (irrepDim q.1.val : ℝ) /
      (Real.sqrt (k + 1 : ℕ) * Real.sqrt (irrepDim alpha : ℝ)) : ℝ) : ℂ) *
    R.upper q.1.val (cosetRep p.1) (R.coord q.1.val ⟨⟨alpha,q.1.property⟩,p.2⟩) q.2

/-- PDF p.13, Eq.(56): full block diagonal upper action, without height truncation. -/
def prirDirectSumAction {k : ℕ} (R : CoherentPRIR k) (alpha : Shape k)
    (sigma : Equiv.Perm (Fin (k + 1))) : Matrix (ZColumn alpha) (ZColumn alpha) ℂ :=
  fun p q => if h : p.1 = q.1 then
    R.upper p.1.val sigma p.2 (Fin.cast (congrArg (fun nu : UpperShapes alpha => irrepDim nu.val) h.symm) q.2)
    else 0

/-- PDF p.14, Eq.(59): the explicitly constructed column vectors. -/
def columnT {k : ℕ} (R : CoherentPRIR k) (alpha : Shape k) (q : ZColumn alpha) :
    EuclideanSpace ℂ (Fin (k + 1) × Fin (irrepDim alpha)) :=
  WithLp.toLp 2 (fun p => explicitZR R alpha p q)

/-- PDF p.5, Definition 7: dI on diagonal coset blocks; ordinary transposition
blocks off diagonal. The conjugated permutation fixes the last letter. -/
def gramQ {k : ℕ} (R : CoherentPRIR k) (alpha : Shape k) (d : ℕ) :
    Matrix (Fin (k + 1) × Fin (irrepDim alpha))
      (Fin (k + 1) × Fin (irrepDim alpha)) ℂ :=
  fun p q => if p.1 = q.1 then (d : ℂ) * (if p.2 = q.2 then 1 else 0) else
    R.lower alpha (lowerPerm (cosetRep p.1 * Equiv.swap p.1 q.1 * cosetRep q.1)) p.2 q.2

/-- PDF pp.6–7, Eqs.(9)–(10): d plus the signed content of the added cell.
The sum has one term for a genuine one-box branch; diagonal additions have content zero. -/
def contentEigenvalue (d : ℕ) (alpha nu : YoungDiagram) : ℝ :=
  (d : ℝ) + ∑ c ∈ nu.cells \ alpha.cells, ((c.2 : ℝ) - (c.1 : ℝ))

/-- PDF p.14, Eq.(60): a branch eigenvalue on each internal coordinate. -/
def contentDiagonal {k : ℕ} (alpha : Shape k) (d : ℕ) :
    Matrix (ZColumn alpha) (ZColumn alpha) ℂ :=
  Matrix.diagonal fun q => (contentEigenvalue d alpha.val q.1.val.val : ℂ)

local notation "Word" => (fun d n : ℕ => Fin n → Fin d)
/- PDF p.3: tensor index type used by imported tensorPermutation. -/

/-- PDF pp.3–4: partial transpose on the last factor in the fixed tensor basis.
N counts preceding factors; the matrix acts on N+1 factors. -/
def lastPartialTranspose (d N : ℕ) (X : Matrix (Word d (N + 1)) (Word d (N + 1)) ℂ) :
    Matrix (Word d (N + 1)) (Word d (N + 1)) ℂ :=
  fun x y => X (Function.update x (Fin.last N) (y (Fin.last N)))
    (Function.update y (Fin.last N) (x (Fin.last N)))

/-- PDF p.21, Eq.(100): unnormalized partially transposed swap T_a. -/
def transposedSwap (d N : ℕ) (a : Fin N) : Matrix (Word d (N + 1)) (Word d (N + 1)) ℂ :=
  lastPartialTranspose d N
    (QAlgorithms.Schur.tensorPermutation d (N + 1) (Equiv.swap a.castSucc (Fin.last N)))

/-- PDF p.21: rho is the concrete sum of N=n-1 unnormalized generators. -/
def pbtOperator (d N : ℕ) : Matrix (Word d (N + 1)) (Word d (N + 1)) ℂ :=
  ∑ a : Fin N, transposedSwap d N a

/-- PDF p.21, Eq.(100): normalized individual signal; resource pairs are normalized. -/
def normalizedSignal (d N : ℕ) (a : Fin N) : Matrix (Word d (N + 1)) (Word d (N + 1)) ℂ :=
  ((d : ℂ) ^ N)⁻¹ • transposedSwap d N a

/-- PDF p.21: rho-tilde is the sum of signals, not a trace-one state for N>1. -/
def normalizedPBTOperator (d N : ℕ) : Matrix (Word d (N + 1)) (Word d (N + 1)) ℂ :=
  ∑ a : Fin N, normalizedSignal d N a

/-- PDF p.21, Eq.(99), equivalently p.24, Eq.(121): square-root-measurement
entanglement fidelity, using the actual normalized signals and their sum.
The support inverse is imported Mathlib cfc with x mapped to (sqrt x) inverse,
which is zero at zero. Completing the measurement on the common signal kernel adds zero to this trace.
For d=0 this total helper returns zero; every theorem assumes d>=2. -/
def pbtFidelity (d N : ℕ) : ℝ :=
  if hd : 0 < d then
    letI : Nonempty (Fin d) := ⟨⟨0,hd⟩⟩
    let L := cfc (fun x : ℝ => (Real.sqrt x)⁻¹) (normalizedPBTOperator d N)
    (∑ a : Fin N, (normalizedSignal d N a * L * normalizedSignal d N a * L).trace.re) / (d : ℝ) ^ 2
  else 0

/-- PDF p.3: intertwiner space from the actual Specht irrep to the actual
permutation representation. Its dimension is the occurrence multiplicity;
no character-average theorem is used as a definition or assumption. -/
def tensorIntertwiners {h n : ℕ} (d : ℕ) (alpha : QAlgorithms.Schur.Partition h n) :
    Submodule ℂ (QAlgorithms.Schur.spechtSpace alpha →ₗ[ℂ] EuclideanSpace ℂ (Word d n)) where
  carrier := {f | ∀ sigma v, f (QAlgorithms.Schur.spechtRepresentation alpha sigma v) =
    Matrix.toEuclideanLin (QAlgorithms.Schur.tensorPermutation d n sigma) (f v)}
  zero_mem' := by simp
  add_mem' := by
    intro f g hf hg sigma v
    simp only [LinearMap.add_apply, map_add, hf sigma v, hg sigma v]
  smul_mem' := by
    intro c f hf sigma v
    simp only [LinearMap.smul_apply, map_smul, hf sigma v]

/-- PDF pp.3,15–16: actual tensor occurrence multiplicity. -/
def tensorMultiplicity {h n : ℕ} (d : ℕ) (alpha : QAlgorithms.Schur.Partition h n) : ℕ :=
  Module.finrank ℂ (tensorIntertwiners d alpha)

/-- PDF p.22: cycle count includes fixed points; S(0) has zero cycles. -/
def cycleCount {m : ℕ} (sigma : Equiv.Perm (Fin m)) : ℕ :=
  m - sigma.support.card + sigma.cycleType.card

/-- PDF p.22: geometric eigenvalue multiplicity, equal to the spectral
multiplicity for the Hermitian operator rho. -/
def eigenMultiplicity {I : Type*} [Fintype I] [DecidableEq I]
    (A : Matrix I I ℂ) (lambda : ℝ) : ℕ :=
  Module.finrank ℂ (LinearMap.ker (A - (lambda : ℂ) • 1).mulVecLin)

/-- PDF p.26, Proposition 59: the printed domain lambda>=0 is corrected to
lambda>0, as required by its use on positive eigenvalues on p.28. The printed
second derivative is 3/4 times lambda^(-5/2), verified from the PDF image. -/
def inverseRoot (x : ℝ) : ℝ := (Real.sqrt x)⁻¹

/-- PDF pp.17–19: physical lower shapes, including the empty diagram. -/
abbrev PhysicalLower (d k : ℕ) := {alpha : Shape k // alpha.val.colLen 0 ≤ d}

/-- PDF pp.17–19: physical upper shapes, independent of any chosen predecessor. -/
abbrev PhysicalUpper (d k : ℕ) := {nu : Shape (k + 1) // nu.val.colLen 0 ≤ d}

/-- PDF pp.17–19: all retained one-box branches above a given alpha. -/
abbrev Retained {k : ℕ} (d : ℕ) (alpha : Shape k) :=
  {nu : PhysicalUpper d k // oneBoxBranch alpha nu.val}

/-- PDF p.17, Eq.(76), and p.18, Eq.(83): character projector embedded in the
specified tensor prefix. The group embeddings are fixed in every invocation. -/
def embeddedProjector {h k n : ℕ} (d : ℕ) (alpha : QAlgorithms.Schur.Partition h k)
    (embed : Equiv.Perm (Fin k) → Equiv.Perm (Fin n)) : Matrix (Word d n) (Word d n) ℂ :=
  ((irrepDim alpha : ℂ) / (k.factorial : ℂ)) •
    ∑ sigma : Equiv.Perm (Fin k), QAlgorithms.Schur.spechtCharacter alpha sigma⁻¹ •
      QAlgorithms.Schur.tensorPermutation d n (embed sigma)

/-- PDF p.17, Eq.(76): ordinary lower-group matrix units on the physical
n=k+2 factor space, with the source's inverse permutation and reversed j,i entry. -/
def subgroupMatrixUnit {k : ℕ} (R : CoherentPRIR k) (d : ℕ) (alpha : Shape k)
    (i j : Fin (irrepDim alpha)) : Matrix (Word d (k + 2)) (Word d (k + 2)) ℂ :=
  ((irrepDim alpha : ℂ) / (k.factorial : ℂ)) •
    ∑ sigma : Equiv.Perm (Fin k), R.lower alpha sigma⁻¹ j i •
      QAlgorithms.Schur.tensorPermutation d (k + 2) (extendPerm (extendPerm sigma))

/-- PDF p.17, Eq.(75): actual physical matrix product. No multiplication law or
isotypic-basis equality is built into the definition. Physical shapes guarantee
positive tensor multiplicities; nonbranch choices are allowed for Remark 41. -/
def constructedE {k : ℕ} (R : CoherentPRIR k) (d : ℕ) (alpha : Shape k)
    (mu nu : PhysicalUpper d k) (i j : Fin (irrepDim alpha)) :
    Matrix (Word d (k + 2)) (Word d (k + 2)) ℂ :=
  ((tensorMultiplicity d alpha : ℂ) /
    (Real.sqrt ((tensorMultiplicity d mu.val : ℝ) * (tensorMultiplicity d nu.val : ℝ)) : ℂ)) •
    (embeddedProjector d mu.val extendPerm * subgroupMatrixUnit R d alpha i j *
      transposedSwap d (k + 1) (Fin.last k) * embeddedProjector d nu.val extendPerm)

/-- PDF p.19, Eq.(96): sum of the constructed internal diagonal units.
This is distinct from either ordinary central projector P_mu or P_alpha. -/
def aggregatedP {k : ℕ} (R : CoherentPRIR k) (d : ℕ) (alpha : Shape k)
    (mu nu : PhysicalUpper d k) : Matrix (Word d (k + 2)) (Word d (k + 2)) ℂ :=
  ∑ i : Fin (irrepDim alpha), constructedE R d alpha mu nu i i

/-- PDF pp.19–20: the linear combination of the specified physical units. -/
def unitSynthesis {I J : Type*} [Fintype I] (E : I → I → Matrix J J ℂ)
    (A : Matrix I I ℂ) : Matrix J J ℂ :=
  ∑ i : I, ∑ j : I, A i j • E i j

/-- PDF pp.19–20: precise algebra-isomorphism-onto-the-span assertion. The
explicit synthesis map is complex linear, multiplicative, injective, and has
exactly the physical span as image. Thus even a proper nonunital physical corner
is isomorphic to the complete source matrix algebra. -/
def IsMatrixAlgebraModel {I J : Type*} [Fintype I] [Fintype J]
    (E : I → I → Matrix J J ℂ) : Prop :=
  Function.Injective (unitSynthesis E) ∧
  (∀ A B, unitSynthesis E (A + B) = unitSynthesis E A + unitSynthesis E B) ∧
  (∀ c : ℂ, ∀ A, unitSynthesis E (c • A) = c • unitSynthesis E A) ∧
  (∀ A B, unitSynthesis E (A * B) = unitSynthesis E A * unitSynthesis E B) ∧
  Set.range (unitSynthesis E) =
    (Submodule.span ℂ (Set.range (fun ij : I × I => E ij.1 ij.2)) : Set (Matrix J J ℂ))

/-- PDF pp.8,25: actual copies of the second-kind module inside physical
tensor space. They intertwine the full ordinary subgroup and are annihilated by
every moving-last-letter swap generator. This independently defines occurrence
multiplicity, with no use of either (25) or (129). -/
def secondKindIntertwiners {N : ℕ} (d : ℕ) (nu : Shape N) :
    Submodule ℂ (QAlgorithms.Schur.spechtSpace nu →ₗ[ℂ] EuclideanSpace ℂ (Word d (N + 1))) where
  carrier := {f | (∀ sigma v, f (QAlgorithms.Schur.spechtRepresentation nu sigma v) =
    Matrix.toEuclideanLin (QAlgorithms.Schur.tensorPermutation d (N + 1) (extendPerm sigma)) (f v)) ∧
    (∀ a : Fin N, ∀ v, Matrix.toEuclideanLin (transposedSwap d N a) (f v) = 0)}
  zero_mem' := by constructor <;> simp
  add_mem' := by
    intro f g hf hg
    constructor
    · intro sigma v
      simp only [LinearMap.add_apply, map_add, hf.1 sigma v, hg.1 sigma v]
    · intro a v
      simp only [LinearMap.add_apply, map_add, hf.2 a v, hg.2 a v, add_zero]
  smul_mem' := by
    intro c f hf
    constructor
    · intro sigma v
      simp only [LinearMap.smul_apply, map_smul, hf.1 sigma v]
    · intro a v
      simp only [LinearMap.smul_apply, map_smul, hf.2 a v, smul_zero]

/-- PDF p.25: M_nu is actual physical second-kind occurrence multiplicity. -/
def secondKindMultiplicity {N : ℕ} (d : ℕ) (nu : Shape N) : ℕ :=
  Module.finrank ℂ (secondKindIntertwiners d nu)

/-- PDF p.25: second-kind labels have strictly fewer than d rows. -/
abbrev SecondShapes (d N : ℕ) := {nu : Shape N // nu.val.colLen 0 < d}

/-- PDF pp.5,8,25: the independently computed dimension of the first-kind
carrier, namely the range of Q. No diagonal rank formula is an assumption. -/
def firstKindDimension {k : ℕ} (R : CoherentPRIR k) (alpha : Shape k) (d : ℕ) : ℕ :=
  Module.finrank ℂ (LinearMap.range (gramQ R alpha d).mulVecLin)

/-- PDF pp.23–24, Eqs.(112),(118): actual full-tensor unnormalized trace,
using the support inverse, and retaining its complex value. -/
def naturalTrace (d N : ℕ) (a : Fin N) : ℂ :=
  if hd : 0 < d then
    letI : Nonempty (Fin d) := ⟨⟨0,hd⟩⟩
    let L := cfc (fun x : ℝ => (Real.sqrt x)⁻¹) (pbtOperator d N)
    (L * transposedSwap d N a * L * transposedSwap d N a).trace
  else 0

/-- Sanity: the terminal coset representative is identity, including k=0. -/
example (k : ℕ) : cosetRep (Fin.last k) = 1 := by
  change Equiv.swap (Fin.last k) (Fin.last k) = Equiv.refl _
  exact Equiv.swap_self _

/-- Sanity: at k=0 the induced Gram matrix is [d], not the zero matrix. -/
example (R : CoherentPRIR 0) (alpha : Shape 0) (d : ℕ)
    (i : Fin (irrepDim alpha)) : gramQ R alpha d (0,i) (0,i) = (d : ℂ) := by
  simp [gramQ]

/-- Sanity: with one tensor factor partial transpose is the ordinary transpose. -/
example (d : ℕ) (X : Matrix (Word d 1) (Word d 1) ℂ) (x y : Word d 1) :
    lastPartialTranspose d 0 X x y = X y x := by
  change X (Function.update x (Fin.last 0) (y (Fin.last 0)))
    (Function.update y (Fin.last 0) (x (Fin.last 0))) = X y x
  congr 1 <;> funext i <;> have hi : i = Fin.last 0 := Subsingleton.elim _ _
  all_goals subst i; simp

/-- Sanity: with zero ports the concrete operator is an empty sum. -/
example (d : ℕ) : pbtOperator d 0 = 0 := by simp [pbtOperator]

/-- Sanity: fixed points contribute cycles; the identity on m letters has m cycles. -/
example (m : ℕ) : cycleCount (1 : Equiv.Perm (Fin m)) = m := by simp [cycleCount]

/-- Sanity: inverse square root is defined at zero as zero; zero is excluded from
Proposition 59's convexity domain. -/
example : inverseRoot 0 = 0 := by simp [inverseRoot]

/-- Sanity: the zero-letter subgroup embeds as the identity on one letter. -/
example : extendPerm (1 : Equiv.Perm (Fin 0)) = 1 := by
  apply Equiv.ext
  intro i
  exact (Fin.eq_zero _).trans (Fin.eq_zero _).symm

/-- Sanity: dropping the final letter in the smallest group has no residual action. -/
example (sigma : Equiv.Perm (Fin 1)) : lowerPerm sigma = 1 := Subsingleton.elim _ _

/-- Sanity: the identity diagonal weighted prirBlock counts every induced branch. -/
example {k : ℕ} (R : CoherentPRIR k) (alpha : Shape k) (i : Fin (irrepDim alpha)) :
    weightedBlock R alpha 1 i i = ∑ nu : UpperShapes alpha, (irrepDim nu.val : ℂ) := by
  simp [weightedBlock, prirBlock, R.upper_one]

/-- Sanity: no cell addition contributes no signed content. -/
example (d : ℕ) (alpha : YoungDiagram) : contentEigenvalue d alpha alpha = (d : ℝ) := by
  simp [contentEigenvalue]

/-- Sanity: normalized signal sum is also empty at zero ports. -/
example (d : ℕ) : normalizedPBTOperator d 0 = 0 := by simp [normalizedPBTOperator]

/-- Sanity: the operational fidelity of the empty signal family is zero. -/
example (d : ℕ) : pbtFidelity d 0 = 0 := by
  by_cases hd : 0 < d <;> simp [pbtFidelity, hd]

/-- Sanity: the tensor intertwiner constraints admit the zero intertwiner. -/
example {h n : ℕ} (d : ℕ) (alpha : QAlgorithms.Schur.Partition h n) :
    (0 : QAlgorithms.Schur.spechtSpace alpha →ₗ[ℂ] EuclideanSpace ℂ (Word d n)) ∈
      tensorIntertwiners d alpha := (tensorIntertwiners d alpha).zero_mem

/-- Sanity: second-kind constraints likewise admit the zero physical intertwiner. -/
example {N : ℕ} (d : ℕ) (nu : Shape N) :
    (0 : QAlgorithms.Schur.spechtSpace nu →ₗ[ℂ] EuclideanSpace ℂ (Word d (N + 1))) ∈
      secondKindIntertwiners d nu := (secondKindIntertwiners d nu).zero_mem

/-- Sanity: synthesis for a one-dimensional matrix algebra has one coefficient. -/
example {J : Type*} (E : Fin 1 → Fin 1 → Matrix J J ℂ) (A : Matrix (Fin 1) (Fin 1) ℂ) :
    unitSynthesis E A = A 0 0 • E 0 0 := by simp [unitSynthesis]

end QAlgorithms.Papers.Independent.Extend50.P28
Source
Simplified formalism of the algebra of partially transposed permutation operators with applications, arXiv:1708.02434v2, https://arxiv.org/abs/1708.02434v2
Read-back

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

QAlgorithms.Papers.Independent.Extend50.P28.CoherentPRIR

For every natural number kkk, including zero, this defines a structure of the following data and conditions. Write Sm=Shape(m)\mathcal S_m=\mathrm{Shape}(m)Sm​=Shape(m); the supplied code does not define these shape types. For each shape λ\lambdaλ at level mmm, use its chosen cell numbering to form the row-preserving and column-preserving permutation sets Rλ,Cλ⊆SmR_\lambda,C_\lambda\subseteq S_mRλ​,Cλ​⊆Sm​, set (Yλ)g,t=∑a∈Rλ,b∈Cλsgn⁡(b)1{g=tab}(Y_\lambda)_{g,t}=\sum_{a\in R_\lambda,b\in C_\lambda}\operatorname{sgn}(b)\mathbf1_{\{g=tab\}}(Yλ​)g,t​=∑a∈Rλ​,b∈Cλ​​sgn(b)1{g=tab}​, and let Vλ=im⁡(Yλ)⊆CSmV_\lambda=\operatorname{im}(Y_\lambda)\subseteq\mathbb C^{S_m}Vλ​=im(Yλ​)⊆CSm​ and Dλ=dim⁡CVλD_\lambda=\dim_{\mathbb C}V_\lambdaDλ​=dimC​Vλ​. Let PλP_\lambdaPλ​ be the orthogonal projection onto VλV_\lambdaVλ​, expressed in the standard basis, let TπT_\piTπ​ have entries (Tπ)g,t=1{g=πt}(T_\pi)_{g,t}=\mathbf1_{\{g=\pi t\}}(Tπ​)g,t​=1{g=πt}​, and define χλ(π)=tr⁡(TπPλ)\chi_\lambda(\pi)=\operatorname{tr}(T_\pi P_\lambda)χλ​(π)=tr(Tπ​Pλ​). The structure contains matrices Lα(σ)∈CDα×DαL_\alpha(\sigma)\in\mathbb C^{D_\alpha\times D_\alpha}Lα​(σ)∈CDα​×Dα​ for every α∈Sk,σ∈Sk\alpha\in\mathcal S_k,\sigma\in S_kα∈Sk​,σ∈Sk​, and Uν(π)∈CDν×DνU_\nu(\pi)\in\mathbb C^{D_\nu\times D_\nu}Uν​(π)∈CDν​×Dν​ for every ν∈Sk+1,π∈Sk+1\nu\in\mathcal S_{k+1},\pi\in S_{k+1}ν∈Sk+1​,π∈Sk+1​. For all admissible shapes and permutations they satisfy

Lα(e)=I,Lα(στ)=Lα(σ)Lα(τ),Lα(σ)∗Lα(σ)=I,tr⁡Lα(σ)=χα(σ),Uν(e)=I,Uν(πρ)=Uν(π)Uν(ρ),Uν(π)∗Uν(π)=I,tr⁡Uν(π)=χν(π),Dα>0,Dν>0.\begin{gathered} L_\alpha(e)=I,\qquad L_\alpha(\sigma\tau)=L_\alpha(\sigma)L_\alpha(\tau),\qquad L_\alpha(\sigma)^*L_\alpha(\sigma)=I,\qquad \operatorname{tr}L_\alpha(\sigma)=\chi_\alpha(\sigma),\\ U_\nu(e)=I,\qquad U_\nu(\pi\rho)=U_\nu(\pi)U_\nu(\rho),\qquad U_\nu(\pi)^*U_\nu(\pi)=I,\qquad \operatorname{tr}U_\nu(\pi)=\chi_\nu(\pi),\\ D_\alpha>0,\qquad D_\nu>0. \end{gathered}Lα​(e)=I,Lα​(στ)=Lα​(σ)Lα​(τ),Lα​(σ)∗Lα​(σ)=I,trLα​(σ)=χα​(σ),Uν​(e)=I,Uν​(πρ)=Uν​(π)Uν​(ρ),Uν​(π)∗Uν​(π)=I,trUν​(π)=χν​(π),Dα​>0,Dν​>0.​

It also contains, for each ν\nuν, a bijection

cν:{(α,i):α∈Sk, cells⁡(α)⊆cells⁡(ν), 0≤i<Dα}⟶{0,…,Dν−1}.c_\nu: \{(\alpha,i):\alpha\in\mathcal S_k,\ \operatorname{cells}(\alpha)\subseteq\operatorname{cells}(\nu),\ 0\le i<D_\alpha\} \longrightarrow\{0,\ldots,D_\nu-1\}.cν​:{(α,i):α∈Sk​, cells(α)⊆cells(ν), 0≤i<Dα​}⟶{0,…,Dν​−1}.

For every two such lower shapes α,β\alpha,\betaα,β, every 0≤i<Dα0\le i<D_\alpha0≤i<Dα​, 0≤j<Dβ0\le j<D_\beta0≤j<Dβ​, and every σ∈Sk\sigma\in S_kσ∈Sk​, extending σ\sigmaσ by fixing kkk gives

Uν(σ^)cν(α,i), cν(β,j)={Lα(σ)i,j,α=β,0,α≠β,U_\nu(\widehat{\sigma})_{c_\nu(\alpha,i),\,c_\nu(\beta,j)} = \begin{cases} L_\alpha(\sigma)_{i,j},&\alpha=\beta,\\ 0,&\alpha\ne\beta, \end{cases}Uν​(σ)cν​(α,i),cν​(β,j)​={Lα​(σ)i,j​,0,​α=β,α=β,​

where in the equality case the column index is identified using that equality of shapes. Finally, for every ν\nuν, every a∈{0,…,k}a\in\{0,\ldots,k\}a∈{0,…,k}, and every pair of matrix indices, the corresponding entry of Uν((a k))U_\nu((a\ k))Uν​((a k)) has imaginary part zero; when a=ka=ka=k, this permutation is the identity. The structure definition specifies these data and conditions without asserting that such data exist.

QAlgorithms.Papers.Independent.Extend50.P28.IsMatrixAlgebraModel

For any finite types I,JI,JI,J and family Eij∈CJ×JE_{ij}\in\mathbb C^{J\times J}Eij​∈CJ×J, this defines a proposition asserting all of the following properties of

SE:CI×I→CJ×J,SE(A)=∑i,j∈IAijEij:\mathcal S_E:\mathbb C^{I\times I}\to\mathbb C^{J\times J}, \qquad \mathcal S_E(A)=\sum_{i,j\in I}A_{ij}E_{ij}:SE​:CI×I→CJ×J,SE​(A)=i,j∈I∑​Aij​Eij​:

the map SE\mathcal S_ESE​ is injective; for every A,B∈CI×IA,B\in\mathbb C^{I\times I}A,B∈CI×I it satisfies SE(A+B)=SE(A)+SE(B)\mathcal S_E(A+B)=\mathcal S_E(A)+\mathcal S_E(B)SE​(A+B)=SE​(A)+SE​(B); for every c∈Cc\in\mathbb Cc∈C and A∈CI×IA\in\mathbb C^{I\times I}A∈CI×I it satisfies SE(cA)=cSE(A)\mathcal S_E(cA)=c\mathcal S_E(A)SE​(cA)=cSE​(A); for every A,B∈CI×IA,B\in\mathbb C^{I\times I}A,B∈CI×I it satisfies SE(AB)=SE(A)SE(B)\mathcal S_E(AB)=\mathcal S_E(A)\mathcal S_E(B)SE​(AB)=SE​(A)SE​(B); and its range is exactly

range⁡SE=span⁡C{Eij:i,j∈I}.\operatorname{range}\mathcal S_E =\operatorname{span}_{\mathbb C}\{E_{ij}:i,j\in I\}.rangeSE​=spanC​{Eij​:i,j∈I}.

Both finite types may be empty. If III is empty, these conditions hold for its empty family; if JJJ is empty and III is nonempty, injectivity cannot hold.

QAlgorithms.Papers.Independent.Extend50.P28.LowerShapes

For every natural number kkk and every ν\nuν of type Shape(k+1)\mathrm{Shape}(k+1)Shape(k+1), this defines the type of α\alphaα of type Shape(k)\mathrm{Shape}(k)Shape(k) equipped with the condition

cells⁡(α)⊆cells⁡(ν).\operatorname{cells}(\alpha)\subseteq\operatorname{cells}(\nu).cells(α)⊆cells(ν).

Thus an element records both such a shape and its cell inclusion; the definition does not assert that any such element exists. The types Shape(m)\mathrm{Shape}(m)Shape(m) are not defined in the supplied code, so their further restrictions cannot be expanded. This includes k=0k=0k=0.

QAlgorithms.Papers.Independent.Extend50.P28.PRIRBlockIndex

For every natural number kkk and every ν\nuν of type Shape(k+1)\mathrm{Shape}(k+1)Shape(k+1), this defines the type of pairs (α,i)(\alpha,i)(α,i), where α\alphaα is of type Shape(k)\mathrm{Shape}(k)Shape(k), its cells are contained in those of ν\nuν, and iii is an integer with 0≤i<Dα0\le i<D_\alpha0≤i<Dα​. Here DαD_\alphaDα​ is the complex dimension of the image of the matrix

(Yα)g,t=∑a∈Rα∑b∈Cαsgn⁡(b) 1{g=tab},g,t∈Sk,(Y_\alpha)_{g,t} =\sum_{a\in R_\alpha}\sum_{b\in C_\alpha} \operatorname{sgn}(b)\,\mathbf 1_{\{g=tab\}}, \qquad g,t\in S_k,(Yα​)g,t​=a∈Rα​∑​b∈Cα​∑​sgn(b)1{g=tab}​,g,t∈Sk​,

acting on CSk\mathbb C^{S_k}CSk​, where SkS_kSk​ permutes the numbered cells of α\alphaα, and Rα,CαR_\alpha,C_\alphaRα​,Cα​ preserve their rows and columns, respectively, using the chosen cell numbering from the supplied definitions. The underlying shape types Shape(m)\mathrm{Shape}(m)Shape(m) are not defined in the supplied code. No pair is contributed by a shape whose dimension is zero, and no nonemptiness of the resulting type is asserted; k=0k=0k=0 is permitted.

QAlgorithms.Papers.Independent.Extend50.P28.PhysicalLower

For any natural numbers d,kd,kd,k, PhysicalLower⁡(d,k)\operatorname{PhysicalLower}(d,k)PhysicalLower(d,k) is the type of elements α\alphaα of Shape⁡(k)\operatorname{Shape}(k)Shape(k) equipped with the condition that the zeroth column of their underlying Young diagram has length at most ddd. The supplied code does not define Shape⁡(k)\operatorname{Shape}(k)Shape(k), so its additional restrictions cannot be specified from this declaration. No positivity condition is imposed on ddd or kkk; when d=0d=0d=0, the stated condition requires zeroth column length zero.

QAlgorithms.Papers.Independent.Extend50.P28.PhysicalUpper

For any natural numbers d,kd,kd,k, PhysicalUpper⁡(d,k)\operatorname{PhysicalUpper}(d,k)PhysicalUpper(d,k) is the type of elements ν\nuν of Shape⁡(k+1)\operatorname{Shape}(k+1)Shape(k+1) equipped with the condition that the zeroth column of their underlying Young diagram has length at most ddd. The supplied code does not define Shape⁡(k+1)\operatorname{Shape}(k+1)Shape(k+1), so its additional restrictions cannot be specified from this declaration. The values d=0d=0d=0 and k=0k=0k=0 are allowed; at d=0d=0d=0, the stated condition requires zeroth column length zero.

QAlgorithms.Papers.Independent.Extend50.P28.Retained

For any natural numbers k,dk,dk,d and any α∈Shape⁡(k)\alpha\in\operatorname{Shape}(k)α∈Shape(k), Retained⁡(d,α)\operatorname{Retained}(d,\alpha)Retained(d,α) is the type of elements ν∈Shape⁡(k+1)\nu\in\operatorname{Shape}(k+1)ν∈Shape(k+1) whose underlying Young diagram has zeroth column length at most ddd and whose cell set contains the cell set of the underlying diagram of α\alphaα. The definition of Shape⁡\operatorname{Shape}Shape is not supplied. There is no separate assumption that α\alphaα has zeroth column length at most ddd, and no positivity assumption on kkk or ddd.

QAlgorithms.Papers.Independent.Extend50.P28.SecondShapes

For natural numbers d,Nd,Nd,N, this defines the type of shapes ν\nuν belonging to Shape(N)\mathrm{Shape}(N)Shape(N) whose underlying Young diagram has strictly fewer than ddd cells in its first column, equivalently strictly fewer than ddd nonempty rows:

{ν∈Shape(N):colLen⁡ν(0)<d}.\{\nu\in\mathrm{Shape}(N):\operatorname{colLen}_{\nu}(0)<d\}.{ν∈Shape(N):colLenν​(0)<d}.

The defining expression for Shape(N)\mathrm{Shape}(N)Shape(N) is not included in the supplied code. The condition is strict; in particular, this type is empty when d=0d=0d=0. The parameter N=0N=0N=0 is allowed.

QAlgorithms.Papers.Independent.Extend50.P28.UpperShapes

For every natural number kkk and every α\alphaα of type Shape(k)\mathrm{Shape}(k)Shape(k), this defines the type of ν\nuν of type Shape(k+1)\mathrm{Shape}(k+1)Shape(k+1) equipped with the condition

cells⁡(α)⊆cells⁡(ν).\operatorname{cells}(\alpha)\subseteq\operatorname{cells}(\nu).cells(α)⊆cells(ν).

Thus an element records both such a shape and its cell inclusion; the definition does not assert that this type is nonempty. The definition of Shape(m)\mathrm{Shape}(m)Shape(m), including any further restrictions on its underlying Young diagrams, is absent from the supplied code. The case k=0k=0k=0 is included.

QAlgorithms.Papers.Independent.Extend50.P28.ZColumn

For every natural number kkk, including 000, and every α\alphaα in the given shape type Shape(k)\mathrm{Shape}(k)Shape(k), this defines the column index set

Zα=⨆ν∈Shape(k+1)α.cells⊆ν.cells{0,…,Dν−1}.\mathcal Z_\alpha = \bigsqcup_{\substack{\nu\in\mathrm{Shape}(k+1)\\ \alpha.\mathrm{cells}\subseteq\nu.\mathrm{cells}}} \{0,\ldots,D_\nu-1\}.Zα​=ν∈Shape(k+1)α.cells⊆ν.cells​⨆​{0,…,Dν​−1}.

Thus an index is a pair (ν,j)(\nu,j)(ν,j), together with the requirement that every cell of α\alphaα is a cell of ν\nuν, and with 0≤j<Dν0\le j<D_\nu0≤j<Dν​. Here DνD_\nuDν​ is the complex dimension of the following subspace of CSk+1\mathbb C^{S_{k+1}}CSk+1​: choose the cell numbering used by the definitions, let AνA_\nuAν​ and BνB_\nuBν​ be the permutations preserving, respectively, the row and column of every numbered cell, and take the range of the linear map

eh⟼∑a∈Aν∑b∈Bνsgn⁡(b)ehab.e_h\longmapsto \sum_{a\in A_\nu}\sum_{b\in B_\nu}\operatorname{sgn}(b)e_{hab}.eh​⟼a∈Aν​∑​b∈Bν​∑​sgn(b)ehab​.

A shape with Dν=0D_\nu=0Dν​=0 contributes no column indices, and an empty collection of eligible shapes gives an empty index set. The supplied code does not include the definition of the family Shape\mathrm{Shape}Shape.

QAlgorithms.Papers.Independent.Extend50.P28.aggregatedP

For any k,d∈Nk,d\in\mathbb Nk,d∈N, coherent package RRR, shape α∈Shape⁡(k)\alpha\in\operatorname{Shape}(k)α∈Shape(k), and shapes μ,ν∈Shape⁡(k+1)\mu,\nu\in\operatorname{Shape}(k+1)μ,ν∈Shape(k+1) with first-column lengths at most ddd, this defines the matrix

Aμνα=∑i=0fα−1Eiiα;μν,Eijα;μν=mα(d)mμ(d)mν(d) Πμ↑BijαTkΠν↑A^\alpha_{\mu\nu} =\sum_{i=0}^{f_\alpha-1}E^{\alpha;\mu\nu}_{ii}, \qquad E^{\alpha;\mu\nu}_{ij} =\frac{m_\alpha(d)}{\sqrt{m_\mu(d)m_\nu(d)}}\, \Pi_\mu^\uparrow B^\alpha_{ij}T_k\Pi_\nu^\uparrowAμνα​=i=0∑fα​−1​Eiiα;μν​,Eijα;μν​=mμ​(d)mν​(d)​mα​(d)​Πμ↑​Bijα​Tk​Πν↑​

on words of length k+2k+2k+2 over {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}. The type Shape⁡(m)\operatorname{Shape}(m)Shape(m) is not defined in the supplied code. For its underlying mmm-cell diagrams, use the fixed cell numbering and row-preserving and column-preserving permutation sets Rλ,Cλ\mathcal R_\lambda,\mathcal C_\lambdaRλ​,Cλ​ to form

Yλ(g,h)=∑a∈Rλ,b∈Cλsgn⁡(b)1{g=hab},Vλ=range⁡Yλ,fλ=dim⁡CVλ.Y_\lambda(g,h)=\sum_{a\in\mathcal R_\lambda,b\in\mathcal C_\lambda} \operatorname{sgn}(b)\mathbf1_{\{g=hab\}}, \quad V_\lambda=\operatorname{range}Y_\lambda,\quad f_\lambda=\dim_{\mathbb C}V_\lambda.Yλ​(g,h)=a∈Rλ​,b∈Cλ​∑​sgn(b)1{g=hab}​,Vλ​=rangeYλ​,fλ​=dimC​Vλ​.

If Lσ(g,h)=1{g=σh}L_\sigma(g,h)=\mathbf1_{\{g=\sigma h\}}Lσ​(g,h)=1{g=σh}​ and QλQ_\lambdaQλ​ is orthogonal projection onto VλV_\lambdaVλ​, define ρλ(σ)=QλLσ∣Vλ\rho_\lambda(\sigma)=Q_\lambda L_\sigma|_{V_\lambda}ρλ​(σ)=Qλ​Lσ​∣Vλ​​ and χλ(σ)=tr⁡(LσQλ)\chi_\lambda(\sigma)=\operatorname{tr}(L_\sigma Q_\lambda)χλ​(σ)=tr(Lσ​Qλ​). With Pτ(y,x)=1{y=x∘τ−1}P_\tau(y,x)=\mathbf1_{\{y=x\circ\tau^{-1}\}}Pτ​(y,x)=1{y=x∘τ−1}​, the number mλ(d)m_\lambda(d)mλ​(d) is the complex dimension of the space of complex-linear maps F:Vλ→C{0,…,d−1}mF:V_\lambda\to\mathbb C^{\{0,\ldots,d-1\}^{m}}F:Vλ​→C{0,…,d−1}m satisfying Fρλ(σ)=PσFF\rho_\lambda(\sigma)=P_\sigma FFρλ​(σ)=Pσ​F for every σ∈Sm\sigma\in S_mσ∈Sm​, and

Πλe=fλm!∑σ∈Smχλ(σ−1)Pe(σ),Bijα=fαk!∑σ∈Skℓα(σ−1)jiPσ↑↑.\Pi_\lambda^e=\frac{f_\lambda}{m!}\sum_{\sigma\in S_m}\chi_\lambda(\sigma^{-1})P_{e(\sigma)}, \qquad B^\alpha_{ij}=\frac{f_\alpha}{k!}\sum_{\sigma\in S_k} \ell_\alpha(\sigma^{-1})_{ji}P_{\sigma^{\uparrow\uparrow}}.Πλe​=m!fλ​​σ∈Sm​∑​χλ​(σ−1)Pe(σ)​,Bijα​=k!fα​​σ∈Sk​∑​ℓα​(σ−1)ji​Pσ↑↑​.

Here ↑\uparrow↑ fixes the new last position. The entry Tk(x,y)T_k(x,y)Tk​(x,y) is 111 exactly when xk=xk+1x_k=x_{k+1}xk​=xk+1​, yk=yk+1y_k=y_{k+1}yk​=yk+1​, and the words agree elsewhere, and is 000 otherwise. The package RRR gives identity-preserving multiplicative lower and upper matrix maps with M∗M=IM^*M=IM∗M=I, traces χ\chiχ, positive dimensions, coordinate bijections identifying restriction of each upper map with the direct sum of the lower maps over cell-included diagrams, and real entries for upper matrices of swaps (a k)(a\ k)(a k). No branching condition on α,μ,ν\alpha,\mu,\nuα,μ,ν is imposed. Zero natural parameters are included; empty sums are zero and division by zero is zero.

QAlgorithms.Papers.Independent.Extend50.P28.columnT

For every natural number kkk, including 000, every coherent datum RRR at level kkk, every α∈Shape(k)\alpha\in\mathrm{Shape}(k)α∈Shape(k), and every column index q=(ν,j)q=(\nu,j)q=(ν,j) with α.cells⊆ν.cells\alpha.\mathrm{cells}\subseteq\nu.\mathrm{cells}α.cells⊆ν.cells and 0≤j<Dν0\le j<D_\nu0≤j<Dν​, this defines a vector TqT_qTq​ in the complex Euclidean space indexed by pairs (a,i)(a,i)(a,i), 0≤a<k+10\le a<k+10≤a<k+1, 0≤i<Dα0\le i<D_\alpha0≤i<Dα​, whose coordinates are

(T(ν,j))(a,i)=Dνk+1Dα Uν((a k))cν(α,i),j.(T_{(\nu,j)})_{(a,i)} = \frac{\sqrt{D_\nu}}{\sqrt{k+1}\sqrt{D_\alpha}}\, U^\nu((a\ k))_{c_\nu(\alpha,i),j}.(T(ν,j)​)(a,i)​=k+1​Dα​​Dν​​​Uν((a k))cν​(α,i),j​.

No normalization assertion is part of this definition. Here Dλ=dim⁡CVλD_\lambda=\dim_{\mathbb C}V_\lambdaDλ​=dimC​Vλ​, with Vλ⊆CSmV_\lambda\subseteq\mathbb C^{S_m}Vλ​⊆CSm​, for a level-mmm shape, the range of eh↦∑r∈Aλ,s∈Bλsgn⁡(s)ehrse_h\mapsto\sum_{r\in A_\lambda,s\in B_\lambda}\operatorname{sgn}(s)e_{hrs}eh​↦∑r∈Aλ​,s∈Bλ​​sgn(s)ehrs​; the permutations in Aλ,BλA_\lambda,B_\lambdaAλ​,Bλ​ preserve the rows and columns of the chosen cell numbering. The coherent datum supplies lower representations LβL^\betaLβ, upper representations UνU^\nuUν, and bijections cνc_\nucν​ from lower-shape coordinate blocks into the upper coordinates, with lower shapes selected by cell inclusion. It requires positive dimensions, preservation of identity and multiplication, M∗M=IM^*M=IM∗M=I, and traces tr⁡(ℓρPλ)\operatorname{tr}(\ell_\rho P_\lambda)tr(ℓρ​Pλ​), where ℓρeh=eρh\ell_\rho e_h=e_{\rho h}ℓρ​eh​=eρh​ and PλP_\lambdaPλ​ is orthogonal projection onto VλV_\lambdaVλ​. Under cνc_\nucν​, upper matrices of permutations extended from SkS_kSk​ by fixing kkk are block diagonal with the corresponding lower matrices; all upper matrices of swaps (a k)(a\ k)(a k) have real entries. The square-root denominator is therefore positive, and (k k)(k\ k)(k k) is the identity. The supplied code does not define the shape family.

QAlgorithms.Papers.Independent.Extend50.P28.constructedE

For any k,d∈Nk,d\in\mathbb Nk,d∈N, coherent package RRR, shape α∈Shape⁡(k)\alpha\in\operatorname{Shape}(k)α∈Shape(k), shapes μ,ν∈Shape⁡(k+1)\mu,\nu\in\operatorname{Shape}(k+1)μ,ν∈Shape(k+1) having first-column lengths at most ddd, and 0≤i,j<fα0\le i,j<f_\alpha0≤i,j<fα​, this defines

Eijα;μν=mα(d)mμ(d)mν(d) Πμ↑BijαTkΠν↑E^{\alpha;\mu\nu}_{ij} = \frac{m_\alpha(d)}{\sqrt{m_\mu(d)m_\nu(d)}}\, \Pi_\mu^\uparrow B^\alpha_{ij}T_k\Pi_\nu^\uparrowEijα;μν​=mμ​(d)mν​(d)​mα​(d)​Πμ↑​Bijα​Tk​Πν↑​

as a complex matrix on words of length k+2k+2k+2 over {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}. The definition of Shape⁡(m)\operatorname{Shape}(m)Shape(m) is not supplied. For each underlying mmm-cell diagram λ\lambdaλ, use its fixed cell numbering, let Rλ,Cλ\mathcal R_\lambda,\mathcal C_\lambdaRλ​,Cλ​ preserve rows and columns, and define

Yλ(g,h)=∑a∈Rλ,b∈Cλsgn⁡(b)1{g=hab},Vλ=range⁡Yλ,fλ=dim⁡CVλ.Y_\lambda(g,h)=\sum_{a\in\mathcal R_\lambda,b\in\mathcal C_\lambda} \operatorname{sgn}(b)\mathbf1_{\{g=hab\}}, \quad V_\lambda=\operatorname{range}Y_\lambda,\quad f_\lambda=\dim_{\mathbb C}V_\lambda.Yλ​(g,h)=a∈Rλ​,b∈Cλ​∑​sgn(b)1{g=hab}​,Vλ​=rangeYλ​,fλ​=dimC​Vλ​.

Let Lσ(g,h)=1{g=σh}L_\sigma(g,h)=\mathbf1_{\{g=\sigma h\}}Lσ​(g,h)=1{g=σh}​, let QλQ_\lambdaQλ​ be orthogonal projection onto VλV_\lambdaVλ​, and set

ρλ(σ)=QλLσ∣Vλ,χλ(σ)=tr⁡(LσQλ).\rho_\lambda(\sigma)=Q_\lambda L_\sigma|_{V_\lambda}, \qquad \chi_\lambda(\sigma)=\operatorname{tr}(L_\sigma Q_\lambda).ρλ​(σ)=Qλ​Lσ​∣Vλ​​,χλ​(σ)=tr(Lσ​Qλ​).

On words, Pτ(y,x)=1{y=x∘τ−1}P_\tau(y,x)=\mathbf1_{\{y=x\circ\tau^{-1}\}}Pτ​(y,x)=1{y=x∘τ−1}​, and

mλ(d)=dim⁡C{F:Vλ→C{0,…,d−1}m complex-linear:Fρλ(σ)=PσF ∀σ∈Sm}.m_\lambda(d)= \dim_{\mathbb C}\{F:V_\lambda\to\mathbb C^{\{0,\ldots,d-1\}^{m}} \text{ complex-linear}:F\rho_\lambda(\sigma)=P_\sigma F\ \forall\sigma\in S_m\}.mλ​(d)=dimC​{F:Vλ​→C{0,…,d−1}m complex-linear:Fρλ​(σ)=Pσ​F ∀σ∈Sm​}.

For an extension map e:Sm→Sk+2e:S_m\to S_{k+2}e:Sm​→Sk+2​, put

Πλe=fλm!∑σ∈Smχλ(σ−1)Pe(σ),Bijα=fαk!∑σ∈Skℓα(σ−1)jiPσ↑↑,\Pi_\lambda^e=\frac{f_\lambda}{m!}\sum_{\sigma\in S_m} \chi_\lambda(\sigma^{-1})P_{e(\sigma)}, \qquad B^\alpha_{ij}=\frac{f_\alpha}{k!}\sum_{\sigma\in S_k} \ell_\alpha(\sigma^{-1})_{ji}P_{\sigma^{\uparrow\uparrow}},Πλe​=m!fλ​​σ∈Sm​∑​χλ​(σ−1)Pe(σ)​,Bijα​=k!fα​​σ∈Sk​∑​ℓα​(σ−1)ji​Pσ↑↑​,

where ↑\uparrow↑ fixes a newly added last position. The matrix TkT_kTk​ has entry 111 at (x,y)(x,y)(x,y) exactly when xk=xk+1x_k=x_{k+1}xk​=xk+1​, yk=yk+1y_k=y_{k+1}yk​=yk+1​, and xb=ybx_b=y_bxb​=yb​ for every b≠k,k+1b\ne k,k+1b=k,k+1, and entry 000 otherwise. The package RRR supplies identity-preserving multiplicative lower and upper matrix maps, with M∗M=IM^*M=IM∗M=I, traces χ\chiχ, positive dimensions, and coordinate bijections making the upper maps on extended lower permutations block diagonal with the corresponding lower maps; its upper matrices for all swaps (a k)(a\ k)(a k) have real entries. No cell-inclusion relation between α\alphaα and either μ\muμ or ν\nuν is required. All natural-number values are allowed; division by zero is defined as zero, so a zero denominator makes the scalar coefficient zero.

QAlgorithms.Papers.Independent.Extend50.P28.contentDiagonal

For every natural number kkk, including 000, every α∈Shape(k)\alpha\in\mathrm{Shape}(k)α∈Shape(k), and every natural number ddd, including 000, this defines a complex diagonal matrix CCC indexed by pairs (ν,j)(\nu,j)(ν,j), where ν∈Shape(k+1)\nu\in\mathrm{Shape}(k+1)ν∈Shape(k+1), α.cells⊆ν.cells\alpha.\mathrm{cells}\subseteq\nu.\mathrm{cells}α.cells⊆ν.cells, and 0≤j<Dν0\le j<D_\nu0≤j<Dν​, with entries

C(μ,i),(ν,j)={d+∑(r,s)∈ν.cells∖α.cells(s−r),(μ,i)=(ν,j),0,(μ,i)≠(ν,j).C_{(\mu,i),(\nu,j)} = \begin{cases} \displaystyle d+\sum_{(r,s)\in\nu.\mathrm{cells}\setminus\alpha.\mathrm{cells}}(s-r), &(\mu,i)=(\nu,j),\\ 0,&(\mu,i)\ne(\nu,j). \end{cases}C(μ,i),(ν,j)​=⎩⎨⎧​d+(r,s)∈ν.cells∖α.cells∑​(s−r),0,​(μ,i)=(ν,j),(μ,i)=(ν,j).​

The diagonal value is first computed in R\mathbb RR, with real subtraction of coordinates, and then included in C\mathbb CC. Here DνD_\nuDν​ is the complex dimension of the range in CSk+1\mathbb C^{S_{k+1}}CSk+1​ of eh↦∑a∈Aν,b∈Bνsgn⁡(b)ehabe_h\mapsto\sum_{a\in A_\nu,b\in B_\nu}\operatorname{sgn}(b)e_{hab}eh​↦∑a∈Aν​,b∈Bν​​sgn(b)ehab​, where Aν,BνA_\nu,B_\nuAν​,Bν​ preserve rows and columns of the chosen cell numbering. Zero-dimensional shapes contribute no indices; if there are no indices, this is the matrix on an empty index set. The supplied code does not define the family Shape\mathrm{Shape}Shape, so the displayed set difference is retained literally.

QAlgorithms.Papers.Independent.Extend50.P28.contentEigenvalue

For every natural number ddd, including 000, and every two Young diagrams α,ν\alpha,\nuα,ν, this defines the real number

cd(α,ν)=d+∑(r,s)∈ν.cells∖α.cells(s−r),c_d(\alpha,\nu) = d+\sum_{(r,s)\in\nu.\mathrm{cells}\setminus\alpha.\mathrm{cells}}(s-r),cd​(α,ν)=d+(r,s)∈ν.cells∖α.cells∑​(s−r),

where row and column coordinates are natural numbers starting at 000, and the subtraction s−rs-rs−r is performed in R\mathbb RR, so it may be negative. No inclusion, size, or one-cell-difference condition is imposed on the diagrams. If ν.cells∖α.cells\nu.\mathrm{cells}\setminus\alpha.\mathrm{cells}ν.cells∖α.cells is empty, the value is ddd.

QAlgorithms.Papers.Independent.Extend50.P28.cosetRep

For every natural number kkk and every integer aaa with 0≤a≤k0\le a\le k0≤a≤k, this defines the permutation tat_ata​ of {0,…,k}\{0,\ldots,k\}{0,…,k} that swaps aaa with kkk and fixes every other element. When a=ka=ka=k, the result is the identity; in particular, for k=0k=0k=0, the only permitted value of aaa gives the identity.

QAlgorithms.Papers.Independent.Extend50.P28.cycleCount

For every natural number mmm and every permutation σ\sigmaσ of {0,…,m−1}\{0,\ldots,m-1\}{0,…,m−1}, this defines the natural number

(m−∣{i:σ(i)≠i}∣)+∣cycleType⁡(σ)∣,\bigl(m-|\{i:\sigma(i)\ne i\}|\bigr)+|\operatorname{cycleType}(\sigma)|,(m−∣{i:σ(i)=i}∣)+∣cycleType(σ)∣,

where the subtraction is natural-number subtraction, truncated at 000, and ∣cycleType⁡(σ)∣|\operatorname{cycleType}(\sigma)|∣cycleType(σ)∣ is the number of entries, counted with multiplicity, in the multiset of lengths of the nontrivial cycles of σ\sigmaσ. Since the support is a subset of these mmm points, the subtraction here equals the number of fixed points; the resulting value therefore counts all cycles, including fixed points. For m=0m=0m=0, the value is 000.

QAlgorithms.Papers.Independent.Extend50.P28.eigenMultiplicity

For every finite index type III equipped with decidable equality, every complex matrix AAA indexed by I×II\times II×I, and every real number λ\lambdaλ, this defines the natural number

dim⁡Cker⁡(A−λI)=dim⁡C{v:I→C:∀i∈I, ∑j∈IAi,jvj=λvi},\dim_{\mathbb C}\ker(A-\lambda I) = \dim_{\mathbb C}\left\{v:I\to\mathbb C: \forall i\in I,\ \sum_{j\in I}A_{i,j}v_j=\lambda v_i\right\},dimC​ker(A−λI)=dimC​⎩⎨⎧​v:I→C:∀i∈I, j∈I∑​Ai,j​vj​=λvi​⎭⎬⎫​,

where λ\lambdaλ is regarded as a complex scalar and the kernel is that of ordinary matrix multiplication on coordinate vectors. There is no assumption that AAA is Hermitian or that λ\lambdaλ is an eigenvalue. If the kernel is zero, including when III is empty, the value is 000.

QAlgorithms.Papers.Independent.Extend50.P28.embeddedProjector

For arbitrary natural numbers h,k,n,dh,k,n,dh,k,n,d, let α\alphaα be a Young diagram with kkk cells and zeroth column length at most hhh, and let e:Sk→Sne:S_k\to S_ne:Sk​→Sn​ be any function between the permutation groups; no homomorphism or injectivity condition is required. Number the cells of α\alphaα by {0,…,k−1}\{0,\ldots,k-1\}{0,…,k−1} using the fixed bijection in the definitions, and let Rα,CαR_\alpha,C_\alphaRα​,Cα​ be the permutations preserving respectively cell rows and columns. On CSk\mathbb C^{S_k}CSk​, define Yα(g,h′)=∑a∈Rα∑b∈Cαsgn⁡(b)1{g=h′ab}Y_\alpha(g,h')=\sum_{a\in R_\alpha}\sum_{b\in C_\alpha}\operatorname{sgn}(b)\mathbf1_{\{g=h'ab\}}Yα​(g,h′)=∑a∈Rα​​∑b∈Cα​​sgn(b)1{g=h′ab}​, let SαS_\alphaSα​ be its range, let PαP_\alphaPα​ be the orthogonal projection onto that range, and set sα=dim⁡CSαs_\alpha=\dim_{\mathbb C}S_\alphasα​=dimC​Sα​. For τ∈Sk\tau\in S_kτ∈Sk​, let Lτeg=eτgL_\tau e_g=e_{\tau g}Lτ​eg​=eτg​ and define χα(τ)=tr⁡(LτPα)\chi_\alpha(\tau)=\operatorname{tr}(L_\tau P_\alpha)χα​(τ)=tr(Lτ​Pα​). For π∈Sn\pi\in S_nπ∈Sn​, let TπT_\piTπ​ be the matrix indexed by length-nnn words over {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}, with entry Tπ(y,x)=1T_\pi(y,x)=1Tπ​(y,x)=1 if y=x∘π−1y=x\circ\pi^{-1}y=x∘π−1, and 000 otherwise. The declared matrix is

sαk!∑σ∈Skχα(σ−1) Te(σ).\frac{s_\alpha}{k!} \sum_{\sigma\in S_k}\chi_\alpha(\sigma^{-1})\,T_{e(\sigma)}.k!sα​​σ∈Sk​∑​χα​(σ−1)Te(σ)​.

All zero values of the natural parameters are allowed whenever α\alphaα exists: 0!=10!=10!=1, S0S_0S0​ contains the single empty permutation, and the word-index set is empty when d=0<nd=0<nd=0<n and a singleton when n=0n=0n=0.

QAlgorithms.Papers.Independent.Extend50.P28.explicitZR

For every natural number kkk, including 000, every coherent datum RRR at level kkk, and every α∈Shape(k)\alpha\in\mathrm{Shape}(k)α∈Shape(k), this defines a complex matrix ZZZ with rows (a,i)(a,i)(a,i), where 0≤a<k+10\le a<k+10≤a<k+1 and 0≤i<Dα0\le i<D_\alpha0≤i<Dα​, and columns (ν,j)(\nu,j)(ν,j), where ν∈Shape(k+1)\nu\in\mathrm{Shape}(k+1)ν∈Shape(k+1), α.cells⊆ν.cells\alpha.\mathrm{cells}\subseteq\nu.\mathrm{cells}α.cells⊆ν.cells, and 0≤j<Dν0\le j<D_\nu0≤j<Dν​, by

Z(a,i),(ν,j)=Dνk+1Dα Uν(ta)cν(α,i),j,ta=(a k),Z_{(a,i),(\nu,j)} = \frac{\sqrt{D_\nu}}{\sqrt{k+1}\sqrt{D_\alpha}}\, U^\nu(t_a)_{c_\nu(\alpha,i),j}, \qquad t_a=(a\ k),Z(a,i),(ν,j)​=k+1​Dα​​Dν​​​Uν(ta​)cν​(α,i),j​,ta​=(a k),

with the real prefactor regarded as a complex number; tkt_ktk​ is the identity. Here, for a shape λ\lambdaλ at level mmm, Dλ=dim⁡CVλD_\lambda=\dim_{\mathbb C}V_\lambdaDλ​=dimC​Vλ​, where Vλ⊆CSmV_\lambda\subseteq\mathbb C^{S_m}Vλ​⊆CSm​ is the range of eh↦∑r∈Aλ,s∈Bλsgn⁡(s)ehrse_h\mapsto\sum_{r\in A_\lambda,s\in B_\lambda}\operatorname{sgn}(s)e_{hrs}eh​↦∑r∈Aλ​,s∈Bλ​​sgn(s)ehrs​, and Aλ,BλA_\lambda,B_\lambdaAλ​,Bλ​ preserve the rows and columns of the fixed cell numbering. Precisely, the coherent datum supplies lower matrices Lβ(τ)L^\beta(\tau)Lβ(τ) and upper matrices Uν(σ)U^\nu(\sigma)Uν(σ), for all level-kkk and level-k+1k+1k+1 shapes and all corresponding permutations, preserving identity and multiplication, satisfying M∗M=IM^*M=IM∗M=I, and having traces tr⁡(ℓρPλ)\operatorname{tr}(\ell_\rho P_\lambda)tr(ℓρ​Pλ​), where ℓρeh=eρh\ell_\rho e_h=e_{\rho h}ℓρ​eh​=eρh​ and PλP_\lambdaPλ​ is orthogonal projection onto VλV_\lambdaVλ​. It requires all these dimensions to be positive and supplies bijections cνc_\nucν​ from pairs (β,i)(\beta,i)(β,i) with β.cells⊆ν.cells\beta.\mathrm{cells}\subseteq\nu.\mathrm{cells}β.cells⊆ν.cells and i<Dβi<D_\betai<Dβ​ to the upper coordinates. In these coordinates, Uν(τ^)U^\nu(\widehat\tau)Uν(τ), where τ^\widehat\tauτ extends τ∈Sk\tau\in S_kτ∈Sk​ by fixing kkk, has diagonal blocks Lβ(τ)L^\beta(\tau)Lβ(τ) and zero off-diagonal blocks; every Uν(ta)U^\nu(t_a)Uν(ta​) has real entries. Consequently the displayed denominator is nonzero. The shape family itself is not defined in the supplied code.

QAlgorithms.Papers.Independent.Extend50.P28.extendPerm

For every natural number kkk, including zero, and every permutation σ\sigmaσ of {0,…,k−1}\{0,\ldots,k-1\}{0,…,k−1}, this defines the permutation σ^\widehat{\sigma}σ of {0,…,k}\{0,\ldots,k\}{0,…,k} that acts as σ\sigmaσ on the first kkk elements and fixes the last element:

σ^(i)={σ(i),i<k,k,i=k.\widehat{\sigma}(i)= \begin{cases} \sigma(i),&i<k,\\ k,&i=k. \end{cases}σ(i)={σ(i),k,​i<k,i=k.​

It is obtained by transporting the disjoint union of σ\sigmaσ and the identity permutation of a singleton along the standard identification of that disjoint union with {0,…,k}\{0,\ldots,k\}{0,…,k}. For k=0k=0k=0, the result is the identity permutation of the singleton.

QAlgorithms.Papers.Independent.Extend50.P28.firstKindDimension

For every natural number kkk, every structure RRR described below, every α∈Sk\alpha\in\mathcal S_kα∈Sk​, where Sm=Shape(m)\mathcal S_m=\mathrm{Shape}(m)Sm​=Shape(m) is the shape type whose defining expression is not supplied, and every natural number ddd, this defines a natural number as follows. First, for a shape λ\lambdaλ with mmm cells, let GmG_mGm​ be the permutation group of {0,…,m−1}\{0,\ldots,m-1\}{0,…,m−1}, number the cells by the fixed bijection chosen in the definitions, and let Rλ,Cλ⊆Gm\mathcal R_\lambda,\mathcal C_\lambda\subseteq G_mRλ​,Cλ​⊆Gm​ consist respectively of permutations preserving the row and column of every numbered cell. Define a matrix on CGm\mathbb C^{G_m}CGm​ by

(Yλ)g,h=∑a∈Rλ∑b∈Cλsgn⁡(b) 1{g=hab},(Y_\lambda)_{g,h} =\sum_{a\in\mathcal R_\lambda}\sum_{b\in\mathcal C_\lambda} \operatorname{sgn}(b)\,\mathbf 1_{\{g=hab\}},(Yλ​)g,h​=a∈Rλ​∑​b∈Cλ​∑​sgn(b)1{g=hab}​,

let Vλ=range⁡(Yλ)V_\lambda=\operatorname{range}(Y_\lambda)Vλ​=range(Yλ​), let rλ=dim⁡CVλr_\lambda=\dim_{\mathbb C}V_\lambdarλ​=dimC​Vλ​, and let PλP_\lambdaPλ​ be orthogonal projection onto VλV_\lambdaVλ​. For the matrix (ℓσ)g,h=1{g=σh}(\ell_\sigma)_{g,h}=\mathbf 1_{\{g=\sigma h\}}(ℓσ​)g,h​=1{g=σh}​, put χλ(σ)=tr⁡(ℓσPλ)\chi_\lambda(\sigma)=\operatorname{tr}(\ell_\sigma P_\lambda)χλ​(σ)=tr(ℓσ​Pλ​). The structure RRR supplies matrices Lβ(σ)L_\beta(\sigma)Lβ​(σ) for every β∈Sk,σ∈Gk\beta\in\mathcal S_k,\sigma\in G_kβ∈Sk​,σ∈Gk​, matrices Uν(τ)U_\nu(\tau)Uν​(τ) for every ν∈Sk+1,τ∈Gk+1\nu\in\mathcal S_{k+1},\tau\in G_{k+1}ν∈Sk+1​,τ∈Gk+1​, and bijections

cν:⨆β∈Skcells⁡(β)⊆cells⁡(ν){0,…,rβ−1}  ⟶  {0,…,rν−1}.c_\nu: \bigsqcup_{\substack{\beta\in\mathcal S_k\\ \operatorname{cells}(\beta)\subseteq\operatorname{cells}(\nu)}} \{0,\ldots,r_\beta-1\} \;\longrightarrow\; \{0,\ldots,r_\nu-1\}.cν​:β∈Sk​cells(β)⊆cells(ν)​⨆​{0,…,rβ​−1}⟶{0,…,rν​−1}.

These matrices preserve identity and multiplication, satisfy Lβ(σ)∗Lβ(σ)=IL_\beta(\sigma)^*L_\beta(\sigma)=ILβ​(σ)∗Lβ​(σ)=I and Uν(τ)∗Uν(τ)=IU_\nu(\tau)^*U_\nu(\tau)=IUν​(τ)∗Uν​(τ)=I, have traces χβ(σ)\chi_\beta(\sigma)χβ​(σ) and χν(τ)\chi_\nu(\tau)χν​(τ), and all rβ,rνr_\beta,r_\nurβ​,rν​ are positive. If σ^\widehat\sigmaσ extends σ∈Gk\sigma\in G_kσ∈Gk​ by fixing the last letter, then

Uν(σ^)cν(β,i),cν(γ,j)={Lβ(σ)i,j,β=γ,0,β≠γ,U_\nu(\widehat\sigma)_{c_\nu(\beta,i),c_\nu(\gamma,j)} = \begin{cases} L_\beta(\sigma)_{i,j},&\beta=\gamma,\\ 0,&\beta\ne\gamma, \end{cases}Uν​(σ)cν​(β,i),cν​(γ,j)​={Lβ​(σ)i,j​,0,​β=γ,β=γ,​

with indices identified when the shapes are equal; additionally every entry of Uν(ta)U_\nu(t_a)Uν​(ta​) is real, where tat_ata​ swaps aaa with the last letter kkk. For τ∈Gk+1\tau\in G_{k+1}τ∈Gk+1​, define q(τ)q(\tau)q(τ) to be the permutation selected by the fixed choice operation from those σ∈Gk\sigma\in G_kσ∈Gk​ satisfying σ^=τ\widehat\sigma=\tauσ=τ, if any exist, and the identity otherwise. Form the matrix QQQ indexed by pairs (a,i)∈{0,…,k}×{0,…,rα−1}(a,i)\in\{0,\ldots,k\}\times\{0,\ldots,r_\alpha-1\}(a,i)∈{0,…,k}×{0,…,rα​−1}:

Q(a,i),(b,j)={d 1{i=j},a=b,Lα ⁣(q ⁣(ta(a b)tb))i,j,a≠b,Q_{(a,i),(b,j)} = \begin{cases} d\,\mathbf 1_{\{i=j\}},&a=b,\\ L_\alpha\!\left(q\!\left(t_a(a\,b)t_b\right)\right)_{i,j},&a\ne b, \end{cases}Q(a,i),(b,j)​={d1{i=j}​,Lα​(q(ta​(ab)tb​))i,j​,​a=b,a=b,​

where (a b)(a\,b)(ab) swaps a,ba,ba,b. The defined number is exactly

dim⁡Crange⁡(v↦Qv).\dim_{\mathbb C}\operatorname{range}(v\mapsto Qv).dimC​range(v↦Qv).

Both k=0k=0k=0 and d=0d=0d=0 are included; no positivity assumption on ddd is imposed.

QAlgorithms.Papers.Independent.Extend50.P28.gramQ

For every natural number kkk, including 000, every coherent datum RRR at level kkk, every α∈Shape(k)\alpha\in\mathrm{Shape}(k)α∈Shape(k), and every natural number ddd, including 000, this defines a complex matrix QQQ indexed on both sides by (a,i)(a,i)(a,i), with 0≤a<k+10\le a<k+10≤a<k+1 and 0≤i<Dα0\le i<D_\alpha0≤i<Dα​, as

Q(a,i),(b,j)={d δij,a=b,Lα ⁣(low⁡(ta(a b)tb))i,j,a≠b,ta=(a k).Q_{(a,i),(b,j)} = \begin{cases} d\,\delta_{ij},&a=b,\\ L^\alpha\!\left(\operatorname{low}(t_a(a\ b)t_b)\right)_{i,j},&a\ne b, \end{cases} \qquad t_a=(a\ k).Q(a,i),(b,j)​={dδij​,Lα(low(ta​(a b)tb​))i,j​,​a=b,a=b,​ta​=(a k).

Here low⁡(ρ)\operatorname{low}(\rho)low(ρ) is a chosen τ∈Sk\tau\in S_kτ∈Sk​ whose extension fixing kkk equals ρ\rhoρ, if such a τ\tauτ exists, and is the identity of SkS_kSk​ otherwise. For a level-mmm shape λ\lambdaλ, Dλ=dim⁡CVλD_\lambda=\dim_{\mathbb C}V_\lambdaDλ​=dimC​Vλ​, where Vλ⊆CSmV_\lambda\subseteq\mathbb C^{S_m}Vλ​⊆CSm​ is the range of eh↦∑r∈Aλ,s∈Bλsgn⁡(s)ehrse_h\mapsto\sum_{r\in A_\lambda,s\in B_\lambda}\operatorname{sgn}(s)e_{hrs}eh​↦∑r∈Aλ​,s∈Bλ​​sgn(s)ehrs​, with Aλ,BλA_\lambda,B_\lambdaAλ​,Bλ​ preserving rows and columns of the chosen cell numbering. The coherent datum supplies lower and upper representations Lβ,UνL^\beta,U^\nuLβ,Uν preserving identity and multiplication, satisfying M∗M=IM^*M=IM∗M=I, and having traces tr⁡(ℓρPλ)\operatorname{tr}(\ell_\rho P_\lambda)tr(ℓρ​Pλ​), where ℓρeh=eρh\ell_\rho e_h=e_{\rho h}ℓρ​eh​=eρh​ and PλP_\lambdaPλ​ projects orthogonally onto VλV_\lambdaVλ​. It requires positive dimensions and coordinate bijections from all lower blocks (β,i)(\beta,i)(β,i) with β.cells⊆ν.cells\beta.\mathrm{cells}\subseteq\nu.\mathrm{cells}β.cells⊆ν.cells to the upper coordinates, in which upper matrices of extensions are block diagonal with lower blocks; upper matrices of every tat_ata​ have real entries. The shape family is not defined in the supplied code.

QAlgorithms.Papers.Independent.Extend50.P28.inducedAction

For any natural number kkk, coherent data RRR as specified below, a shape α∈Shape(k)\alpha\in\mathrm{Shape}(k)α∈Shape(k), and a permutation σ∈Sk+1\sigma\in S_{k+1}σ∈Sk+1​, this defines a complex matrix indexed by pairs (a,i)(a,i)(a,i) with 0≤a≤k0\le a\le k0≤a≤k and 0≤i<Dα0\le i<D_\alpha0≤i<Dα​, whose entries are

ARα(σ)(a,i),(b,j)={Lα ⁣(ℓ(taσtb))i,j,a=σ(b),0,a≠σ(b).A^\alpha_R(\sigma)_{(a,i),(b,j)} = \begin{cases} L_\alpha\!\left(\ell(t_a\sigma t_b)\right)_{i,j},&a=\sigma(b),\\ 0,&a\ne\sigma(b). \end{cases}ARα​(σ)(a,i),(b,j)​={Lα​(ℓ(ta​σtb​))i,j​,0,​a=σ(b),a=σ(b).​

Here tat_ata​ swaps aaa with kkk, becoming the identity when a=ka=ka=k. For a permutation ρ∈Sk+1\rho\in S_{k+1}ρ∈Sk+1​, ℓ(ρ)\ell(\rho)ℓ(ρ) is a classically chosen permutation of the first kkk elements whose extension fixing kkk equals ρ\rhoρ, if such a permutation exists, and is the identity of SkS_kSk​ otherwise. The types Shape(m)\mathrm{Shape}(m)Shape(m) are not defined in the supplied code. For each level-mmm shape λ\lambdaλ, form the matrix (Yλ)g,t=∑r∈Rλ,c∈Cλsgn⁡(c)1{g=trc}(Y_\lambda)_{g,t}=\sum_{r\in R_\lambda,c\in C_\lambda}\operatorname{sgn}(c)\mathbf1_{\{g=trc\}}(Yλ​)g,t​=∑r∈Rλ​,c∈Cλ​​sgn(c)1{g=trc}​ on CSm\mathbb C^{S_m}CSm​, where Rλ,CλR_\lambda,C_\lambdaRλ​,Cλ​ preserve rows and columns under the chosen cell numbering; write Vλ=im⁡YλV_\lambda=\operatorname{im}Y_\lambdaVλ​=imYλ​ and Dλ=dim⁡CVλD_\lambda=\dim_{\mathbb C}V_\lambdaDλ​=dimC​Vλ​. With PλP_\lambdaPλ​ its orthogonal projection and (Tπ)g,t=1{g=πt}(T_\pi)_{g,t}=\mathbf1_{\{g=\pi t\}}(Tπ​)g,t​=1{g=πt}​, define χλ(π)=tr⁡(TπPλ)\chi_\lambda(\pi)=\operatorname{tr}(T_\pi P_\lambda)χλ​(π)=tr(Tπ​Pλ​). The coherent data RRR contain lower matrix families LλL_\lambdaLλ​ on SkS_kSk​ and upper families UνU_\nuUν​ on Sk+1S_{k+1}Sk+1​, all of the corresponding strictly positive dimensions, preserving identity and multiplication, satisfying M∗M=IM^*M=IM∗M=I, and having traces given by these χ\chiχ. They also contain bijections cνc_\nucν​ from all pairs (λ,r)(\lambda,r)(λ,r) with cells⁡(λ)⊆cells⁡(ν)\operatorname{cells}(\lambda)\subseteq\operatorname{cells}(\nu)cells(λ)⊆cells(ν) and 0≤r<Dλ0\le r<D_\lambda0≤r<Dλ​ to the coordinates of UνU_\nuUν​, such that Uν(τ^)U_\nu(\widehat{\tau})Uν​(τ) has blocks Lλ(τ)L_\lambda(\tau)Lλ​(τ) and zero entries between different shape blocks for every τ∈Sk\tau\in S_kτ∈Sk​, where τ^\widehat{\tau}τ fixes kkk; every entry of Uν(ta)U_\nu(t_a)Uν​(ta​) is real. The matrix definition permits k=0k=0k=0, with permutations of the first zero elements interpreted as the unique permutation of the empty set.

QAlgorithms.Papers.Independent.Extend50.P28.inverseRoot

For every real number xxx, inverseRoot⁡(x)=1/x\operatorname{inverseRoot}(x)=1/\sqrt{x}inverseRoot(x)=1/x​, using the real square root and totalized inversion. Thus it equals the usual reciprocal square root when x>0x>0x>0, and equals 000 when x≤0x\le 0x≤0.

QAlgorithms.Papers.Independent.Extend50.P28.irrepDim

For natural numbers h,kh,kh,k, including zero, and a Young diagram α\alphaα with exactly kkk cells and at most hhh rows, this defines a natural number DαD_\alphaDα​ as follows. Choose the cell numbering used in the supplied definitions, identifying the cells of α\alphaα with {0,…,k−1}\{0,\ldots,k-1\}{0,…,k−1}. Let SkS_kSk​ be the permutation group of this set, and let Rα,Cα⊆SkR_\alpha,C_\alpha\subseteq S_kRα​,Cα​⊆Sk​ consist respectively of permutations preserving each numbered cell’s row and each numbered cell’s column. Form the complex matrix indexed by g,t∈Skg,t\in S_kg,t∈Sk​,

(Yα)g,t=∑a∈Rα∑b∈Cα{sgn⁡(b),g=tab,0,g≠tab.(Y_\alpha)_{g,t} =\sum_{a\in R_\alpha}\sum_{b\in C_\alpha} \begin{cases} \operatorname{sgn}(b),&g=tab,\\ 0,&g\ne tab. \end{cases}(Yα​)g,t​=a∈Rα​∑​b∈Cα​∑​{sgn(b),0,​g=tab,g=tab.​

Then Dα=dim⁡Cim⁡(Yα)D_\alpha=\dim_{\mathbb C}\operatorname{im}(Y_\alpha)Dα​=dimC​im(Yα​), with the image taken in the Euclidean space CSk\mathbb C^{S_k}CSk​. For k=0k=0k=0, the diagram is empty, S0S_0S0​ has one element, and this dimension is 111; when h=0h=0h=0, a diagram satisfying the parameter conditions can only have k=0k=0k=0.

QAlgorithms.Papers.Independent.Extend50.P28.lastPartialTranspose

For any natural numbers d,Nd,Nd,N and any complex matrix XXX indexed by words x,y:{0,…,N}→{0,…,d−1}x,y:\{0,\ldots,N\}\to\{0,\ldots,d-1\}x,y:{0,…,N}→{0,…,d−1}, this defines a matrix TTT on the same indices by

Tx,y=X x[N←y(N)], y[N←x(N)],T_{x,y}=X_{\,x[N\leftarrow y(N)],\,y[N\leftarrow x(N)]},Tx,y​=Xx[N←y(N)],y[N←x(N)]​,

where x[N←b]x[N\leftarrow b]x[N←b] means replacing only the last coordinate of xxx by bbb. Thus the last coordinates of the row and column indices are exchanged before looking up the entry of XXX, with no complex conjugation. The definition allows N=0N=0N=0, in which case it is ordinary matrix transpose, and d=0d=0d=0, in which case there are no indexing words and the matrix has an empty index set.

QAlgorithms.Papers.Independent.Extend50.P28.lowerPerm

For every natural number kkk and every permutation σ\sigmaσ of {0,…,k}\{0,\ldots,k\}{0,…,k}, this defines a permutation of {0,…,k−1}\{0,\ldots,k-1\}{0,…,k−1} by the following rule. If there exists a permutation τ\tauτ of that smaller set whose extension acts as τ\tauτ on the first kkk elements and fixes kkk, and that extension equals σ\sigmaσ, return a classically chosen such τ\tauτ; if no such τ\tauτ exists, return the identity permutation of the smaller set. Equivalently, when σ\sigmaσ fixes kkk, the result is its restriction to the first kkk elements; otherwise the result is the identity. For k=0k=0k=0, the result is the unique permutation of the empty set.

QAlgorithms.Papers.Independent.Extend50.P28.naturalTrace

For natural numbers d,Nd,Nd,N and an index a∈{0,…,N−1}a\in\{0,\ldots,N-1\}a∈{0,…,N−1}, this defines a complex number. Let H=C{0,…,d−1}{0,…,N}H=\mathbb C^{\{0,\ldots,d-1\}^{\{0,\ldots,N\}}}H=C{0,…,d−1}{0,…,N}, with coordinates indexed by words xxx of length N+1N+1N+1. For each b<Nb<Nb<N, let τb\tau_bτb​ swap positions b,Nb,Nb,N, and define the matrix SbS_bSb​ by

(Sb)x,y=1{x N←yN=y N←xN∘τb−1},(S_b)_{x,y} = \mathbf 1_{\left\{ x^{\,N\leftarrow y_N} = y^{\,N\leftarrow x_N}\circ\tau_b^{-1} \right\}},(Sb​)x,y​=1{xN←yN​=yN←xN​∘τb−1​}​,

where x N←yNx^{\,N\leftarrow y_N}xN←yN​ means replacing the last coordinate of xxx by the last coordinate of yyy. Thus SbS_bSb​ is the last-coordinate partial transpose of the permutation matrix whose (x,y)(x,y)(x,y)-entry is 1{x=y∘τb−1}\mathbf 1_{\{x=y\circ\tau_b^{-1}\}}1{x=y∘τb−1​}​. If d>0d>0d>0, put A=∑b=0N−1SbA=\sum_{b=0}^{N-1}S_bA=∑b=0N−1​Sb​, and obtain LLL by applying the continuous functional calculus to AAA with the real scalar function t↦(t)−1t\mapsto(\sqrt t)^{-1}t↦(t​)−1. The defined value is

tr⁡(LSaLSa)∈C.\operatorname{tr}(L S_a L S_a)\in\mathbb C.tr(LSa​LSa​)∈C.

The real square root is zero for nonpositive arguments, and the inverse of zero is zero. If d=0d=0d=0, the defined value is instead zero. When N=0N=0N=0, there is no admissible index aaa.

QAlgorithms.Papers.Independent.Extend50.P28.normalizedPBTOperator

For every pair of natural numbers d,Nd,Nd,N, this defines the complex matrix BBB on words x,y:{0,…,N}→{0,…,d−1}x,y:\{0,\ldots,N\}\to\{0,\ldots,d-1\}x,y:{0,…,N}→{0,…,d−1} by

Bx,y=∑a=0N−1(dN)−11{x(a)=x(N), y(a)=y(N), ∀r∉{a,N}, x(r)=y(r)},B_{x,y}=\sum_{a=0}^{N-1}(d^N)^{-1} \mathbf1_{\{x(a)=x(N),\ y(a)=y(N),\ \forall r\notin\{a,N\},\ x(r)=y(r)\}},Bx,y​=a=0∑N−1​(dN)−11{x(a)=x(N), y(a)=y(N), ∀r∈/{a,N}, x(r)=y(r)}​,

with the scalar inverse taken in C\mathbb CC, where 0−1=00^{-1}=00−1=0. Each summand is the normalized last-coordinate partial transpose of the permutation matrix swapping coordinates aaa and NNN. For N=0N=0N=0, this is the zero matrix because the sum is empty, with d0=1d^0=1d0=1 even when d=0d=0d=0; for d=0d=0d=0, the word index set is empty.

QAlgorithms.Papers.Independent.Extend50.P28.normalizedSignal

For natural numbers d,Nd,Nd,N and a∈{0,…,N−1}a\in\{0,\ldots,N-1\}a∈{0,…,N−1}, this defines a complex matrix SaS_aSa​ on words x,y:{0,…,N}→{0,…,d−1}x,y:\{0,\ldots,N\}\to\{0,\ldots,d-1\}x,y:{0,…,N}→{0,…,d−1} by

(Sa)x,y=(dN)−11{x(a)=x(N), y(a)=y(N), ∀r∉{a,N}, x(r)=y(r)},(S_a)_{x,y}=(d^N)^{-1} \mathbf1_{\{x(a)=x(N),\ y(a)=y(N),\ \forall r\notin\{a,N\},\ x(r)=y(r)\}},(Sa​)x,y​=(dN)−11{x(a)=x(N), y(a)=y(N), ∀r∈/{a,N}, x(r)=y(r)}​,

where the inverse is taken in C\mathbb CC. Thus it scales the last-coordinate partial transpose of the coordinate-swap permutation matrix by (dN)−1(d^N)^{-1}(dN)−1. The index aaa can exist only when N>0N>0N>0. No positivity assumption on ddd is imposed: for d=0d=0d=0, the scalar inverse is 0−1=00^{-1}=00−1=0, and the word index set is empty.

QAlgorithms.Papers.Independent.Extend50.P28.oneBoxBranch

For every natural number kkk, a parameter α\alphaα of type Shape(k)\mathrm{Shape}(k)Shape(k), and a parameter ν\nuν of type Shape(k+1)\mathrm{Shape}(k+1)Shape(k+1), this defines the proposition that every cell of the underlying Young diagram of α\alphaα is a cell of the underlying Young diagram of ν\nuν:

cells⁡(α)⊆cells⁡(ν).\operatorname{cells}(\alpha)\subseteq\operatorname{cells}(\nu).cells(α)⊆cells(ν).

The definition of the type Shape(m)\mathrm{Shape}(m)Shape(m) is not supplied, so its additional restrictions on these diagrams cannot be expanded here. The proposition itself is precisely this inclusion, and k=0k=0k=0 is allowed.

QAlgorithms.Papers.Independent.Extend50.P28.pbtFidelity

For every pair of natural numbers d,Nd,Nd,N, this defines a real number F(d,N)F(d,N)F(d,N). If d=0d=0d=0, its value is 000. If d>0d>0d>0, let the matrices SaS_aSa​, indexed by words x,y:{0,…,N}→{0,…,d−1}x,y:\{0,\ldots,N\}\to\{0,\ldots,d-1\}x,y:{0,…,N}→{0,…,d−1}, have entries

(Sa)x,y=d−N1{x(a)=x(N), y(a)=y(N), ∀r∉{a,N}, x(r)=y(r)},0≤a<N.(S_a)_{x,y}=d^{-N} \mathbf1_{\{x(a)=x(N),\ y(a)=y(N),\ \forall r\notin\{a,N\},\ x(r)=y(r)\}}, \qquad 0\le a<N.(Sa​)x,y​=d−N1{x(a)=x(N), y(a)=y(N), ∀r∈/{a,N}, x(r)=y(r)}​,0≤a<N.

Put B=∑a=0N−1SaB=\sum_{a=0}^{N-1}S_aB=∑a=0N−1​Sa​, and let LLL be the real continuous functional calculus of BBB applied to the function t↦(t)−1t\mapsto(\sqrt t)^{-1}t↦(t​)−1, using the total real square root and inverse, so that this function is 000 for t≤0t\le0t≤0. The defined value is

F(d,N)=1d2∑a=0N−1Re⁡tr⁡(SaLSaL).F(d,N)=\frac{1}{d^2}\sum_{a=0}^{N-1} \operatorname{Re}\operatorname{tr}(S_aLS_aL).F(d,N)=d21​a=0∑N−1​Retr(Sa​LSa​L).

For N=0N=0N=0, the sum is empty and the value is 000.

QAlgorithms.Papers.Independent.Extend50.P28.pbtOperator

For every pair of natural numbers d,Nd,Nd,N, this defines the complex matrix PPP on words x,y:{0,…,N}→{0,…,d−1}x,y:\{0,\ldots,N\}\to\{0,\ldots,d-1\}x,y:{0,…,N}→{0,…,d−1} by

Px,y=∑a=0N−11{x(a)=x(N), y(a)=y(N), ∀r∉{a,N}, x(r)=y(r)}.P_{x,y}=\sum_{a=0}^{N-1} \mathbf1_{\{x(a)=x(N),\ y(a)=y(N),\ \forall r\notin\{a,N\},\ x(r)=y(r)\}}.Px,y​=a=0∑N−1​1{x(a)=x(N), y(a)=y(N), ∀r∈/{a,N}, x(r)=y(r)}​.

Each summand is the entry obtained from the matrix permuting tensor coordinates aaa and NNN by exchanging the last coordinates of its row and column indices. For N=0N=0N=0, the sum is empty and gives the zero matrix; for d=0d=0d=0, the matrix has an empty index set.

QAlgorithms.Papers.Independent.Extend50.P28.prirBlock

For any natural number kkk, coherent data RRR as specified below, shapes ν∈Shape(k+1)\nu\in\mathrm{Shape}(k+1)ν∈Shape(k+1) and α,β∈Shape(k)\alpha,\beta\in\mathrm{Shape}(k)α,β∈Shape(k), supplied inclusions of the cells of each of α,β\alpha,\betaα,β into those of ν\nuν, a permutation σ∈Sk+1\sigma\in S_{k+1}σ∈Sk+1​, and indices 0≤i<Dα0\le i<D_\alpha0≤i<Dα​, 0≤j<Dβ0\le j<D_\beta0≤j<Dβ​, this defines the complex number

BRν;α,β(σ)i,j=Uν(σ)cν(α,i), cν(β,j).B^{\nu;\alpha,\beta}_R(\sigma)_{i,j} =U_\nu(\sigma)_{c_\nu(\alpha,i),\,c_\nu(\beta,j)}.BRν;α,β​(σ)i,j​=Uν​(σ)cν​(α,i),cν​(β,j)​.

Here the shape types are not defined in the supplied code. To specify the dimensions and the coherent-data assumption explicitly, for a level-mmm shape λ\lambdaλ, let Rλ,Cλ⊆SmR_\lambda,C_\lambda\subseteq S_mRλ​,Cλ​⊆Sm​ preserve rows and columns under the chosen cell numbering, let (Yλ)g,t=∑a∈Rλ,b∈Cλsgn⁡(b)1{g=tab}(Y_\lambda)_{g,t}=\sum_{a\in R_\lambda,b\in C_\lambda}\operatorname{sgn}(b)\mathbf1_{\{g=tab\}}(Yλ​)g,t​=∑a∈Rλ​,b∈Cλ​​sgn(b)1{g=tab}​, and set Vλ=im⁡Yλ⊆CSmV_\lambda=\operatorname{im}Y_\lambda\subseteq\mathbb C^{S_m}Vλ​=imYλ​⊆CSm​ and Dλ=dim⁡CVλD_\lambda=\dim_{\mathbb C}V_\lambdaDλ​=dimC​Vλ​. If PλP_\lambdaPλ​ is its orthogonal projection and (Tπ)g,t=1{g=πt}(T_\pi)_{g,t}=\mathbf1_{\{g=\pi t\}}(Tπ​)g,t​=1{g=πt}​, put χλ(π)=tr⁡(TπPλ)\chi_\lambda(\pi)=\operatorname{tr}(T_\pi P_\lambda)χλ​(π)=tr(Tπ​Pλ​). The data RRR contain families Lλ:Sk→CDλ×DλL_\lambda:S_k\to\mathbb C^{D_\lambda\times D_\lambda}Lλ​:Sk​→CDλ​×Dλ​ at level kkk and Uη:Sk+1→CDη×DηU_\eta:S_{k+1}\to\mathbb C^{D_\eta\times D_\eta}Uη​:Sk+1​→CDη​×Dη​ at level k+1k+1k+1, each preserving identity and multiplication, each satisfying M∗M=IM^*M=IM∗M=I, and each having trace χ\chiχ for its shape; all these dimensions are strictly positive. They also contain bijections cηc_\etacη​ from all pairs (λ,r)(\lambda,r)(λ,r) with cells⁡(λ)⊆cells⁡(η)\operatorname{cells}(\lambda)\subseteq\operatorname{cells}(\eta)cells(λ)⊆cells(η) and 0≤r<Dλ0\le r<D_\lambda0≤r<Dλ​ onto the coordinate indices of UηU_\etaUη​. For every τ∈Sk\tau\in S_kτ∈Sk​, the entry of Uη(τ^)U_\eta(\widehat{\tau})Uη​(τ) between the coordinates of (λ,r)(\lambda,r)(λ,r) and (μ,s)(\mu,s)(μ,s) is zero for λ≠μ\lambda\ne\muλ=μ and is Lλ(τ)r,sL_\lambda(\tau)_{r,s}Lλ​(τ)r,s​ for λ=μ\lambda=\muλ=μ, identifying indices through that equality; τ^\widehat{\tau}τ fixes kkk. Every entry of Uη((a k))U_\eta((a\ k))Uη​((a k)), for 0≤a≤k0\le a\le k0≤a≤k, is real. The definition above extracts the indicated single entry and permits k=0k=0k=0.

QAlgorithms.Papers.Independent.Extend50.P28.prirDirectSumAction

For every natural number kkk, including 000, every coherent datum RRR at level kkk, every α∈Shape(k)\alpha\in\mathrm{Shape}(k)α∈Shape(k), and every σ∈Sk+1\sigma\in S_{k+1}σ∈Sk+1​, this defines a complex matrix on indices (ν,i)(\nu,i)(ν,i), where ν∈Shape(k+1)\nu\in\mathrm{Shape}(k+1)ν∈Shape(k+1), α.cells⊆ν.cells\alpha.\mathrm{cells}\subseteq\nu.\mathrm{cells}α.cells⊆ν.cells, and 0≤i<Dν0\le i<D_\nu0≤i<Dν​, by

Uα(σ)(μ,i),(ν,j)={Uμ(σ)i,j,μ=ν,0,μ≠ν.\mathcal U_\alpha(\sigma)_{(\mu,i),(\nu,j)} = \begin{cases} U^\mu(\sigma)_{i,j},&\mu=\nu,\\ 0,&\mu\ne\nu. \end{cases}Uα​(σ)(μ,i),(ν,j)​={Uμ(σ)i,j​,0,​μ=ν,μ=ν.​

In the equality case, jjj is identified with an index for the equal shape μ\muμ. For every level-mmm shape λ\lambdaλ, DλD_\lambdaDλ​ is the complex dimension of the range Vλ⊆CSmV_\lambda\subseteq\mathbb C^{S_m}Vλ​⊆CSm​ of eh↦∑r∈Aλ,s∈Bλsgn⁡(s)ehrse_h\mapsto\sum_{r\in A_\lambda,s\in B_\lambda}\operatorname{sgn}(s)e_{hrs}eh​↦∑r∈Aλ​,s∈Bλ​​sgn(s)ehrs​, where Aλ,BλA_\lambda,B_\lambdaAλ​,Bλ​ preserve rows and columns of the chosen cell numbering. The coherent datum consists of lower representations LβL^\betaLβ of SkS_kSk​, upper representations UνU^\nuUν of Sk+1S_{k+1}Sk+1​, and coordinate bijections

cν:⨆β.cells⊆ν.cells{0,…,Dβ−1}⟶{0,…,Dν−1}.c_\nu: \bigsqcup_{\beta.\mathrm{cells}\subseteq\nu.\mathrm{cells}} \{0,\ldots,D_\beta-1\} \longrightarrow \{0,\ldots,D_\nu-1\}.cν​:β.cells⊆ν.cells⨆​{0,…,Dβ​−1}⟶{0,…,Dν​−1}.

All dimensions are required to be positive; the representations preserve identity and multiplication, satisfy M∗M=IM^*M=IM∗M=I, and have character tr⁡(ℓρPλ)\operatorname{tr}(\ell_\rho P_\lambda)tr(ℓρ​Pλ​), where ℓρeh=eρh\ell_\rho e_h=e_{\rho h}ℓρ​eh​=eρh​ and PλP_\lambdaPλ​ projects orthogonally onto VλV_\lambdaVλ​. Extending τ∈Sk\tau\in S_kτ∈Sk​ to fix kkk, its upper matrix in coordinates cνc_\nucν​ is block diagonal with lower blocks Lβ(τ)L^\beta(\tau)Lβ(τ); upper matrices of swaps (a k)(a\ k)(a k) have real entries. The supplied code leaves the shape family undefined.

QAlgorithms.Papers.Independent.Extend50.P28.secondKindIntertwiners

For every N,d∈NN,d\in\mathbb NN,d∈N and shape ν∈Shape⁡(N)\nu\in\operatorname{Shape}(N)ν∈Shape(N), this defines the complex linear subspace of maps

F:Vν⟶C{0,…,d−1}N+1F:V_\nu\longrightarrow \mathbb C^{\{0,\ldots,d-1\}^{N+1}}F:Vν​⟶C{0,…,d−1}N+1

consisting exactly of the complex-linear maps satisfying both

F(ρν(σ)v)=Pσ↑(Fv)for every σ∈SN, v∈Vν,F\bigl(\rho_\nu(\sigma)v\bigr)=P_{\sigma^\uparrow}(Fv) \quad\text{for every }\sigma\in S_N,\ v\in V_\nu,F(ρν​(σ)v)=Pσ↑​(Fv)for every σ∈SN​, v∈Vν​,

and

Ta(Fv)=0for every 0≤a<N, v∈Vν.T_a(Fv)=0 \quad\text{for every }0\le a<N,\ v\in V_\nu.Ta​(Fv)=0for every 0≤a<N, v∈Vν​.

The precise definition of Shape⁡(N)\operatorname{Shape}(N)Shape(N) is not supplied. To construct VνV_\nuVν​, take the fixed chosen numbering of the diagram’s NNN cells, let Rν,Cν⊆SN\mathcal R_\nu,\mathcal C_\nu\subseteq S_NRν​,Cν​⊆SN​ be the permutations preserving respectively each cell’s row and column, and define

Yν(g,h)=∑b∈Rν∑c∈Cνsgn⁡(c)1{g=hbc},Vν=range⁡Yν⊆CSN.Y_\nu(g,h)= \sum_{b\in\mathcal R_\nu}\sum_{c\in\mathcal C_\nu} \operatorname{sgn}(c)\mathbf1_{\{g=hbc\}}, \qquad V_\nu=\operatorname{range}Y_\nu\subseteq\mathbb C^{S_N}.Yν​(g,h)=b∈Rν​∑​c∈Cν​∑​sgn(c)1{g=hbc}​,Vν​=rangeYν​⊆CSN​.

If Lσ(g,h)=1{g=σh}L_\sigma(g,h)=\mathbf1_{\{g=\sigma h\}}Lσ​(g,h)=1{g=σh}​ and QνQ_\nuQν​ is orthogonal projection onto VνV_\nuVν​, then ρν(σ)=QνLσ∣Vν\rho_\nu(\sigma)=Q_\nu L_\sigma|_{V_\nu}ρν​(σ)=Qν​Lσ​∣Vν​​. The permutation σ↑\sigma^\uparrowσ↑ acts as σ\sigmaσ on the first NNN positions and fixes position NNN, and Pτ(y,x)=1{y=x∘τ−1}P_\tau(y,x)=\mathbf1_{\{y=x\circ\tau^{-1}\}}Pτ​(y,x)=1{y=x∘τ−1}​. The matrix TaT_aTa​ has entry 111 at (x,y)(x,y)(x,y) exactly when xa=xNx_a=x_Nxa​=xN​, ya=yNy_a=y_Nya​=yN​, and xb=ybx_b=y_bxb​=yb​ for every b≠a,Nb\ne a,Nb=a,N, and entry 000 otherwise. When N=0N=0N=0, the condition involving aaa is vacuous. When d=0d=0d=0, there are no words of length N+1N+1N+1, so the target vector space and this space of maps are zero-dimensional.

QAlgorithms.Papers.Independent.Extend50.P28.secondKindMultiplicity

For every N,d∈NN,d\in\mathbb NN,d∈N and shape ν∈Shape⁡(N)\nu\in\operatorname{Shape}(N)ν∈Shape(N), this defines the natural number

dim⁡C{F:Vν→C{0,…,d−1}N+1 complex-linear:Fρν(σ)=Pσ↑F∀σ∈SN,TaF=0∀ 0≤a<N}.\dim_{\mathbb C} \left\{ F:V_\nu\to\mathbb C^{\{0,\ldots,d-1\}^{N+1}} \text{ complex-linear}: \begin{array}{l} F\rho_\nu(\sigma)=P_{\sigma^\uparrow}F \quad\forall\sigma\in S_N,\\ T_aF=0\quad\forall\,0\le a<N \end{array} \right\}.dimC​{F:Vν​→C{0,…,d−1}N+1 complex-linear:Fρν​(σ)=Pσ↑​F∀σ∈SN​,Ta​F=0∀0≤a<N​}.

The exact definition of Shape⁡(N)\operatorname{Shape}(N)Shape(N) is not supplied. For its underlying NNN-cell diagram, use the fixed chosen cell numbering and the sets Rν,Cν⊆SN\mathcal R_\nu,\mathcal C_\nu\subseteq S_NRν​,Cν​⊆SN​ preserving rows and columns to define

Yν(g,h)=∑b∈Rν∑c∈Cνsgn⁡(c)1{g=hbc},Vν=range⁡Yν.Y_\nu(g,h)= \sum_{b\in\mathcal R_\nu}\sum_{c\in\mathcal C_\nu} \operatorname{sgn}(c)\mathbf1_{\{g=hbc\}}, \qquad V_\nu=\operatorname{range}Y_\nu.Yν​(g,h)=b∈Rν​∑​c∈Cν​∑​sgn(c)1{g=hbc}​,Vν​=rangeYν​.

Let Lσ(g,h)=1{g=σh}L_\sigma(g,h)=\mathbf1_{\{g=\sigma h\}}Lσ​(g,h)=1{g=σh}​ and let QνQ_\nuQν​ be orthogonal projection onto VνV_\nuVν​; then ρν(σ)=QνLσ∣Vν\rho_\nu(\sigma)=Q_\nu L_\sigma|_{V_\nu}ρν​(σ)=Qν​Lσ​∣Vν​​. Extension σ↑\sigma^\uparrowσ↑ fixes the new last position, and the word-permutation matrix is Pτ(y,x)=1{y=x∘τ−1}P_\tau(y,x)=\mathbf1_{\{y=x\circ\tau^{-1}\}}Pτ​(y,x)=1{y=x∘τ−1}​. The matrix Ta(x,y)T_a(x,y)Ta​(x,y) is 111 precisely when xa=xNx_a=x_Nxa​=xN​, ya=yNy_a=y_Nya​=yN​, and the words agree at every position other than a,Na,Na,N, and is 000 otherwise. The equations defining the map space hold on every vector of VνV_\nuVν​. The definition includes N=0N=0N=0, when the annihilation requirement is vacuous, and d=0d=0d=0, when the target is zero-dimensional and the defined multiplicity is 000.

QAlgorithms.Papers.Independent.Extend50.P28.subgroupMatrixUnit

For any natural numbers k,dk,dk,d, coherent representation package RRR, shape α∈Shape⁡(k)\alpha\in\operatorname{Shape}(k)α∈Shape(k), and indices 0≤i,j<fα0\le i,j<f_\alpha0≤i,j<fα​, this defines a complex matrix on words of length k+2k+2k+2 over {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1} by

Bijα=fαk!∑σ∈Skℓα(σ−1)ji Pσ↑↑.B^\alpha_{ij} =\frac{f_\alpha}{k!}\sum_{\sigma\in S_k} \ell_\alpha(\sigma^{-1})_{ji}\,P_{\sigma^{\uparrow\uparrow}}.Bijα​=k!fα​​σ∈Sk​∑​ℓα​(σ−1)ji​Pσ↑↑​.

Here SmS_mSm​ is the permutation group of {0,…,m−1}\{0,\ldots,m-1\}{0,…,m−1}, σ↑\sigma^\uparrowσ↑ extends a permutation by fixing the new last position, and

Pτ(y,x)={1y=x∘τ−1,0otherwise.P_\tau(y,x)= \begin{cases}1&y=x\circ\tau^{-1},\\0&\text{otherwise}.\end{cases}Pτ​(y,x)={10​y=x∘τ−1,otherwise.​

The exact definition of the type Shape⁡(m)\operatorname{Shape}(m)Shape(m) is not supplied; its elements here carry Young diagrams with mmm cells. To define fλf_\lambdafλ​, number the cells of λ\lambdaλ by the fixed chosen bijection with {0,…,m−1}\{0,\ldots,m-1\}{0,…,m−1}, let Rλ,Cλ\mathcal R_\lambda,\mathcal C_\lambdaRλ​,Cλ​ be the permutations preserving respectively each cell’s row and column, and set

Yλ(g,h)=∑a∈Rλ∑b∈Cλsgn⁡(b) 1{g=hab},Vλ=range⁡(Yλ),fλ=dim⁡CVλ.Y_\lambda(g,h)= \sum_{a\in\mathcal R_\lambda}\sum_{b\in\mathcal C_\lambda} \operatorname{sgn}(b)\,\mathbf1_{\{g=hab\}}, \qquad V_\lambda=\operatorname{range}(Y_\lambda), \qquad f_\lambda=\dim_{\mathbb C}V_\lambda.Yλ​(g,h)=a∈Rλ​∑​b∈Cλ​∑​sgn(b)1{g=hab}​,Vλ​=range(Yλ​),fλ​=dimC​Vλ​.

Writing Lτ(g,h)=1{g=τh}L_\tau(g,h)=\mathbf1_{\{g=\tau h\}}Lτ​(g,h)=1{g=τh}​ and QλQ_\lambdaQλ​ for orthogonal projection onto VλV_\lambdaVλ​, put χλ(τ)=tr⁡(LτQλ)\chi_\lambda(\tau)=\operatorname{tr}(L_\tau Q_\lambda)χλ​(τ)=tr(Lτ​Qλ​). The package RRR supplies identity-preserving, multiplicative matrix maps ℓλ:Sk→Mfλ(C)\ell_\lambda:S_k\to M_{f_\lambda}(\mathbb C)ℓλ​:Sk​→Mfλ​​(C) and uη:Sk+1→Mfη(C)u_\eta:S_{k+1}\to M_{f_\eta}(\mathbb C)uη​:Sk+1​→Mfη​​(C), with M∗M=IM^*M=IM∗M=I, traces χλ,χη\chi_\lambda,\chi_\etaχλ​,χη​, and positive dimensions for every lower and upper shape. It also supplies bijections

cη:∐λ: λ.cells⊆η.cells{0,…,fλ−1}⟶{0,…,fη−1}c_\eta:\coprod_{\lambda:\,\lambda.\mathrm{cells}\subseteq\eta.\mathrm{cells}} \{0,\ldots,f_\lambda-1\}\longrightarrow\{0,\ldots,f_\eta-1\}cη​:λ:λ.cells⊆η.cells∐​{0,…,fλ​−1}⟶{0,…,fη​−1}

under which uη(σ↑)u_\eta(\sigma^\uparrow)uη​(σ↑) has diagonal blocks ℓλ(σ)\ell_\lambda(\sigma)ℓλ​(σ) and zero blocks between distinct lower shapes, and every entry of uη((a k))u_\eta((a\ k))uη​((a k)) is real for 0≤a≤k0\le a\le k0≤a≤k. The definition includes k=0k=0k=0 and d=0d=0d=0; an empty word-index set gives the unique empty matrix.

QAlgorithms.Papers.Independent.Extend50.P28.tensorIntertwiners

For arbitrary natural numbers h,n,dh,n,dh,n,d and a Young diagram α\alphaα with exactly nnn cells and first-column length at most hhh, this defines the complex vector subspace described as follows. Number the cells of α\alphaα by {0,…,n−1}\{0,\ldots,n-1\}{0,…,n−1} using the specified chosen bijection, let AαA_\alphaAα​ be the permutations preserving the row of every numbered cell and BαB_\alphaBα​ those preserving its column, and let Sα⊆CSnS_\alpha\subseteq\mathbb C^{\mathfrak S_n}Sα​⊆CSn​ be the range of

Yα(g,t)=∑a∈Aα∑b∈Bαsgn⁡(b)1{g=tab}.Y_\alpha(g,t)= \sum_{a\in A_\alpha}\sum_{b\in B_\alpha} \operatorname{sgn}(b)\mathbf1_{\{g=tab\}}.Yα​(g,t)=a∈Aα​∑​b∈Bα​∑​sgn(b)1{g=tab}​.

Let PαP_\alphaPα​ denote orthogonal projection onto SαS_\alphaSα​, let Lσ(g,t)=1{g=σt}L_\sigma(g,t)=\mathbf1_{\{g=\sigma t\}}Lσ​(g,t)=1{g=σt}​, and define ρα(σ)v=Pα(Lσv)\rho_\alpha(\sigma)v=P_\alpha(L_\sigma v)ρα​(σ)v=Pα​(Lσ​v) for v∈Sαv\in S_\alphav∈Sα​. On the Euclidean space indexed by words x:{0,…,n−1}→{0,…,d−1}x:\{0,\ldots,n-1\}\to\{0,\ldots,d-1\}x:{0,…,n−1}→{0,…,d−1}, let Tσ(y,x)=1{y=x∘σ−1}T_\sigma(y,x)=\mathbf1_{\{y=x\circ\sigma^{-1}\}}Tσ​(y,x)=1{y=x∘σ−1}​. The defined subspace consists exactly of the complex-linear maps f:Sα→C{0,…,d−1}{0,…,n−1}f:S_\alpha\to\mathbb C^{\{0,\ldots,d-1\}^{\{0,\ldots,n-1\}}}f:Sα​→C{0,…,d−1}{0,…,n−1} such that, for every σ∈Sn\sigma\in\mathfrak S_nσ∈Sn​ and every v∈Sαv\in S_\alphav∈Sα​, f(ρα(σ)v)=Tσ(f(v))f(\rho_\alpha(\sigma)v)=T_\sigma(f(v))f(ρα​(σ)v)=Tσ​(f(v)). No relation between ddd and hhh is required. Zero values of the natural parameters are allowed whenever such an α\alphaα exists; the word set is a singleton when n=0n=0n=0, and is empty when d=0<nd=0<nd=0<n.

QAlgorithms.Papers.Independent.Extend50.P28.tensorMultiplicity

For arbitrary natural numbers h,n,dh,n,dh,n,d and a Young diagram α\alphaα with exactly nnn cells and first-column length at most hhh, this defines a natural number as follows. Using the chosen numbering of α\alphaα’s cells by {0,…,n−1}\{0,\ldots,n-1\}{0,…,n−1}, let AαA_\alphaAα​ and BαB_\alphaBα​ be the permutations preserving each numbered cell’s row and column, respectively, and let Sα⊆CSnS_\alpha\subseteq\mathbb C^{\mathfrak S_n}Sα​⊆CSn​ be the range of the matrix Yα(g,t)=∑a∈Aα∑b∈Bαsgn⁡(b)1{g=tab}Y_\alpha(g,t)=\sum_{a\in A_\alpha}\sum_{b\in B_\alpha}\operatorname{sgn}(b)\mathbf1_{\{g=tab\}}Yα​(g,t)=∑a∈Aα​​∑b∈Bα​​sgn(b)1{g=tab}​. Write PαP_\alphaPα​ for orthogonal projection onto SαS_\alphaSα​, define Lσ(g,t)=1{g=σt}L_\sigma(g,t)=\mathbf1_{\{g=\sigma t\}}Lσ​(g,t)=1{g=σt}​, and set ρα(σ)v=Pα(Lσv)\rho_\alpha(\sigma)v=P_\alpha(L_\sigma v)ρα​(σ)v=Pα​(Lσ​v). Let TσT_\sigmaTσ​ act on the Euclidean space indexed by words x:{0,…,n−1}→{0,…,d−1}x:\{0,\ldots,n-1\}\to\{0,\ldots,d-1\}x:{0,…,n−1}→{0,…,d−1}, with entries Tσ(y,x)=1{y=x∘σ−1}T_\sigma(y,x)=\mathbf1_{\{y=x\circ\sigma^{-1}\}}Tσ​(y,x)=1{y=x∘σ−1}​. The defined number is the complex dimension of the vector space of all complex-linear maps fff from SαS_\alphaSα​ to this word-indexed Euclidean space satisfying f(ρα(σ)v)=Tσ(f(v))f(\rho_\alpha(\sigma)v)=T_\sigma(f(v))f(ρα​(σ)v)=Tσ​(f(v)) for every σ∈Sn\sigma\in\mathfrak S_nσ∈Sn​ and v∈Sαv\in S_\alphav∈Sα​. No relation between ddd and hhh is assumed, and zero parameters are included whenever the required diagram exists; in particular, if d=0<nd=0<nd=0<n, the target space is zero and the defined dimension is 000.

QAlgorithms.Papers.Independent.Extend50.P28.transposedSwap

For natural numbers d,Nd,Nd,N and an index a∈{0,…,N−1}a\in\{0,\ldots,N-1\}a∈{0,…,N−1}, this defines a complex matrix TaT_aTa​ indexed by words x,y:{0,…,N}→{0,…,d−1}x,y:\{0,\ldots,N\}\to\{0,\ldots,d-1\}x,y:{0,…,N}→{0,…,d−1}. It starts with the permutation matrix whose (u,v)(u,v)(u,v) entry is 111 exactly when u=v∘(a N)−1u=v\circ(a\,N)^{-1}u=v∘(aN)−1, and is 000 otherwise, and exchanges the last coordinates of its row and column indices before evaluating that entry. Equivalently,

(Ta)x,y={1,x(a)=x(N), y(a)=y(N), and x(r)=y(r) for every r∉{a,N},0,otherwise.(T_a)_{x,y}= \begin{cases} 1,&x(a)=x(N),\ y(a)=y(N),\ \text{and }x(r)=y(r)\text{ for every }r\notin\{a,N\},\\ 0,&\text{otherwise}. \end{cases}(Ta​)x,y​={1,0,​x(a)=x(N), y(a)=y(N), and x(r)=y(r) for every r∈/{a,N},otherwise.​

There is no eligible aaa when N=0N=0N=0; when d=0d=0d=0, the matrix’s index set is empty.

QAlgorithms.Papers.Independent.Extend50.P28.unitSynthesis

For any finite type III, any type JJJ, any family of complex matrices Eij∈CJ×JE_{ij}\in\mathbb C^{J\times J}Eij​∈CJ×J indexed by i,j∈Ii,j\in Ii,j∈I, and any complex matrix A∈CI×IA\in\mathbb C^{I\times I}A∈CI×I, this defines a complex matrix on JJJ by

SE(A)=∑i∈I∑j∈IAijEij.\mathcal S_E(A)=\sum_{i\in I}\sum_{j\in I}A_{ij}E_{ij}.SE​(A)=i∈I∑​j∈I∑​Aij​Eij​.

The products AijEijA_{ij}E_{ij}Aij​Eij​ are scalar multiples of matrices, so equivalently

SE(A)uv=∑i∈I∑j∈IAij(Eij)uv(u,v∈J).\mathcal S_E(A)_{uv} =\sum_{i\in I}\sum_{j\in I}A_{ij}(E_{ij})_{uv} \qquad(u,v\in J).SE​(A)uv​=i∈I∑​j∈I∑​Aij​(Eij​)uv​(u,v∈J).

No finiteness assumption on JJJ is made. The finite type III may be empty, in which case the result is the zero matrix.

QAlgorithms.Papers.Independent.Extend50.P28.weightedBlock

For any natural number kkk, coherent data RRR as specified below, a shape α∈Shape(k)\alpha\in\mathrm{Shape}(k)α∈Shape(k), a permutation σ∈Sk+1\sigma\in S_{k+1}σ∈Sk+1​, and indices 0≤i,j<Dα0\le i,j<D_\alpha0≤i,j<Dα​, this defines the complex number

WRα(σ)i,j=∑ν∈Shape(k+1)cells⁡(α)⊆cells⁡(ν)Dν Uν(σ)cν(α,i), cν(α,j).W^\alpha_R(\sigma)_{i,j} = \sum_{\substack{\nu\in\mathrm{Shape}(k+1)\\ \operatorname{cells}(\alpha)\subseteq\operatorname{cells}(\nu)}} D_\nu\, U_\nu(\sigma)_{c_\nu(\alpha,i),\,c_\nu(\alpha,j)}.WRα​(σ)i,j​=ν∈Shape(k+1)cells(α)⊆cells(ν)​∑​Dν​Uν​(σ)cν​(α,i),cν​(α,j)​.

The shape types are not defined in the supplied code. For a level-mmm shape λ\lambdaλ, its dimension here is Dλ=dim⁡CVλD_\lambda=\dim_{\mathbb C}V_\lambdaDλ​=dimC​Vλ​, where Vλ⊆CSmV_\lambda\subseteq\mathbb C^{S_m}Vλ​⊆CSm​ is the image of the matrix (Yλ)g,t=∑a∈Rλ,b∈Cλsgn⁡(b)1{g=tab}(Y_\lambda)_{g,t}=\sum_{a\in R_\lambda,b\in C_\lambda}\operatorname{sgn}(b)\mathbf1_{\{g=tab\}}(Yλ​)g,t​=∑a∈Rλ​,b∈Cλ​​sgn(b)1{g=tab}​; Rλ,CλR_\lambda,C_\lambdaRλ​,Cλ​ preserve the rows and columns of its cells under the chosen cell numbering. Let PλP_\lambdaPλ​ be the orthogonal projection onto this image, let (Tπ)g,t=1{g=πt}(T_\pi)_{g,t}=\mathbf1_{\{g=\pi t\}}(Tπ​)g,t​=1{g=πt}​, and set χλ(π)=tr⁡(TπPλ)\chi_\lambda(\pi)=\operatorname{tr}(T_\pi P_\lambda)χλ​(π)=tr(Tπ​Pλ​). The coherent data RRR consist of lower families LλL_\lambdaLλ​ on SkS_kSk​ and upper families UνU_\nuUν​ on Sk+1S_{k+1}Sk+1​, of these respective matrix sizes, preserving identity and multiplication, satisfying M∗M=IM^*M=IM∗M=I, and having traces χλ,χν\chi_\lambda,\chi_\nuχλ​,χν​, with every dimension strictly positive. For each ν\nuν, cνc_\nucν​ is a bijection from the pairs (λ,r)(\lambda,r)(λ,r) with cells contained in ν\nuν and 0≤r<Dλ0\le r<D_\lambda0≤r<Dλ​ to its DνD_\nuDν​ coordinates; in these coordinates, extending τ∈Sk\tau\in S_kτ∈Sk​ by fixing kkk makes Uν(τ^)U_\nu(\widehat{\tau})Uν​(τ) have diagonal blocks Lλ(τ)L_\lambda(\tau)Lλ​(τ) and zero entries between distinct shape blocks. All entries of Uν((a k))U_\nu((a\ k))Uν​((a k)) are real for 0≤a≤k0\le a\le k0≤a≤k. In the displayed sum the dimension DνD_\nuDν​ is regarded as a complex scalar; an empty sum is zero, and k=0k=0k=0 is included.

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

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 29, 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