Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Definitions for Port-based teleportation in arbitrary dimension

Definition
QAlgorithms_Papers_Independent_Extend50_P33

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

prove2quantum

The objects the formalized statements of Port-based teleportation in arbitrary dimension (arXiv:1612.09260) are stated in. Each was checked against the paper by a blind read-back and a moderator.

  • sdim: Specht dimension of the actual regular Young ideal; PDF pp.4,8.
  • mult: Natural tensor multiplicity, computed as the GL(d) Young image dimension; PDF pp.4,9,24 (Schur–Weyl multiplicity).
  • Extends: One-box branching, with height already enforced by both shape types; PDF p.4. This applies also to the untruncated appendix shape types.
  • tensorIdentityExtension: Tensor identity extension on the last q registers; PDF pp.7–8.
  • joinWord: Coordinate concatenation for physical tensor cuts; PDF pp.7,22.
  • traceFinalQudits: Partial trace over exactly the last q qudits; PDF pp.11,13,22.
  • transposeLast: Partial transpose on the final qudit, in the computational basis; PDF p.6.
  • unnormalizedPortBell: Unnormalized Bell operator B on port a and input r, identity elsewhere; PDF pp.3,6,14,22. It has B²=dB, rather than B²=B.
  • bellQ: Trace-one Bell projector Q=B/d on the selected pair; identities elsewhere. PDF pp.27–28, Eqs.(100),(106).
  • portSwap: Swap a with the final Alice port; the last (input) register is fixed. PDF pp.8,27. The identity coset is included.
  • effect: A bar-a operator is expressed in the ordered coordinates obtained by swapping a with the final Alice port; PDF pp.12,28, Eq.(108).
  • pbtSwapSum: η is the actual partially transposed swap sum, without d^(-N); PDF p.7, Eq.(3). Here N=k+2 and n=k+3.
  • etaAlpha: The physical α component constructed from Young projectors and Bell operators, PDF p.8 Eq.(7), before taking its support.
  • mBlock: Physical M_alpha, constructed as support of Eq.(7), PDF p.8.
  • fBlock: Physical F_mu(alpha)=M_alpha P_mu, PDF p.8.
  • pbtBlockEigenvalue: Spectral scalar computed by the trace quotient, PDF p.9 Eq.(12). Its multiplicity/character formulas are conclusions below.
  • classScalar: Central transposition-class scalar. Empty classes at degrees zero and one have scalar zero; PDF pp.9,18–20.
  • reciprocalSet: Positive physical successor eigenvalues whose reciprocals are minimized; PDF p.27 Eq.(101). Finite nonemptiness is part of the mathematical result.
  • minReciprocal: The finite minimum, used only with d≥2 and N≥2; PDF p.27 Eq.(101).
  • fixedTheta: Optimal fixed-resource auxiliary operators in bar-a coordinates; PDF p.12 Proposition7 and p.27 Eq.(101).
  • pbtSuccessProbability: Objective of the exact-success probabilistic PBT SDP, PDF p.11 Eq.(19).
  • FixedFeasible: Physical fixed-resource primal feasibility; PDF p.11 Eq.(20).
  • fixedValues: Fixed-resource feasible success values, without an empty/unbounded real supremum convention; PDF p.11.
  • fixedValue: The corrected achievable value N/d^N sum_alpha m_alpha d_alpha/max gamma; PDF pp.11,27, missing N in the printed Lemma4 corrected from Eq.(19),(102).
  • fixedRatioValue: Multiplicity-ratio minimum in Theorem3; PDF pp.4,11.
  • pairTrace: Pair trace in the bar-a coordinates; PDF p.11 Eq.(22), p.13 Eq.(28).
  • FixedDual: The fixed-resource dual has all N constraints and uses Q=B/d; PDF pp.11,28 Eqs.(22),(106).
  • MaxSelector: A maximizing successor selector (not a supplied SDP witness); PDF p.11 Eq.(23).
  • fixedOmega: Actual dual matrix for any maximizing selector, PDF p.28 Eq.(106).
  • squareSum: Sum of squared actual tensor multiplicities, including degree zero; PDF p.24 Eq.(84).
  • jointX: Explicit jointly optimal resource matrix X, PDF pp.12,28 Eq.(26),(109).
  • jointTheta: Explicit jointly optimal transformed auxiliary effects, PDF pp.12,28 Eqs.(27),(108). They are transported to physical effects below.
  • JointFeasible: Joint primal feasibility, including positivity and normalization of X; PDF p.12 Eq.(25).
  • jointValues: Jointly attainable SDP success values; PDF pp.12–13.
  • optimalProbability: Closed success expression with N ports, PDF pp.12–13,29 Eq.(112).
  • jointO: O=X^(1/2), using the nonnegative spectral square root; PDF p.12.
  • resourceVector: (O tensor I)|Phi_d>^tensor N, with normalized Bell pairs; PDF p.12 Theorem8. Its norm is a conclusion, not a premise.
  • jointPhysical: Physical success effects obtained from the transformed SDP effects by conjugation with O^(-1); PDF p.12 Eq.(25).
  • jointFailure: Failure effect completing the physical N+1 outcome POVM; PDF pp.2,12.
  • jointOmega: The actual joint dual witness d eta/(N+d²−1), PDF p.29 Eq.(117).
  • JointDual: Joint dual constraints: the third traces out the input n, correcting printed Tr_a in Eq.(28) by Eqs.(119)–(121), PDF pp.13,30.
  • pbtSignal: rho_a=B_a/d^N from PDF pp.3,6, distinct from SDP's Q_a.
  • srmRaw: Uncompleted square-root measurement, with inverse zero on the kernel; PDF pp.5,13,14.
  • srm: Completed deterministic POVM: Delta uses the uncompleted effects, resolving the self-reference in the source; PDF pp.5,13.
  • portOutcome: Physical subchannel for one outcome: measure E on Alice's N ports and input, discard Alice and every Bob port except a, and identify that port with Fin d. The resource amplitudes are O(x,z)/sqrt(d^N). This contraction is independent of the measurement instrument because Alice is discarded. PDF pp.2,4–5,12–14. No output correction or transpose is applied by Bob.
  • ProtocolPOVM: The N conclusive effects together with the residual failure effect form an N+1 outcome POVM; PDF pp.2,11–12.
  • ExactPBT: Perfect conclusive teleportation for every input operator, hence also for inputs entangled with a reference. Each outcome subchannel is its nonnegative probability times the identity; total success is p. PDF pp.2,4,11–12. This is not an SDP certificate.
  • fixedOperationalValues: Operational attainable probabilities for the fixed normalized Bell-pair resource O=I, ranging over every perfect-conclusive POVM, not only effects already supplied in the source's reduced SDP form. PDF pp.4,11.
  • jointOperationalValues: Operational attainable probabilities over all pure resource states and perfect-conclusive POVMs. Every pure resource has coefficients O(x,z)/sqrt(d^N); Tr(O†O)=d^N is precisely its normalization. Singular O is allowed. PDF p.12, Theorem8.
  • pbtDeterministicChannel: Actual deterministic channel: normalized Bell resource, Alice's completed square-root POVM and Bob's selected port, with all other systems discarded. PDF pp.5,13–14.
  • deterministicFidelity: Entanglement fidelity of the actual channel with a normalized Bell reference, rather than a definition by the proof's trace identity (30). PDF pp.5,13–14.
  • cycles: Full number of cycles, including every fixed point, PDF p.24.
  • extendPerm: Inclusion S_r into S_(r+1) fixing the final letter; PDF pp.17,24.
  • fourierSubgroup: Unscaled subgroup Fourier sum F_ij^mu (not F_mu(alpha)); PDF p.20 Eq.(64).
  • permutationSpan: The represented permutation algebra as its actual linear span; PDF pp.22,25. Linear dependence of permutation operators is allowed.
  • transposedSpan: The represented partially transposed permutation algebra, PDF p.22: its underlying vector space is the span of the actual transposed matrices.
  • RealizesSpechtIrrep: Realization of the irreducible labelled by mu in an arbitrary orthonormal coordinate space. The intertwiner identifies the label; no branching, projector rank or sum rule is assumed. PDF pp.17–18.
  • Preds: Every predecessor shape, without the physical height-d truncation; PDF pp.17–18, Eq.(42). At degree zero there is the empty diagram.
  • subgroupProjector: The subgroup isotypic projector in any realization R, independently computed by its character sum, PDF pp.17–18.
  • predecessorAction: The orthonormal Specht direct-sum action on all predecessors; PDF p.17 Eq.(42).
Definition code
import Mathlib
import Definitions.Def_QAlgorithms_Defs_SchurWeylDecomposition
import Definitions.Def_QAlgorithms_Defs_QuditChannelFidelities
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P58
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P21
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P07
import Definitions.Def_QAlgorithms_Papers_Independent_Gap20_P01

set_option backward.isDefEq.respectTransparency.types false

noncomputable section

open scoped Matrix ComplexOrder Matrix.Norms.L2Operator

namespace QAlgorithms.Papers.Independent.Extend50.P33

attribute [local instance] Classical.propDecidable Classical.decEq

-- Exact accepted type constructors; local notation only reorders Word's arguments.
local notation "Word" => (fun d r : ℕ =>
  QAlgorithms.Papers.Independent.Information100.P58.Word r d)

local notation "Op" => (fun d r : ℕ =>
  QAlgorithms.Papers.Independent.Information100.P21.Op
    (QAlgorithms.Papers.Independent.Information100.P58.Word r d))

open QAlgorithms.Papers.Independent.Information100.P07 (support)
open QAlgorithms.Papers.Independent.Gap20.P01 (spechtMatrix)

/-- Specht dimension of the actual regular Young ideal; PDF pp.4,8. -/
def sdim {d r : ℕ} (a : Schur.Partition d r) : ℕ :=
  Module.finrank ℂ (Schur.spechtSpace a)

/-- Natural tensor multiplicity, computed as the GL(d) Young image dimension;
PDF pp.4,9,24 (Schur–Weyl multiplicity). -/
def mult {d r : ℕ} (a : Schur.Partition d r) : ℕ :=
  Module.finrank ℂ (Schur.schurModule a)

/-- One-box branching, with height already enforced by both shape types;
PDF p.4. This applies also to the untruncated appendix shape types. -/
def Extends {d e r : ℕ} (a : Schur.Partition d r)
    (b : Schur.Partition e (r+1)) : Prop := a.val.cells ⊆ b.val.cells

/-- Tensor identity extension on the last q registers; PDF pp.7–8. -/
def tensorIdentityExtension {d p : ℕ} (q : ℕ) (A : Op d p) : Op d (p+q) :=
  fun x y => if ∀ i : Fin (p+q), p ≤ i.val → x i = y i then
    A (fun i => x ⟨i.val,by omega⟩) (fun i => y ⟨i.val,by omega⟩) else 0

/-- Coordinate concatenation for physical tensor cuts; PDF pp.7,22. -/
def joinWord {d p q : ℕ} (x : Word d p) (z : Word d q) : Word d (p+q) :=
  fun i => if h : i.val < p then x ⟨i.val,h⟩ else z ⟨i.val-p,by omega⟩

/-- Partial trace over exactly the last q qudits; PDF pp.11,13,22. -/
def traceFinalQudits {d p : ℕ} (q : ℕ) (A : Op d (p+q)) : Op d p :=
  fun x y => ∑ z : Word d q, A (joinWord x z) (joinWord y z)

/-- Partial transpose on the final qudit, in the computational basis; PDF p.6. -/
def transposeLast {d r : ℕ} (A : Op d (r+1)) : Op d (r+1) :=
  fun x y => A (Function.update x (Fin.last r) (y (Fin.last r)))
    (Function.update y (Fin.last r) (x (Fin.last r)))

/-- Unnormalized Bell operator B on port a and input r, identity elsewhere;
PDF pp.3,6,14,22. It has B²=dB, rather than B²=B. -/
def unnormalizedPortBell (d r : ℕ) (a : Fin r) : Op d (r+1) :=
  fun x y => if x a.castSucc = x (Fin.last r) ∧
    y a.castSucc = y (Fin.last r) ∧
    (∀ i : Fin (r+1), i ≠ a.castSucc → i ≠ Fin.last r → x i = y i)
    then 1 else 0

/-- Trace-one Bell projector Q=B/d on the selected pair; identities elsewhere.
PDF pp.27–28, Eqs.(100),(106). -/
def bellQ (d r : ℕ) (a : Fin r) : Op d (r+1) := (1/(d:ℂ)) • unnormalizedPortBell d r a

/-- Swap a with the final Alice port; the last (input) register is fixed.
PDF pp.8,27. The identity coset is included. -/
def portSwap (d k : ℕ) (a : Fin (k+2)) : Op d (k+3) :=
  Schur.tensorPermutation d (k+3)
    (Equiv.swap a.castSucc (Fin.last (k+1)).castSucc)

/-- A bar-a operator is expressed in the ordered coordinates obtained by
swapping a with the final Alice port; PDF pp.12,28, Eq.(108). -/
def effect {d k : ℕ} (a : Fin (k+2)) (T : Op d (k+1)) : Op d (k+3) :=
  portSwap d k a * (bellQ d (k+2) (Fin.last (k+1)) * tensorIdentityExtension 2 T) *
    portSwap d k a

/-- η is the actual partially transposed swap sum, without d^(-N);
PDF p.7, Eq.(3). Here N=k+2 and n=k+3. -/
def pbtSwapSum (d k : ℕ) : Op d (k+3) := ∑ a : Fin (k+2), unnormalizedPortBell d (k+2) a

/-- The physical α component constructed from Young projectors and Bell
operators, PDF p.8 Eq.(7), before taking its support. -/
def etaAlpha {d k : ℕ} (a : Schur.Partition d (k+1)) : Op d (k+3) :=
  ∑ b : Fin (k+2), portSwap d k b *
    (tensorIdentityExtension 2 (Schur.isotypicProjector a) * unnormalizedPortBell d (k+2) (Fin.last (k+1))) *
    portSwap d k b

/-- Physical M_alpha, constructed as support of Eq.(7), PDF p.8. -/
def mBlock {d k : ℕ} (a : Schur.Partition d (k+1)) : Op d (k+3) :=
  support (etaAlpha a)

/-- Physical F_mu(alpha)=M_alpha P_mu, PDF p.8. -/
def fBlock {d k : ℕ} (a : Schur.Partition d (k+1))
    (b : Schur.Partition d (k+2)) : Op d (k+3) :=
  mBlock a * tensorIdentityExtension 1 (Schur.isotypicProjector b)

/-- Spectral scalar computed by the trace quotient, PDF p.9 Eq.(12).
Its multiplicity/character formulas are conclusions below. -/
def pbtBlockEigenvalue {d k : ℕ} (a : Schur.Partition d (k+1))
    (b : Schur.Partition d (k+2)) : ℝ :=
  ( (tensorIdentityExtension 1 (Schur.isotypicProjector b) * etaAlpha a).trace ).re /
    ((mult a : ℝ) * sdim b)

/-- Central transposition-class scalar. Empty classes at degrees zero and one
have scalar zero; PDF pp.9,18–20. -/
def classScalar {d r : ℕ} (a : Schur.Partition d r) : ℝ :=
  (∑ i : Fin r, ∑ j : Fin r, if i < j then
    (Schur.spechtCharacter a (Equiv.swap i j)).re else 0) / sdim a

/-- Positive physical successor eigenvalues whose reciprocals are minimized;
PDF p.27 Eq.(101). Finite nonemptiness is part of the mathematical result. -/
def reciprocalSet {d k : ℕ} (a : Schur.Partition d (k+1)) : Set ℝ :=
  {x | ∃ b : Schur.Partition d (k+2), Extends a b ∧ x = 1 / pbtBlockEigenvalue a b}

/-- The finite minimum, used only with d≥2 and N≥2; PDF p.27 Eq.(101). -/
def minReciprocal {d k : ℕ} (a : Schur.Partition d (k+1)) : ℝ :=
  sInf (reciprocalSet a)

/-- Optimal fixed-resource auxiliary operators in bar-a coordinates;
PDF p.12 Proposition7 and p.27 Eq.(101). -/
def fixedTheta (d k : ℕ) : Fin (k+2) → Op d (k+1) := fun _ =>
  ∑ a : Schur.Partition d (k+1), ((d:ℂ) * (minReciprocal a : ℂ)) •
    Schur.isotypicProjector a

/-- Objective of the exact-success probabilistic PBT SDP, PDF p.11 Eq.(19). -/
def pbtSuccessProbability {d k : ℕ} (T : Fin (k+2) → Op d (k+1)) : ℝ :=
  (∑ a, (T a).trace.re) / (d:ℝ)^(k+3)

/-- Physical fixed-resource primal feasibility; PDF p.11 Eq.(20). -/
def FixedFeasible {d k : ℕ} (T : Fin (k+2) → Op d (k+1)) : Prop :=
  (∀ a, (T a).PosSemidef) ∧ (1 - ∑ a, effect a (T a)).PosSemidef

/-- Fixed-resource feasible success values, without an empty/unbounded real
supremum convention; PDF p.11. -/
def fixedValues (d k : ℕ) : Set ℝ := {p | ∃ T : Fin (k+2) → Op d (k+1),
    FixedFeasible (d := d) (k := k) T ∧
      p = pbtSuccessProbability (d := d) (k := k) T}

/-- The corrected achievable value N/d^N sum_alpha m_alpha d_alpha/max gamma;
PDF pp.11,27, missing N in the printed Lemma4 corrected from Eq.(19),(102). -/
def fixedValue (d k : ℕ) : ℝ :=
  ((k+2:ℕ):ℝ) / (d:ℝ)^(k+2) *
    ∑ a : Schur.Partition d (k+1), (mult a:ℝ) * sdim a * minReciprocal a

/-- Multiplicity-ratio minimum in Theorem3; PDF pp.4,11. -/
def fixedRatioValue (d k : ℕ) : ℝ :=
  (1/(d:ℝ)^(k+2)) * ∑ a : Schur.Partition d (k+1), (mult a:ℝ)^2 *
    sInf {x : ℝ | ∃ b : Schur.Partition d (k+2), Extends a b ∧
      x = (sdim b:ℝ) / mult b}

/-- Pair trace in the bar-a coordinates; PDF p.11 Eq.(22), p.13 Eq.(28). -/
def pairTrace {d k : ℕ} (a : Fin (k+2)) (A : Op d (k+3)) : Op d (k+1) :=
  traceFinalQudits 2 (portSwap d k a * A * portSwap d k a)

/-- The fixed-resource dual has all N constraints and uses Q=B/d;
PDF pp.11,28 Eqs.(22),(106). -/
def FixedDual {d k : ℕ} (A : Op d (k+3)) : Prop :=
  A.PosSemidef ∧ ∀ a : Fin (k+2), (pairTrace a (bellQ d (k+2) a * A) - 1).PosSemidef

/-- A maximizing successor selector (not a supplied SDP witness); PDF p.11 Eq.(23). -/
def MaxSelector {d k : ℕ}
    (s : Schur.Partition d (k+1) → Schur.Partition d (k+2)) : Prop :=
  ∀ a, Extends a (s a) ∧ ∀ b, Extends a b → pbtBlockEigenvalue a b ≤ pbtBlockEigenvalue a (s a)

/-- Actual dual matrix for any maximizing selector, PDF p.28 Eq.(106). -/
def fixedOmega {d k : ℕ}
    (s : Schur.Partition d (k+1) → Schur.Partition d (k+2)) : Op d (k+3) :=
  ∑ a, ((d:ℂ) * (mult a:ℂ) / (mult (s a):ℂ)) • fBlock a (s a)

/-- Sum of squared actual tensor multiplicities, including degree zero;
PDF p.24 Eq.(84). -/
def squareSum (d r : ℕ) : ℝ := ∑ a : Schur.Partition d r, (mult a:ℝ)^2

/-- Explicit jointly optimal resource matrix X, PDF pp.12,28 Eq.(26),(109). -/
def jointX (d k : ℕ) : Op d (k+2) :=
  ∑ b : Schur.Partition d (k+2),
    ((d:ℂ)^(k+2) / (squareSum d (k+2):ℂ) * (mult b:ℂ) / (sdim b:ℂ)) •
      Schur.isotypicProjector b

/-- Explicit jointly optimal transformed auxiliary effects, PDF pp.12,28
Eqs.(27),(108). They are transported to physical effects below. -/
def jointTheta (d k : ℕ) : Fin (k+2) → Op d (k+1) := fun _ =>
  ∑ a : Schur.Partition d (k+1),
    ((d:ℂ)^(k+3) / (squareSum d (k+2):ℂ) * (mult a:ℂ) /
      (((k+2:ℕ):ℂ) * (sdim a:ℂ))) • Schur.isotypicProjector a

