Definitions for Simplified formalism of the algebra of partially transposed permutation operators with applications
DefinitionQAlgorithms_Papers_Independent_Extend50_P28The 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.
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
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 , including zero, this defines a structure of the following data and conditions. Write ; the supplied code does not define these shape types. For each shape at level , use its chosen cell numbering to form the row-preserving and column-preserving permutation sets , set , and let and . Let be the orthogonal projection onto , expressed in the standard basis, let have entries , and define . The structure contains matrices for every , and for every . For all admissible shapes and permutations they satisfy
It also contains, for each , a bijection
For every two such lower shapes , every , , and every , extending by fixing gives
where in the equality case the column index is identified using that equality of shapes. Finally, for every , every , and every pair of matrix indices, the corresponding entry of has imaginary part zero; when , 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 and family , this defines a proposition asserting all of the following properties of
the map is injective; for every it satisfies ; for every and it satisfies ; for every it satisfies ; and its range is exactly
Both finite types may be empty. If is empty, these conditions hold for its empty family; if is empty and is nonempty, injectivity cannot hold.
QAlgorithms.Papers.Independent.Extend50.P28.LowerShapes
For every natural number and every of type , this defines the type of of type equipped with the condition
Thus an element records both such a shape and its cell inclusion; the definition does not assert that any such element exists. The types are not defined in the supplied code, so their further restrictions cannot be expanded. This includes .
QAlgorithms.Papers.Independent.Extend50.P28.PRIRBlockIndex
For every natural number and every of type , this defines the type of pairs , where is of type , its cells are contained in those of , and is an integer with . Here is the complex dimension of the image of the matrix
acting on , where permutes the numbered cells of , and preserve their rows and columns, respectively, using the chosen cell numbering from the supplied definitions. The underlying shape types 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; is permitted.
QAlgorithms.Papers.Independent.Extend50.P28.PhysicalLower
For any natural numbers , is the type of elements of equipped with the condition that the zeroth column of their underlying Young diagram has length at most . The supplied code does not define , so its additional restrictions cannot be specified from this declaration. No positivity condition is imposed on or ; when , the stated condition requires zeroth column length zero.
QAlgorithms.Papers.Independent.Extend50.P28.PhysicalUpper
For any natural numbers , is the type of elements of equipped with the condition that the zeroth column of their underlying Young diagram has length at most . The supplied code does not define , so its additional restrictions cannot be specified from this declaration. The values and are allowed; at , the stated condition requires zeroth column length zero.
QAlgorithms.Papers.Independent.Extend50.P28.Retained
For any natural numbers and any , is the type of elements whose underlying Young diagram has zeroth column length at most and whose cell set contains the cell set of the underlying diagram of . The definition of is not supplied. There is no separate assumption that has zeroth column length at most , and no positivity assumption on or .
QAlgorithms.Papers.Independent.Extend50.P28.SecondShapes
For natural numbers , this defines the type of shapes belonging to whose underlying Young diagram has strictly fewer than cells in its first column, equivalently strictly fewer than nonempty rows:
The defining expression for is not included in the supplied code. The condition is strict; in particular, this type is empty when . The parameter is allowed.
QAlgorithms.Papers.Independent.Extend50.P28.UpperShapes
For every natural number and every of type , this defines the type of of type equipped with the condition
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 , including any further restrictions on its underlying Young diagrams, is absent from the supplied code. The case is included.
QAlgorithms.Papers.Independent.Extend50.P28.ZColumn
For every natural number , including , and every in the given shape type , this defines the column index set
Thus an index is a pair , together with the requirement that every cell of is a cell of , and with . Here is the complex dimension of the following subspace of : choose the cell numbering used by the definitions, let and be the permutations preserving, respectively, the row and column of every numbered cell, and take the range of the linear map
A shape with 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 .
QAlgorithms.Papers.Independent.Extend50.P28.aggregatedP
For any , coherent package , shape , and shapes with first-column lengths at most , this defines the matrix
on words of length over . The type is not defined in the supplied code. For its underlying -cell diagrams, use the fixed cell numbering and row-preserving and column-preserving permutation sets to form
If and is orthogonal projection onto , define and . With , the number is the complex dimension of the space of complex-linear maps satisfying for every , and
Here fixes the new last position. The entry is exactly when , , and the words agree elsewhere, and is otherwise. The package gives identity-preserving multiplicative lower and upper matrix maps with , traces , 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 . No branching condition on 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 , including , every coherent datum at level , every , and every column index with and , this defines a vector in the complex Euclidean space indexed by pairs , , , whose coordinates are
No normalization assertion is part of this definition. Here , with , for a level- shape, the range of ; the permutations in preserve the rows and columns of the chosen cell numbering. The coherent datum supplies lower representations , upper representations , and bijections 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, , and traces , where and is orthogonal projection onto . Under , upper matrices of permutations extended from by fixing are block diagonal with the corresponding lower matrices; all upper matrices of swaps have real entries. The square-root denominator is therefore positive, and is the identity. The supplied code does not define the shape family.
QAlgorithms.Papers.Independent.Extend50.P28.constructedE
For any , coherent package , shape , shapes having first-column lengths at most , and , this defines
as a complex matrix on words of length over . The definition of is not supplied. For each underlying -cell diagram , use its fixed cell numbering, let preserve rows and columns, and define
Let , let be orthogonal projection onto , and set
On words, , and
For an extension map , put
where fixes a newly added last position. The matrix has entry at exactly when , , and for every , and entry otherwise. The package supplies identity-preserving multiplicative lower and upper matrix maps, with , traces , 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 have real entries. No cell-inclusion relation between and either or 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 , including , every , and every natural number , including , this defines a complex diagonal matrix indexed by pairs , where , , and , with entries
The diagonal value is first computed in , with real subtraction of coordinates, and then included in . Here is the complex dimension of the range in of , where 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 , so the displayed set difference is retained literally.
QAlgorithms.Papers.Independent.Extend50.P28.contentEigenvalue
For every natural number , including , and every two Young diagrams , this defines the real number
where row and column coordinates are natural numbers starting at , and the subtraction is performed in , so it may be negative. No inclusion, size, or one-cell-difference condition is imposed on the diagrams. If is empty, the value is .
QAlgorithms.Papers.Independent.Extend50.P28.cosetRep
For every natural number and every integer with , this defines the permutation of that swaps with and fixes every other element. When , the result is the identity; in particular, for , the only permitted value of gives the identity.
QAlgorithms.Papers.Independent.Extend50.P28.cycleCount
For every natural number and every permutation of , this defines the natural number
where the subtraction is natural-number subtraction, truncated at , and is the number of entries, counted with multiplicity, in the multiset of lengths of the nontrivial cycles of . Since the support is a subset of these points, the subtraction here equals the number of fixed points; the resulting value therefore counts all cycles, including fixed points. For , the value is .
QAlgorithms.Papers.Independent.Extend50.P28.eigenMultiplicity
For every finite index type equipped with decidable equality, every complex matrix indexed by , and every real number , this defines the natural number
where is regarded as a complex scalar and the kernel is that of ordinary matrix multiplication on coordinate vectors. There is no assumption that is Hermitian or that is an eigenvalue. If the kernel is zero, including when is empty, the value is .
QAlgorithms.Papers.Independent.Extend50.P28.embeddedProjector
For arbitrary natural numbers , let be a Young diagram with cells and zeroth column length at most , and let be any function between the permutation groups; no homomorphism or injectivity condition is required. Number the cells of by using the fixed bijection in the definitions, and let be the permutations preserving respectively cell rows and columns. On , define , let be its range, let be the orthogonal projection onto that range, and set . For , let and define . For , let be the matrix indexed by length- words over , with entry if , and otherwise. The declared matrix is
All zero values of the natural parameters are allowed whenever exists: , contains the single empty permutation, and the word-index set is empty when and a singleton when .
QAlgorithms.Papers.Independent.Extend50.P28.explicitZR
For every natural number , including , every coherent datum at level , and every , this defines a complex matrix with rows , where and , and columns , where , , and , by
with the real prefactor regarded as a complex number; is the identity. Here, for a shape at level , , where is the range of , and preserve the rows and columns of the fixed cell numbering. Precisely, the coherent datum supplies lower matrices and upper matrices , for all level- and level- shapes and all corresponding permutations, preserving identity and multiplication, satisfying , and having traces , where and is orthogonal projection onto . It requires all these dimensions to be positive and supplies bijections from pairs with and to the upper coordinates. In these coordinates, , where extends by fixing , has diagonal blocks and zero off-diagonal blocks; every 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 , including zero, and every permutation of , this defines the permutation of that acts as on the first elements and fixes the last element:
It is obtained by transporting the disjoint union of and the identity permutation of a singleton along the standard identification of that disjoint union with . For , the result is the identity permutation of the singleton.
QAlgorithms.Papers.Independent.Extend50.P28.firstKindDimension
For every natural number , every structure described below, every , where is the shape type whose defining expression is not supplied, and every natural number , this defines a natural number as follows. First, for a shape with cells, let be the permutation group of , number the cells by the fixed bijection chosen in the definitions, and let consist respectively of permutations preserving the row and column of every numbered cell. Define a matrix on by
let , let , and let be orthogonal projection onto . For the matrix , put . The structure supplies matrices for every , matrices for every , and bijections
These matrices preserve identity and multiplication, satisfy and , have traces and , and all are positive. If extends by fixing the last letter, then
with indices identified when the shapes are equal; additionally every entry of is real, where swaps with the last letter . For , define to be the permutation selected by the fixed choice operation from those satisfying , if any exist, and the identity otherwise. Form the matrix indexed by pairs :
where swaps . The defined number is exactly
Both and are included; no positivity assumption on is imposed.
QAlgorithms.Papers.Independent.Extend50.P28.gramQ
For every natural number , including , every coherent datum at level , every , and every natural number , including , this defines a complex matrix indexed on both sides by , with and , as
Here is a chosen whose extension fixing equals , if such a exists, and is the identity of otherwise. For a level- shape , , where is the range of , with preserving rows and columns of the chosen cell numbering. The coherent datum supplies lower and upper representations preserving identity and multiplication, satisfying , and having traces , where and projects orthogonally onto . It requires positive dimensions and coordinate bijections from all lower blocks with to the upper coordinates, in which upper matrices of extensions are block diagonal with lower blocks; upper matrices of every have real entries. The shape family is not defined in the supplied code.
QAlgorithms.Papers.Independent.Extend50.P28.inducedAction
For any natural number , coherent data as specified below, a shape , and a permutation , this defines a complex matrix indexed by pairs with and , whose entries are
Here swaps with , becoming the identity when . For a permutation , is a classically chosen permutation of the first elements whose extension fixing equals , if such a permutation exists, and is the identity of otherwise. The types are not defined in the supplied code. For each level- shape , form the matrix on , where preserve rows and columns under the chosen cell numbering; write and . With its orthogonal projection and , define . The coherent data contain lower matrix families on and upper families on , all of the corresponding strictly positive dimensions, preserving identity and multiplication, satisfying , and having traces given by these . They also contain bijections from all pairs with and to the coordinates of , such that has blocks and zero entries between different shape blocks for every , where fixes ; every entry of is real. The matrix definition permits , 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 , , using the real square root and totalized inversion. Thus it equals the usual reciprocal square root when , and equals when .
QAlgorithms.Papers.Independent.Extend50.P28.irrepDim
For natural numbers , including zero, and a Young diagram with exactly cells and at most rows, this defines a natural number as follows. Choose the cell numbering used in the supplied definitions, identifying the cells of with . Let be the permutation group of this set, and let consist respectively of permutations preserving each numbered cell’s row and each numbered cell’s column. Form the complex matrix indexed by ,
Then , with the image taken in the Euclidean space . For , the diagram is empty, has one element, and this dimension is ; when , a diagram satisfying the parameter conditions can only have .
QAlgorithms.Papers.Independent.Extend50.P28.lastPartialTranspose
For any natural numbers and any complex matrix indexed by words , this defines a matrix on the same indices by
where means replacing only the last coordinate of by . Thus the last coordinates of the row and column indices are exchanged before looking up the entry of , with no complex conjugation. The definition allows , in which case it is ordinary matrix transpose, and , 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 and every permutation of , this defines a permutation of by the following rule. If there exists a permutation of that smaller set whose extension acts as on the first elements and fixes , and that extension equals , return a classically chosen such ; if no such exists, return the identity permutation of the smaller set. Equivalently, when fixes , the result is its restriction to the first elements; otherwise the result is the identity. For , the result is the unique permutation of the empty set.
QAlgorithms.Papers.Independent.Extend50.P28.naturalTrace
For natural numbers and an index , this defines a complex number. Let , with coordinates indexed by words of length . For each , let swap positions , and define the matrix by
where means replacing the last coordinate of by the last coordinate of . Thus is the last-coordinate partial transpose of the permutation matrix whose -entry is . If , put , and obtain by applying the continuous functional calculus to with the real scalar function . The defined value is
The real square root is zero for nonpositive arguments, and the inverse of zero is zero. If , the defined value is instead zero. When , there is no admissible index .
QAlgorithms.Papers.Independent.Extend50.P28.normalizedPBTOperator
For every pair of natural numbers , this defines the complex matrix on words by
with the scalar inverse taken in , where . Each summand is the normalized last-coordinate partial transpose of the permutation matrix swapping coordinates and . For , this is the zero matrix because the sum is empty, with even when ; for , the word index set is empty.
QAlgorithms.Papers.Independent.Extend50.P28.normalizedSignal
For natural numbers and , this defines a complex matrix on words by
where the inverse is taken in . Thus it scales the last-coordinate partial transpose of the coordinate-swap permutation matrix by . The index can exist only when . No positivity assumption on is imposed: for , the scalar inverse is , and the word index set is empty.
QAlgorithms.Papers.Independent.Extend50.P28.oneBoxBranch
For every natural number , a parameter of type , and a parameter of type , this defines the proposition that every cell of the underlying Young diagram of is a cell of the underlying Young diagram of :
The definition of the type is not supplied, so its additional restrictions on these diagrams cannot be expanded here. The proposition itself is precisely this inclusion, and is allowed.
QAlgorithms.Papers.Independent.Extend50.P28.pbtFidelity
For every pair of natural numbers , this defines a real number . If , its value is . If , let the matrices , indexed by words , have entries
Put , and let be the real continuous functional calculus of applied to the function , using the total real square root and inverse, so that this function is for . The defined value is
For , the sum is empty and the value is .
QAlgorithms.Papers.Independent.Extend50.P28.pbtOperator
For every pair of natural numbers , this defines the complex matrix on words by
Each summand is the entry obtained from the matrix permuting tensor coordinates and by exchanging the last coordinates of its row and column indices. For , the sum is empty and gives the zero matrix; for , the matrix has an empty index set.
QAlgorithms.Papers.Independent.Extend50.P28.prirBlock
For any natural number , coherent data as specified below, shapes and , supplied inclusions of the cells of each of into those of , a permutation , and indices , , this defines the complex number
Here the shape types are not defined in the supplied code. To specify the dimensions and the coherent-data assumption explicitly, for a level- shape , let preserve rows and columns under the chosen cell numbering, let , and set and . If is its orthogonal projection and , put . The data contain families at level and at level , each preserving identity and multiplication, each satisfying , and each having trace for its shape; all these dimensions are strictly positive. They also contain bijections from all pairs with and onto the coordinate indices of . For every , the entry of between the coordinates of and is zero for and is for , identifying indices through that equality; fixes . Every entry of , for , is real. The definition above extracts the indicated single entry and permits .
QAlgorithms.Papers.Independent.Extend50.P28.prirDirectSumAction
For every natural number , including , every coherent datum at level , every , and every , this defines a complex matrix on indices , where , , and , by
In the equality case, is identified with an index for the equal shape . For every level- shape , is the complex dimension of the range of , where preserve rows and columns of the chosen cell numbering. The coherent datum consists of lower representations of , upper representations of , and coordinate bijections
All dimensions are required to be positive; the representations preserve identity and multiplication, satisfy , and have character , where and projects orthogonally onto . Extending to fix , its upper matrix in coordinates is block diagonal with lower blocks ; upper matrices of swaps have real entries. The supplied code leaves the shape family undefined.
QAlgorithms.Papers.Independent.Extend50.P28.secondKindIntertwiners
For every and shape , this defines the complex linear subspace of maps
consisting exactly of the complex-linear maps satisfying both
and
The precise definition of is not supplied. To construct , take the fixed chosen numbering of the diagram’s cells, let be the permutations preserving respectively each cell’s row and column, and define
If and is orthogonal projection onto , then . The permutation acts as on the first positions and fixes position , and . The matrix has entry at exactly when , , and for every , and entry otherwise. When , the condition involving is vacuous. When , there are no words of length , so the target vector space and this space of maps are zero-dimensional.
QAlgorithms.Papers.Independent.Extend50.P28.secondKindMultiplicity
For every and shape , this defines the natural number
The exact definition of is not supplied. For its underlying -cell diagram, use the fixed chosen cell numbering and the sets preserving rows and columns to define
Let and let be orthogonal projection onto ; then . Extension fixes the new last position, and the word-permutation matrix is . The matrix is precisely when , , and the words agree at every position other than , and is otherwise. The equations defining the map space hold on every vector of . The definition includes , when the annihilation requirement is vacuous, and , when the target is zero-dimensional and the defined multiplicity is .
QAlgorithms.Papers.Independent.Extend50.P28.subgroupMatrixUnit
For any natural numbers , coherent representation package , shape , and indices , this defines a complex matrix on words of length over by
Here is the permutation group of , extends a permutation by fixing the new last position, and
The exact definition of the type is not supplied; its elements here carry Young diagrams with cells. To define , number the cells of by the fixed chosen bijection with , let be the permutations preserving respectively each cell’s row and column, and set
Writing and for orthogonal projection onto , put . The package supplies identity-preserving, multiplicative matrix maps and , with , traces , and positive dimensions for every lower and upper shape. It also supplies bijections
under which has diagonal blocks and zero blocks between distinct lower shapes, and every entry of is real for . The definition includes and ; an empty word-index set gives the unique empty matrix.
QAlgorithms.Papers.Independent.Extend50.P28.tensorIntertwiners
For arbitrary natural numbers and a Young diagram with exactly cells and first-column length at most , this defines the complex vector subspace described as follows. Number the cells of by using the specified chosen bijection, let be the permutations preserving the row of every numbered cell and those preserving its column, and let be the range of
Let denote orthogonal projection onto , let , and define for . On the Euclidean space indexed by words , let . The defined subspace consists exactly of the complex-linear maps such that, for every and every , . No relation between and is required. Zero values of the natural parameters are allowed whenever such an exists; the word set is a singleton when , and is empty when .
QAlgorithms.Papers.Independent.Extend50.P28.tensorMultiplicity
For arbitrary natural numbers and a Young diagram with exactly cells and first-column length at most , this defines a natural number as follows. Using the chosen numbering of ’s cells by , let and be the permutations preserving each numbered cell’s row and column, respectively, and let be the range of the matrix . Write for orthogonal projection onto , define , and set . Let act on the Euclidean space indexed by words , with entries . The defined number is the complex dimension of the vector space of all complex-linear maps from to this word-indexed Euclidean space satisfying for every and . No relation between and is assumed, and zero parameters are included whenever the required diagram exists; in particular, if , the target space is zero and the defined dimension is .
QAlgorithms.Papers.Independent.Extend50.P28.transposedSwap
For natural numbers and an index , this defines a complex matrix indexed by words . It starts with the permutation matrix whose entry is exactly when , and is otherwise, and exchanges the last coordinates of its row and column indices before evaluating that entry. Equivalently,
There is no eligible when ; when , the matrix’s index set is empty.
QAlgorithms.Papers.Independent.Extend50.P28.unitSynthesis
For any finite type , any type , any family of complex matrices indexed by , and any complex matrix , this defines a complex matrix on by
The products are scalar multiples of matrices, so equivalently
No finiteness assumption on is made. The finite type may be empty, in which case the result is the zero matrix.
QAlgorithms.Papers.Independent.Extend50.P28.weightedBlock
For any natural number , coherent data as specified below, a shape , a permutation , and indices , this defines the complex number
The shape types are not defined in the supplied code. For a level- shape , its dimension here is , where is the image of the matrix ; preserve the rows and columns of its cells under the chosen cell numbering. Let be the orthogonal projection onto this image, let , and set . The coherent data consist of lower families on and upper families on , of these respective matrix sizes, preserving identity and multiplication, satisfying , and having traces , with every dimension strictly positive. For each , is a bijection from the pairs with cells contained in and to its coordinates; in these coordinates, extending by fixing makes have diagonal blocks and zero entries between distinct shape blocks. All entries of are real for . In the displayed sum the dimension is regarded as a complex scalar; an empty sum is zero, and is included.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.