/-- Joint primal feasibility, including positivity and normalization of X;
PDF p.12 Eq.(25). -/
def JointFeasible {d k : ℕ} (X : Op d (k+2))
    (T : Fin (k+2) → Op d (k+1)) : Prop :=
  X.PosSemidef ∧ X.trace = (d:ℂ)^(k+2) ∧ (∀ a, (T a).PosSemidef) ∧
    (tensorIdentityExtension 1 X - ∑ a, effect a (T a)).PosSemidef

/-- Jointly attainable SDP success values; PDF pp.12–13. -/
def jointValues (d k : ℕ) : Set ℝ :=
  {p | ∃ X : Op d (k+2), ∃ T : Fin (k+2) → Op d (k+1),
    JointFeasible (d := d) (k := k) X T ∧
      p = pbtSuccessProbability (d := d) (k := k) T}

/-- Closed success expression with N ports, PDF pp.12–13,29 Eq.(112). -/
def optimalProbability (d N : ℕ) : ℝ := (N:ℝ) / ((N:ℝ) + (d:ℝ)^2 - 1)

/-- O=X^(1/2), using the nonnegative spectral square root; PDF p.12. -/
def jointO (d k : ℕ) : Op d (k+2) := cfc Real.sqrt (jointX d k)

/-- (O tensor I)|Phi_d>^tensor N, with normalized Bell pairs;
PDF p.12 Theorem8. Its norm is a conclusion, not a premise. -/
def resourceVector (d k : ℕ) :
    EuclideanSpace ℂ (Word d (k+2) × Word d (k+2)) :=
  WithLp.toLp 2 fun z => jointO d k z.1 z.2 / (Real.sqrt ((d:ℝ)^(k+2)) : ℂ)

/-- Physical success effects obtained from the transformed SDP effects by
conjugation with O^(-1); PDF p.12 Eq.(25). -/
def jointPhysical (d k : ℕ) (a : Fin (k+2)) : Op d (k+3) :=
  tensorIdentityExtension 1 (jointO d k)⁻¹ * effect a (jointTheta d k a) *
    tensorIdentityExtension 1 (jointO d k)⁻¹

/-- Failure effect completing the physical N+1 outcome POVM; PDF pp.2,12. -/
def jointFailure (d k : ℕ) : Op d (k+3) := 1 - ∑ a, jointPhysical d k a

/-- The actual joint dual witness d eta/(N+d²−1), PDF p.29 Eq.(117). -/
def jointOmega (d k : ℕ) : Op d (k+3) :=
  ((d:ℂ) / (((k+2:ℕ):ℂ) + (d:ℂ)^2 - 1)) • pbtSwapSum d k

/-- Joint dual constraints: the third traces out the input n, correcting
printed Tr_a in Eq.(28) by Eqs.(119)–(121), PDF pp.13,30. -/
def JointDual {d k : ℕ} (A : Op d (k+3)) (b : ℝ) : Prop :=
  FixedDual A ∧ 0 ≤ b ∧
    ((b:ℂ) • (1 : Op d (k+2)) - (1/(d:ℂ)^(k+3)) • traceFinalQudits 1 A).PosSemidef

/-- rho_a=B_a/d^N from PDF pp.3,6, distinct from SDP's Q_a. -/
def pbtSignal (d k : ℕ) (a : Fin (k+2)) : Op d (k+3) :=
  (1/(d:ℂ)^(k+2)) • unnormalizedPortBell d (k+2) a

/-- Uncompleted square-root measurement, with inverse zero on the kernel;
PDF pp.5,13,14. -/
def srmRaw (d k : ℕ) (a : Fin (k+2)) : Op d (k+3) :=
  let R := cfc (fun x : ℝ => (Real.sqrt x)⁻¹) (∑ b, pbtSignal d k b)
  R * pbtSignal d k a * R

/-- Completed deterministic POVM: Delta uses the uncompleted effects,
resolving the self-reference in the source; PDF pp.5,13. -/
def srm (d k : ℕ) (a : Fin (k+2)) : Op d (k+3) :=
  srmRaw d k a + (1/((k+2:ℕ):ℂ)) • (1 - ∑ b, srmRaw d k b)

/-- Physical subchannel for one outcome: measure E on Alice's N ports and
input, discard Alice and every Bob port except a, and identify that port with
Fin d. The resource amplitudes are O(x,z)/sqrt(d^N). This contraction is
independent of the measurement instrument because Alice is discarded.
PDF pp.2,4–5,12–14. No output correction or transpose is applied by Bob. -/
def portOutcome {d k : ℕ} (O : Op d (k+2)) (E : Op d (k+3))
    (a : Fin (k+2)) : Superop (Fin d) (Fin d) :=
  fun Z u v => (1/(d:ℂ)^(k+2)) *
    ∑ z : Word d (k+2), if z a = u then
      ∑ x : Word d (k+2), ∑ y : Word d (k+2),
        ∑ i : Fin d, ∑ j : Fin d,
          O x z * star (O y (Function.update z a v)) * Z i j *
            E (joinWord (d := d) (p := k+2) (q := 1) y (fun _ : Fin 1 => j))
              (joinWord (d := d) (p := k+2) (q := 1) x (fun _ : Fin 1 => i))
      else 0

/-- The N conclusive effects together with the residual failure effect form
an N+1 outcome POVM; PDF pp.2,11–12. -/
def ProtocolPOVM {d k : ℕ} (E : Fin (k+2) → Op d (k+3)) : Prop :=
  (∀ a, (E a).PosSemidef) ∧ (1 - ∑ a, E a).PosSemidef

/-- Perfect conclusive teleportation for every input operator, hence also
for inputs entangled with a reference. Each outcome subchannel is its
nonnegative probability times the identity; total success is p.
PDF pp.2,4,11–12. This is not an SDP certificate. -/
def ExactPBT {d k : ℕ} (O : Op d (k+2))
    (E : Fin (k+2) → Op d (k+3)) (p : ℝ) : Prop :=
  ∃ c : Fin (k+2) → ℝ, (∀ a, 0 ≤ c a) ∧ (∑ a, c a) = p ∧
    ∀ a Z, portOutcome O (E a) a Z = (c a : ℂ) • Z

/-- Operational attainable probabilities for the fixed normalized Bell-pair
resource O=I, ranging over every perfect-conclusive POVM, not only effects
already supplied in the source's reduced SDP form. PDF pp.4,11. -/
def fixedOperationalValues (d k : ℕ) : Set ℝ :=
  {p | ∃ E : Fin (k+2) → Op d (k+3), ProtocolPOVM E ∧
    ExactPBT (1 : Op d (k+2)) E p}

/-- Operational attainable probabilities over all pure resource states and
perfect-conclusive POVMs. Every pure resource has coefficients O(x,z)/sqrt(d^N);
Tr(O†O)=d^N is precisely its normalization. Singular O is allowed.
PDF p.12, Theorem8. -/
def jointOperationalValues (d k : ℕ) : Set ℝ :=
  {p | ∃ O : Op d (k+2), ∃ E : Fin (k+2) → Op d (k+3),
    (star O * O).trace = (d:ℂ)^(k+2) ∧ ProtocolPOVM E ∧ ExactPBT O E p}

/-- Actual deterministic channel: normalized Bell resource, Alice's completed
square-root POVM and Bob's selected port, with all other systems discarded.
PDF pp.5,13–14. -/
def pbtDeterministicChannel (d k : ℕ) : Superop (Fin d) (Fin d) :=
  fun Z => ∑ a : Fin (k+2), portOutcome (1 : Op d (k+2)) (srm d k a) a Z

/-- Entanglement fidelity of the actual channel with a normalized Bell
reference, rather than a definition by the proof's trace identity (30).
PDF pp.5,13–14. -/
def deterministicFidelity (d k : ℕ) (hd : 0 < d) : ℝ :=
  QuditFidelity.entanglementFidelity d hd (pbtDeterministicChannel d k)

/-- Full number of cycles, including every fixed point, PDF p.24. -/
def cycles {r : ℕ} (pi : Equiv.Perm (Fin r)) : ℕ :=
  pi.cycleType.card + (r - pi.support.card)

/-- Inclusion S_r into S_(r+1) fixing the final letter; PDF pp.17,24. -/
def extendPerm {r : ℕ} (pi : Equiv.Perm (Fin r)) : Equiv.Perm (Fin (r+1)) :=
  Equiv.permCongr finSumFinEquiv (Equiv.sumCongr pi (Equiv.refl (Fin 1)))

/-- Unscaled subgroup Fourier sum F_ij^mu (not F_mu(alpha)); PDF p.20 Eq.(64). -/
def fourierSubgroup {d k : ℕ} (b : Schur.Partition d (k+2))
    (i j : Fin (sdim b)) : Op d (k+2) :=
  ∑ pi : Equiv.Perm (Fin (k+1)),
    spechtMatrix b (extendPerm pi⁻¹) j i •
      Schur.tensorPermutation d (k+2) (extendPerm pi)

/-- The represented permutation algebra as its actual linear span;
PDF pp.22,25. Linear dependence of permutation operators is allowed. -/
def permutationSpan (d r : ℕ) : Submodule ℂ (Op d r) :=
  Submodule.span ℂ (Set.range (Schur.tensorPermutation d r))

/-- The represented partially transposed permutation algebra, PDF p.22:
its underlying vector space is the span of the actual transposed matrices. -/
def transposedSpan (d r : ℕ) : Submodule ℂ (Op d (r+1)) :=
  Submodule.span ℂ (Set.range fun pi : Equiv.Perm (Fin (r+1)) =>
    transposeLast (Schur.tensorPermutation d (r+1) pi))

/-- Realization of the irreducible labelled by mu in an arbitrary orthonormal
coordinate space. The intertwiner identifies the label; no branching, projector
rank or sum rule is assumed. PDF pp.17–18. -/
def RealizesSpechtIrrep {r D : ℕ} (mu : Schur.Partition (r+1) (r+1))
    (R : Equiv.Perm (Fin (r+1)) →* Matrix.unitaryGroup (Fin D) ℂ) : Prop :=
  ∃ e : Schur.spechtSpace mu ≃ₗᵢ[ℂ] EuclideanSpace ℂ (Fin D),
    ∀ pi v, e (Schur.spechtRepresentation mu pi v) =
      act (R pi : Matrix (Fin D) (Fin D) ℂ) (e v)

/-- Every predecessor shape, without the physical height-d truncation;
PDF pp.17–18, Eq.(42). At degree zero there is the empty diagram. -/
abbrev Preds {r : ℕ} (mu : Schur.Partition (r+1) (r+1)) :=
  {a : Schur.Partition r r // Extends a mu}

/-- The subgroup isotypic projector in any realization R, independently
computed by its character sum, PDF pp.17–18. -/
def subgroupProjector {r D : ℕ}
    (R : Equiv.Perm (Fin (r+1)) →* Matrix.unitaryGroup (Fin D) ℂ)
    (a : Schur.Partition r r) : Matrix (Fin D) (Fin D) ℂ :=
  ((sdim a:ℂ)/(r.factorial:ℂ)) •
    ∑ pi : Equiv.Perm (Fin r), Schur.spechtCharacter a pi⁻¹ •
      (R (extendPerm pi) : Matrix (Fin D) (Fin D) ℂ)

/-- The orthonormal Specht direct-sum action on all predecessors; PDF p.17 Eq.(42). -/
def predecessorAction {r : ℕ} (mu : Schur.Partition (r+1) (r+1))
    (pi : Equiv.Perm (Fin r))
    (v : EuclideanSpace ℂ ((a : Preds mu) × Fin (sdim a.val))) :
    EuclideanSpace ℂ ((a : Preds mu) × Fin (sdim a.val)) :=
  WithLp.toLp 2 fun z => ∑ j : Fin (sdim z.1.val),
    spechtMatrix z.1.val pi z.2 j * v ⟨z.1,j⟩

/-- At the all-zero tensor word, the unnormalized Bell coefficient is one;
PDF p.22 Eq.(70), normalization sanity check. -/
example : unnormalizedPortBell 2 2 0 (fun _ => 0) (fun _ => 0) = 1 := by simp [unnormalizedPortBell]

/-- The normalized Bell coefficient is 1/2 at d=2, PDF p.27 Eq.(100). -/
example : bellQ 2 2 0 (fun _ => 0) (fun _ => 0) = (1/2:ℂ) := by
  simp [bellQ,unnormalizedPortBell]

/-- Identity permutations have r cycles, including fixed points; PDF p.24. -/
example (r : ℕ) : cycles (1 : Equiv.Perm (Fin r)) = r := by simp [cycles]

/-- At d=2,N=2 the joint closed value is 2/5; PDF p.29 Eq.(112). -/
example : optimalProbability 2 2 = (2/5:ℝ) := by norm_num [optimalProbability]

/-- Zero operator has zero support; PDF p.8 support convention. -/
example (d r : ℕ) : support (0 : Op d r) = 0 := by
  simp [support,
    QAlgorithms.Papers.Independent.Information100.P07.projection,
    QAlgorithms.Papers.Independent.Information100.P07.operatorRange]

/-- A zero measurement effect produces the zero outcome map on every input;
this checks the effect's placement in the physical contraction. -/
example {d k : ℕ} (O : Op d (k+2)) (a : Fin (k+2))
    (Z : Matrix (Fin d) (Fin d) ℂ) : portOutcome O 0 a Z = 0 := by
  ext u v
  simp [portOutcome]

end QAlgorithms.Papers.Independent.Extend50.P33
Source
Port-based teleportation in arbitrary dimension, arXiv:1612.09260v3, https://arxiv.org/abs/1612.09260v3
Read-back

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

QAlgorithms.Papers.Independent.Extend50.P33.ExactPBT

For arbitrary natural numbers d,kd,kd,k, let N=k+2N=k+2N=k+2, Wr={0,…,d−1}rW_r=\{0,\ldots,d-1\}^rWr​={0,…,d−1}r, OOO be a complex matrix indexed by WNW_NWN​, (Ea)a=0N−1(E_a)_{a=0}^{N-1}(Ea​)a=0N−1​ be complex matrices indexed by WN+1W_{N+1}WN+1​, and p∈Rp\in\mathbb Rp∈R. This predicate means that there exist real numbers ca≥0c_a\ge0ca​≥0 with ∑aca=p\sum_ac_a=p∑a​ca​=p such that, for every aaa and every complex d×dd\times dd×d matrix ZZZ,

1dN∑z∈WNza=u∑x,y∈WN∑i,j=0d−1OxzOy,z[a←v]‾Zij(Ea) y⋅j, x⋅i=caZuv(0≤u,v<d).\frac1{d^N} \sum_{\substack{z\in W_N\\z_a=u}} \sum_{x,y\in W_N}\sum_{i,j=0}^{d-1} O_{xz}\overline{O_{y,z[a\leftarrow v]}}Z_{ij} (E_a)_{\,y\cdot j,\,x\cdot i} =c_aZ_{uv} \qquad(0\le u,v<d).dN1​z∈WN​za​=u​∑​x,y∈WN​∑​i,j=0∑d−1​Oxz​Oy,z[a←v]​​Zij​(Ea​)y⋅j,x⋅i​=ca​Zuv​(0≤u,v<d).

Appending a coordinate is denoted by x⋅ix\cdot ix⋅i, and z[a←v]z[a\leftarrow v]z[a←v] replaces coordinate aaa. There are no additional conditions on OOO or the EaE_aEa​, and the equality is required for all matrices ZZZ, not merely density matrices. The definition includes k=0k=0k=0; for d=0d=0d=0 the matrix equalities are vacuous, and the predicate is equivalent to p≥0p\ge0p≥0.

QAlgorithms.Papers.Independent.Extend50.P33.Extends

For natural numbers d,e,rd,e,rd,e,r, a Young diagram aaa with rrr cells and at most ddd rows, and a Young diagram bbb with r+1r+1r+1 cells and at most eee rows, Extends⁡(a,b)\operatorname{Extends}(a,b)Extends(a,b) means that every cell of aaa, with its existing row and column coordinates, is also a cell of bbb. The bounds ddd and eee need not agree. The definition allows r=0r=0r=0; in that case the cell-inclusion condition holds for every available bbb.

QAlgorithms.Papers.Independent.Extend50.P33.FixedDual

For any natural numbers d,kd,kd,k and any complex matrix AAA indexed by [d]k+3[d]^{k+3}[d]k+3, this predicate means that AAA is positive semidefinite and, for every a∈{0,…,k+1}a\in\{0,\ldots,k+1\}a∈{0,…,k+1},

∑z∈[d]2(SaBaASa)(x∥z, y∥z)−1x=y\sum_{z\in[d]^2}(S_aB_aAS_a)(x\mathbin{\|}z,\ y\mathbin{\|}z) -\mathbf1_{x=y}z∈[d]2∑​(Sa​Ba​ASa​)(x∥z, y∥z)−1x=y​

is a positive semidefinite matrix in the indices x,y∈[d]k+1x,y\in[d]^{k+1}x,y∈[d]k+1. Here [d]={0,…,d−1}[d]=\{0,\ldots,d-1\}[d]={0,…,d−1}, SaS_aSa​ permutes word coordinates by exchanging positions aaa and k+1k+1k+1, and Ba(u,v)B_a(u,v)Ba​(u,v) equals 1/d1/d1/d when ua=uk+2u_a=u_{k+2}ua​=uk+2​, va=vk+2v_a=v_{k+2}va​=vk+2​, and ui=viu_i=v_iui​=vi​ at every position other than a,k+2a,k+2a,k+2, and equals 000 otherwise. Concatenation is denoted by ∥\|∥, and division by zero is 000. There is no trace normalization requirement; for d=0d=0d=0, all these matrices have empty index sets and the predicate holds.

QAlgorithms.Papers.Independent.Extend50.P33.FixedFeasible

For arbitrary natural numbers d,kd,kd,k and a family TjT_jTj​, 0≤j<k+20\le j<k+20≤j<k+2, of complex matrices on length-k+1k+1k+1 words over {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}, this predicate means

Tj⪰0for every j,I−∑j=0k+1Sj(1d B E2(Tj))Sj⪰0.T_j\succeq0\quad\text{for every }j,\qquad I-\sum_{j=0}^{k+1}S_j\left(\frac1d\,B\,E_2(T_j)\right)S_j\succeq0.Tj​⪰0for every j,I−j=0∑k+1​Sj​(d1​BE2​(Tj​))Sj​⪰0.

Here all matrices in the second inequality act on length-k+3k+3k+3 words; SjS_jSj​ is the permutation matrix interchanging coordinates jjj and k+1k+1k+1; E2(Tj)(x,y)E_2(T_j)(x,y)E2​(Tj​)(x,y) equals Tj(x<k+1,y<k+1)T_j(x_{<k+1},y_{<k+1})Tj​(x<k+1​,y<k+1​) when both final coordinates of x,yx,yx,y agree and is zero otherwise; and B(x,y)=1B(x,y)=1B(x,y)=1 precisely when xk+1=xk+2x_{k+1}=x_{k+2}xk+1​=xk+2​, yk+1=yk+2y_{k+1}=y_{k+2}yk+1​=yk+2​, and xi=yix_i=y_ixi​=yi​ for i≤ki\le ki≤k, with other entries zero. The scalar 1/d1/d1/d is taken in C\mathbb CC, with 1/0=01/0=01/0=0. The case k=0k=0k=0 is included. For d=0d=0d=0, the matrix index sets are empty and the predicate holds for their unique matrix family.

QAlgorithms.Papers.Independent.Extend50.P33.JointDual

For arbitrary natural numbers d,kd,kd,k, a complex matrix AAA on words of length N+1N+1N+1, where N=k+2N=k+2N=k+2, and a real number bbb, this predicate holds exactly when

A⪰0,b≥0,∀a<N,Tr⁡last 2(Va(1dBaA)Va)−IdN−1⪰0,bIdN−1dN+1Tr⁡last 1A⪰0.A\succeq0,\qquad b\ge0,\qquad \forall a<N,\quad \operatorname{Tr}_{\mathrm{last}\,2} \left(V_a\left(\frac1d B_aA\right)V_a\right)-I_{d^{N-1}}\succeq0, \qquad bI_{d^N}-\frac1{d^{N+1}}\operatorname{Tr}_{\mathrm{last}\,1}A\succeq0.A⪰0,b≥0,∀a<N,Trlast2​(Va​(d1​Ba​A)Va​)−IdN−1​⪰0,bIdN​−dN+11​Trlast1​A⪰0.

Here words take values in {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}, VaV_aVa​ swaps positions a,N−1a,N-1a,N−1, and (Ba)x,y(B_a)_{x,y}(Ba​)x,y​ is one exactly when xa=xNx_a=x_Nxa​=xN​, ya=yNy_a=y_Nya​=yN​, and all other corresponding coordinates of x,yx,yx,y agree, and is zero otherwise. For a matrix HHH on words of length p+qp+qp+q, the partial trace used here is defined entrywise by (Tr⁡last qH)x,y=∑zHxz,yz(\operatorname{Tr}_{\mathrm{last}\,q}H)_{x,y}=\sum_zH_{xz,yz}(Trlastq​H)x,y​=∑z​Hxz,yz​, summing over all length-qqq words and writing xzxzxz for concatenation. The notation ⪰0\succeq0⪰0 means positive semidefinite. There is no trace normalization requirement on AAA. Scalar division by zero is zero; when d=0d=0d=0, all these matrices have empty index sets and the predicate reduces to b≥0b\ge0b≥0.

QAlgorithms.Papers.Independent.Extend50.P33.JointFeasible

For any natural numbers d,kd,kd,k, a complex matrix XXX indexed by [d]k+2[d]^{k+2}[d]k+2, and a family TaT_aTa​ of complex matrices indexed by [d]k+1[d]^{k+1}[d]k+1, one for every a∈{0,…,k+1}a\in\{0,\ldots,k+1\}a∈{0,…,k+1}, this predicate means

X⪰0,tr⁡X=dk+2,Ta⪰0 for every a,E1(X)−∑a=0k+1SaB E2(Ta)Sa⪰0.X\succeq0,\qquad \operatorname{tr}X=d^{k+2},\qquad T_a\succeq0\ \text{for every }a,\qquad E_1(X)-\sum_{a=0}^{k+1}S_aB\,E_2(T_a)S_a\succeq0.X⪰0,trX=dk+2,Ta​⪰0 for every a,E1​(X)−a=0∑k+1​Sa​BE2​(Ta​)Sa​⪰0.

Here [d]={0,…,d−1}[d]=\{0,\ldots,d-1\}[d]={0,…,d−1}, Eq(H)E_q(H)Eq​(H) has entry H(u<r,v<r)H(u_{<r},v_{<r})H(u<r​,v<r​) when the final qqq coordinates agree and 000 otherwise, and SaS_aSa​ swaps positions a,k+1a,k+1a,k+1 in words of length k+3k+3k+3. The matrix B(u,v)B(u,v)B(u,v) equals 1/d1/d1/d when uk+1=uk+2u_{k+1}=u_{k+2}uk+1​=uk+2​, vk+1=vk+2v_{k+1}=v_{k+2}vk+1​=vk+2​, and ui=viu_i=v_iui​=vi​ for i<k+1i<k+1i<k+1, and equals 000 otherwise. The trace equality is a complex equality, and ⪰0\succeq0⪰0 means positive semidefinite. There is no assumption that d>0d>0d>0; division by zero is 000, and for d=0d=0d=0 the uniquely determined empty matrices satisfy the predicate.

QAlgorithms.Papers.Independent.Extend50.P33.MaxSelector

For any natural numbers d,kd,kd,k, this predicate applies to a function sss sending each Young diagram λ\lambdaλ with k+1k+1k+1 cells and at most ddd rows to a diagram s(λ)s(\lambda)s(λ) with k+2k+2k+2 cells and at most ddd rows. It requires that λ.cells⊆s(λ).cells\lambda.\mathrm{cells}\subseteq s(\lambda).\mathrm{cells}λ.cells⊆s(λ).cells and that, for every diagram μ\muμ with k+2k+2k+2 cells and at most ddd rows containing λ\lambdaλ,

Re⁡tr⁡ ⁣(E1(Πμ)ηλ)mλsμ≤Re⁡tr⁡ ⁣(E1(Πs(λ))ηλ)mλss(λ).\frac{\operatorname{Re}\operatorname{tr}\!\left(E_1(\Pi_\mu)\eta_\lambda\right)} {m_\lambda s_\mu} \le \frac{\operatorname{Re}\operatorname{tr}\!\left(E_1(\Pi_{s(\lambda)})\eta_\lambda\right)} {m_\lambda s_{s(\lambda)}}.mλ​sμ​Retr(E1​(Πμ​)ηλ​)​≤mλ​ss(λ)​Retr(E1​(Πs(λ)​)ηλ​)​.

The quantities are defined as follows. For a diagram ν\nuν with rrr cells, fix its supplied cell numbering and let Rν,Cν⊆SrR_\nu,C_\nu\subseteq S_rRν​,Cν​⊆Sr​ preserve rows and columns. Put Uπ(y,x)=1y=x∘π−1U_\pi(y,x)=\mathbf1_{y=x\circ\pi^{-1}}Uπ​(y,x)=1y=x∘π−1​ on words in [d]r[d]^r[d]r, let mνm_\numν​ be the dimension of the range of ∑α∈Rν,β∈Cνsgn⁡(β)Uαβ\sum_{\alpha\in R_\nu,\beta\in C_\nu}\operatorname{sgn}(\beta)U_{\alpha\beta}∑α∈Rν​,β∈Cν​​sgn(β)Uαβ​, and let SνS_\nuSν​ be the range of the permutation-indexed matrix with entries ∑α,βsgn⁡(β)1g=hαβ\sum_{\alpha,\beta}\operatorname{sgn}(\beta)\mathbf1_{g=h\alpha\beta}∑α,β​sgn(β)1g=hαβ​. Set sν=dim⁡CSνs_\nu=\dim_{\mathbb C}S_\nusν​=dimC​Sν​, χν(g)=tr⁡(LgPSν)\chi_\nu(g)=\operatorname{tr}(L_gP_{S_\nu})χν​(g)=tr(Lg​PSν​​), where Lgeh=eghL_ge_h=e_{gh}Lg​eh​=egh​ and PSνP_{S_\nu}PSν​​ is orthogonal projection onto SνS_\nuSν​, and Πν=(sν/r!)∑g∈Srχν(g−1)Ug\Pi_\nu=(s_\nu/r!)\sum_{g\in S_r}\chi_\nu(g^{-1})U_gΠν​=(sν​/r!)∑g∈Sr​​χν​(g−1)Ug​. The extension Eq(H)E_q(H)Eq​(H) has entry H(x<r,y<r)H(x_{<r},y_{<r})H(x<r​,y<r​) when the final qqq coordinates of x,yx,yx,y agree, and 000 otherwise. Finally, ηλ=∑a=0k+1SaE2(Πλ)HSa\eta_\lambda=\sum_{a=0}^{k+1}S_aE_2(\Pi_\lambda)HS_aηλ​=∑a=0k+1​Sa​E2​(Πλ​)HSa​, where SaS_aSa​ swaps positions a,k+1a,k+1a,k+1 and H(u,v)=1H(u,v)=1H(u,v)=1 exactly when uk+1=uk+2u_{k+1}=u_{k+2}uk+1​=uk+2​, vk+1=vk+2v_{k+1}=v_{k+2}vk+1​=vk+2​, and all earlier coordinates agree. Division by zero is 000; no uniqueness of the selected maximizer is required, and for d=0d=0d=0 the requirement is vacuous.

QAlgorithms.Papers.Independent.Extend50.P33.Preds

For any natural number rrr and any Young diagram μ\muμ with r+1r+1r+1 cells and at most r+1r+1r+1 rows, this abbreviation denotes the type of Young diagrams aaa having exactly rrr cells and at most rrr rows, together with the requirement that every cell of aaa is a cell of μ\muμ. The extension condition is precisely inclusion of the cell sets. In particular, r=0r=0r=0 is included, and its predecessor is the empty diagram.

QAlgorithms.Papers.Independent.Extend50.P33.ProtocolPOVM

For arbitrary natural numbers d,kd,kd,k, put N=k+2N=k+2N=k+2 and Wr={0,…,d−1}rW_r=\{0,\ldots,d-1\}^rWr​={0,…,d−1}r. A family (Ea)a=0N−1(E_a)_{a=0}^{N-1}(Ea​)a=0N−1​ of complex matrices indexed by WN+1W_{N+1}WN+1​ satisfies this predicate precisely when every EaE_aEa​ is positive semidefinite and

I−∑a=0N−1EaI-\sum_{a=0}^{N-1}E_aI−a=0∑N−1​Ea​

is positive semidefinite. Equality ∑aEa=I\sum_aE_a=I∑a​Ea​=I is not required. Both k=0k=0k=0 and d=0d=0d=0 are included; when d=0d=0d=0, these are matrices on an empty index set and the conditions hold for the unique such family.

QAlgorithms.Papers.Independent.Extend50.P33.RealizesSpechtIrrep

For natural numbers r,Dr,Dr,D, let μ\muμ be a Young diagram with r+1r+1r+1 cells and at most r+1r+1r+1 rows, and let R:Sr+1→U(D)R:S_{r+1}\to U(D)R:Sr+1​→U(D) be a group homomorphism. To define the space appearing in this predicate, use the definition’s chosen bijection from the cells of μ\muμ to the r+1r+1r+1 positions; let Rμ\mathcal R_\muRμ​ and Cμ\mathcal C_\muCμ​ be the permutations that preserve, respectively, each numbered cell’s row and column. On CSr+1\mathbb C^{S_{r+1}}CSr+1​, form the matrix

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

and let Vμ=ran⁡YμV_\mu=\operatorname{ran}Y_\muVμ​=ranYμ​, with its inherited Euclidean inner product. Write QμQ_\muQμ​ for orthogonal projection onto VμV_\muVμ​, and let LπL_\piLπ​ be left translation, (Lπ)g,h=1{g=πh}(L_\pi)_{g,h}=\mathbf1_{\{g=\pi h\}}(Lπ​)g,h​=1{g=πh}​. The predicate asserts that there exists a bijective complex linear isometry e:Vμ→CDe:V_\mu\to\mathbb C^De:Vμ​→CD such that, for every π∈Sr+1\pi\in S_{r+1}π∈Sr+1​ and every v∈Vμv\in V_\muv∈Vμ​,

e(QμLπv)=R(π)e(v).e(Q_\mu L_\pi v)=R(\pi)e(v).e(Qμ​Lπ​v)=R(π)e(v).

Here the action on the right is ordinary matrix multiplication. The quantification permits r=0r=0r=0 and D=0D=0D=0; it imposes no separate positivity assumption on DDD, although the required isometry must exist.

QAlgorithms.Papers.Independent.Extend50.P33.bellQ

For natural numbers d,rd,rd,r and a∈{0,…,r−1}a\in\{0,\ldots,r-1\}a∈{0,…,r−1}, bellQ⁡(d,r,a)\operatorname{bellQ}(d,r,a)bellQ(d,r,a) is the complex matrix indexed by length-(r+1)(r+1)(r+1) words over {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1} with entry 1/d1/d1/d at (x,y)(x,y)(x,y) when xa=xrx_a=x_rxa​=xr​, ya=yry_a=y_rya​=yr​, and xi=yix_i=y_ixi​=yi​ at every coordinate other than a,ra,ra,r, and with entry 000 otherwise. The division is in C\mathbb CC, where 1/0=01/0=01/0=0; no assumption d>0d>0d>0 is made, although d=0d=0d=0 also makes the word-index set empty. For r=0r=0r=0, there is no possible index aaa.

QAlgorithms.Papers.Independent.Extend50.P33.classScalar

For natural numbers d,rd,rd,r and a Young diagram aaa with rrr cells and first-column length at most ddd, this defines a real scalar as follows. Number the cells by {0,…,r−1}\{0,\ldots,r-1\}{0,…,r−1} using the chosen cardinality equivalence, and let Ra,Ca⊆SrR_a,C_a\subseteq S_rRa​,Ca​⊆Sr​ consist of permutations preserving the row and column, respectively, of every numbered cell. Define the matrix on SrS_rSr​

Ya(g,h)=∑σ∈Ra, τ∈Casgn⁡(τ)1{g=hστ}.Y_a(g,h)=\sum_{\sigma\in R_a,\ \tau\in C_a} \operatorname{sgn}(\tau)\mathbf1_{\{g=h\sigma\tau\}}.Ya​(g,h)=σ∈Ra​, τ∈Ca​∑​sgn(τ)1{g=hστ}​.

Let Ha=range⁡YaH_a=\operatorname{range}Y_aHa​=rangeYa​, let QaQ_aQa​ be its orthogonal projection, and let Lπ(g,h)=1{g=πh}L_\pi(g,h)=\mathbf1_{\{g=\pi h\}}Lπ​(g,h)=1{g=πh}​. The scalar is

1dim⁡CHa∑0≤i<j<rRe⁡tr⁡(L(i j)Qa).\frac{1}{\dim_{\mathbb C}H_a} \sum_{0\le i<j<r}\operatorname{Re}\operatorname{tr}(L_{(i\,j)}Q_a).dimC​Ha​1​0≤i<j<r∑​Retr(L(ij)​Qa​).

Thus each unordered pair of distinct coordinates contributes once. The case r=0r=0r=0, including the empty diagram, and the case r=1r=1r=1 have empty sums and give zero. Division uses the total real convention that division by zero is zero.

QAlgorithms.Papers.Independent.Extend50.P33.cycles

For every natural number rrr and every permutation π\piπ of {0,…,r−1}\{0,\ldots,r-1\}{0,…,r−1}, this defines the natural number consisting of the number of nontrivial cycles in the cycle-type multiset of π\piπ, plus r−∣supp⁡π∣r-|\operatorname{supp}\pi|r−∣suppπ∣, where supp⁡π={i:π(i)≠i}\operatorname{supp}\pi=\{i:\pi(i)\ne i\}suppπ={i:π(i)=i}. Thus fixed points contribute through the second term. The subtraction is natural-number subtraction, although here the support has at most rrr elements. When r=0r=0r=0, the value is zero.

QAlgorithms.Papers.Independent.Extend50.P33.deterministicFidelity

For natural numbers d,kd,kd,k and a hypothesis d>0d>0d>0, put N=k+2N=k+2N=k+2 and Wr={0,…,d−1}rW_r=\{0,\ldots,d-1\}^rWr​={0,…,d−1}r. Define Ba(x,y)B_a(x,y)Ba​(x,y), for a<Na<Na<N and x,y∈WN+1x,y\in W_{N+1}x,y∈WN+1​, to be 111 exactly when xa=xNx_a=x_Nxa​=xN​, ya=yNy_a=y_Nya​=yN​, and xℓ=yℓx_\ell=y_\ellxℓ​=yℓ​ outside {a,N}\{a,N\}{a,N}, and 000 otherwise; set Sa=d−NBaS_a=d^{-N}B_aSa​=d−NBa​, R=f(∑bSb)R=f(\sum_bS_b)R=f(∑b​Sb​) by continuous functional calculus with f(t)=(t)−1f(t)=(\sqrt t)^{-1}f(t)=(t​)−1 and f(0)=0f(0)=0f(0)=0, and

Ea=RSaR+1N(I−∑bRSbR).E_a=RS_aR+\frac1N\left(I-\sum_bRS_bR\right).Ea​=RSa​R+N1​(I−b∑​RSb​R).

The declaration defines the real number

1dN+2Re⁡∑i,j=0d−1∑a=0N−1∑z∈WNza=i(Ea) z[a←j]⋅j, z⋅i,\frac1{d^{N+2}}\operatorname{Re} \sum_{i,j=0}^{d-1}\sum_{a=0}^{N-1} \sum_{\substack{z\in W_N\\z_a=i}} (E_a)_{\,z[a\leftarrow j]\cdot j,\,z\cdot i},dN+21​Rei,j=0∑d−1​a=0∑N−1​z∈WN​za​=i​∑​(Ea​)z[a←j]⋅j,z⋅i​,

where a dot appends a coordinate and brackets replace one coordinate. Equivalently, it is Re⁡Tr⁡(∣ϕd⟩⟨ϕd∣ (id⊗C)(∣ϕd⟩⟨ϕd∣))\operatorname{Re}\operatorname{Tr}(|\phi_d\rangle\langle\phi_d|\,(\mathrm{id}\otimes\mathcal C)(|\phi_d\rangle\langle\phi_d|))ReTr(∣ϕd​⟩⟨ϕd​∣(id⊗C)(∣ϕd​⟩⟨ϕd​∣)), with ϕd=d−1/2∑i∣i,i⟩\phi_d=d^{-1/2}\sum_i|i,i\rangleϕd​=d−1/2∑i​∣i,i⟩ and C(Z)uv=d−N∑a∑z:za=u∑i,jZij(Ea)z[a←v]⋅j,z⋅i\mathcal C(Z)_{uv}=d^{-N}\sum_a\sum_{z:z_a=u}\sum_{i,j}Z_{ij}(E_a)_{z[a\leftarrow v]\cdot j,z\cdot i}C(Z)uv​=d−N∑a​∑z:za​=u​∑i,j​Zij​(Ea​)z[a←v]⋅j,z⋅i​. The hypothesis excludes d=0d=0d=0, while d=1d=1d=1 and k=0k=0k=0 are included.

QAlgorithms.Papers.Independent.Extend50.P33.effect

For natural numbers d,kd,kd,k, an index a∈{0,…,k+1}a\in\{0,\ldots,k+1\}a∈{0,…,k+1}, and any complex matrix TTT indexed by length-(k+1)(k+1)(k+1) words over {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}, the defined matrix is

effect⁡(a,T)=Ua(BE)Ua.\operatorname{effect}(a,T)=U_a(BE)U_a.effect(a,T)=Ua​(BE)Ua​.

All four factors are indexed by length-(k+3)(k+3)(k+3) words: Ua(y,x)=1U_a(y,x)=1Ua​(y,x)=1 if yyy is obtained from xxx by exchanging positions aaa and k+1k+1k+1, and is 000 otherwise; B(x,y)=1/dB(x,y)=1/dB(x,y)=1/d if xk+1=xk+2x_{k+1}=x_{k+2}xk+1​=xk+2​, yk+1=yk+2y_{k+1}=y_{k+2}yk+1​=yk+2​, and xi=yix_i=y_ixi​=yi​ for every i<k+1i<k+1i<k+1, and is 000 otherwise; and E(x,y)=Tx∣{0,…,k}, y∣{0,…,k}E(x,y)=T_{x|_{\{0,\ldots,k\}},\,y|_{\{0,\ldots,k\}}}E(x,y)=Tx∣{0,…,k}​,y∣{0,…,k}​​ if xk+1=yk+1x_{k+1}=y_{k+1}xk+1​=yk+1​ and xk+2=yk+2x_{k+2}=y_{k+2}xk+2​=yk+2​, and is 000 otherwise. Products are ordinary matrix products in the displayed order. No positivity or normalization condition on TTT is required; k=0k=0k=0 and d=0d=0d=0 are allowed, with complex division by zero defined as zero and with an empty matrix index set when d=0d=0d=0.

QAlgorithms.Papers.Independent.Extend50.P33.etaAlpha

For natural numbers d,kd,kd,k and a Young diagram aaa with k+1k+1k+1 cells and first-column length at most ddd, this defines a complex matrix on words of length k+3k+3k+3 over {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}. The following specifies all its ingredients. For a diagram λ\lambdaλ with rrr cells, use the cell numbering cλ:λ→{0,…,r−1}c_\lambda:\lambda\to\{0,\ldots,r-1\}cλ​:λ→{0,…,r−1} chosen from its cardinality; let Rλ,CλR_\lambda,C_\lambdaRλ​,Cλ​ be the permutations preserving, respectively, the row and column of every numbered cell. On the permutation group SrS_rSr​, form

Yλ(g,h)=∑σ∈Rλ∑τ∈Cλsgn⁡(τ) 1{g=hστ}.Y_\lambda(g,h)= \sum_{\sigma\in R_\lambda}\sum_{\tau\in C_\lambda} \operatorname{sgn}(\tau)\,\mathbf1_{\{g=h\sigma\tau\}}.Yλ​(g,h)=σ∈Rλ​∑​τ∈Cλ​∑​sgn(τ)1{g=hστ}​.

Let Hλ=range⁡YλH_\lambda=\operatorname{range}Y_\lambdaHλ​=rangeYλ​, let QλQ_\lambdaQλ​ be its orthogonal projection, and let Lπ(g,h)=1{g=πh}L_\pi(g,h)=\mathbf1_{\{g=\pi h\}}Lπ​(g,h)=1{g=πh}​. On length-rrr words define

Tπ(y,x)=1{y=x∘π−1},Pλ=dim⁡CHλr!∑π∈Srtr⁡(Lπ−1Qλ) Tπ.T_\pi(y,x)=\mathbf1_{\{y=x\circ\pi^{-1}\}},\qquad P_\lambda=\frac{\dim_{\mathbb C}H_\lambda}{r!} \sum_{\pi\in S_r}\operatorname{tr}(L_{\pi^{-1}}Q_\lambda)\,T_\pi.Tπ​(y,x)=1{y=x∘π−1}​,Pλ​=r!dimC​Hλ​​π∈Sr​∑​tr(Lπ−1​Qλ​)Tπ​.

For a matrix AAA on length-ppp words, its extension Eq(A)E_q(A)Eq​(A) to length p+qp+qp+q has entry A(x<p,y<p)A(x_{<p},y_{<p})A(x<p​,y<p​) if xi=yix_i=y_ixi​=yi​ for every i≥pi\ge pi≥p, and entry zero otherwise. Put r=k+2r=k+2r=k+2. Let Sj=T(j  r−1)S_j=T_{(j\,\,r-1)}Sj​=T(jr−1)​ on length-r+1r+1r+1 words, and let BBB have entry one precisely when xr−1=xrx_{r-1}=x_rxr−1​=xr​, yr−1=yry_{r-1}=y_ryr−1​=yr​, and xi=yix_i=y_ixi​=yi​ for all i∉{r−1,r}i\notin\{r-1,r\}i∈/{r−1,r}, with all other entries zero. The defined matrix is

ηa=∑j=0r−1Sj(E2(Pa)B)Sj.\eta_a=\sum_{j=0}^{r-1}S_j\bigl(E_2(P_a)B\bigr)S_j.ηa​=j=0∑r−1​Sj​(E2​(Pa​)B)Sj​.

The value k=0k=0k=0 is included; no such aaa exists when d=0d=0d=0.

QAlgorithms.Papers.Independent.Extend50.P33.extendPerm

For every natural number rrr and every permutation π\piπ of {0,…,r−1}\{0,\ldots,r-1\}{0,…,r−1}, this defines the permutation π~\widetilde\piπ of {0,…,r}\{0,\ldots,r\}{0,…,r} that sends i<ri<ri<r to π(i)\pi(i)π(i) and fixes rrr. It is obtained by taking the disjoint union of π\piπ with the identity permutation of a singleton and identifying that disjoint union with {0,…,r}\{0,\ldots,r\}{0,…,r} in the usual order. The case r=0r=0r=0 gives the identity permutation of a singleton.

QAlgorithms.Papers.Independent.Extend50.P33.fBlock

For natural numbers d,kd,kd,k, a Young diagram aaa with k+1k+1k+1 cells, and a Young diagram bbb with k+2k+2k+2 cells, both having first-column length at most ddd, this defines the matrix

Fa,b=proj⁡range⁡ηa E1(Pb)F_{a,b}=\operatorname{proj}_{\operatorname{range}\eta_a}\,E_1(P_b)Fa,b​=projrangeηa​​E1​(Pb​)

on length-k+3k+3k+3 words over {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}, with the multiplication in the displayed order. To specify these ingredients, for an rrr-cell diagram λ\lambdaλ use its chosen cell numbering by {0,…,r−1}\{0,\ldots,r-1\}{0,…,r−1}; let Rλ,Cλ⊆SrR_\lambda,C_\lambda\subseteq S_rRλ​,Cλ​⊆Sr​ preserve rows and columns, respectively, and define

Yλ(g,h)=∑σ∈Rλ, τ∈Cλsgn⁡(τ)1{g=hστ},Hλ=range⁡Yλ,Pλ=dim⁡CHλr!∑π∈Srtr⁡(Lπ−1Qλ)Tπ.Y_\lambda(g,h)=\sum_{\sigma\in R_\lambda,\ \tau\in C_\lambda} \operatorname{sgn}(\tau)\mathbf1_{\{g=h\sigma\tau\}}, \quad H_\lambda=\operatorname{range}Y_\lambda, \quad P_\lambda=\frac{\dim_{\mathbb C}H_\lambda}{r!} \sum_{\pi\in S_r}\operatorname{tr}(L_{\pi^{-1}}Q_\lambda)T_\pi.Yλ​(g,h)=σ∈Rλ​, τ∈Cλ​∑​sgn(τ)1{g=hστ}​,Hλ​=rangeYλ​,Pλ​=r!dimC​Hλ​​π∈Sr​∑​tr(Lπ−1​Qλ​)Tπ​.

Here QλQ_\lambdaQλ​ is the orthogonal projection onto HλH_\lambdaHλ​, Lπ(g,h)=1{g=πh}L_\pi(g,h)=\mathbf1_{\{g=\pi h\}}Lπ​(g,h)=1{g=πh}​, and Tπ(y,x)=1{y=x∘π−1}T_\pi(y,x)=\mathbf1_{\{y=x\circ\pi^{-1}\}}Tπ​(y,x)=1{y=x∘π−1}​. The extension Eq(A)E_q(A)Eq​(A) has entry A(x<p,y<p)A(x_{<p},y_{<p})A(x<p​,y<p​) when the final qqq coordinates agree, and zero otherwise, for AAA on length-ppp words. Let SjS_jSj​ interchange coordinates jjj and k+1k+1k+1 of length-k+3k+3k+3 words. Let B(x,y)=1B(x,y)=1B(x,y)=1 precisely when xk+1=xk+2x_{k+1}=x_{k+2}xk+1​=xk+2​, yk+1=yk+2y_{k+1}=y_{k+2}yk+1​=yk+2​, and xi=yix_i=y_ixi​=yi​ for i≤ki\le ki≤k, and let its other entries be zero. Then ηa=∑j=0k+1SjE2(Pa)BSj\eta_a=\sum_{j=0}^{k+1}S_jE_2(P_a)BS_jηa​=∑j=0k+1​Sj​E2​(Pa​)BSj​. No containment relation between aaa and bbb is required. The value k=0k=0k=0 is included; d=0d=0d=0 admits no such diagrams.

QAlgorithms.Papers.Independent.Extend50.P33.fixedOmega

For any natural numbers d,kd,kd,k and any function sss from Young diagrams with k+1k+1k+1 cells and at most ddd rows to diagrams with k+2k+2k+2 cells and at most ddd rows, the definition gives the matrix on [d]k+3[d]^{k+3}[d]k+3

Ωs=∑∣λ∣=k+1at most d rowsd mλms(λ) Prange⁡(ηλ)E1(Πs(λ)).\Omega_s=\sum_{\substack{|\lambda|=k+1\\\text{at most }d\text{ rows}}} \frac{d\,m_\lambda}{m_{s(\lambda)}}\, P_{\operatorname{range}(\eta_\lambda)}E_1(\Pi_{s(\lambda)}).Ωs​=∣λ∣=k+1at most d rows​∑​ms(λ)​dmλ​​Prange(ηλ​)​E1​(Πs(λ)​).

Here [d]={0,…,d−1}[d]=\{0,\ldots,d-1\}[d]={0,…,d−1}, and the coefficients are interpreted in C\mathbb CC. For a diagram ν\nuν with rrr cells, its fixed cell numbering determines row-preserving and column-preserving permutation sets Rν,CνR_\nu,C_\nuRν​,Cν​. With Ug(y,x)=1y=x∘g−1U_g(y,x)=\mathbf1_{y=x\circ g^{-1}}Ug​(y,x)=1y=x∘g−1​, mνm_\numν​ is the complex dimension of the range of ∑α∈Rν,β∈Cνsgn⁡(β)Uαβ\sum_{\alpha\in R_\nu,\beta\in C_\nu}\operatorname{sgn}(\beta)U_{\alpha\beta}∑α∈Rν​,β∈Cν​​sgn(β)Uαβ​. Let SνS_\nuSν​ be the range of the matrix on SrS_rSr​ with entries ∑α,βsgn⁡(β)1g=hαβ\sum_{\alpha,\beta}\operatorname{sgn}(\beta)\mathbf1_{g=h\alpha\beta}∑α,β​sgn(β)1g=hαβ​; writing sν=dim⁡CSνs_\nu=\dim_{\mathbb C}S_\nusν​=dimC​Sν​, Lgeh=eghL_ge_h=e_{gh}Lg​eh​=egh​, and PSνP_{S_\nu}PSν​​ for orthogonal projection, set Πν=(sν/r!)∑gtr⁡(Lg−1PSν)Ug\Pi_\nu=(s_\nu/r!)\sum_g\operatorname{tr}(L_{g^{-1}}P_{S_\nu})U_gΠν​=(sν​/r!)∑g​tr(Lg−1​PSν​​)Ug​. The matrix Eq(H)E_q(H)Eq​(H) applies HHH to the initial coordinates and has an identity on the final qqq coordinates. Also, ηλ=∑a=0k+1SaE2(Πλ)HSa\eta_\lambda=\sum_{a=0}^{k+1}S_aE_2(\Pi_\lambda)HS_aηλ​=∑a=0k+1​Sa​E2​(Πλ​)HSa​, where SaS_aSa​ swaps positions a,k+1a,k+1a,k+1, and H(u,v)=1H(u,v)=1H(u,v)=1 exactly when each of u,vu,vu,v has equal coordinates at positions k+1,k+2k+1,k+2k+1,k+2 and their earlier coordinates agree. The projection Prange⁡(ηλ)P_{\operatorname{range}(\eta_\lambda)}Prange(ηλ​)​ is orthogonal projection onto that matrix’s range. No extension or maximizing property is assumed of sss; zero denominators give zero coefficients, and d=0d=0d=0 gives an empty sum.

QAlgorithms.Papers.Independent.Extend50.P33.fixedOperationalValues

For arbitrary natural numbers d,kd,kd,k, put N=k+2N=k+2N=k+2 and Wr={0,…,d−1}rW_r=\{0,\ldots,d-1\}^rWr​={0,…,d−1}r. This is the set of real numbers ppp for which there exist complex matrices (Ea)a=0N−1(E_a)_{a=0}^{N-1}(Ea​)a=0N−1​ indexed by WN+1W_{N+1}WN+1​ and real numbers (ca)a=0N−1(c_a)_{a=0}^{N-1}(ca​)a=0N−1​ such that

Ea⪰0,I−∑aEa⪰0,ca≥0,∑aca=p,E_a\succeq0,\qquad I-\sum_aE_a\succeq0,\qquad c_a\ge0,\qquad \sum_ac_a=p,Ea​⪰0,I−a∑​Ea​⪰0,ca​≥0,a∑​ca​=p,

and, for every complex d×dd\times dd×d matrix ZZZ and every a,u,va,u,va,u,v,

1dN∑z∈WNza=u∑i,j=0d−1Zij(Ea) z[a←v]⋅j, z⋅i=caZuv.\frac1{d^N}\sum_{\substack{z\in W_N\\z_a=u}} \sum_{i,j=0}^{d-1}Z_{ij} (E_a)_{\,z[a\leftarrow v]\cdot j,\,z\cdot i} =c_aZ_{uv}.dN1​z∈WN​za​=u​∑​i,j=0∑d−1​Zij​(Ea​)z[a←v]⋅j,z⋅i​=ca​Zuv​.

Here x⋅ix\cdot ix⋅i appends iii and z[a←v]z[a\leftarrow v]z[a←v] replaces coordinate aaa; this formula is the specified outcome function with O=IO=IO=I. The definition includes k=0k=0k=0. For d=0d=0d=0, all matrix constraints are vacuous and the set is [0,∞)[0,\infty)[0,∞).

QAlgorithms.Papers.Independent.Extend50.P33.fixedRatioValue

For any natural numbers d,kd,kd,k, including zero, consider Young diagrams λ\lambdaλ with k+1k+1k+1 cells and at most ddd rows. For any diagram ν\nuν with rrr cells, use the fixed bijection between its cells and {0,…,r−1}\{0,\ldots,r-1\}{0,…,r−1}; let Rν,CνR_\nu,C_\nuRν​,Cν​ be the permutations preserving, respectively, each numbered cell’s row and column. Define sνs_\nusν​ as the complex dimension of the range of the matrix indexed by permutations g,h∈Srg,h\in S_rg,h∈Sr​ whose entry is ∑α∈Rν,β∈Cνsgn⁡(β)1g=hαβ\sum_{\alpha\in R_\nu,\beta\in C_\nu}\operatorname{sgn}(\beta)\mathbf1_{g=h\alpha\beta}∑α∈Rν​,β∈Cν​​sgn(β)1g=hαβ​. Define mνm_\numν​ as the complex dimension of the range of ∑α∈Rν,β∈Cνsgn⁡(β)Uαβ\sum_{\alpha\in R_\nu,\beta\in C_\nu}\operatorname{sgn}(\beta)U_{\alpha\beta}∑α∈Rν​,β∈Cν​​sgn(β)Uαβ​ on C[d]r\mathbb C^{[d]^r}C[d]r, where [d]={0,…,d−1}[d]=\{0,\ldots,d-1\}[d]={0,…,d−1} and Uπ(y,x)=1y=x∘π−1U_\pi(y,x)=\mathbf1_{y=x\circ\pi^{-1}}Uπ​(y,x)=1y=x∘π−1​. The definition assigns

1dk+2∑∣λ∣=k+1at most d rowsmλ2 inf⁡{sμmμ: ∣μ∣=k+2, μ has at most d rows, λ.cells⊆μ.cells}.\frac1{d^{k+2}}\sum_{\substack{|\lambda|=k+1\\\text{at most }d\text{ rows}}} m_\lambda^2\, \inf\left\{\frac{s_\mu}{m_\mu}:\ |\mu|=k+2,\ \mu\text{ has at most }d\text{ rows},\ \lambda.\mathrm{cells}\subseteq\mu.\mathrm{cells}\right\}.dk+21​∣λ∣=k+1at most d rows​∑​mλ2​inf{mμ​sμ​​: ∣μ∣=k+2, μ has at most d rows, λ.cells⊆μ.cells}.

The infimum is the real infimum, whose value on the empty set is 000, and division by zero is defined to be 000. In particular, when d=0d=0d=0, the outer sum is empty and the value is 000.

QAlgorithms.Papers.Independent.Extend50.P33.fixedTheta

For every pair of natural numbers d,kd,kd,k, this defines a family of matrices on length-k+1k+1k+1 words over {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}, indexed by j∈{0,…,k+1}j\in\{0,\ldots,k+1\}j∈{0,…,k+1}, whose value is independent of jjj:

Θj=∑a:∣a∣=k+1colLen⁡a(0)≤dd qaPa.\Theta_j=\sum_{\substack{a:\,|a|=k+1\\\operatorname{colLen}_a(0)\le d}} d\,q_a P_a.Θj​=a:∣a∣=k+1colLena​(0)≤d​∑​dqa​Pa​.

All the ingredients of this sum are specified as follows. For an rrr-cell Young diagram λ\lambdaλ, use its chosen numbering by {0,…,r−1}\{0,\ldots,r-1\}{0,…,r−1}; let Rλ,Cλ⊆SrR_\lambda,C_\lambda\subseteq S_rRλ​,Cλ​⊆Sr​ preserve rows and columns. Define

Yλ(g,h)=∑σ∈Rλ, τ∈Cλsgn⁡(τ)1{g=hστ},Hλ=range⁡Yλ,vλ=dim⁡CHλ,Y_\lambda(g,h)=\sum_{\sigma\in R_\lambda,\ \tau\in C_\lambda} \operatorname{sgn}(\tau)\mathbf1_{\{g=h\sigma\tau\}}, \quad H_\lambda=\operatorname{range}Y_\lambda,\quad v_\lambda=\dim_{\mathbb C}H_\lambda,Yλ​(g,h)=σ∈Rλ​, τ∈Cλ​∑​sgn(τ)1{g=hστ}​,Hλ​=rangeYλ​,vλ​=dimC​Hλ​, Tπ(y,x)=1{y=x∘π−1},uλ=dim⁡Crange⁡(∑σ∈Rλ, τ∈Cλsgn⁡(τ)Tστ),Pλ=vλr!∑π∈Srtr⁡(Lπ−1Qλ)Tπ,T_\pi(y,x)=\mathbf1_{\{y=x\circ\pi^{-1}\}},\quad u_\lambda=\dim_{\mathbb C}\operatorname{range} \left(\sum_{\sigma\in R_\lambda,\ \tau\in C_\lambda} \operatorname{sgn}(\tau)T_{\sigma\tau}\right),\quad P_\lambda=\frac{v_\lambda}{r!} \sum_{\pi\in S_r}\operatorname{tr}(L_{\pi^{-1}}Q_\lambda)T_\pi,Tπ​(y,x)=1{y=x∘π−1}​,uλ​=dimC​range​σ∈Rλ​, τ∈Cλ​∑​sgn(τ)Tστ​​,Pλ​=r!vλ​​π∈Sr​∑​tr(Lπ−1​Qλ​)Tπ​,

where TπT_\piTπ​ acts on length-rrr words, QλQ_\lambdaQλ​ is the orthogonal projection onto HλH_\lambdaHλ​, and Lπ(g,h)=1{g=πh}L_\pi(g,h)=\mathbf1_{\{g=\pi h\}}Lπ​(g,h)=1{g=πh}​. Let Eq(A)E_q(A)Eq​(A) extend AAA by equality of the final qqq coordinates, with entry zero when they differ. On length-k+3k+3k+3 words let SℓS_\ellSℓ​ swap coordinates ℓ,k+1\ell,k+1ℓ,k+1, and let B(x,y)=1B(x,y)=1B(x,y)=1 exactly when xk+1=xk+2x_{k+1}=x_{k+2}xk+1​=xk+2​, yk+1=yk+2y_{k+1}=y_{k+2}yk+1​=yk+2​, and xi=yix_i=y_ixi​=yi​ for i≤ki\le ki≤k, with other entries zero. Then

ηa=∑ℓ=0k+1SℓE2(Pa)BSℓ,λa,b=Re⁡tr⁡(E1(Pb)ηa)uavb,qa=inf⁡∣b∣=k+2, colLen⁡b(0)≤dcells⁡(a)⊆cells⁡(b)1λa,b.\eta_a=\sum_{\ell=0}^{k+1}S_\ell E_2(P_a)BS_\ell,\qquad \lambda_{a,b}=\frac{\operatorname{Re}\operatorname{tr}(E_1(P_b)\eta_a)}{u_a v_b}, \qquad q_a=\inf_{\substack{|b|=k+2,\ \operatorname{colLen}_b(0)\le d\\ \operatorname{cells}(a)\subseteq\operatorname{cells}(b)}} \frac1{\lambda_{a,b}}.ηa​=ℓ=0∑k+1​Sℓ​E2​(Pa​)BSℓ​,λa,b​=ua​vb​Retr(E1​(Pb​)ηa​)​,qa​=∣b∣=k+2, colLenb​(0)≤dcells(a)⊆cells(b)​inf​λa,b​1​.

Scalars in Θj\Theta_jΘj​ are embedded into C\mathbb CC. Division by zero and the real infimum of an empty set both take value zero. The case k=0k=0k=0 is included; for d=0d=0d=0 the sum defining Θj\Theta_jΘj​ is empty and gives the zero matrix.

QAlgorithms.Papers.Independent.Extend50.P33.fixedValue

For arbitrary natural numbers d,kd,kd,k, this defines the real number

k+2d k+2∑a:∣a∣=k+1colLen⁡a(0)≤duavaqa,\frac{k+2}{d^{\,k+2}} \sum_{\substack{a:\,|a|=k+1\\\operatorname{colLen}_a(0)\le d}} u_a v_a q_a,dk+2k+2​a:∣a∣=k+1colLena​(0)≤d​∑​ua​va​qa​,

with the following complete specification of its ingredients. For any rrr-cell Young diagram λ\lambdaλ of first-column length at most ddd, use its chosen numbering by {0,…,r−1}\{0,\ldots,r-1\}{0,…,r−1}; let Rλ,Cλ⊆SrR_\lambda,C_\lambda\subseteq S_rRλ​,Cλ​⊆Sr​ preserve rows and columns, and put

Yλ(g,h)=∑σ∈Rλ, τ∈Cλsgn⁡(τ)1{g=hστ},Hλ=range⁡Yλ,vλ=dim⁡CHλ.Y_\lambda(g,h)=\sum_{\sigma\in R_\lambda,\ \tau\in C_\lambda} \operatorname{sgn}(\tau)\mathbf1_{\{g=h\sigma\tau\}}, \quad H_\lambda=\operatorname{range}Y_\lambda,\quad v_\lambda=\dim_{\mathbb C}H_\lambda.Yλ​(g,h)=σ∈Rλ​, τ∈Cλ​∑​sgn(τ)1{g=hστ}​,Hλ​=rangeYλ​,vλ​=dimC​Hλ​.

On length-rrr words over {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}, define

Tπ(y,x)=1{y=x∘π−1},uλ=dim⁡Crange⁡(∑σ∈Rλ, τ∈Cλsgn⁡(τ)Tστ),Pλ=vλr!∑π∈Srtr⁡(Lπ−1Qλ)Tπ,T_\pi(y,x)=\mathbf1_{\{y=x\circ\pi^{-1}\}},\qquad u_\lambda=\dim_{\mathbb C}\operatorname{range} \left(\sum_{\sigma\in R_\lambda,\ \tau\in C_\lambda} \operatorname{sgn}(\tau)T_{\sigma\tau}\right),\qquad P_\lambda=\frac{v_\lambda}{r!} \sum_{\pi\in S_r}\operatorname{tr}(L_{\pi^{-1}}Q_\lambda)T_\pi,Tπ​(y,x)=1{y=x∘π−1}​,uλ​=dimC​range​σ∈Rλ​, τ∈Cλ​∑​sgn(τ)Tστ​​,Pλ​=r!vλ​​π∈Sr​∑​tr(Lπ−1​Qλ​)Tπ​,

where QλQ_\lambdaQλ​ is the orthogonal projection onto HλH_\lambdaHλ​ and Lπ(g,h)=1{g=πh}L_\pi(g,h)=\mathbf1_{\{g=\pi h\}}Lπ​(g,h)=1{g=πh}​. Let Eq(A)E_q(A)Eq​(A) extend AAA by equality of the final qqq coordinates, with entry zero otherwise. On length-k+3k+3k+3 words let SjS_jSj​ interchange coordinates j,k+1j,k+1j,k+1, and let B(x,y)=1B(x,y)=1B(x,y)=1 exactly when xk+1=xk+2x_{k+1}=x_{k+2}xk+1​=xk+2​, yk+1=yk+2y_{k+1}=y_{k+2}yk+1​=yk+2​, and xi=yix_i=y_ixi​=yi​ for i≤ki\le ki≤k, and zero otherwise. Finally set

ηa=∑j=0k+1SjE2(Pa)BSj,λa,b=Re⁡tr⁡(E1(Pb)ηa)uavb,qa=inf⁡∣b∣=k+2, colLen⁡b(0)≤dcells⁡(a)⊆cells⁡(b)1λa,b.\eta_a=\sum_{j=0}^{k+1}S_jE_2(P_a)BS_j,\qquad \lambda_{a,b}= \frac{\operatorname{Re}\operatorname{tr}(E_1(P_b)\eta_a)}{u_a v_b}, \qquad q_a=\inf_{\substack{|b|=k+2,\ \operatorname{colLen}_b(0)\le d\\ \operatorname{cells}(a)\subseteq\operatorname{cells}(b)}} \frac1{\lambda_{a,b}}.ηa​=j=0∑k+1​Sj​E2​(Pa​)BSj​,λa,b​=ua​vb​Retr(E1​(Pb​)ηa​)​,qa​=∣b∣=k+2, colLenb​(0)≤dcells(a)⊆cells(b)​inf​λa,b​1​.

Dimensions and natural-number factors are converted to real numbers in the defining scalar expression. Division by zero and the real infimum of an empty set take value zero. This definition supplies the displayed scalar without an optimization assertion. It includes k=0k=0k=0; for d=0d=0d=0 its diagram sum is empty and its value is zero.

QAlgorithms.Papers.Independent.Extend50.P33.fixedValues

For arbitrary natural numbers d,kd,kd,k, this defines the set of real numbers

{∑j=0k+1Re⁡tr⁡(Tj)d k+3: (∀j, Tj⪰0), I−∑j=0k+1Sj(1d B E2(Tj))Sj⪰0},\left\{ \frac{\sum_{j=0}^{k+1}\operatorname{Re}\operatorname{tr}(T_j)}{d^{\,k+3}}: \ (\forall j,\ T_j\succeq0),\ I-\sum_{j=0}^{k+1}S_j\left(\frac1d\,B\,E_2(T_j)\right)S_j\succeq0 \right\},{dk+3∑j=0k+1​Retr(Tj​)​: (∀j, Tj​⪰0), I−j=0∑k+1​Sj​(d1​BE2​(Tj​))Sj​⪰0},

where each TjT_jTj​ is a complex matrix on length-k+1k+1k+1 words over {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}. In the second inequality the matrices act on length-k+3k+3k+3 words, SjS_jSj​ interchanges coordinates j,k+1j,k+1j,k+1, and E2(Tj)(x,y)E_2(T_j)(x,y)E2​(Tj​)(x,y) equals Tj(x<k+1,y<k+1)T_j(x_{<k+1},y_{<k+1})Tj​(x<k+1​,y<k+1​) when the final two coordinates agree between x,yx,yx,y, and zero otherwise. The matrix BBB has entry one exactly when xk+1=xk+2x_{k+1}=x_{k+2}xk+1​=xk+2​, yk+1=yk+2y_{k+1}=y_{k+2}yk+1​=yk+2​, and xi=yix_i=y_ixi​=yi​ for i≤ki\le ki≤k, and entry zero otherwise. Thus membership requires the existence of such a family and equality to its displayed trace ratio. Both complex and real divisions use zero as the value of division by zero. The case k=0k=0k=0 is included, and d=0d=0d=0 gives the singleton set {0}\{0\}{0}.

QAlgorithms.Papers.Independent.Extend50.P33.fourierSubgroup

For arbitrary natural numbers d,kd,kd,k, a Young diagram λ\lambdaλ with N=k+2N=k+2N=k+2 cells and at most ddd rows, and indices i,j<sλi,j<s_\lambdai,j<sλ​, this defines the matrix on words x,y∈{0,…,d−1}Nx,y\in\{0,\ldots,d-1\}^{N}x,y∈{0,…,d−1}N

Fλ,i,j=∑π∈SN−1⟨ej, PλLπ−1~ei⟩Tπ~.F_{\lambda,i,j} =\sum_{\pi\in S_{N-1}} \left\langle e_j,\, P_\lambda L_{\widetilde{\pi^{-1}}}e_i\right\rangle T_{\widetilde\pi}.Fλ,i,j​=π∈SN−1​∑​⟨ej​,Pλ​Lπ−1​ei​⟩Tπ​.

Here π~\widetilde\piπ acts as π\piπ on positions 0,…,N−20,\ldots,N-20,…,N−2 and fixes position N−1N-1N−1; (Tg)y,x=1{y=x∘g−1}(T_g)_{y,x}=\mathbf1_{\{y=x\circ g^{-1}\}}(Tg​)y,x​=1{y=x∘g−1}​, and (Lg)h,t=1{h=gt}(L_g)_{h,t}=\mathbf1_{\{h=gt\}}(Lg​)h,t​=1{h=gt}​. To define the space, projection, dimension, and basis in the coefficient, use the supplied bijective numbering of the cells of λ\lambdaλ; let Rλ,Cλ⊆SNR_\lambda,C_\lambda\subseteq S_NRλ​,Cλ​⊆SN​ consist respectively of permutations preserving each numbered cell’s row and column; and define

(Yλ)g,h=∑u∈Rλ∑v∈Cλsgn⁡(v)1{g=huv}.(Y_\lambda)_{g,h} =\sum_{u\in R_\lambda}\sum_{v\in C_\lambda} \operatorname{sgn}(v)\mathbf1_{\{g=huv\}}.(Yλ​)g,h​=u∈Rλ​∑​v∈Cλ​∑​sgn(v)1{g=huv}​.

Then the space is range⁡Yλ⊆CSN\operatorname{range}Y_\lambda\subseteq\mathbb C^{S_N}rangeYλ​⊆CSN​, sλs_\lambdasλ​ is its complex dimension, PλP_\lambdaPλ​ is its orthogonal projection, and (eℓ)ℓ<sλ(e_\ell)_{\ell<s_\lambda}(eℓ​)ℓ<sλ​​ is the supplied chosen orthonormal basis of that space, viewed in the ambient coordinate space. The inner product conjugates its first argument; the coefficient uses row jjj and column iii. No additional assumptions on d,kd,kd,k are imposed, but if there is no such diagram or if sλ=0s_\lambda=0sλ​=0, the corresponding diagram or index arguments cannot be supplied.

QAlgorithms.Papers.Independent.Extend50.P33.joinWord

For natural numbers d,p,qd,p,qd,p,q, a length-ppp word xxx and a length-qqq word zzz, both over {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}, joinWord⁡(x,z)\operatorname{joinWord}(x,z)joinWord(x,z) is the length-(p+q)(p+q)(p+q) word given at each index 0≤i<p+q0\le i<p+q0≤i<p+q by

joinWord⁡(x,z)i={xi,i<p,zi−p,p≤i.\operatorname{joinWord}(x,z)_i= \begin{cases} x_i,&i<p,\\ z_{i-p},&p\le i. \end{cases}joinWord(x,z)i​={xi​,zi−p​,​i<p,p≤i.​

The subtraction in the second branch is natural-number subtraction, used only where i≥pi\ge pi≥p. Either length may be zero, in which case the corresponding segment is empty; a word of positive length over an alphabet of size 000 does not exist.

QAlgorithms.Papers.Independent.Extend50.P33.jointFailure

For every pair of natural numbers d,kd,kd,k, put N=k+2N=k+2N=k+2 and Wr={0,…,d−1}rW_r=\{0,\ldots,d-1\}^{r}Wr​={0,…,d−1}r. This defines the matrix on WN+1W_{N+1}WN+1​

I−∑a=0N−1C Va(1dBN−1(T⊗Id2))Va C,C=O−1⊗Id.I-\sum_{a=0}^{N-1}C\,V_a\left(\frac1d B_{N-1}(T\otimes I_{d^2})\right)V_a\,C, \qquad C=O^{-1}\otimes I_d.I−a=0∑N−1​CVa​(d1​BN−1​(T⊗Id2​))Va​C,C=O−1⊗Id​.

Here VaV_aVa​ swaps word positions a,N−1a,N-1a,N−1; (Bj)x,y=1(B_j)_{x,y}=1(Bj​)x,y​=1 exactly when xj=xNx_j=x_Nxj​=xN​, yj=yNy_j=y_Nyj​=yN​, and xi=yix_i=y_ixi​=yi​ for all i≠j,Ni\ne j,Ni=j,N, and is zero otherwise. Appended identity factors leave the appended coordinates unchanged. Define

O=cfc⁡(⋅,X),X=∑∣λ∣=NdNmλZNsλJλ,T=∑∣μ∣=N−1dN+1mμZNNsμJμ,ZN=∑∣λ∣=Nmλ2,O=\operatorname{cfc}(\sqrt{\cdot},X),\quad X=\sum_{|\lambda|=N}\frac{d^Nm_\lambda}{Z_Ns_\lambda}J_\lambda,\quad T=\sum_{|\mu|=N-1}\frac{d^{N+1}m_\mu}{Z_NNs_\mu}J_\mu,\quad Z_N=\sum_{|\lambda|=N}m_\lambda^2,O=cfc(⋅​,X),X=∣λ∣=N∑​ZN​sλ​dNmλ​​Jλ​,T=∣μ∣=N−1∑​ZN​Nsμ​dN+1mμ​​Jμ​,ZN​=∣λ∣=N∑​mλ2​,

where diagrams have at most ddd rows. For completeness, for each diagram ν\nuν of size rrr, the supplied numbering of its cells defines row-preserving and column-preserving permutation sets Rν,CνR_\nu,C_\nuRν​,Cν​. With (Tπ)y,x=1{y=x∘π−1}(T_\pi)_{y,x}=\mathbf1_{\{y=x\circ\pi^{-1}\}}(Tπ​)y,x​=1{y=x∘π−1}​, let

(Yν)g,h=∑u∈Rν∑v∈Cνsgn⁡(v)1{g=huv},Zν=∑u∈Rν∑v∈Cνsgn⁡(v)Tuv.(Y_\nu)_{g,h}=\sum_{u\in R_\nu}\sum_{v\in C_\nu} \operatorname{sgn}(v)\mathbf1_{\{g=huv\}},\qquad Z_\nu=\sum_{u\in R_\nu}\sum_{v\in C_\nu}\operatorname{sgn}(v)T_{uv}.(Yν​)g,h​=u∈Rν​∑​v∈Cν​∑​sgn(v)1{g=huv}​,Zν​=u∈Rν​∑​v∈Cν​∑​sgn(v)Tuv​.

Then sν=dim⁡Crange⁡Yνs_\nu=\dim_{\mathbb C}\operatorname{range}Y_\nusν​=dimC​rangeYν​, mν=dim⁡Crange⁡Zνm_\nu=\dim_{\mathbb C}\operatorname{range}Z_\numν​=dimC​rangeZν​, and Jν=(sν/r!)∑πTr⁡(Lπ−1Pν)TπJ_\nu=(s_\nu/r!)\sum_\pi\operatorname{Tr}(L_{\pi^{-1}}P_\nu)T_\piJν​=(sν​/r!)∑π​Tr(Lπ−1​Pν​)Tπ​, where PνP_\nuPν​ is the orthogonal projection onto range⁡Yν\operatorname{range}Y_\nurangeYν​ and (Lπ)g,h=1{g=πh}(L_\pi)_{g,h}=\mathbf1_{\{g=\pi h\}}(Lπ​)g,h​=1{g=πh}​. This is a definition by subtraction and does not assert that the resulting matrix is positive semidefinite. Singular matrix inverses and scalar inverses of zero are zero. The case d=0d=0d=0 is included and gives a matrix on an empty index set.

QAlgorithms.Papers.Independent.Extend50.P33.jointO

For any natural numbers d,kd,kd,k, the definition assigns f(Xd,k)f(X_{d,k})f(Xd,k​) through the continuous functional calculus for f(t)=tf(t)=\sqrt tf(t)=t​, where

Xd,k=∑∣λ∣=k+2at most d rowsdk+2∑∣μ∣=k+2, at most d rowsmμ2 mλsλ ΠλX_{d,k}= \sum_{\substack{|\lambda|=k+2\\\text{at most }d\text{ rows}}} \frac{d^{k+2}}{\sum_{|\mu|=k+2,\ \text{at most }d\text{ rows}}m_\mu^2} \,\frac{m_\lambda}{s_\lambda}\,\Pi_\lambdaXd,k​=∣λ∣=k+2at most d rows​∑​∑∣μ∣=k+2, at most d rows​mμ2​dk+2​sλ​mλ​​Πλ​

is a complex matrix on [d]k+2[d]^{k+2}[d]k+2, with [d]={0,…,d−1}[d]=\{0,\ldots,d-1\}[d]={0,…,d−1}. For each diagram ν\nuν with rrr cells, its fixed numbering determines row-preserving and column-preserving permutation sets Rν,CνR_\nu,C_\nuRν​,Cν​; writing Ug(y,x)=1y=x∘g−1U_g(y,x)=\mathbf1_{y=x\circ g^{-1}}Ug​(y,x)=1y=x∘g−1​, mνm_\numν​ is the complex dimension of the range of ∑α∈Rν,β∈Cνsgn⁡(β)Uαβ\sum_{\alpha\in R_\nu,\beta\in C_\nu}\operatorname{sgn}(\beta)U_{\alpha\beta}∑α∈Rν​,β∈Cν​​sgn(β)Uαβ​. Let SνS_\nuSν​ be the range of the permutation-indexed matrix with entries ∑α,βsgn⁡(β)1g=hαβ\sum_{\alpha,\beta}\operatorname{sgn}(\beta)\mathbf1_{g=h\alpha\beta}∑α,β​sgn(β)1g=hαβ​, put sν=dim⁡CSνs_\nu=\dim_{\mathbb C}S_\nusν​=dimC​Sν​, and define Πν=(sν/r!)∑gtr⁡(Lg−1PSν)Ug\Pi_\nu=(s_\nu/r!)\sum_g\operatorname{tr}(L_{g^{-1}}P_{S_\nu})U_gΠν​=(sν​/r!)∑g​tr(Lg−1​PSν​​)Ug​, where Lgeh=eghL_ge_h=e_{gh}Lg​eh​=egh​ and PSνP_{S_\nu}PSν​​ is orthogonal projection. The scalar divisions in Xd,kX_{d,k}Xd,k​ occur in C\mathbb CC, with zero denominators giving 000. The definition includes d=0d=0d=0, yielding the matrix on an empty index set, and separately asserts no identity concerning the square or positivity of its result.

QAlgorithms.Papers.Independent.Extend50.P33.jointOmega

For all natural numbers d,kd,kd,k, put N=k+2N=k+2N=k+2. This defines a matrix on words x,y∈{0,…,d−1}N+1x,y\in\{0,\ldots,d-1\}^{N+1}x,y∈{0,…,d−1}N+1 by

(Ωd,k)x,y=dN+d2−1∑a=0N−11{ xa=xN, ya=yN, ∀i≠a,N, xi=yi }.(\Omega_{d,k})_{x,y} =\frac{d}{N+d^2-1} \sum_{a=0}^{N-1} \mathbf1_{\{\,x_a=x_N,\ y_a=y_N,\ \forall i\ne a,N,\ x_i=y_i\,\}}.(Ωd,k​)x,y​=N+d2−1d​a=0∑N−1​1{xa​=xN​, ya​=yN​, ∀i=a,N, xi​=yi​}​.

Thus each summand is the matrix whose entry is one when the displayed coordinate equalities hold and zero otherwise. The denominator N+d2−1=k+1+d2N+d^2-1=k+1+d^2N+d2−1=k+1+d2 is positive for all permitted d,kd,kd,k. No positivity, trace, or normalization property is asserted. The definition includes d=0d=0d=0, when there are no indexing words.

QAlgorithms.Papers.Independent.Extend50.P33.jointOperationalValues

For arbitrary natural numbers d,kd,kd,k, put N=k+2N=k+2N=k+2 and Wr={0,…,d−1}rW_r=\{0,\ldots,d-1\}^rWr​={0,…,d−1}r. This is the set of real numbers ppp for which there exist a complex matrix OOO indexed by WNW_NWN​, complex matrices (Ea)a=0N−1(E_a)_{a=0}^{N-1}(Ea​)a=0N−1​ indexed by WN+1W_{N+1}WN+1​, and real numbers ca≥0c_a\ge0ca​≥0 such that

Tr⁡(O†O)=dN,Ea⪰0,I−∑aEa⪰0,∑aca=p,\operatorname{Tr}(O^\dagger O)=d^N,\qquad E_a\succeq0,\qquad I-\sum_aE_a\succeq0,\qquad \sum_ac_a=p,Tr(O†O)=dN,Ea​⪰0,I−a∑​Ea​⪰0,a∑​ca​=p,

and, for every complex d×dd\times dd×d matrix ZZZ, every aaa, and 0≤u,v<d0\le u,v<d0≤u,v<d,

1dN∑z∈WNza=u∑x,y∈WN∑i,j=0d−1OxzOy,z[a←v]‾Zij(Ea) y⋅j, x⋅i=caZuv.\frac1{d^N} \sum_{\substack{z\in W_N\\z_a=u}} \sum_{x,y\in W_N}\sum_{i,j=0}^{d-1} O_{xz}\overline{O_{y,z[a\leftarrow v]}}Z_{ij} (E_a)_{\,y\cdot j,\,x\cdot i} =c_aZ_{uv}.dN1​z∈WN​za​=u​∑​x,y∈WN​∑​i,j=0∑d−1​Oxz​Oy,z[a←v]​​Zij​(Ea​)y⋅j,x⋅i​=ca​Zuv​.

Here x⋅ix\cdot ix⋅i appends iii and z[a←v]z[a\leftarrow v]z[a←v] replaces coordinate aaa. No positivity or invertibility of OOO is required. The definition includes k=0k=0k=0; for d=0d=0d=0, the trace condition is 0=00=00=0, the matrix equalities are vacuous, and the set is [0,∞)[0,\infty)[0,∞).

QAlgorithms.Papers.Independent.Extend50.P33.jointPhysical

For all natural numbers d,kd,kd,k and every a∈{0,…,k+1}a\in\{0,\ldots,k+1\}a∈{0,…,k+1}, put N=k+2N=k+2N=k+2 and Wr={0,…,d−1}rW_r=\{0,\ldots,d-1\}^{r}Wr​={0,…,d−1}r. This defines the matrix on WN+1W_{N+1}WN+1​

C Va(1dBN−1(T⊗Id2))Va C,C=O−1⊗Id,C\,V_a\left(\frac1d B_{N-1}(T\otimes I_{d^2})\right)V_a\,C, \qquad C=O^{-1}\otimes I_d,CVa​(d1​BN−1​(T⊗Id2​))Va​C,C=O−1⊗Id​,

where VaV_aVa​ permutes word coordinates by swapping positions aaa and N−1N-1N−1, leaving position NNN unchanged. For any j<Nj<Nj<N, the entry (Bj)x,y(B_j)_{x,y}(Bj​)x,y​ is 111 precisely when xj=xNx_j=x_Nxj​=xN​, yj=yNy_j=y_Nyj​=yN​, and xi=yix_i=y_ixi​=yi​ for every position other than j,Nj,Nj,N, and is 000 otherwise. The tensor extensions act on the initial positions and leave the appended positions unchanged. The remaining matrices are

O=cfc⁡(⋅,X),X=∑λ: ∣λ∣=NdNmλZNsλJλ,T=∑μ: ∣μ∣=N−1dN+1mμZNNsμJμ,ZN=∑λ: ∣λ∣=Nmλ2,O=\operatorname{cfc}(\sqrt{\cdot},X),\quad X=\sum_{\lambda:\,|\lambda|=N}\frac{d^Nm_\lambda}{Z_Ns_\lambda}J_\lambda,\quad T=\sum_{\mu:\,|\mu|=N-1}\frac{d^{N+1}m_\mu}{Z_NNs_\mu}J_\mu,\quad Z_N=\sum_{\lambda:\,|\lambda|=N}m_\lambda^2,O=cfc(⋅​,X),X=λ:∣λ∣=N∑​ZN​sλ​dNmλ​​Jλ​,T=μ:∣μ∣=N−1∑​ZN​Nsμ​dN+1mμ​​Jμ​,ZN​=λ:∣λ∣=N∑​mλ2​,

with all diagrams restricted to at most ddd rows. To specify these ingredients fully, for a diagram ν\nuν with rrr cells use the supplied cell numbering, let Rν,CνR_\nu,C_\nuRν​,Cν​ be the permutations preserving the row and column of each cell, let (Tπ)y,x=1{y=x∘π−1}(T_\pi)_{y,x}=\mathbf1_{\{y=x\circ\pi^{-1}\}}(Tπ​)y,x​=1{y=x∘π−1}​, and set

(Yν)g,h=∑u∈Rν∑v∈Cνsgn⁡(v)1{g=huv},Zν=∑u∈Rν∑v∈Cνsgn⁡(v)Tuv.(Y_\nu)_{g,h}=\sum_{u\in R_\nu}\sum_{v\in C_\nu} \operatorname{sgn}(v)\mathbf1_{\{g=huv\}},\qquad Z_\nu=\sum_{u\in R_\nu}\sum_{v\in C_\nu}\operatorname{sgn}(v)T_{uv}.(Yν​)g,h​=u∈Rν​∑​v∈Cν​∑​sgn(v)1{g=huv}​,Zν​=u∈Rν​∑​v∈Cν​∑​sgn(v)Tuv​.

Here sν=dim⁡Crange⁡Yνs_\nu=\dim_{\mathbb C}\operatorname{range}Y_\nusν​=dimC​rangeYν​, mν=dim⁡Crange⁡Zνm_\nu=\dim_{\mathbb C}\operatorname{range}Z_\numν​=dimC​rangeZν​, and Jν=(sν/r!)∑πTr⁡(Lπ−1Pν)TπJ_\nu=(s_\nu/r!)\sum_\pi\operatorname{Tr}(L_{\pi^{-1}}P_\nu)T_\piJν​=(sν​/r!)∑π​Tr(Lπ−1​Pν​)Tπ​, where PνP_\nuPν​ projects orthogonally onto range⁡Yν\operatorname{range}Y_\nurangeYν​ and (Lπ)g,h=1{g=πh}(L_\pi)_{g,h}=\mathbf1_{\{g=\pi h\}}(Lπ​)g,h​=1{g=πh}​. The inverse O−1O^{-1}O−1 is the total matrix inverse, which is zero when OOO is singular; scalar division by zero is also zero. No positivity or measurement property is asserted. The definition includes d=0d=0d=0, when its matrix index set is empty.

QAlgorithms.Papers.Independent.Extend50.P33.jointTheta

For any natural numbers d,kd,kd,k, the definition gives a family indexed by i∈{0,…,k+1}i\in\{0,\ldots,k+1\}i∈{0,…,k+1}, constant in iii, of complex matrices on [d]k+1[d]^{k+1}[d]k+1:

Θi=∑∣λ∣=k+1at most d rowsdk+3∑∣μ∣=k+2, at most d rowsmμ2 mλ(k+2)sλ Πλ.\Theta_i= \sum_{\substack{|\lambda|=k+1\\\text{at most }d\text{ rows}}} \frac{d^{k+3}}{\sum_{|\mu|=k+2,\ \text{at most }d\text{ rows}}m_\mu^2} \,\frac{m_\lambda}{(k+2)s_\lambda}\,\Pi_\lambda.Θi​=∣λ∣=k+1at most d rows​∑​∑∣μ∣=k+2, at most d rows​mμ2​dk+3​(k+2)sλ​mλ​​Πλ​.

For a diagram ν\nuν with rrr cells, its fixed cell numbering determines row-preserving and column-preserving permutations Rν,CνR_\nu,C_\nuRν​,Cν​. Set Ug(y,x)=1y=x∘g−1U_g(y,x)=\mathbf1_{y=x\circ g^{-1}}Ug​(y,x)=1y=x∘g−1​ on [d]r[d]^r[d]r, where [d]={0,…,d−1}[d]=\{0,\ldots,d-1\}[d]={0,…,d−1}, and let mνm_\numν​ be the complex dimension of the range of ∑α∈Rν,β∈Cνsgn⁡(β)Uαβ\sum_{\alpha\in R_\nu,\beta\in C_\nu}\operatorname{sgn}(\beta)U_{\alpha\beta}∑α∈Rν​,β∈Cν​​sgn(β)Uαβ​. Let SνS_\nuSν​ be the range of the matrix on SrS_rSr​ whose (g,h)(g,h)(g,h)-entry is ∑α,βsgn⁡(β)1g=hαβ\sum_{\alpha,\beta}\operatorname{sgn}(\beta)\mathbf1_{g=h\alpha\beta}∑α,β​sgn(β)1g=hαβ​, and put sν=dim⁡CSνs_\nu=\dim_{\mathbb C}S_\nusν​=dimC​Sν​. With PSνP_{S_\nu}PSν​​ its orthogonal projection and Lgeh=eghL_ge_h=e_{gh}Lg​eh​=egh​, define Πν=(sν/r!)∑gtr⁡(Lg−1PSν)Ug\Pi_\nu=(s_\nu/r!)\sum_g\operatorname{tr}(L_{g^{-1}}P_{S_\nu})U_gΠν​=(sν​/r!)∑g​tr(Lg−1​PSν​​)Ug​. The coefficients are complex scalars, and division by zero is 000. No feasibility claim is included; for d=0d=0d=0, each matrix is an empty sum.

QAlgorithms.Papers.Independent.Extend50.P33.jointValues

For any natural numbers d,kd,kd,k, this is the set of real numbers

{∑a=0k+1Re⁡tr⁡Tadk+3: X⪰0, tr⁡X=dk+2, Ta⪰0 for all a, E1(X)−∑a=0k+1SaB E2(Ta)Sa⪰0},\left\{ \frac{\sum_{a=0}^{k+1}\operatorname{Re}\operatorname{tr}T_a}{d^{k+3}} :\ X\succeq0,\ \operatorname{tr}X=d^{k+2},\ T_a\succeq0\text{ for all }a,\ E_1(X)-\sum_{a=0}^{k+1}S_aB\,E_2(T_a)S_a\succeq0 \right\},{dk+3∑a=0k+1​RetrTa​​: X⪰0, trX=dk+2, Ta​⪰0 for all a, E1​(X)−a=0∑k+1​Sa​BE2​(Ta​)Sa​⪰0},

where XXX ranges over complex matrices on [d]k+2[d]^{k+2}[d]k+2, TaT_aTa​ over complex matrices on [d]k+1[d]^{k+1}[d]k+1, and [d]={0,…,d−1}[d]=\{0,\ldots,d-1\}[d]={0,…,d−1}. The extension Eq(H)E_q(H)Eq​(H) acts as HHH on the initial coordinates and as the identity on the final qqq coordinates. The permutation matrix SaS_aSa​ swaps positions a,k+1a,k+1a,k+1 of a length-k+3k+3k+3 word. The entry B(u,v)B(u,v)B(u,v) is 1/d1/d1/d if uk+1=uk+2u_{k+1}=u_{k+2}uk+1​=uk+2​, vk+1=vk+2v_{k+1}=v_{k+2}vk+1​=vk+2​, and all earlier coordinates of u,vu,vu,v agree, and is 000 otherwise. The trace constraint is a complex equality, and division by zero is 000. Thus d=0d=0d=0 is included and gives the set {0}\{0\}{0}; the definition takes neither a maximum nor a supremum of this set.

QAlgorithms.Papers.Independent.Extend50.P33.jointX

For any natural numbers d,kd,kd,k, the definition gives the complex matrix indexed by [d]k+2[d]^{k+2}[d]k+2

Xd,k=∑∣λ∣=k+2at most d rowsdk+2∑∣μ∣=k+2, at most d rowsmμ2 mλsλ Πλ.X_{d,k}=\sum_{\substack{|\lambda|=k+2\\\text{at most }d\text{ rows}}} \frac{d^{k+2}}{\sum_{|\mu|=k+2,\ \text{at most }d\text{ rows}}m_\mu^2} \,\frac{m_\lambda}{s_\lambda}\,\Pi_\lambda.Xd,k​=∣λ∣=k+2at most d rows​∑​∑∣μ∣=k+2, at most d rows​mμ2​dk+2​sλ​mλ​​Πλ​.

To specify these quantities, for a diagram ν\nuν with rrr cells use its fixed cell numbering and let Rν,Cν⊆SrR_\nu,C_\nu\subseteq S_rRν​,Cν​⊆Sr​ preserve rows and columns. On words over [d]={0,…,d−1}[d]=\{0,\ldots,d-1\}[d]={0,…,d−1}, put Ug(y,x)=1y=x∘g−1U_g(y,x)=\mathbf1_{y=x\circ g^{-1}}Ug​(y,x)=1y=x∘g−1​; mνm_\numν​ is the complex dimension of the range of ∑α∈Rν,β∈Cνsgn⁡(β)Uαβ\sum_{\alpha\in R_\nu,\beta\in C_\nu}\operatorname{sgn}(\beta)U_{\alpha\beta}∑α∈Rν​,β∈Cν​​sgn(β)Uαβ​. Let SνS_\nuSν​ be the range of the matrix indexed by g,h∈Srg,h\in S_rg,h∈Sr​ with entries ∑α,βsgn⁡(β)1g=hαβ\sum_{\alpha,\beta}\operatorname{sgn}(\beta)\mathbf1_{g=h\alpha\beta}∑α,β​sgn(β)1g=hαβ​, and set sν=dim⁡CSνs_\nu=\dim_{\mathbb C}S_\nusν​=dimC​Sν​. If PSνP_{S_\nu}PSν​​ is orthogonal projection and Lgeh=eghL_ge_h=e_{gh}Lg​eh​=egh​, then Πν=(sν/r!)∑gtr⁡(Lg−1PSν)Ug\Pi_\nu=(s_\nu/r!)\sum_g\operatorname{tr}(L_{g^{-1}}P_{S_\nu})U_gΠν​=(sν​/r!)∑g​tr(Lg−1​PSν​​)Ug​. All scalar factors in the displayed matrix formula are interpreted in C\mathbb CC, with division by zero equal to 000. No positivity or normalization is asserted by this definition; d=0d=0d=0 gives an empty sum.

QAlgorithms.Papers.Independent.Extend50.P33.mBlock

For natural numbers d,kd,kd,k and a Young diagram aaa with k+1k+1k+1 cells and first-column length at most ddd, this defines the matrix of the orthogonal projection onto the range of the matrix ηa\eta_aηa​ specified here. For any rrr-cell diagram λ\lambdaλ, take its chosen numbering by {0,…,r−1}\{0,\ldots,r-1\}{0,…,r−1}, and let Rλ,Cλ⊆SrR_\lambda,C_\lambda\subseteq S_rRλ​,Cλ​⊆Sr​ preserve the rows and columns of numbered cells. Set

Yλ(g,h)=∑σ∈Rλ, τ∈Cλsgn⁡(τ)1{g=hστ},Hλ=range⁡Yλ,χλ(π)=tr⁡(LπQλ),Y_\lambda(g,h)=\sum_{\sigma\in R_\lambda,\ \tau\in C_\lambda} \operatorname{sgn}(\tau)\mathbf1_{\{g=h\sigma\tau\}}, \quad H_\lambda=\operatorname{range}Y_\lambda, \quad \chi_\lambda(\pi)=\operatorname{tr}(L_\pi Q_\lambda),Yλ​(g,h)=σ∈Rλ​, τ∈Cλ​∑​sgn(τ)1{g=hστ}​,Hλ​=rangeYλ​,χλ​(π)=tr(Lπ​Qλ​),

where QλQ_\lambdaQλ​ is the orthogonal projection onto HλH_\lambdaHλ​ and Lπ(g,h)=1{g=πh}L_\pi(g,h)=\mathbf1_{\{g=\pi h\}}Lπ​(g,h)=1{g=πh}​. On length-rrr words over {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}, let Tπ(y,x)=1{y=x∘π−1}T_\pi(y,x)=\mathbf1_{\{y=x\circ\pi^{-1}\}}Tπ​(y,x)=1{y=x∘π−1}​ and

Pλ=dim⁡CHλr!∑π∈Srχλ(π−1)Tπ.P_\lambda=\frac{\dim_{\mathbb C}H_\lambda}{r!} \sum_{\pi\in S_r}\chi_\lambda(\pi^{-1})T_\pi.Pλ​=r!dimC​Hλ​​π∈Sr​∑​χλ​(π−1)Tπ​.

Write Eq(A)E_q(A)Eq​(A) for the matrix whose entry is AAA on the first coordinates when the final qqq coordinates agree, and zero otherwise. On length-k+3k+3k+3 words let SjS_jSj​ permute coordinates jjj and k+1k+1k+1, and let B(x,y)B(x,y)B(x,y) equal one exactly when xk+1=xk+2x_{k+1}=x_{k+2}xk+1​=xk+2​, yk+1=yk+2y_{k+1}=y_{k+2}yk+1​=yk+2​, and xi=yix_i=y_ixi​=yi​ for 0≤i≤k0\le i\le k0≤i≤k, and zero otherwise. Then

ηa=∑j=0k+1SjE2(Pa)BSj,ma=proj⁡range⁡ηa.\eta_a=\sum_{j=0}^{k+1}S_jE_2(P_a)BS_j, \qquad m_a=\operatorname{proj}_{\operatorname{range}\eta_a}.ηa​=j=0∑k+1​Sj​E2​(Pa​)BSj​,ma​=projrangeηa​​.

This range is taken for matrix multiplication on the complex Euclidean space of these words; a zero range gives the zero projection. The value k=0k=0k=0 is allowed, and d=0d=0d=0 admits no such aaa.

QAlgorithms.Papers.Independent.Extend50.P33.minReciprocal

For natural numbers d,kd,kd,k and a Young diagram aaa with k+1k+1k+1 cells and first-column length at most ddd, this defines the real infimum

qa=inf⁡{1λa,b:b has k+2 cells, first-column length ≤d, cells⁡(a)⊆cells⁡(b)}.q_a=\inf\left\{\frac1{\lambda_{a,b}}: b\text{ has }k+2\text{ cells, first-column length }\le d, \ \operatorname{cells}(a)\subseteq\operatorname{cells}(b)\right\}.qa​=inf{λa,b​1​:b has k+2 cells, first-column length ≤d, cells(a)⊆cells(b)}.

To specify λa,b\lambda_{a,b}λa,b​, for every rrr-cell diagram λ\lambdaλ take its chosen numbering by {0,…,r−1}\{0,\ldots,r-1\}{0,…,r−1}, and let Rλ,Cλ⊆SrR_\lambda,C_\lambda\subseteq S_rRλ​,Cλ​⊆Sr​ preserve rows and columns. Form

Yλ(g,h)=∑σ∈Rλ, τ∈Cλsgn⁡(τ)1{g=hστ},Hλ=range⁡Yλ,vλ=dim⁡CHλ,Y_\lambda(g,h)=\sum_{\sigma\in R_\lambda,\ \tau\in C_\lambda} \operatorname{sgn}(\tau)\mathbf1_{\{g=h\sigma\tau\}}, \quad H_\lambda=\operatorname{range}Y_\lambda,\quad v_\lambda=\dim_{\mathbb C}H_\lambda,Yλ​(g,h)=σ∈Rλ​, τ∈Cλ​∑​sgn(τ)1{g=hστ}​,Hλ​=rangeYλ​,vλ​=dimC​Hλ​, Tπ(y,x)=1{y=x∘π−1},uλ=dim⁡Crange⁡(∑σ∈Rλ, τ∈Cλsgn⁡(τ)Tστ),Pλ=vλr!∑π∈Srtr⁡(Lπ−1Qλ)Tπ.T_\pi(y,x)=\mathbf1_{\{y=x\circ\pi^{-1}\}},\qquad u_\lambda=\dim_{\mathbb C}\operatorname{range} \left(\sum_{\sigma\in R_\lambda,\ \tau\in C_\lambda} \operatorname{sgn}(\tau)T_{\sigma\tau}\right),\qquad P_\lambda=\frac{v_\lambda}{r!} \sum_{\pi\in S_r}\operatorname{tr}(L_{\pi^{-1}}Q_\lambda)T_\pi.Tπ​(y,x)=1{y=x∘π−1}​,uλ​=dimC​range​σ∈Rλ​, τ∈Cλ​∑​sgn(τ)Tστ​​,Pλ​=r!vλ​​π∈Sr​∑​tr(Lπ−1​Qλ​)Tπ​.

Here TπT_\piTπ​ acts on length-rrr words over {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}, QλQ_\lambdaQλ​ is the orthogonal projection onto HλH_\lambdaHλ​, and Lπ(g,h)=1{g=πh}L_\pi(g,h)=\mathbf1_{\{g=\pi h\}}Lπ​(g,h)=1{g=πh}​. Write Eq(A)E_q(A)Eq​(A) for extension by equality of the final qqq coordinates, with zero entries when they disagree. On length-k+3k+3k+3 words let SjS_jSj​ swap coordinates j,k+1j,k+1j,k+1, and let B(x,y)=1B(x,y)=1B(x,y)=1 precisely when xk+1=xk+2x_{k+1}=x_{k+2}xk+1​=xk+2​, yk+1=yk+2y_{k+1}=y_{k+2}yk+1​=yk+2​, and xi=yix_i=y_ixi​=yi​ for i≤ki\le ki≤k, and zero otherwise. Set

ηa=∑j=0k+1SjE2(Pa)BSj,λa,b=Re⁡tr⁡(E1(Pb)ηa)uavb.\eta_a=\sum_{j=0}^{k+1}S_jE_2(P_a)BS_j,\qquad \lambda_{a,b}= \frac{\operatorname{Re}\operatorname{tr}(E_1(P_b)\eta_a)}{u_a v_b}.ηa​=j=0∑k+1​Sj​E2​(Pa​)BSj​,λa,b​=ua​vb​Retr(E1​(Pb​)ηa​)​.

The definition takes an infimum rather than supplying a minimizing diagram. It uses total real division, including 1/0=01/0=01/0=0, and the real infimum of the empty set is zero. The value k=0k=0k=0 is allowed; d=0d=0d=0 admits no such aaa.

QAlgorithms.Papers.Independent.Extend50.P33.mult

For natural numbers d,rd,rd,r and a finite Young diagram aaa with exactly rrr cells and at most ddd rows, mult⁡(a)\operatorname{mult}(a)mult(a) is the complex dimension of a subspace of CW\mathbb C^{W}CW, where W={0,…,d−1}{0,…,r−1}W=\{0,\ldots,d-1\}^{\{0,\ldots,r-1\}}W={0,…,d−1}{0,…,r−1}. Using the chosen bijection from the cells of aaa to {0,…,r−1}\{0,\ldots,r-1\}{0,…,r−1}, let RaR_aRa​ and CaC_aCa​ consist respectively of permutations preserving the row and column coordinates of the numbered cells. For a permutation π\piπ, define Pπ(y,x)=1P_\pi(y,x)=1Pπ​(y,x)=1 if y=x∘π−1y=x\circ\pi^{-1}y=x∘π−1, and 000 otherwise. Then

mult⁡(a)=dim⁡Crange⁡(∑α∈Ra∑β∈Casgn⁡(β)Pαβ).\operatorname{mult}(a)= \dim_{\mathbb C}\operatorname{range} \left(\sum_{\alpha\in R_a}\sum_{\beta\in C_a} \operatorname{sgn}(\beta)P_{\alpha\beta}\right).mult(a)=dimC​range​α∈Ra​∑​β∈Ca​∑​sgn(β)Pαβ​​.

No positivity assumption on ddd or rrr is imposed; when r=0r=0r=0, the empty word is the sole index and this dimension is 111, including when d=0d=0d=0.

QAlgorithms.Papers.Independent.Extend50.P33.optimalProbability

For any natural numbers d,Nd,Nd,N, including zero, the definition assigns the real number

NN+d2−1,\frac{N}{N+d^2-1},N+d2−1N​,

where the subtraction occurs in R\mathbb RR. No range or positivity condition is imposed. Division by zero is 000, so the value is 000 when (d,N)=(0,1)(d,N)=(0,1)(d,N)=(0,1) or (1,0)(1,0)(1,0), the two cases in which the denominator vanishes.

QAlgorithms.Papers.Independent.Extend50.P33.pairTrace

For any natural numbers d,kd,kd,k, any a∈{0,…,k+1}a\in\{0,\ldots,k+1\}a∈{0,…,k+1}, and any complex matrix AAA indexed by words of length k+3k+3k+3 over [d]={0,…,d−1}[d]=\{0,\ldots,d-1\}[d]={0,…,d−1}, let τa\tau_aτa​ exchange positions aaa and k+1k+1k+1, leaving the other positions fixed, and let Sa(y,x)=1y=x∘τaS_a(y,x)=\mathbf1_{y=x\circ\tau_a}Sa​(y,x)=1y=x∘τa​​. The definition returns the matrix indexed by words x,y∈[d]k+1x,y\in[d]^{k+1}x,y∈[d]k+1 with entries

pairTrace⁡a(A)(x,y)=∑z∈[d]2(SaASa)(x∥z, y∥z),\operatorname{pairTrace}_a(A)(x,y) =\sum_{z\in[d]^2}(S_aAS_a)(x\mathbin{\|}z,\ y\mathbin{\|}z),pairTracea​(A)(x,y)=z∈[d]2∑​(Sa​ASa​)(x∥z, y∥z),

where ∥\|∥ denotes concatenation. No positivity or normalization of AAA is required. If a=k+1a=k+1a=k+1, the swap is the identity; if d=0d=0d=0, the word index sets here are empty.

QAlgorithms.Papers.Independent.Extend50.P33.pbtBlockEigenvalue

For natural numbers d,kd,kd,k and Young diagrams a,ba,ba,b with, respectively, k+1,k+2k+1,k+2k+1,k+2 cells and first-column lengths at most ddd, this defines the real number

λa,b=Re⁡tr⁡ ⁣(E1(Pb)ηa) uavb .\lambda_{a,b} =\frac{\operatorname{Re}\operatorname{tr}\!\left(E_1(P_b)\eta_a\right)} {\,u_a v_b\,}.λa,b​=ua​vb​Retr(E1​(Pb​)ηa​)​.

Its ingredients are as follows. For an rrr-cell diagram λ\lambdaλ, use its chosen numbering by {0,…,r−1}\{0,\ldots,r-1\}{0,…,r−1}, and let Rλ,Cλ⊆SrR_\lambda,C_\lambda\subseteq S_rRλ​,Cλ​⊆Sr​ preserve rows and columns. Define

Yλ(g,h)=∑σ∈Rλ, τ∈Cλsgn⁡(τ)1{g=hστ},Hλ=range⁡Yλ,vλ=dim⁡CHλ,Y_\lambda(g,h)=\sum_{\sigma\in R_\lambda,\ \tau\in C_\lambda} \operatorname{sgn}(\tau)\mathbf1_{\{g=h\sigma\tau\}}, \quad H_\lambda=\operatorname{range}Y_\lambda,\quad v_\lambda=\dim_{\mathbb C}H_\lambda,Yλ​(g,h)=σ∈Rλ​, τ∈Cλ​∑​sgn(τ)1{g=hστ}​,Hλ​=rangeYλ​,vλ​=dimC​Hλ​, Tπ(y,x)=1{y=x∘π−1},Zλ=∑σ∈Rλ, τ∈Cλsgn⁡(τ)Tστ,uλ=dim⁡Crange⁡Zλ,Pλ=vλr!∑π∈Srtr⁡(Lπ−1Qλ)Tπ,T_\pi(y,x)=\mathbf1_{\{y=x\circ\pi^{-1}\}},\quad Z_\lambda=\sum_{\sigma\in R_\lambda,\ \tau\in C_\lambda} \operatorname{sgn}(\tau)T_{\sigma\tau},\quad u_\lambda=\dim_{\mathbb C}\operatorname{range}Z_\lambda, \quad P_\lambda=\frac{v_\lambda}{r!} \sum_{\pi\in S_r}\operatorname{tr}(L_{\pi^{-1}}Q_\lambda)T_\pi,Tπ​(y,x)=1{y=x∘π−1}​,Zλ​=σ∈Rλ​, τ∈Cλ​∑​sgn(τ)Tστ​,uλ​=dimC​rangeZλ​,Pλ​=r!vλ​​π∈Sr​∑​tr(Lπ−1​Qλ​)Tπ​,

where TπT_\piTπ​ acts on length-rrr words over {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}, QλQ_\lambdaQλ​ is the orthogonal projection onto HλH_\lambdaHλ​, and Lπ(g,h)=1{g=πh}L_\pi(g,h)=\mathbf1_{\{g=\pi h\}}Lπ​(g,h)=1{g=πh}​. The extension Eq(A)E_q(A)Eq​(A) acts by AAA on the initial coordinates and has zero entries unless the final qqq coordinates agree. On length-k+3k+3k+3 words, let SjS_jSj​ interchange coordinates j,k+1j,k+1j,k+1, and let B(x,y)=1B(x,y)=1B(x,y)=1 exactly when xk+1=xk+2x_{k+1}=x_{k+2}xk+1​=xk+2​, yk+1=yk+2y_{k+1}=y_{k+2}yk+1​=yk+2​, and xi=yix_i=y_ixi​=yi​ for i≤ki\le ki≤k, with other entries zero. Set ηa=∑j=0k+1SjE2(Pa)BSj\eta_a=\sum_{j=0}^{k+1}S_jE_2(P_a)BS_jηa​=∑j=0k+1​Sj​E2​(Pa​)BSj​. No relation between a,ba,ba,b, or positivity or eigenvector assertion about λa,b\lambda_{a,b}λa,b​, is part of this definition. Real division is total, so a zero denominator gives zero. The value k=0k=0k=0 is allowed; d=0d=0d=0 admits no such a,ba,ba,b.

QAlgorithms.Papers.Independent.Extend50.P33.pbtDeterministicChannel

For arbitrary natural numbers d,kd,kd,k, put N=k+2N=k+2N=k+2 and Wr={0,…,d−1}rW_r=\{0,\ldots,d-1\}^rWr​={0,…,d−1}r. For each a<Na<Na<N, define a matrix BaB_aBa​ indexed by WN+1W_{N+1}WN+1​ whose (x,y)(x,y)(x,y) entry is 111 when xa=xNx_a=x_Nxa​=xN​, ya=yNy_a=y_Nya​=yN​, and xℓ=yℓx_\ell=y_\ellxℓ​=yℓ​ for every ℓ∉{a,N}\ell\notin\{a,N\}ℓ∈/{a,N}, and is 000 otherwise. Set

Sa=d−NBa,R=f ⁣(∑bSb),f(t)=(t)−1,Fa=RSaR,Ea=Fa+1N(I−∑bFb),S_a=d^{-N}B_a,\qquad R=f\!\left(\sum_bS_b\right),\qquad f(t)=(\sqrt t)^{-1},\qquad F_a=RS_aR,\qquad E_a=F_a+\frac1N\left(I-\sum_bF_b\right),Sa​=d−NBa​,R=f(b∑​Sb​),f(t)=(t​)−1,Fa​=RSa​R,Ea​=Fa​+N1​(I−b∑​Fb​),

where fff is applied using continuous functional calculus and f(0)=0f(0)=0f(0)=0. This declaration defines the matrix-valued function Cd,k\mathcal C_{d,k}Cd,k​ by

(Cd,k(Z))uv=1dN∑a=0N−1∑z∈WNza=u∑i,j=0d−1Zij(Ea) z[a←v]⋅j, z⋅i\bigl(\mathcal C_{d,k}(Z)\bigr)_{uv} =\frac1{d^N}\sum_{a=0}^{N-1} \sum_{\substack{z\in W_N\\z_a=u}} \sum_{i,j=0}^{d-1}Z_{ij} (E_a)_{\,z[a\leftarrow v]\cdot j,\,z\cdot i}(Cd,k​(Z))uv​=dN1​a=0∑N−1​z∈WN​za​=u​∑​i,j=0∑d−1​Zij​(Ea​)z[a←v]⋅j,z⋅i​

for every complex d×dd\times dd×d matrix ZZZ; x⋅ix\cdot ix⋅i denotes appending iii. This definition itself imposes no channel property. It includes k=0k=0k=0 and d=0d=0d=0, with total reciprocals taking 0−1=00^{-1}=00−1=0; for d=0d=0d=0 it is the unique function between the empty-index matrix spaces.

QAlgorithms.Papers.Independent.Extend50.P33.pbtSignal

For all natural numbers d,kd,kd,k and every a∈{0,…,k+1}a\in\{0,\ldots,k+1\}a∈{0,…,k+1}, put N=k+2N=k+2N=k+2. This defines the matrix SaS_aSa​ on length-(N+1)(N+1)(N+1) words over {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1} by

(Sa)x,y={d−N,xa=xN, ya=yN, and xi=yi for every i≠a,N,0,otherwise.(S_a)_{x,y}= \begin{cases} d^{-N},&x_a=x_N,\ y_a=y_N,\ \text{and }x_i=y_i\text{ for every }i\ne a,N,\\ 0,&\text{otherwise}. \end{cases}(Sa​)x,y​={d−N,0,​xa​=xN​, ya​=yN​, and xi​=yi​ for every i=a,N,otherwise.​

The scalar is interpreted in C\mathbb CC, with inverse zero equal to zero. No trace normalization is part of the definition. The case d=0d=0d=0 is allowed, when there are no indexing words.

QAlgorithms.Papers.Independent.Extend50.P33.pbtSuccessProbability

For arbitrary natural numbers d,kd,kd,k and any family TjT_jTj​, 0≤j<k+20\le j<k+20≤j<k+2, of complex matrices indexed by pairs of length-k+1k+1k+1 words over {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}, this defines the real number

∑j=0k+1Re⁡tr⁡(Tj)d k+3.\frac{\displaystyle\sum_{j=0}^{k+1}\operatorname{Re}\operatorname{tr}(T_j)} {d^{\,k+3}}.dk+3j=0∑k+1​Retr(Tj​)​.

There are no positivity or normalization hypotheses on the family. The case k=0k=0k=0 is included. When d=0d=0d=0, the word index set is empty, all the traces are zero, and total real division makes the displayed value zero.

QAlgorithms.Papers.Independent.Extend50.P33.pbtSwapSum

For natural numbers d,kd,kd,k, pbtSwapSum⁡(d,k)\operatorname{pbtSwapSum}(d,k)pbtSwapSum(d,k) is the complex matrix indexed by length-(k+3)(k+3)(k+3) words over {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1} given by

(pbtSwapSum⁡(d,k))x,y=∑a=0k+1{1,xa=xk+2, ya=yk+2, xi=yi for every i∉{a,k+2},0,otherwise.\bigl(\operatorname{pbtSwapSum}(d,k)\bigr)_{x,y} =\sum_{a=0}^{k+1} \begin{cases} 1,&x_a=x_{k+2},\ y_a=y_{k+2},\ x_i=y_i\text{ for every }i\notin\{a,k+2\},\\ 0,&\text{otherwise}. \end{cases}(pbtSwapSum(d,k))x,y​=a=0∑k+1​{1,0,​xa​=xk+2​, ya​=yk+2​, xi​=yi​ for every i∈/{a,k+2},otherwise.​

Thus each entry counts, as a complex number, the port indices satisfying these conditions; no factor 1/d1/d1/d is included. The sum always has k+2k+2k+2 terms, including when k=0k=0k=0; when d=0d=0d=0, the matrix index set is empty.

QAlgorithms.Papers.Independent.Extend50.P33.permutationSpan

For any natural numbers d,rd,rd,r, let Wd,r={0,…,d−1}{0,…,r−1}W_{d,r}=\{0,\ldots,d-1\}^{\{0,\ldots,r-1\}}Wd,r​={0,…,d−1}{0,…,r−1}. For each permutation π\piπ of the rrr positions, define the complex matrix PπP_\piPπ​, with rows and columns indexed by Wd,rW_{d,r}Wd,r​, by (Pπ)y,x=1(P_\pi)_{y,x}=1(Pπ​)y,x​=1 when y=x∘π−1y=x\circ\pi^{-1}y=x∘π−1, and 000 otherwise. This declaration defines the complex linear subspace

permutationSpan⁡(d,r)=span⁡C{Pπ:π∈Sr}\operatorname{permutationSpan}(d,r) =\operatorname{span}_{\mathbb C}\{P_\pi:\pi\in S_r\}permutationSpan(d,r)=spanC​{Pπ​:π∈Sr​}

of all complex matrices on Wd,rW_{d,r}Wd,r​. Both parameters may be zero: when r=0r=0r=0, there is one empty word and the subspace consists of scalar multiples of its identity matrix; when d=0<rd=0<rd=0<r, there are no words and the ambient matrix space is the zero space.

QAlgorithms.Papers.Independent.Extend50.P33.portOutcome

For arbitrary natural numbers d,kd,kd,k, put N=k+2N=k+2N=k+2 and Wr={0,…,d−1}rW_r=\{0,\ldots,d-1\}^rWr​={0,…,d−1}r. Given complex matrices OOO indexed by WNW_NWN​, EEE indexed by WN+1W_{N+1}WN+1​, and a∈{0,…,N−1}a\in\{0,\ldots,N-1\}a∈{0,…,N−1}, this defines a function BaO,E\mathcal B_a^{O,E}BaO,E​ from complex d×dd\times dd×d matrices to complex d×dd\times dd×d matrices by

(BaO,E(Z))uv=1dN∑z∈WNza=u∑x,y∈WN∑i,j=0d−1Oxz Oy,z[a←v]‾ Zij E y⋅j, x⋅i.\bigl(\mathcal B_a^{O,E}(Z)\bigr)_{uv} =\frac1{d^N} \sum_{\substack{z\in W_N\\z_a=u}} \sum_{x,y\in W_N}\sum_{i,j=0}^{d-1} O_{xz}\,\overline{O_{y,z[a\leftarrow v]}}\, Z_{ij}\,E_{\,y\cdot j,\,x\cdot i}.(BaO,E​(Z))uv​=dN1​z∈WN​za​=u​∑​x,y∈WN​∑​i,j=0∑d−1​Oxz​Oy,z[a←v]​​Zij​Ey⋅j,x⋅i​.

Here z[a←v]z[a\leftarrow v]z[a←v] replaces coordinate aaa of zzz by vvv, and x⋅ix\cdot ix⋅i appends the single coordinate iii to xxx. No positivity, normalization, or invertibility of OOO or EEE is required, and ZZZ is arbitrary. The definition includes k=0k=0k=0 and d=0d=0d=0; division uses the total complex reciprocal, so 1/0=01/0=01/0=0, and for d=0d=0d=0 the output is the unique matrix indexed by the empty set.

QAlgorithms.Papers.Independent.Extend50.P33.portSwap

For natural numbers d,kd,kd,k and a∈{0,…,k+1}a\in\{0,\ldots,k+1\}a∈{0,…,k+1}, let σa\sigma_aσa​ be the permutation of the k+3k+3k+3 coordinate positions that exchanges aaa and k+1k+1k+1 and fixes all other positions, including the last position k+2k+2k+2. Then portSwap⁡(d,k,a)\operatorname{portSwap}(d,k,a)portSwap(d,k,a) is the complex matrix indexed by length-(k+3)(k+3)(k+3) words over {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1} whose entry at (y,x)(y,x)(y,x) is 111 if y=x∘σa−1y=x\circ\sigma_a^{-1}y=x∘σa−1​, and 000 otherwise. Here σa−1=σa\sigma_a^{-1}=\sigma_aσa−1​=σa​. If a=k+1a=k+1a=k+1, this is the identity matrix; k=0k=0k=0 is allowed, and d=0d=0d=0 gives an empty index set.

QAlgorithms.Papers.Independent.Extend50.P33.predecessorAction

For any natural number rrr, let μ\muμ be a Young diagram with r+1r+1r+1 cells and at most r+1r+1r+1 rows, let π∈Sr\pi\in S_rπ∈Sr​, and let vvv be any complex Euclidean vector indexed by pairs (a,i)(a,i)(a,i), where aaa has rrr cells, at most rrr rows, and cell set contained in μ\muμ, and 0≤i<sa0\le i<s_a0≤i<sa​. To define sas_asa​ and the action, number aaa’s cells by the fixed bijection used in the definitions, let Ra,Ca\mathcal R_a,\mathcal C_aRa​,Ca​ preserve rows and columns, set (Ya)g,h=∑u∈Ra,v′∈Casgn⁡(v′)1{g=huv′}(Y_a)_{g,h}=\sum_{u\in\mathcal R_a,v'\in\mathcal C_a}\operatorname{sgn}(v')\mathbf1_{\{g=huv'\}}(Ya​)g,h​=∑u∈Ra​,v′∈Ca​​sgn(v′)1{g=huv′}​, and put Va=ran⁡Ya⊆CSrV_a=\operatorname{ran}Y_a\subseteq\mathbb C^{S_r}Va​=ranYa​⊆CSr​, sa=dim⁡CVas_a=\dim_{\mathbb C}V_asa​=dimC​Va​. For the chosen standard orthonormal basis ea,0,…,ea,sa−1e_{a,0},\ldots,e_{a,s_a-1}ea,0​,…,ea,sa​−1​ of VaV_aVa​, let QaQ_aQa​ be orthogonal projection onto VaV_aVa​ and LπL_\piLπ​ left translation on CSr\mathbb C^{S_r}CSr​. The declaration defines the vector whose coordinates are

(predecessorAction⁡(μ,π,v))a,i=∑j=0sa−1⟨ea,i,QaLπea,j⟩C va,j.\bigl(\operatorname{predecessorAction}(\mu,\pi,v)\bigr)_{a,i} =\sum_{j=0}^{s_a-1} \langle e_{a,i},Q_aL_\pi e_{a,j}\rangle_{\mathbb C}\,v_{a,j}.(predecessorAction(μ,π,v))a,i​=j=0∑sa​−1​⟨ea,i​,Qa​Lπ​ea,j​⟩C​va,j​.

The inner product is conjugate linear in its first argument. No normalization of vvv is required; r=0r=0r=0 is allowed, and any zero-dimensional summand contributes no coordinates.

QAlgorithms.Papers.Independent.Extend50.P33.reciprocalSet

For natural numbers d,kd,kd,k and a Young diagram aaa with k+1k+1k+1 cells and first-column length at most ddd, this defines the set

{1λa,b:b has k+2 cells, first-column length ≤d, and cells⁡(a)⊆cells⁡(b)}.\left\{\frac1{\lambda_{a,b}}: b\text{ has }k+2\text{ cells, first-column length }\le d, \text{ and }\operatorname{cells}(a)\subseteq\operatorname{cells}(b)\right\}.{λa,b​1​:b has k+2 cells, first-column length ≤d, and cells(a)⊆cells(b)}.

Here the numbers λa,b\lambda_{a,b}λa,b​ are specified entirely by the following constructions. For an rrr-cell diagram λ\lambdaλ, use its chosen cell numbering by {0,…,r−1}\{0,\ldots,r-1\}{0,…,r−1}, let Rλ,Cλ⊆SrR_\lambda,C_\lambda\subseteq S_rRλ​,Cλ​⊆Sr​ preserve rows and columns, and set

Yλ(g,h)=∑σ∈Rλ, τ∈Cλsgn⁡(τ)1{g=hστ},Hλ=range⁡Yλ,vλ=dim⁡CHλ,Y_\lambda(g,h)=\sum_{\sigma\in R_\lambda,\ \tau\in C_\lambda} \operatorname{sgn}(\tau)\mathbf1_{\{g=h\sigma\tau\}}, \quad H_\lambda=\operatorname{range}Y_\lambda,\quad v_\lambda=\dim_{\mathbb C}H_\lambda,Yλ​(g,h)=σ∈Rλ​, τ∈Cλ​∑​sgn(τ)1{g=hστ}​,Hλ​=rangeYλ​,vλ​=dimC​Hλ​, Tπ(y,x)=1{y=x∘π−1},uλ=dim⁡Crange⁡(∑σ∈Rλ, τ∈Cλsgn⁡(τ)Tστ),Pλ=vλr!∑π∈Srtr⁡(Lπ−1Qλ)Tπ.T_\pi(y,x)=\mathbf1_{\{y=x\circ\pi^{-1}\}},\qquad u_\lambda=\dim_{\mathbb C}\operatorname{range} \left(\sum_{\sigma\in R_\lambda,\ \tau\in C_\lambda} \operatorname{sgn}(\tau)T_{\sigma\tau}\right),\qquad P_\lambda=\frac{v_\lambda}{r!} \sum_{\pi\in S_r}\operatorname{tr}(L_{\pi^{-1}}Q_\lambda)T_\pi.Tπ​(y,x)=1{y=x∘π−1}​,uλ​=dimC​range​σ∈Rλ​, τ∈Cλ​∑​sgn(τ)Tστ​​,Pλ​=r!vλ​​π∈Sr​∑​tr(Lπ−1​Qλ​)Tπ​.

The matrices TπT_\piTπ​ act on length-rrr words over {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}; QλQ_\lambdaQλ​ projects orthogonally onto HλH_\lambdaHλ​, and Lπ(g,h)=1{g=πh}L_\pi(g,h)=\mathbf1_{\{g=\pi h\}}Lπ​(g,h)=1{g=πh}​. Let Eq(A)E_q(A)Eq​(A) extend AAA by requiring equality of the final qqq coordinates, with entry zero if they differ. On length-k+3k+3k+3 words let SjS_jSj​ swap coordinates j,k+1j,k+1j,k+1, and let B(x,y)B(x,y)B(x,y) be one when xk+1=xk+2x_{k+1}=x_{k+2}xk+1​=xk+2​, yk+1=yk+2y_{k+1}=y_{k+2}yk+1​=yk+2​, and xi=yix_i=y_ixi​=yi​ for i≤ki\le ki≤k, and zero otherwise. Then

ηa=∑j=0k+1SjE2(Pa)BSj,λa,b=Re⁡tr⁡(E1(Pb)ηa)uavb.\eta_a=\sum_{j=0}^{k+1}S_jE_2(P_a)BS_j,\qquad \lambda_{a,b}= \frac{\operatorname{Re}\operatorname{tr}(E_1(P_b)\eta_a)}{u_a v_b}.ηa​=j=0∑k+1​Sj​E2​(Pa​)BSj​,λa,b​=ua​vb​Retr(E1​(Pb​)ηa​)​.

All divisions are total real divisions: a zero denominator produces zero, and 1/0=01/0=01/0=0, so zero values of λa,b\lambda_{a,b}λa,b​ are not excluded. The case k=0k=0k=0 is included; d=0d=0d=0 admits no such aaa.

QAlgorithms.Papers.Independent.Extend50.P33.resourceVector

For every pair of natural numbers d,kd,kd,k, put N=k+2N=k+2N=k+2 and let Wr={0,…,d−1}rW_r=\{0,\ldots,d-1\}^{r}Wr​={0,…,d−1}r. This defines a vector on WN×WNW_N\times W_NWN​×WN​ whose coordinate at (x,y)(x,y)(x,y) is Ox,y/dNO_{x,y}/\sqrt{d^N}Ox,y​/dN​, where O=XO=\sqrt{X}O=X​ is defined by continuous functional calculus and

X=∑λdNmλZNsλJλ,ZN=∑λmλ2.X=\sum_{\lambda}\frac{d^N m_\lambda}{Z_Ns_\lambda}J_\lambda, \qquad Z_N=\sum_{\lambda}m_\lambda^2.X=λ∑​ZN​sλ​dNmλ​​Jλ​,ZN​=λ∑​mλ2​.

Here both sums range over Young diagrams λ\lambdaλ with NNN cells and at most ddd rows. The ingredients are defined as follows, also specifying the particular projectors used: choose the supplied bijective numbering of the cells by {0,…,N−1}\{0,\ldots,N-1\}{0,…,N−1}, let Rλ,CλR_\lambda,C_\lambdaRλ​,Cλ​ be the permutations preserving respectively the row and column of every numbered cell, and let TπT_\piTπ​ be the matrix on words with (Tπ)y,x=1(T_\pi)_{y,x}=1(Tπ​)y,x​=1 when y=x∘π−1y=x\circ\pi^{-1}y=x∘π−1, and 000 otherwise. Define matrices

(Yλ)g,h=∑a∈Rλ∑b∈Cλsgn⁡(b)1{g=hab},Zλ=∑a∈Rλ∑b∈Cλsgn⁡(b)Tab.(Y_\lambda)_{g,h}=\sum_{a\in R_\lambda}\sum_{b\in C_\lambda} \operatorname{sgn}(b)\mathbf1_{\{g=hab\}}, \qquad Z_\lambda=\sum_{a\in R_\lambda}\sum_{b\in C_\lambda}\operatorname{sgn}(b)T_{ab}.(Yλ​)g,h​=a∈Rλ​∑​b∈Cλ​∑​sgn(b)1{g=hab}​,Zλ​=a∈Rλ​∑​b∈Cλ​∑​sgn(b)Tab​.

Then sλ=dim⁡Crange⁡Yλs_\lambda=\dim_{\mathbb C}\operatorname{range}Y_\lambdasλ​=dimC​rangeYλ​, mλ=dim⁡Crange⁡Zλm_\lambda=\dim_{\mathbb C}\operatorname{range}Z_\lambdamλ​=dimC​rangeZλ​, and

Jλ=sλN!∑πTr⁡(Lπ−1Pλ)Tπ,J_\lambda=\frac{s_\lambda}{N!}\sum_{\pi} \operatorname{Tr}(L_{\pi^{-1}}P_\lambda)T_\pi,Jλ​=N!sλ​​π∑​Tr(Lπ−1​Pλ​)Tπ​,

where PλP_\lambdaPλ​ is the orthogonal projection onto range⁡Yλ\operatorname{range}Y_\lambdarangeYλ​, and (Lπ)g,h=1{g=πh}(L_\pi)_{g,h}=\mathbf1_{\{g=\pi h\}}(Lπ​)g,h​=1{g=πh}​. All permutation indices here range over permutations of the NNN positions. There are no positivity or normalization hypotheses in this definition, and it makes no assertion that the resulting vector has norm one. All divisions are total, with inverse zero equal to zero; d=0d=0d=0 is allowed, in which case WNW_NWN​ is empty and the vector has no coordinates.

QAlgorithms.Papers.Independent.Extend50.P33.sdim

For natural numbers d,rd,rd,r and a finite Young diagram aaa with exactly rrr cells and at most ddd rows, sdim⁡(a)\operatorname{sdim}(a)sdim(a) is the complex dimension of the following subspace of CSr\mathbb C^{\mathfrak S_r}CSr​, where Sr\mathfrak S_rSr​ permutes {0,…,r−1}\{0,\ldots,r-1\}{0,…,r−1}. Use the chosen bijection between the cells of aaa and these rrr labels; let RaR_aRa​ be the permutations preserving each label’s cell-row coordinate, and CaC_aCa​ those preserving its cell-column coordinate. Form the matrix

Yg,h=∑α∈Ra∑β∈Ca{sgn⁡(β),g=hαβ,0,otherwise.Y_{g,h}=\sum_{\alpha\in R_a}\sum_{\beta\in C_a} \begin{cases} \operatorname{sgn}(\beta),&g=h\alpha\beta,\\ 0,&\text{otherwise}. \end{cases}Yg,h​=α∈Ra​∑​β∈Ca​∑​{sgn(β),0,​g=hαβ,otherwise.​

Then sdim⁡(a)=dim⁡Crange⁡(Y)\operatorname{sdim}(a)=\dim_{\mathbb C}\operatorname{range}(Y)sdim(a)=dimC​range(Y). Zero values of d,rd,rd,r are allowed whenever such a diagram exists; for r=0r=0r=0, this dimension is 111, while for d=0<rd=0<rd=0<r there is no admissible diagram.

QAlgorithms.Papers.Independent.Extend50.P33.squareSum

For any natural numbers d,rd,rd,r, including zero, the definition assigns

∑∣λ∣=rat most d rowsmλ2,\sum_{\substack{|\lambda|=r\\\text{at most }d\text{ rows}}}m_\lambda^2,∣λ∣=rat most d rows​∑​mλ2​,

as a real number. For each such Young diagram λ\lambdaλ, use its fixed numbering of cells by {0,…,r−1}\{0,\ldots,r-1\}{0,…,r−1}, let Rλ,CλR_\lambda,C_\lambdaRλ​,Cλ​ be the permutations preserving cell rows and columns, respectively, and let mλm_\lambdamλ​ be the complex dimension of the range, on C[d]r\mathbb C^{[d]^r}C[d]r, of

∑α∈Rλ,β∈Cλsgn⁡(β)Uαβ,Uπ(y,x)=1y=x∘π−1.\sum_{\alpha\in R_\lambda,\beta\in C_\lambda} \operatorname{sgn}(\beta)U_{\alpha\beta}, \qquad U_\pi(y,x)=\mathbf1_{y=x\circ\pi^{-1}}.α∈Rλ​,β∈Cλ​∑​sgn(β)Uαβ​,Uπ​(y,x)=1y=x∘π−1​.

Here [d]={0,…,d−1}[d]=\{0,\ldots,d-1\}[d]={0,…,d−1}. Empty sums are 000; thus the value is 000 when d=0<rd=0<rd=0<r. When r=0r=0r=0, there is one empty diagram and one empty word, and the value is 111.

QAlgorithms.Papers.Independent.Extend50.P33.srm

For all natural numbers d,kd,kd,k and every a<N=k+2a<N=k+2a<N=k+2, this defines the matrix

Ma=RSaR+1N(I−∑b=0N−1RSbR)M_a=R S_aR+\frac1N\left(I-\sum_{b=0}^{N-1}R S_bR\right)Ma​=RSa​R+N1​(I−b=0∑N−1​RSb​R)

on words of length N+1N+1N+1 over {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}. Here R=cfc⁡(t↦(t)−1,∑b=0N−1Sb)R=\operatorname{cfc}(t\mapsto(\sqrt t)^{-1},\sum_{b=0}^{N-1}S_b)R=cfc(t↦(t​)−1,∑b=0N−1​Sb​), and (Sb)x,y(S_b)_{x,y}(Sb​)x,y​ equals d−Nd^{-N}d−N exactly when xb=xNx_b=x_Nxb​=xN​, yb=yNy_b=y_Nyb​=yN​, and every other corresponding coordinate of x,yx,yx,y agrees, and equals zero otherwise. Functional calculus uses the real function whose value is zero for t≤0t\le0t≤0 and 1/t1/\sqrt t1/t​ for t>0t>0t>0. The identity has the same word index set. Since N≥2N\ge2N≥2, the divisor NNN is nonzero; inverse zero in the other scalar expressions is defined as zero. This definition makes no separate positivity assertion. It includes d=0d=0d=0, when its matrix index set is empty.

QAlgorithms.Papers.Independent.Extend50.P33.srmRaw

For all natural numbers d,kd,kd,k and every a<N=k+2a<N=k+2a<N=k+2, this defines a matrix RSaRR S_a RRSa​R on words of length N+1N+1N+1 over {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}, where

R=cfc⁡(f,H),H=∑b=0N−1Sb,f(t)=(t)−1.R=\operatorname{cfc}(f,H),\qquad H=\sum_{b=0}^{N-1}S_b,\qquad f(t)=(\sqrt t)^{-1}.R=cfc(f,H),H=b=0∑N−1​Sb​,f(t)=(t​)−1.

For each b<Nb<Nb<N, the entry (Sb)x,y(S_b)_{x,y}(Sb​)x,y​ is d−Nd^{-N}d−N when xb=xNx_b=x_Nxb​=xN​, yb=yNy_b=y_Nyb​=yN​, and xi=yix_i=y_ixi​=yi​ for all i≠b,Ni\ne b,Ni=b,N, and is zero otherwise. The notation cfc⁡\operatorname{cfc}cfc denotes continuous functional calculus; the scalar function fff is zero at zero, and also at negative real arguments because the real square root there is zero. Thus this uses a reciprocal square root with value zero on a zero eigenvalue. All scalar divisions are total. No normalization or measurement property is asserted, and d=0d=0d=0 is included, yielding matrices on an empty index set.

QAlgorithms.Papers.Independent.Extend50.P33.subgroupProjector

For natural numbers r,Dr,Dr,D, a group homomorphism R:Sr+1→U(D)R:S_{r+1}\to U(D)R:Sr+1​→U(D), and a Young diagram aaa with rrr cells and at most rrr rows, this declaration defines the D×DD\times DD×D complex matrix

sar!∑π∈Srχa(π−1)R(π^),\frac{s_a}{r!}\sum_{\pi\in S_r}\chi_a(\pi^{-1})R(\widehat\pi),r!sa​​π∈Sr​∑​χa​(π−1)R(π),

where π^\widehat\piπ acts as π\piπ on the first rrr positions and fixes the final position. The quantities sa,χas_a,\chi_asa​,χa​ are defined as follows: number the cells of aaa by the definition’s chosen bijection with the rrr positions, let Ra,Ca\mathcal R_a,\mathcal C_aRa​,Ca​ be its row-preserving and column-preserving permutations, set (Ya)g,h=∑u∈Ra,v∈Casgn⁡(v)1{g=huv}(Y_a)_{g,h}=\sum_{u\in\mathcal R_a,v\in\mathcal C_a}\operatorname{sgn}(v)\mathbf1_{\{g=huv\}}(Ya​)g,h​=∑u∈Ra​,v∈Ca​​sgn(v)1{g=huv}​, and let Va=ran⁡Ya⊆CSrV_a=\operatorname{ran}Y_a\subseteq\mathbb C^{S_r}Va​=ranYa​⊆CSr​. Then sa=dim⁡CVas_a=\dim_{\mathbb C}V_asa​=dimC​Va​, and χa(π)=tr⁡(LπQa)\chi_a(\pi)=\operatorname{tr}(L_\pi Q_a)χa​(π)=tr(Lπ​Qa​), where QaQ_aQa​ is orthogonal projection onto VaV_aVa​ and (Lπ)g,h=1{g=πh}(L_\pi)_{g,h}=\mathbf1_{\{g=\pi h\}}(Lπ​)g,h​=1{g=πh}​. This definition alone imposes no compatibility between RRR and aaa and asserts no projection property of the resulting matrix. It includes r=0r=0r=0 and D=0D=0D=0; the denominator r!r!r! is always nonzero.

QAlgorithms.Papers.Independent.Extend50.P33.tensorIdentityExtension

For natural numbers d,p,qd,p,qd,p,q and any complex matrix AAA indexed by length-ppp words over {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}, its extension is the matrix indexed by length-(p+q)(p+q)(p+q) words whose entries are

(tensorIdentityExtension⁡(q,A))x,y={Ax∣{0,…,p−1}, y∣{0,…,p−1},xi=yi for every p≤i<p+q,0,otherwise.\bigl(\operatorname{tensorIdentityExtension}(q,A)\bigr)_{x,y} = \begin{cases} A_{x|_{\{0,\ldots,p-1\}},\,y|_{\{0,\ldots,p-1\}}}, &x_i=y_i\ \text{for every }p\le i<p+q,\\ 0,&\text{otherwise}. \end{cases}(tensorIdentityExtension(q,A))x,y​={Ax∣{0,…,p−1}​,y∣{0,…,p−1}​​,0,​xi​=yi​ for every p≤i<p+q,otherwise.​

There are no assumptions on AAA. If q=0q=0q=0, the agreement condition is vacuous and this is AAA; if p=0p=0p=0, AAA has one entry and the result is that scalar times the identity on length-qqq words. Empty word-index sets, including those arising from d=0d=0d=0 and positive word length, are allowed.

QAlgorithms.Papers.Independent.Extend50.P33.traceFinalQudits

For natural numbers d,p,qd,p,qd,p,q and any complex matrix AAA indexed by length-(p+q)(p+q)(p+q) words over {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}, traceFinalQudits⁡(q,A)\operatorname{traceFinalQudits}(q,A)traceFinalQudits(q,A) is the matrix indexed by length-ppp words with entries

(traceFinalQudits⁡(q,A))x,y=∑z∈{0,…,d−1}qAxz,yz,\bigl(\operatorname{traceFinalQudits}(q,A)\bigr)_{x,y} =\sum_{z\in\{0,\ldots,d-1\}^{q}}A_{xz,yz},(traceFinalQudits(q,A))x,y​=z∈{0,…,d−1}q∑​Axz,yz​,

where xzxzxz denotes concatenation: its first ppp coordinates are xxx, and its last qqq coordinates are zzz. No positivity or normalization of AAA is required. For q=0q=0q=0, the sum has the single empty word and returns AAA; for p=0p=0p=0, its sole entry is tr⁡(A)\operatorname{tr}(A)tr(A). If d=0<qd=0<qd=0<q, the summation set is empty and every resulting entry is zero.

QAlgorithms.Papers.Independent.Extend50.P33.transposeLast

For natural numbers d,rd,rd,r and any complex matrix AAA indexed by length-(r+1)(r+1)(r+1) words over {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}, transposeLast⁡(A)\operatorname{transposeLast}(A)transposeLast(A) has entries

(transposeLast⁡(A))x,y=A x[r←yr], y[r←xr],\bigl(\operatorname{transposeLast}(A)\bigr)_{x,y} =A_{\,x[r\leftarrow y_r],\,y[r\leftarrow x_r]},(transposeLast(A))x,y​=Ax[r←yr​],y[r←xr​]​,

where x[r←yr]x[r\leftarrow y_r]x[r←yr​] replaces only the last coordinate of xxx by the last coordinate of yyy, and similarly for the other word. No complex conjugation is performed and no assumption on AAA is imposed. When r=0r=0r=0, this is ordinary matrix transpose; when d=0d=0d=0, the word-index set is empty.

QAlgorithms.Papers.Independent.Extend50.P33.transposedSpan

For any natural numbers d,rd,rd,r, let W={0,…,d−1}{0,…,r}W=\{0,\ldots,d-1\}^{\{0,\ldots,r\}}W={0,…,d−1}{0,…,r}. For every permutation π\piπ of these r+1r+1r+1 positions, let (Pπ)y,x=1(P_\pi)_{y,x}=1(Pπ​)y,x​=1 if y=x∘π−1y=x\circ\pi^{-1}y=x∘π−1, and 000 otherwise, and define a matrix TπT_\piTπ​ by

(Tπ)x,y=(Pπ) x[r←yr], y[r←xr],(T_\pi)_{x,y} =(P_\pi)_{\,x[r\leftarrow y_r],\,y[r\leftarrow x_r]},(Tπ​)x,y​=(Pπ​)x[r←yr​],y[r←xr​]​,

where the brackets mean replacement of the last coordinate. The declaration defines transposedSpan⁡(d,r)=span⁡C{Tπ:π∈Sr+1}\operatorname{transposedSpan}(d,r)=\operatorname{span}_{\mathbb C}\{T_\pi:\pi\in S_{r+1}\}transposedSpan(d,r)=spanC​{Tπ​:π∈Sr+1​}, a complex subspace of the matrices on WWW. Thus the transpose operation exchanges the last row and column coordinates before evaluating each permutation matrix. The definition includes r=0r=0r=0, when this span consists of scalar multiples of the identity on Cd\mathbb C^dCd, and d=0d=0d=0, when the ambient matrix space is zero.

QAlgorithms.Papers.Independent.Extend50.P33.unnormalizedPortBell

For natural numbers d,rd,rd,r and an index a∈{0,…,r−1}a\in\{0,\ldots,r-1\}a∈{0,…,r−1}, unnormalizedPortBell⁡(d,r,a)\operatorname{unnormalizedPortBell}(d,r,a)unnormalizedPortBell(d,r,a) is the complex matrix indexed by length-(r+1)(r+1)(r+1) words over {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1} whose (x,y)(x,y)(x,y)-entry is 111 precisely when xa=xrx_a=x_rxa​=xr​, ya=yry_a=y_rya​=yr​, and xi=yix_i=y_ixi​=yi​ for every coordinate iii distinct from both aaa and rrr; its entry is 000 otherwise. It imposes no further equality between the values of xxx and yyy at those two distinguished coordinates. The parameter r=0r=0r=0 admits no index aaa; for d=0d=0d=0, the matrix has an empty index set.

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