Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Definitions for Optimal Multi-port-based Teleportation Schemes

Definition
QAlgorithms_Papers_Independent_Extend50_P20

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

prove2quantum

The objects the formalized statements of Optimal Multi-port-based Teleportation Schemes (arXiv:2011.09256) are stated in. Each was checked against the paper by a blind read-back and a moderator.

  • MpbtWord: Computational words for r qudits; PDF pp.3-6, Eqs.(1),(13).
  • PortOutcome: Ordered, pairwise distinct port outcomes, PDF p.3, Eq.(2).
  • UnselectedPorts: The unselected port positions for one outcome, PDF pp.7,15.
  • JointWord: All Alice ports followed by the k input/reference positions, PDF pp.4-7. The product coordinate type is the computational basis of N+k factors.
  • JointOp: Matrices on the N+k factors, PDF pp.4-7.
  • ThetaFamily: A conclusive auxiliary operator on precisely the unselected ports, Eq.(49).
  • liftPorts: A matrix tensored with the identity on all k remaining factors, Eq.(18).
  • bellInsertion: Insert k normalized Bell vectors at the selected ordered ports, leaving all unselected positions untouched; PDF pp.4,15, Eqs.(5),(49). Pair j is (i(j),j), so Bob's output is in the indicated order.
  • successEffect: The rotated conclusive effect P_i^+ tensor Theta_i, PDF p.15, Eq.(49). This factorization expresses exact transmission also for entangled inputs.
  • mpbtSignal: Normalized signal state, PDF p.4, Eq.(4); its trace is one for d>0. Printed Eqs.(9)-(10), p.5, use inconsistent n-exponents; Eq.(4) and Appendix B p.18 instead give sigma_i=V_i^(k)/d^N. We use the latter, which also follows directly by tracing normalized Bell pairs.
  • traceOutputs: Trace out all k final factors, not just one; PDF pp.7-8, Eqs.(20),(23).
  • IsResource: The normalized pure-resource Gram operator, PDF p.3, Eq.(1).
  • ProbFeasible: Full probabilistic primal domain, PDF p.7, Eqs.(17)-(18), p.15, Eq.(49). No symmetry ansatz is imposed. The slack is the rotated failure effect.
  • probScore: Average exact success, PDF pp.5,7, Eqs.(7),(17); Bell factors have trace one.
  • probValues: Attainable objective set of the unrestricted probabilistic primal SDP, PDF p.7, Eqs.(17)-(18); both resource and effects vary.
  • optimalMpbtSuccess: Optimal exact success, PDF pp.7,10. The valid-domain theorem below states an attained greatest value, so the real supremum is not used as a default.
  • RealizesMpbtEffects: Physical POVM realization of rotated conclusive effects, PDF pp.3-5. Failure is an actual PSD effect and the unrotated effects sum to identity.
  • DetFeasible: Unrestricted deterministic primal domain, PDF p.8, Eqs.(21)-(22). Its PSD slack can complete the physical POVM; it is not discarded by assuming that rotated effects themselves form a normalized POVM.
  • detScore: Entanglement fidelity against the normalized k-qudit maximally entangled state, PDF p.5, Eq.(6), p.8, Eq.(21).
  • detValues: Attainable deterministic primal objectives, PDF p.8, Eqs.(21)-(22).
  • ProbDualFeasible: Probabilistic dual domain, PDF p.7, Eqs.(19)-(20). Omega acts on N+k factors. E_i^* Omega E_i is the partial Bell trace in (20)(b), an operator on the unselected N-k factors.
  • probDualValues: Attainable probabilistic dual objectives d^N b, PDF p.7, Eq.(19).
  • DetDualFeasible: Deterministic dual in the epigraph form of the positive partial-trace operator norm, PDF p.8, Eqs.(23)-(24). On the valid domain Omega dominates a PSD signal, so its partial trace is PSD and bI >= Tr_out Omega is exactly the upper-eigenvalue epigraph of the source infinity norm.
  • detDualValues: Attainable deterministic dual epigraph objectives, PDF p.8, Eq.(23). The real ratio d^N/d^(2k) avoids truncated natural subtraction in the exponent.
  • mpbtSchurMultiplicity: Actual swap-representation multiplicity: dimension of the constructed Schur GL_d module, PDF p.14, Eqs.(42)-(45).
  • spechtDimension: Actual Specht dimension, distinguished from local dimension d, PDF pp.8-9,14.
  • multiplicitySquares: Sum of squared physical multiplicities, PDF pp.14,22, Eqs.(46),(105).
  • complementNumbering: A fixed complement numbering, PDF p.15, Eq.(50). The Young projector is central, so choosing another numbering leaves the physical operator unchanged.
  • unselectedYoungProjector: Full physical Young projector on the unselected positions, not one Young-symmetrizer copy; PDF p.15, Eq.(50).
  • optimalProbTheta: The conclusive Theta_i prescribed by Theorem 5: S_N is in the denominator, PDF p.11, Eq.(36), and p.16, Eq.(52).
  • optimalProbOperation: The resource operation of Theorem 5, including S_N under the square root, PDF p.11, Eq.(36), p.16, Eq.(53), p.18, Eq.(69).
  • factorialRatio: Closed factorial expression, PDF p.10, Eq.(33). All division is real; usage theorems require positive d and 1 <= k <= N.
  • BoundedShape: All shapes up to a fixed degree, used only as a finite ambient path type, PDF pp.8-9.
  • IsYoungPath: A chain adding exactly one box at each step, including valid intermediate Young diagrams, PDF pp.8-9, Definition 6 pp.11-12. Endpoints are underlying diagrams so no dependent casts identify different partitions.
  • pathCount: Number of all legal k-box paths, zero if endpoints are incompatible, PDF pp.8-9,12. These are counted paths, not free multiplicity parameters.
  • teleportationMatrix: Generalized teleportation matrix, the Gram form of Eqs.(37)-(38),(83)-(85), PDF pp.11-12,19-20. The printed S(N-1) for alpha in Definition 6 is corrected to S(N-k), as required by its k-box definition and the proof.
  • largestTeleportationEigenvalue: Largest eigenvalue in its Rayleigh-variational characterization, PDF p.20, Eq.(85), on the actual constructed finite symmetric matrix. The valid-domain shape set is nonempty and the unit sphere is compact.
  • cycleCount: Count every permutation cycle, including fixed points; Mathlib cycleType alone omits the latter. PDF pp.22-23, Eqs.(105),(109).
  • fixLast: Embed S(r) in S(r+1) by fixing the new final point, PDF p.23, Lemma 12.
Definition code
import Mathlib
import Definitions.Def_QAlgorithms_Defs_SchurWeylDecomposition

noncomputable section

open scoped BigOperators Matrix ComplexOrder
open Filter

namespace QAlgorithms.Papers.Independent.Extend50.P20

attribute [local instance] Classical.propDecidable

/-- Computational words for r qudits; PDF pp.3-6, Eqs.(1),(13). -/
abbrev MpbtWord (d r : ℕ) := Fin r → Fin d

/-- Ordered, pairwise distinct port outcomes, PDF p.3, Eq.(2). -/
abbrev PortOutcome (N k : ℕ) := Fin k ↪ Fin N

/-- The unselected port positions for one outcome, PDF pp.7,15. -/
abbrev UnselectedPorts {N k : ℕ} (i : PortOutcome N k) :=
  {a : Fin N // a ∉ Set.range i}

/-- All Alice ports followed by the k input/reference positions, PDF pp.4-7.
The product coordinate type is the computational basis of N+k factors. -/
abbrev JointWord (d N k : ℕ) := MpbtWord d N × MpbtWord d k

/-- Matrices on the N+k factors, PDF pp.4-7. -/
abbrev JointOp (d N k : ℕ) := Matrix (JointWord d N k) (JointWord d N k) ℂ

/-- A conclusive auxiliary operator on precisely the unselected ports, Eq.(49). -/
abbrev ThetaFamily (d N k : ℕ) :=
  (i : PortOutcome N k) → Matrix (UnselectedPorts i → Fin d) (UnselectedPorts i → Fin d) ℂ

/-- A matrix tensored with the identity on all k remaining factors, Eq.(18). -/
def liftPorts {d N k : ℕ} (X : Matrix (MpbtWord d N) (MpbtWord d N) ℂ) : JointOp d N k :=
  Matrix.of fun x y => X x.1 y.1 * if x.2 = y.2 then 1 else 0

/-- Insert k normalized Bell vectors at the selected ordered ports, leaving
all unselected positions untouched; PDF pp.4,15, Eqs.(5),(49).
Pair j is (i(j),j), so Bob's output is in the indicated order. -/
def bellInsertion {d N k : ℕ} (i : PortOutcome N k) :
    Matrix (JointWord d N k) (UnselectedPorts i → Fin d) ℂ :=
  Matrix.of fun x w =>
    if (∀ j, x.1 (i j) = x.2 j) ∧ (∀ a : UnselectedPorts i, x.1 a.val = w a)
    then (((Real.sqrt ((d : ℝ)^k))⁻¹ : ℝ) : ℂ) else 0

/-- The rotated conclusive effect P_i^+ tensor Theta_i, PDF p.15, Eq.(49).
This factorization expresses exact transmission also for entangled inputs. -/
def successEffect {d N k : ℕ} (i : PortOutcome N k)
    (T : Matrix (UnselectedPorts i → Fin d) (UnselectedPorts i → Fin d) ℂ) : JointOp d N k :=
  bellInsertion (d := d) i * T * Matrix.conjTranspose (bellInsertion (d := d) i)

/-- Normalized signal state, PDF p.4, Eq.(4); its trace is one for d>0.
Printed Eqs.(9)-(10), p.5, use inconsistent n-exponents; Eq.(4) and
Appendix B p.18 instead give sigma_i=V_i^(k)/d^N. We use the latter,
which also follows directly by tracing normalized Bell pairs. -/
def mpbtSignal {d N k : ℕ} (i : PortOutcome N k) : JointOp d N k :=
  ((1 : ℂ) / (d : ℂ)^(N-k)) • successEffect i 1

/-- Trace out all k final factors, not just one; PDF pp.7-8, Eqs.(20),(23). -/
def traceOutputs {d N k : ℕ} (Z : JointOp d N k) :
    Matrix (MpbtWord d N) (MpbtWord d N) ℂ :=
  Matrix.of fun a b => ∑ w : MpbtWord d k, Z (a,w) (b,w)

/-- The normalized pure-resource Gram operator, PDF p.3, Eq.(1). -/
def IsResource {d N : ℕ} (X : Matrix (MpbtWord d N) (MpbtWord d N) ℂ) : Prop :=
  X.PosSemidef ∧ X.trace = (d : ℂ)^N

/-- Full probabilistic primal domain, PDF p.7, Eqs.(17)-(18), p.15, Eq.(49).
No symmetry ansatz is imposed. The slack is the rotated failure effect. -/
def ProbFeasible {d N k : ℕ} (X : Matrix (MpbtWord d N) (MpbtWord d N) ℂ)
    (T : ThetaFamily d N k) : Prop :=
  IsResource X ∧ (∀ i, (T i).PosSemidef) ∧
    (liftPorts X - ∑ i : PortOutcome N k, successEffect i (T i)).PosSemidef

/-- Average exact success, PDF pp.5,7, Eqs.(7),(17); Bell factors have trace one. -/
def probScore {d N k : ℕ} (T : ThetaFamily d N k) : ℝ :=
  (∑ i : PortOutcome N k, (T i).trace.re) / (d : ℝ)^(N+k)

/-- Attainable objective set of the unrestricted probabilistic primal SDP,
PDF p.7, Eqs.(17)-(18); both resource and effects vary. -/
def probValues (d N k : ℕ) : Set ℝ :=
  {p | ∃ X : Matrix (MpbtWord d N) (MpbtWord d N) ℂ, ∃ T : ThetaFamily d N k,
    ProbFeasible X T ∧ p = probScore T}

/-- Optimal exact success, PDF pp.7,10. The valid-domain theorem below states
an attained greatest value, so the real supremum is not used as a default. -/
def optimalMpbtSuccess (d N k : ℕ) : ℝ := sSup (probValues d N k)

/-- Physical POVM realization of rotated conclusive effects, PDF pp.3-5.
Failure is an actual PSD effect and the unrotated effects sum to identity. -/
def RealizesMpbtEffects {d N k : ℕ} (O : Matrix (MpbtWord d N) (MpbtWord d N) ℂ)
    (P : PortOutcome N k → JointOp d N k) : Prop :=
  (Matrix.conjTranspose O * O).trace = (d : ℂ)^N ∧
    ∃ M : PortOutcome N k → JointOp d N k, ∃ failure : JointOp d N k,
      (∀ i, (M i).PosSemidef) ∧ failure.PosSemidef ∧
      (∑ i : PortOutcome N k, M i) + failure = 1 ∧
      ∀ i, Matrix.conjTranspose (liftPorts O) * M i * liftPorts O = P i

/-- Unrestricted deterministic primal domain, PDF p.8, Eqs.(21)-(22).
Its PSD slack can complete the physical POVM; it is not discarded by
assuming that rotated effects themselves form a normalized POVM. -/
def DetFeasible {d N k : ℕ} (X : Matrix (MpbtWord d N) (MpbtWord d N) ℂ)
    (P : PortOutcome N k → JointOp d N k) : Prop :=
  IsResource X ∧ (∀ i, (P i).PosSemidef) ∧
    (liftPorts X - ∑ i : PortOutcome N k, P i).PosSemidef

/-- Entanglement fidelity against the normalized k-qudit maximally entangled
state, PDF p.5, Eq.(6), p.8, Eq.(21). -/
def detScore {d N k : ℕ} (P : PortOutcome N k → JointOp d N k) : ℝ :=
  (∑ i : PortOutcome N k, ((P i) * mpbtSignal i).trace.re) / (d : ℝ)^(2*k)

/-- Attainable deterministic primal objectives, PDF p.8, Eqs.(21)-(22). -/
def detValues (d N k : ℕ) : Set ℝ :=
  {f | ∃ X : Matrix (MpbtWord d N) (MpbtWord d N) ℂ,
    ∃ P : PortOutcome N k → JointOp d N k, DetFeasible X P ∧ f = detScore P}

/-- Probabilistic dual domain, PDF p.7, Eqs.(19)-(20).
Omega acts on N+k factors. E_i^* Omega E_i is the partial Bell trace in
(20)(b), an operator on the unselected N-k factors. -/
def ProbDualFeasible {d N k : ℕ} (Z : JointOp d N k) (b : ℝ) : Prop :=
  Z.PosSemidef ∧ 0 ≤ b ∧
    (∀ i : PortOutcome N k,
      (Matrix.conjTranspose (bellInsertion (d := d) i) * Z *
        bellInsertion (d := d) i - 1).PosSemidef) ∧
    (((b : ℂ) • (1 : Matrix (MpbtWord d N) (MpbtWord d N) ℂ)) -
      ((1 : ℂ)/(d : ℂ)^(N+k)) • traceOutputs Z).PosSemidef

/-- Attainable probabilistic dual objectives d^N b, PDF p.7, Eq.(19). -/
def probDualValues (d N k : ℕ) : Set ℝ :=
  {p | ∃ Z : JointOp d N k, ∃ b : ℝ,
    ProbDualFeasible Z b ∧ p = (d : ℝ)^N * b}

/-- Deterministic dual in the epigraph form of the positive partial-trace
operator norm, PDF p.8, Eqs.(23)-(24). On the valid domain Omega dominates
a PSD signal, so its partial trace is PSD and bI >= Tr_out Omega is exactly
the upper-eigenvalue epigraph of the source infinity norm. -/
def DetDualFeasible {d N k : ℕ} (Z : JointOp d N k) (b : ℝ) : Prop :=
  (∀ i : PortOutcome N k, (Z - mpbtSignal i).PosSemidef) ∧
    (((b : ℂ) • (1 : Matrix (MpbtWord d N) (MpbtWord d N) ℂ)) - traceOutputs Z).PosSemidef

/-- Attainable deterministic dual epigraph objectives, PDF p.8, Eq.(23).
The real ratio d^N/d^(2k) avoids truncated natural subtraction in the exponent. -/
def detDualValues (d N k : ℕ) : Set ℝ :=
  {f | ∃ Z : JointOp d N k, ∃ b : ℝ, DetDualFeasible Z b ∧
    f = ((d : ℝ)^N / (d : ℝ)^(2*k)) * b}

/-- Actual swap-representation multiplicity: dimension of the constructed
Schur GL_d module, PDF p.14, Eqs.(42)-(45). -/
def mpbtSchurMultiplicity {d r : ℕ} (lambda : QAlgorithms.Schur.Partition d r) : ℕ :=
  Module.finrank ℂ (QAlgorithms.Schur.schurModule lambda)

/-- Actual Specht dimension, distinguished from local dimension d,
PDF pp.8-9,14. -/
def spechtDimension {d r : ℕ} (lambda : QAlgorithms.Schur.Partition d r) : ℕ :=
  Module.finrank ℂ (QAlgorithms.Schur.spechtSpace lambda)

/-- Sum of squared physical multiplicities, PDF pp.14,22, Eqs.(46),(105). -/
def multiplicitySquares (d r : ℕ) : ℝ :=
  ∑ lambda : QAlgorithms.Schur.Partition d r, (mpbtSchurMultiplicity lambda : ℝ)^2

/-- A fixed complement numbering, PDF p.15, Eq.(50). The Young projector is
central, so choosing another numbering leaves the physical operator unchanged. -/
def complementNumbering {N k : ℕ} (i : PortOutcome N k) : UnselectedPorts i ≃ Fin (N-k) :=
  Fintype.equivFinOfCardEq (by
    change Fintype.card ((Set.range i)ᶜ : Set (Fin N)) = N-k
    rw [Fintype.card_compl_set, Fintype.card_range i]
    simp)

/-- Full physical Young projector on the unselected positions, not one
Young-symmetrizer copy; PDF p.15, Eq.(50). -/
def unselectedYoungProjector {d N k : ℕ} (i : PortOutcome N k)
    (alpha : QAlgorithms.Schur.Partition d (N-k)) :
    Matrix (UnselectedPorts i → Fin d) (UnselectedPorts i → Fin d) ℂ :=
  Matrix.of fun x y => QAlgorithms.Schur.isotypicProjector alpha
    (fun a => x ((complementNumbering i).symm a))
    (fun a => y ((complementNumbering i).symm a))

/-- The conclusive Theta_i prescribed by Theorem 5: S_N is in the denominator,
PDF p.11, Eq.(36), and p.16, Eq.(52). -/
def optimalProbTheta (d N k : ℕ) : ThetaFamily d N k :=
  fun i => ∑ alpha : QAlgorithms.Schur.Partition d (N-k),
    ((((d : ℝ)^(N+k) * (mpbtSchurMultiplicity alpha : ℝ)) /
      (((k.factorial * N.choose k : ℕ) : ℝ) * (spechtDimension alpha : ℝ) *
        multiplicitySquares d N) : ℝ) : ℂ) • unselectedYoungProjector i alpha

/-- The resource operation of Theorem 5, including S_N under the square root,
PDF p.11, Eq.(36), p.16, Eq.(53), p.18, Eq.(69). -/
def optimalProbOperation (d N : ℕ) : Matrix (MpbtWord d N) (MpbtWord d N) ℂ :=
  ∑ mu : QAlgorithms.Schur.Partition d N,
    (((Real.sqrt ((d : ℝ)^N) * Real.sqrt ((mpbtSchurMultiplicity mu : ℝ) /
      ((spechtDimension mu : ℝ) * multiplicitySquares d N))) : ℝ) : ℂ) •
        QAlgorithms.Schur.isotypicProjector mu

/-- Closed factorial expression, PDF p.10, Eq.(33). All division is real;
usage theorems require positive d and 1 <= k <= N. -/
def factorialRatio (d N k : ℕ) : ℝ :=
  ((N.factorial : ℝ) * ((d^2+N-k-1).factorial : ℝ)) /
    (((N-k).factorial : ℝ) * ((d^2+N-1).factorial : ℝ))

/-- All shapes up to a fixed degree, used only as a finite ambient path type,
PDF pp.8-9. -/
abbrev BoundedShape (d R : ℕ) := (r : Fin (R+1)) × QAlgorithms.Schur.Partition d r.val

/-- A chain adding exactly one box at each step, including valid intermediate
Young diagrams, PDF pp.8-9, Definition 6 pp.11-12. Endpoints are underlying
diagrams so no dependent casts identify different partitions. -/
def IsYoungPath {d a b : ℕ} (alpha : QAlgorithms.Schur.Partition d a)
    (mu : QAlgorithms.Schur.Partition d b) (k : ℕ)
    (p : Fin (k+1) → BoundedShape d (a+k)) : Prop :=
  (p 0).2.val = alpha.val ∧ (p (Fin.last k)).2.val = mu.val ∧
    (∀ j, (p j).1.val = a+j.val) ∧
    ∀ j : Fin k, (p j.castSucc).2.val ≤ (p j.succ).2.val

/-- Number of all legal k-box paths, zero if endpoints are incompatible,
PDF pp.8-9,12. These are counted paths, not free multiplicity parameters. -/
def pathCount {d a b : ℕ} (alpha : QAlgorithms.Schur.Partition d a)
    (mu : QAlgorithms.Schur.Partition d b) (k : ℕ) : ℕ :=
  (Finset.univ.filter (IsYoungPath alpha mu k)).card

/-- Generalized teleportation matrix, the Gram form of Eqs.(37)-(38),(83)-(85),
PDF pp.11-12,19-20. The printed S(N-1) for alpha in Definition 6 is corrected
to S(N-k), as required by its k-box definition and the proof. -/
def teleportationMatrix (d N k : ℕ) :
    Matrix (QAlgorithms.Schur.Partition d N) (QAlgorithms.Schur.Partition d N) ℝ :=
  Matrix.of fun mu nu => ∑ alpha : QAlgorithms.Schur.Partition d (N-k),
    (pathCount alpha mu k : ℝ) * (pathCount alpha nu k : ℝ)

/-- Largest eigenvalue in its Rayleigh-variational characterization, PDF p.20,
Eq.(85), on the actual constructed finite symmetric matrix. The valid-domain
shape set is nonempty and the unit sphere is compact. -/
def largestTeleportationEigenvalue (d N k : ℕ) : ℝ :=
  sSup {r : ℝ | ∃ v : QAlgorithms.Schur.Partition d N → ℝ,
    (∑ mu, v mu ^ 2) = 1 ∧
    r = ∑ mu, ∑ nu, v mu * teleportationMatrix d N k mu nu * v nu}

/-- Count every permutation cycle, including fixed points; Mathlib cycleType
alone omits the latter. PDF pp.22-23, Eqs.(105),(109). -/
def cycleCount {r : ℕ} (pi : Equiv.Perm (Fin r)) : ℕ :=
  pi.cycleType.card + (Finset.univ.filter fun a => pi a = a).card

/-- Embed S(r) in S(r+1) by fixing the new final point, PDF p.23, Lemma 12. -/
def fixLast {r : ℕ} (pi : Equiv.Perm (Fin r)) : Equiv.Perm (Fin (r+1)) :=
  Equiv.permCongr (finSumFinEquiv : Fin r ⊕ Fin 1 ≃ Fin (r+1))
    (Equiv.sumCongr pi (Equiv.refl (Fin 1)))

/-- Sanity: the lift preserves a zero operator, independently of input dimension. -/
example (d N k : ℕ) : liftPorts (k := k) (0 : Matrix (MpbtWord d N) (MpbtWord d N) ℂ) = 0 := by
  ext x y
  simp [liftPorts]

/-- Sanity: one port and one qubit have success 1/4, Eq.(34). -/
example : factorialRatio 2 1 1 = 1/4 := by norm_num [factorialRatio]

/-- Sanity: in dimension one even the full one-port endpoint succeeds surely. -/
example : factorialRatio 1 1 1 = 1 := by norm_num [factorialRatio]

/-- Sanity: the empty permutation has zero cycles, including fixed points. -/
example : cycleCount (1 : Equiv.Perm (Fin 0)) = 0 := by simp [cycleCount]

/-- Sanity: identity on r points has r cycles; fixed points cannot be dropped. -/
example (r : ℕ) : cycleCount (1 : Equiv.Perm (Fin r)) = r := by simp [cycleCount]

/-- Sanity: a zero-step path keeps its diagram and has no edge conditions. -/
example {d a : ℕ} (alpha : QAlgorithms.Schur.Partition d a) :
    IsYoungPath alpha alpha 0 (fun _ => ⟨⟨a, by omega⟩, alpha⟩) := by
  refine ⟨rfl, rfl, ?_, ?_⟩
  · intro j
    have hj : j.val = 0 := by omega
    simp [hj]
  · intro j
    exact Fin.elim0 j

end QAlgorithms.Papers.Independent.Extend50.P20
Source
Optimal Multi-port-based Teleportation Schemes, arXiv:2011.09256v3, https://arxiv.org/abs/2011.09256v3
Read-back

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

QAlgorithms.Papers.Independent.Extend50.P20.BoundedShape

For any natural numbers d,Rd,Rd,R, this abbreviates the type of pairs (r,λ)(r,\lambda)(r,λ) in which rrr is an integer with 0≤r≤R0\le r\le R0≤r≤R and λ\lambdaλ is a Young diagram with exactly rrr cells and at most ddd rows, the latter condition being that its first column has length at most ddd. Thus the diagram’s required size depends on the first component of the pair. Zero values are included: when R=0R=0R=0, the only pair consists of r=0r=0r=0 and the empty diagram; when d=0d=0d=0, this is also the only pair for every RRR.

QAlgorithms.Papers.Independent.Extend50.P20.DetDualFeasible

For arbitrary natural numbers d,N,kd,N,kd,N,k, including zero, let [r]={0,…,r−1}[r]=\{0,\ldots,r-1\}[r]={0,…,r−1}, Wr=[d][r]W_r=[d]^{[r]}Wr​=[d][r], J=WN×WkJ=W_N\times W_kJ=WN​×Wk​, and I\mathcal II be the injections [k]↪[N][k]\hookrightarrow[N][k]↪[N]. Given a complex matrix ZZZ indexed by JJJ and a real number bbb, this predicate means

Z−Si⪰0for every i∈I,bIWN−R(Z)⪰0.Z-S_i\succeq0\quad\text{for every }i\in\mathcal I, \qquad bI_{W_N}-R(Z)\succeq0.Z−Si​⪰0for every i∈I,bIWN​​−R(Z)⪰0.

Here ⪰0\succeq0⪰0 means positive semidefinite, R(Z)a,c=∑u∈WkZ(a,u),(c,u)R(Z)_{a,c}=\sum_{u\in W_k}Z_{(a,u),(c,u)}R(Z)a,c​=∑u∈Wk​​Z(a,u),(c,u)​, and Si=d−(N−k)BiBi†S_i=d^{-(N-k)}B_iB_i^\daggerSi​=d−(N−k)Bi​Bi†​, with N−kN-kN−k truncated at zero. The columns of BiB_iBi​ are functions w:[N]∖range⁡(i)→[d]w:[N]\setminus\operatorname{range}(i)\to[d]w:[N]∖range(i)→[d]; its entry at row (a,u)(a,u)(a,u) and column www is (dk)−1(\sqrt{d^k})^{-1}(dk​)−1 if a(i(j))=u(j)a(i(j))=u(j)a(i(j))=u(j) for every j∈[k]j\in[k]j∈[k] and a(t)=w(t)a(t)=w(t)a(t)=w(t) for every unselected ttt, and zero otherwise. These are the only imposed conditions; there is no separate requirement that ZZZ be positive semidefinite or that b≥0b\ge0b≥0. If k>Nk>Nk>N, the first family of conditions is vacuous. All reciprocals use inverse zero equal to zero, 00=10^0=100=1, W0W_0W0​ is a singleton, and WrW_rWr​ is empty if d=0<rd=0<rd=0<r.

QAlgorithms.Papers.Independent.Extend50.P20.DetFeasible

For arbitrary natural numbers d,N,kd,N,kd,N,k, including zero, let WrW_rWr​ be the functions {0,…,r−1}→{0,…,d−1}\{0,\ldots,r-1\}\to\{0,\ldots,d-1\}{0,…,r−1}→{0,…,d−1}, let J=WN×WkJ=W_N\times W_kJ=WN​×Wk​, and let I\mathcal II be the injections {0,…,k−1}↪{0,…,N−1}\{0,\ldots,k-1\}\hookrightarrow\{0,\ldots,N-1\}{0,…,k−1}↪{0,…,N−1}. Given a complex matrix XXX indexed by WNW_NWN​ and complex matrices PiP_iPi​ indexed by JJJ, this predicate means that XXX is positive semidefinite, tr⁡X=dN\operatorname{tr}X=d^NtrX=dN, every PiP_iPi​ is positive semidefinite, and

L(X)−∑i∈IPiL(X)-\sum_{i\in\mathcal I}P_iL(X)−i∈I∑​Pi​

is positive semidefinite, where L(X)(a,u),(b,v)=Xa,b1u=vL(X)_{(a,u),(b,v)}=X_{a,b}\mathbf1_{u=v}L(X)(a,u),(b,v)​=Xa,b​1u=v​. If k>Nk>Nk>N, the family condition is vacuous and the sum is zero. The set W0W_0W0​ is a singleton, WrW_rWr​ is empty when d=0<rd=0<rd=0<r, and 00=10^0=100=1.

QAlgorithms.Papers.Independent.Extend50.P20.IsResource

For natural numbers d,Nd,Nd,N and a complex matrix XXX whose rows and columns are indexed by all functions {0,…,N−1}→{0,…,d−1}\{0,\ldots,N-1\}\to\{0,\ldots,d-1\}{0,…,N−1}→{0,…,d−1}, IsResource⁡(X)\operatorname{IsResource}(X)IsResource(X) means that XXX is positive semidefinite and tr⁡(X)=dN\operatorname{tr}(X)=d^Ntr(X)=dN, with the trace equality taken in C\mathbb CC. No positivity assumption on ddd or NNN is imposed. When N=0N=0N=0, the index set is a singleton and the trace must be 111, including when d=0d=0d=0; when d=0<Nd=0<Nd=0<N, the index set is empty and its unique matrix satisfies the condition, since its trace and dNd^NdN are both zero.

QAlgorithms.Papers.Independent.Extend50.P20.IsYoungPath

For natural numbers d,a,bd,a,bd,a,b, Young diagrams α,μ\alpha,\muα,μ with respectively a,ba,ba,b cells and at most ddd rows, a natural number kkk, and a sequence p=(p0,…,pk)p=(p_0,\ldots,p_k)p=(p0​,…,pk​), this defines a proposition as follows. Each pjp_jpj​ is already required to be a pair (rj,λj)(r_j,\lambda_j)(rj​,λj​) with 0≤rj≤a+k0\le r_j\le a+k0≤rj​≤a+k and λj\lambda_jλj​ a Young diagram having rjr_jrj​ cells and at most ddd rows. The proposition holds exactly when

λ0=α,λk=μ,rj=a+j(0≤j≤k),λj⊆λj+1(0≤j<k),\lambda_0=\alpha,\qquad \lambda_k=\mu,\qquad r_j=a+j\quad(0\le j\le k),\qquad \lambda_j\subseteq\lambda_{j+1}\quad(0\le j<k),λ0​=α,λk​=μ,rj​=a+j(0≤j≤k),λj​⊆λj+1​(0≤j<k),

where inclusion means inclusion of the diagrams’ cell sets. Although b=a+kb=a+kb=a+k is not an input hypothesis, these conditions force it, so the proposition is false when b≠a+kb\ne a+kb=a+k. When k=0k=0k=0, there are no inclusion conditions, and the sole diagram must equal both α\alphaα and μ\muμ, with its size component equal to aaa.

QAlgorithms.Papers.Independent.Extend50.P20.JointOp

For natural numbers d,N,kd,N,kd,N,k, JointOp⁡(d,N,k)\operatorname{JointOp}(d,N,k)JointOp(d,N,k) is the space of all complex matrices whose rows and columns are indexed by pairs (a,u)(a,u)(a,u) of functions a:{0,…,N−1}→{0,…,d−1}a:\{0,\ldots,N-1\}\to\{0,\ldots,d-1\}a:{0,…,N−1}→{0,…,d−1} and u:{0,…,k−1}→{0,…,d−1}u:\{0,\ldots,k-1\}\to\{0,\ldots,d-1\}u:{0,…,k−1}→{0,…,d−1}. There are no positivity, Hermitian, or unitarity requirements. When N=k=0N=k=0N=k=0, these are 1×11\times11×1 matrices, including for d=0d=0d=0; when d=0d=0d=0 and N+k>0N+k>0N+k>0, the index set is empty and there is exactly one matrix.

QAlgorithms.Papers.Independent.Extend50.P20.JointWord

For natural numbers d,N,kd,N,kd,N,k, JointWord⁡(d,N,k)\operatorname{JointWord}(d,N,k)JointWord(d,N,k) is the set of pairs (a,u)(a,u)(a,u), where a:{0,…,N−1}→{0,…,d−1}a:\{0,\ldots,N-1\}\to\{0,\ldots,d-1\}a:{0,…,N−1}→{0,…,d−1} and u:{0,…,k−1}→{0,…,d−1}u:\{0,\ldots,k-1\}\to\{0,\ldots,d-1\}u:{0,…,k−1}→{0,…,d−1} are arbitrary functions. No relation between aaa and uuu, and no condition k≤Nk\le Nk≤N, is imposed. When N=k=0N=k=0N=k=0, this set is a singleton even if d=0d=0d=0; when d=0d=0d=0 and at least one of N,kN,kN,k is positive, it is empty.

QAlgorithms.Papers.Independent.Extend50.P20.MpbtWord

For natural numbers d,rd,rd,r, MpbtWord⁡(d,r)\operatorname{MpbtWord}(d,r)MpbtWord(d,r) is the set of all functions {0,…,r−1}→{0,…,d−1}\{0,\ldots,r-1\}\to\{0,\ldots,d-1\}{0,…,r−1}→{0,…,d−1}, that is, words of length rrr with symbols in a ddd-element alphabet. Zero values are allowed: for r=0r=0r=0 there is exactly one word, the empty function, including when d=0d=0d=0; for d=0<rd=0<rd=0<r there are no words.

QAlgorithms.Papers.Independent.Extend50.P20.PortOutcome

For natural numbers N,kN,kN,k, PortOutcome⁡(N,k)\operatorname{PortOutcome}(N,k)PortOutcome(N,k) is the set of injective functions i:{0,…,k−1}→{0,…,N−1}i:\{0,\ldots,k-1\}\to\{0,\ldots,N-1\}i:{0,…,k−1}→{0,…,N−1}. Such a function specifies an ordered selection of kkk distinct indices among NNN indices. When k=0k=0k=0, there is exactly one such function for every NNN; when k>Nk>Nk>N, there are none.

QAlgorithms.Papers.Independent.Extend50.P20.ProbDualFeasible

For arbitrary natural numbers d,N,kd,N,kd,N,k, including zero, let [r]={0,…,r−1}[r]=\{0,\ldots,r-1\}[r]={0,…,r−1}, Wr=[d][r]W_r=[d]^{[r]}Wr​=[d][r], J=WN×WkJ=W_N\times W_kJ=WN​×Wk​, and I\mathcal II be the injections [k]↪[N][k]\hookrightarrow[N][k]↪[N]. Given a complex matrix ZZZ indexed by JJJ and a real number bbb, this predicate means

Z⪰0,b≥0,Bi†ZBi−IVi⪰0for every i∈I,bIWN−1dN+k R(Z)⪰0.Z\succeq0,\qquad b\ge0,\qquad B_i^\dagger ZB_i-I_{V_i}\succeq0\quad\text{for every }i\in\mathcal I, \qquad bI_{W_N}-\frac{1}{d^{N+k}}\,R(Z)\succeq0.Z⪰0,b≥0,Bi†​ZBi​−IVi​​⪰0for every i∈I,bIWN​​−dN+k1​R(Z)⪰0.

Here ⪰0\succeq0⪰0 means positive semidefinite, ViV_iVi​ is the set of functions [N]∖range⁡(i)→[d][N]\setminus\operatorname{range}(i)\to[d][N]∖range(i)→[d], and R(Z)a,b′=∑u∈WkZ(a,u),(b′,u)R(Z)_{a,b'}=\sum_{u\in W_k}Z_{(a,u),(b',u)}R(Z)a,b′​=∑u∈Wk​​Z(a,u),(b′,u)​. The matrix BiB_iBi​, with rows (a,u)∈J(a,u)\in J(a,u)∈J and columns w∈Viw\in V_iw∈Vi​, has entry (dk)−1(\sqrt{d^k})^{-1}(dk​)−1 if a(i(j))=u(j)a(i(j))=u(j)a(i(j))=u(j) for all j∈[k]j\in[k]j∈[k] and a(t)=w(t)a(t)=w(t)a(t)=w(t) for all unselected ttt, and zero otherwise. All reciprocals use inverse zero equal to zero, and 00=10^0=100=1. If k>Nk>Nk>N, the conditions indexed by iii are vacuous; W0W_0W0​ is a singleton, and WrW_rWr​ is empty if d=0<rd=0<rd=0<r.

QAlgorithms.Papers.Independent.Extend50.P20.ProbFeasible

For arbitrary natural numbers d,N,kd,N,kd,N,k, including zero, let [r]={0,…,r−1}[r]=\{0,\ldots,r-1\}[r]={0,…,r−1}, let WrW_rWr​ be the set of functions [r]→[d][r]\to[d][r]→[d], and let I\mathcal II be the set of injections i:[k]↪[N]i:[k]\hookrightarrow[N]i:[k]↪[N]. For each iii, let Ui=[N]∖range⁡(i)U_i=[N]\setminus\operatorname{range}(i)Ui​=[N]∖range(i) and ViV_iVi​ be the set of functions Ui→[d]U_i\to[d]Ui​→[d]. Given a complex matrix XXX indexed by WNW_NWN​ and a family of complex matrices TiT_iTi​ indexed by ViV_iVi​, this predicate means that XXX is positive semidefinite, tr⁡X=dN\operatorname{tr}X=d^NtrX=dN, every TiT_iTi​ is positive semidefinite, and

L(X)−∑i∈IBiTiBi†L(X)-\sum_{i\in\mathcal I}B_iT_iB_i^\daggerL(X)−i∈I∑​Bi​Ti​Bi†​

is positive semidefinite. Here L(X)L(X)L(X), indexed by WN×WkW_N\times W_kWN​×Wk​, has entry Xa,b1u=vX_{a,b}\mathbf1_{u=v}Xa,b​1u=v​ at ((a,u),(b,v))((a,u),(b,v))((a,u),(b,v)), and BiB_iBi​, with rows (a,u)∈WN×Wk(a,u)\in W_N\times W_k(a,u)∈WN​×Wk​ and columns w∈Viw\in V_iw∈Vi​, has entry (dk)−1(\sqrt{d^k})^{-1}(dk​)−1 when a(i(j))=u(j)a(i(j))=u(j)a(i(j))=u(j) for every j∈[k]j\in[k]j∈[k] and a(t)=w(t)a(t)=w(t)a(t)=w(t) for every t∈Uit\in U_it∈Ui​, and entry zero otherwise. The inverse of zero is taken to be zero. If k>Nk>Nk>N, I\mathcal II is empty, so the family condition is vacuous and the sum is zero; if k=0k=0k=0, there is exactly one injection. The word set W0W_0W0​ is a singleton even when d=0d=0d=0, whereas WrW_rWr​ is empty when d=0<rd=0<rd=0<r.

QAlgorithms.Papers.Independent.Extend50.P20.RealizesMpbtEffects

For arbitrary natural numbers d,N,kd,N,kd,N,k, including zero, let WrW_rWr​ be the functions {0,…,r−1}→{0,…,d−1}\{0,\ldots,r-1\}\to\{0,\ldots,d-1\}{0,…,r−1}→{0,…,d−1}, let J=WN×WkJ=W_N\times W_kJ=WN​×Wk​, and let I\mathcal II be the injections {0,…,k−1}↪{0,…,N−1}\{0,\ldots,k-1\}\hookrightarrow\{0,\ldots,N-1\}{0,…,k−1}↪{0,…,N−1}. Given a complex matrix OOO indexed by WNW_NWN​ and a family of complex matrices PiP_iPi​ indexed by JJJ, this predicate means that

tr⁡(O†O)=dN\operatorname{tr}(O^\dagger O)=d^Ntr(O†O)=dN

and there exist complex matrices MiM_iMi​ indexed by JJJ, one for each i∈Ii\in\mathcal Ii∈I, and a complex matrix FFF indexed by JJJ, such that every MiM_iMi​ and FFF are positive semidefinite,

∑i∈IMi+F=IJ,L(O)†MiL(O)=Pifor every i∈I.\sum_{i\in\mathcal I}M_i+F=I_J, \qquad L(O)^\dagger M_iL(O)=P_i\quad\text{for every }i\in\mathcal I.i∈I∑​Mi​+F=IJ​,L(O)†Mi​L(O)=Pi​for every i∈I.

Here L(O)(a,u),(b,v)=Oa,b1u=vL(O)_{(a,u),(b,v)}=O_{a,b}\mathbf1_{u=v}L(O)(a,u),(b,v)​=Oa,b​1u=v​, and †\dagger† denotes conjugate transpose. If k>Nk>Nk>N, the indexed family conditions are vacuous and the sum condition becomes F=IJF=I_JF=IJ​, while the trace condition on OOO remains. Empty word domains give singleton word sets, word sets with nonempty domain and d=0d=0d=0 are empty, and 00=10^0=100=1.

QAlgorithms.Papers.Independent.Extend50.P20.ThetaFamily

For natural numbers d,N,kd,N,kd,N,k, ThetaFamily⁡(d,N,k)\operatorname{ThetaFamily}(d,N,k)ThetaFamily(d,N,k) is the set of families T=(Ti)iT=(T_i)_iT=(Ti​)i​ indexed by all injections i:{0,…,k−1}→{0,…,N−1}i:\{0,\ldots,k-1\}\to\{0,\ldots,N-1\}i:{0,…,k−1}→{0,…,N−1}, where TiT_iTi​ is an arbitrary complex matrix with rows and columns indexed by functions from {a∈{0,…,N−1}:a∉range⁡(i)}\{a\in\{0,\ldots,N-1\}:a\notin\operatorname{range}(i)\}{a∈{0,…,N−1}:a∈/range(i)} to {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}. No positivity or other matrix condition is imposed. When k>Nk>Nk>N, there are no injections and the family is the unique empty family. For an existing injection, the matrix index set is a singleton when N=kN=kN=k, even for d=0d=0d=0, and is empty when d=0d=0d=0 and N>kN>kN>k.

QAlgorithms.Papers.Independent.Extend50.P20.UnselectedPorts

For natural numbers N,kN,kN,k and an injective function i:{0,…,k−1}→{0,…,N−1}i:\{0,\ldots,k-1\}\to\{0,\ldots,N-1\}i:{0,…,k−1}→{0,…,N−1}, UnselectedPorts⁡(i)\operatorname{UnselectedPorts}(i)UnselectedPorts(i) is the set {a∈{0,…,N−1}:a∉range⁡(i)}\{a\in\{0,\ldots,N-1\}:a\notin\operatorname{range}(i)\}{a∈{0,…,N−1}:a∈/range(i)}. Its elements carry the condition that they are outside the image of iii. The existence of iii forces k≤Nk\le Nk≤N, and this set has N−kN-kN−k elements; it is empty when k=Nk=Nk=N, and it contains all NNN indices when k=0k=0k=0.

QAlgorithms.Papers.Independent.Extend50.P20.bellInsertion

For natural numbers d,N,kd,N,kd,N,k and an injection i:{0,…,k−1}→{0,…,N−1}i:\{0,\ldots,k-1\}\to\{0,\ldots,N-1\}i:{0,…,k−1}→{0,…,N−1}, put Ci={a∈{0,…,N−1}:a∉range⁡(i)}C_i=\{a\in\{0,\ldots,N-1\}:a\notin\operatorname{range}(i)\}Ci​={a∈{0,…,N−1}:a∈/range(i)}. The matrix Bi=bellInsertion⁡(i)B_i=\operatorname{bellInsertion}(i)Bi​=bellInsertion(i) has rows indexed by pairs of functions a:{0,…,N−1}→{0,…,d−1}a:\{0,\ldots,N-1\}\to\{0,\ldots,d-1\}a:{0,…,N−1}→{0,…,d−1}, u:{0,…,k−1}→{0,…,d−1}u:\{0,\ldots,k-1\}\to\{0,\ldots,d-1\}u:{0,…,k−1}→{0,…,d−1}, and columns indexed by functions w:Ci→{0,…,d−1}w:C_i\to\{0,\ldots,d-1\}w:Ci​→{0,…,d−1}. Its entry Bi((a,u),w)B_i((a,u),w)Bi​((a,u),w) is the real number 1/dk1/\sqrt{d^k}1/dk​, regarded as complex, if a(i(j))=u(j)a(i(j))=u(j)a(i(j))=u(j) for every j<kj<kj<k and a(c)=w(c)a(c)=w(c)a(c)=w(c) for every c∈Cic\in C_ic∈Ci​; otherwise it is 000. The injection forces k≤Nk\le Nk≤N. Empty-domain conditions are vacuous; when k=0k=0k=0, the coefficient is 111, including for d=0d=0d=0, since d0=1d^0=1d0=1. If d=0<kd=0<kd=0<k, the coefficient is 000 under the convention 0−1=00^{-1}=00−1=0, and there are no row indices.

QAlgorithms.Papers.Independent.Extend50.P20.complementNumbering

For any natural numbers N,kN,kN,k and any injection i:{0,…,k−1}↪{0,…,N−1}i:\{0,\ldots,k-1\}\hookrightarrow\{0,\ldots,N-1\}i:{0,…,k−1}↪{0,…,N−1}, this defines a bijection, chosen by finite-type enumeration,

βi:{a∈{0,…,N−1}:a∉range⁡(i)}  ≃  {0,…,N−k−1}.\beta_i: \{a\in\{0,\ldots,N-1\}:a\notin\operatorname{range}(i)\} \;\simeq\; \{0,\ldots,N-k-1\}.βi​:{a∈{0,…,N−1}:a∈/range(i)}≃{0,…,N−k−1}.

The choice uses the fact that the complement of the injection’s range has cardinality N−kN-kN−k. Natural-number subtraction is truncated at zero, although the existence of iii already forces k≤Nk\le Nk≤N. When k=Nk=Nk=N, both sides are empty; when k=0k=0k=0, the domain is the whole set of NNN labels. There is no possible argument iii when k>Nk>Nk>N.

QAlgorithms.Papers.Independent.Extend50.P20.cycleCount

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

cycleCount⁡(π)=the number of cycles of length at least two in π+∣{a∈{0,…,r−1}:π(a)=a}∣.\operatorname{cycleCount}(\pi) = \text{the number of cycles of length at least two in }\pi + \bigl|\{a\in\{0,\ldots,r-1\}:\pi(a)=a\}\bigr|.cycleCount(π)=the number of cycles of length at least two in π+​{a∈{0,…,r−1}:π(a)=a}​.

The first term counts the entries of the multiset of nontrivial cycle lengths, including repeated lengths separately, rather than summing those lengths. Thus fixed points each contribute one additional cycle. For r=0r=0r=0, both terms are zero.

QAlgorithms.Papers.Independent.Extend50.P20.detDualValues

For arbitrary natural numbers d,N,kd,N,kd,N,k, including zero, let [r]={0,…,r−1}[r]=\{0,\ldots,r-1\}[r]={0,…,r−1}, Wr=[d][r]W_r=[d]^{[r]}Wr​=[d][r], J=WN×WkJ=W_N\times W_kJ=WN​×Wk​, and I\mathcal II be the injections [k]↪[N][k]\hookrightarrow[N][k]↪[N]. This definition gives the set of real numbers fff for which there exist a complex matrix ZZZ indexed by JJJ and a real number bbb such that

Z−Si⪰0 for every i∈I,bIWN−R(Z)⪰0,f=(dNd2k)b.Z-S_i\succeq0\text{ for every }i\in\mathcal I,\qquad bI_{W_N}-R(Z)\succeq0,\qquad f=\left(\frac{d^N}{d^{2k}}\right)b.Z−Si​⪰0 for every i∈I,bIWN​​−R(Z)⪰0,f=(d2kdN​)b.

Here ⪰0\succeq0⪰0 means positive semidefinite, R(Z)a,c=∑u∈WkZ(a,u),(c,u)R(Z)_{a,c}=\sum_{u\in W_k}Z_{(a,u),(c,u)}R(Z)a,c​=∑u∈Wk​​Z(a,u),(c,u)​, and Si=d−(N−k)BiBi†S_i=d^{-(N-k)}B_iB_i^\daggerSi​=d−(N−k)Bi​Bi†​, where natural subtraction N−kN-kN−k is truncated at zero. The matrix BiB_iBi​ has columns indexed by functions w:[N]∖range⁡(i)→[d]w:[N]\setminus\operatorname{range}(i)\to[d]w:[N]∖range(i)→[d], and entry (dk)−1(\sqrt{d^k})^{-1}(dk​)−1 at ((a,u),w)((a,u),w)((a,u),w) when a(i(j))=u(j)a(i(j))=u(j)a(i(j))=u(j) for all j∈[k]j\in[k]j∈[k] and a(t)=w(t)a(t)=w(t)a(t)=w(t) for every unselected ttt, and zero otherwise. There are no separate positivity requirements on ZZZ or bbb. If k>Nk>Nk>N, the conditions indexed by injections are vacuous. Inverse zero is zero and 00=10^0=100=1, so if d=0<kd=0<kd=0<k, every represented value fff is zero. Word sets with empty domain are singletons, while those with nonempty domain and d=0d=0d=0 are empty.

QAlgorithms.Papers.Independent.Extend50.P20.detScore

For arbitrary natural numbers d,N,kd,N,kd,N,k, including zero, let [r]={0,…,r−1}[r]=\{0,\ldots,r-1\}[r]={0,…,r−1}, Wr=[d][r]W_r=[d]^{[r]}Wr​=[d][r], J=WN×WkJ=W_N\times W_kJ=WN​×Wk​, and I\mathcal II be the injections [k]↪[N][k]\hookrightarrow[N][k]↪[N]. Given arbitrary complex matrices PiP_iPi​ indexed by JJJ, their defined real score is

∑i∈IRe⁡tr⁡(PiSi)d2k,Si=1dN−k BiBi†.\frac{\displaystyle\sum_{i\in\mathcal I} \operatorname{Re}\operatorname{tr}(P_iS_i)}{d^{2k}}, \qquad S_i=\frac{1}{d^{N-k}}\,B_iB_i^\dagger.d2ki∈I∑​Retr(Pi​Si​)​,Si​=dN−k1​Bi​Bi†​.

Here N−kN-kN−k is natural subtraction, truncated at zero, and BiB_iBi​ has columns indexed by functions w:[N]∖range⁡(i)→[d]w:[N]\setminus\operatorname{range}(i)\to[d]w:[N]∖range(i)→[d]; its entry at row (a,u)(a,u)(a,u) and column www is (dk)−1(\sqrt{d^k})^{-1}(dk​)−1 if a(i(j))=u(j)a(i(j))=u(j)a(i(j))=u(j) for every j∈[k]j\in[k]j∈[k] and a(t)=w(t)a(t)=w(t)a(t)=w(t) for every unselected ttt, and zero otherwise. No positivity or feasibility condition is imposed on PiP_iPi​. If k>Nk>Nk>N, the sum is empty and the score is zero. All quotients use inverse zero equal to zero, and 00=10^0=100=1; in particular, if d=0<kd=0<kd=0<k, the score is zero because its denominator is zero. Word sets with empty domain are singletons, and those with nonempty domain and d=0d=0d=0 are empty.

QAlgorithms.Papers.Independent.Extend50.P20.detValues

For arbitrary natural numbers d,N,kd,N,kd,N,k, including zero, let [r]={0,…,r−1}[r]=\{0,\ldots,r-1\}[r]={0,…,r−1}, Wr=[d][r]W_r=[d]^{[r]}Wr​=[d][r], J=WN×WkJ=W_N\times W_kJ=WN​×Wk​, and I\mathcal II be the injections [k]↪[N][k]\hookrightarrow[N][k]↪[N]. This definition gives the set of real numbers fff for which there exist a complex matrix XXX indexed by WNW_NWN​ and complex matrices PiP_iPi​ indexed by JJJ, such that

X⪰0,tr⁡X=dN,Pi⪰0 for every i,L(X)−∑i∈IPi⪰0,f=∑i∈IRe⁡tr⁡(PiSi)d2k.X\succeq0,\quad \operatorname{tr}X=d^N,\quad P_i\succeq0\text{ for every }i,\quad L(X)-\sum_{i\in\mathcal I}P_i\succeq0, \qquad f=\frac{\sum_{i\in\mathcal I}\operatorname{Re}\operatorname{tr}(P_iS_i)}{d^{2k}}.X⪰0,trX=dN,Pi​⪰0 for every i,L(X)−i∈I∑​Pi​⪰0,f=d2k∑i∈I​Retr(Pi​Si​)​.

Here ⪰0\succeq0⪰0 means positive semidefinite, L(X)(a,u),(b,v)=Xa,b1u=vL(X)_{(a,u),(b,v)}=X_{a,b}\mathbf1_{u=v}L(X)(a,u),(b,v)​=Xa,b​1u=v​, and Si=d−(N−k)BiBi†S_i=d^{-(N-k)}B_iB_i^\daggerSi​=d−(N−k)Bi​Bi†​, where N−kN-kN−k is truncated natural subtraction. The matrix BiB_iBi​ has columns indexed by functions w:[N]∖range⁡(i)→[d]w:[N]\setminus\operatorname{range}(i)\to[d]w:[N]∖range(i)→[d], and entry (dk)−1(\sqrt{d^k})^{-1}(dk​)−1 at ((a,u),w)((a,u),w)((a,u),w) precisely when a(i(j))=u(j)a(i(j))=u(j)a(i(j))=u(j) for all j∈[k]j\in[k]j∈[k] and a(t)=w(t)a(t)=w(t)a(t)=w(t) for every unselected ttt; its other entries are zero. Negative powers here denote reciprocals, with inverse zero equal to zero, and 00=10^0=100=1. If k>Nk>Nk>N, the indexed conditions are vacuous and the sums vanish. The set W0W_0W0​ is a singleton, while WrW_rWr​ is empty if d=0<rd=0<rd=0<r.

QAlgorithms.Papers.Independent.Extend50.P20.factorialRatio

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

factorialRatio⁡(d,N,k)=N! ((d2+N)\dotminusk\dotminus1)!(N\dotminusk)! ((d2+N)\dotminus1)!,\operatorname{factorialRatio}(d,N,k) = \frac{N!\,\bigl((d^2+N)\mathbin{\dotminus}k\mathbin{\dotminus}1\bigr)!} {(N\mathbin{\dotminus}k)!\, \bigl((d^2+N)\mathbin{\dotminus}1\bigr)!},factorialRatio(d,N,k)=(N\dotminusk)!((d2+N)\dotminus1)!N!((d2+N)\dotminusk\dotminus1)!​,

where u\dotminusv=max⁡(u−v,0)u\mathbin{\dotminus}v=\max(u-v,0)u\dotminusv=max(u−v,0) denotes natural-number subtraction, applied successively from left to right, and factorials are embedded in R\mathbb RR before multiplication and division. No assumptions such as d>0d>0d>0 or k≤Nk\le Nk≤N are required: the formula uses these truncated factorial arguments even when k>Nk>Nk>N or d2+N=0d^2+N=0d2+N=0. Since 0!=10!=10!=1 and every natural-number factorial is positive, the denominator is always positive.

QAlgorithms.Papers.Independent.Extend50.P20.fixLast

For every natural number rrr and every permutation π\piπ of {0,…,r−1}\{0,\ldots,r-1\}{0,…,r−1}, this defines its extension to a permutation π^\widehat\piπ of {0,…,r}\{0,\ldots,r\}{0,…,r} by

π^(a)={π(a),a<r,r,a=r.\widehat\pi(a)= \begin{cases} \pi(a),&a<r,\\ r,&a=r. \end{cases}π(a)={π(a),r,​a<r,a=r.​

In particular, it fixes the newly added last element. This also applies to r=0r=0r=0, when it gives the identity permutation of the singleton set.

QAlgorithms.Papers.Independent.Extend50.P20.largestTeleportationEigenvalue

For any natural numbers d,N,kd,N,kd,N,k, let Pd,n\mathcal P_{d,n}Pd,n​ be the set of Young diagrams with exactly nnn cells and at most ddd rows. For α∈Pd,N−k\alpha\in\mathcal P_{d,N-k}α∈Pd,N−k​ and μ∈Pd,N\mu\in\mathcal P_{d,N}μ∈Pd,N​, let ck(α,μ)c_k(\alpha,\mu)ck​(α,μ) count sequences of Young diagrams λ0,…,λk\lambda_0,\ldots,\lambda_kλ0​,…,λk​, each with at most ddd rows, such that λ0=α\lambda_0=\alphaλ0​=α, λk=μ\lambda_k=\muλk​=μ, ∣λj∣=N−k+j|\lambda_j|=N-k+j∣λj​∣=N−k+j, and λj⊆λj+1\lambda_j\subseteq\lambda_{j+1}λj​⊆λj+1​ for every j<kj<kj<k; here N−kN-kN−k is natural-number subtraction, truncated at zero. Define the real matrix

Tμν=∑α∈Pd,N−kck(α,μ)ck(α,ν).T_{\mu\nu}=\sum_{\alpha\in\mathcal P_{d,N-k}}c_k(\alpha,\mu)c_k(\alpha,\nu).Tμν​=α∈Pd,N−k​∑​ck​(α,μ)ck​(α,ν).

The declared number is

sup⁡{∑μ,ν∈Pd,NvμTμνvν:v:Pd,N→R,∑μ∈Pd,Nvμ2=1}.\sup\left\{ \sum_{\mu,\nu\in\mathcal P_{d,N}}v_\mu T_{\mu\nu}v_\nu: v:\mathcal P_{d,N}\to\mathbb R,\quad \sum_{\mu\in\mathcal P_{d,N}}v_\mu^2=1 \right\}.sup⎩⎨⎧​μ,ν∈Pd,N​∑​vμ​Tμν​vν​:v:Pd,N​→R,μ∈Pd,N​∑​vμ2​=1⎭⎬⎫​.

There are no positivity or size restrictions on d,N,kd,N,kd,N,k. Empty sums are zero; if Pd,N\mathcal P_{d,N}Pd,N​ is empty, no vector satisfies the normalization, and the defined real supremum of the empty set is zero. When k>Nk>Nk>N, the required path sizes are incompatible with the endpoint size, so all the path counts are zero; when k=0k=0k=0, a path exists precisely when its endpoints coincide.

QAlgorithms.Papers.Independent.Extend50.P20.liftPorts

For natural numbers d,N,kd,N,kd,N,k, let WrW_rWr​ denote the set of functions {0,…,r−1}→{0,…,d−1}\{0,\ldots,r-1\}\to\{0,\ldots,d-1\}{0,…,r−1}→{0,…,d−1}. Given any complex matrix XXX indexed by WN×WNW_N\times W_NWN​×WN​, its lift is the complex matrix indexed by (WN×Wk)×(WN×Wk)(W_N\times W_k)\times(W_N\times W_k)(WN​×Wk​)×(WN​×Wk​) with entries liftPorts⁡(X)(a,u),(b,v)=Xa,b\operatorname{liftPorts}(X)_{(a,u),(b,v)}=X_{a,b}liftPorts(X)(a,u),(b,v)​=Xa,b​ if u=vu=vu=v, and 000 otherwise; equivalently, it is X⊗IWkX\otimes I_{W_k}X⊗IWk​​. No condition on XXX, positivity of the parameters, or inequality between kkk and NNN is required. For k=0k=0k=0, the second word is uniquely empty, so the entries reduce to those of XXX; empty word-index sets give matrices with no entries.

QAlgorithms.Papers.Independent.Extend50.P20.mpbtSchurMultiplicity

For any natural numbers d,rd,rd,r and any Young diagram λ\lambdaλ with exactly rrr cells and at most ddd rows, this defines a natural number as follows. Use the fixed finite-enumeration bijection from the cells of λ\lambdaλ to {0,…,r−1}\{0,\ldots,r-1\}{0,…,r−1}, and let RλR_\lambdaRλ​ and CλC_\lambdaCλ​ be the permutations of these labels that preserve, respectively, the row and the column of every cell. Let Wd,rW_{d,r}Wd,r​ be the set of functions {0,…,r−1}→{0,…,d−1}\{0,\ldots,r-1\}\to\{0,\ldots,d-1\}{0,…,r−1}→{0,…,d−1}, and define a complex matrix on this set by

Yλ(y,x)=∑a∈Rλ∑b∈Cλsgn⁡(b) 1{y=x∘(ab)−1}.Y_\lambda(y,x)= \sum_{a\in R_\lambda}\sum_{b\in C_\lambda} \operatorname{sgn}(b)\, \mathbf 1_{\{y=x\circ(ab)^{-1}\}}.Yλ​(y,x)=a∈Rλ​∑​b∈Cλ​∑​sgn(b)1{y=x∘(ab)−1}​.

The value mpbtSchurMultiplicity⁡(λ)\operatorname{mpbtSchurMultiplicity}(\lambda)mpbtSchurMultiplicity(λ) is the complex dimension of the image of the linear map with matrix YλY_\lambdaYλ​ on CWd,r\mathbb C^{W_{d,r}}CWd,r​. There are no positivity assumptions on ddd or rrr: when r=0r=0r=0, the unique empty diagram gives dimension 111; when d=0<rd=0<rd=0<r, no such λ\lambdaλ exists.

QAlgorithms.Papers.Independent.Extend50.P20.mpbtSignal

For natural numbers d,N,kd,N,kd,N,k and an injection i:{0,…,k−1}→{0,…,N−1}i:\{0,\ldots,k-1\}\to\{0,\ldots,N-1\}i:{0,…,k−1}→{0,…,N−1}, the matrix mpbtSignal⁡(i)\operatorname{mpbtSignal}(i)mpbtSignal(i) is d−(N−k)BiBi∗d^{-(N-k)}B_iB_i^*d−(N−k)Bi​Bi∗​, with the scalar evaluated in C\mathbb CC and Bi∗B_i^*Bi∗​ denoting conjugate transpose. To specify BiB_iBi​, put Ci={0,…,N−1}∖range⁡(i)C_i=\{0,\ldots,N-1\}\setminus\operatorname{range}(i)Ci​={0,…,N−1}∖range(i): its rows are pairs of functions a:{0,…,N−1}→{0,…,d−1}a:\{0,\ldots,N-1\}\to\{0,\ldots,d-1\}a:{0,…,N−1}→{0,…,d−1}, u:{0,…,k−1}→{0,…,d−1}u:\{0,\ldots,k-1\}\to\{0,\ldots,d-1\}u:{0,…,k−1}→{0,…,d−1}, its columns are functions w:Ci→{0,…,d−1}w:C_i\to\{0,\ldots,d-1\}w:Ci​→{0,…,d−1}, and its entry is 1/dk1/\sqrt{d^k}1/dk​ if a∘i=ua\circ i=ua∘i=u and a∣Ci=wa|_{C_i}=wa∣Ci​​=w, and 000 otherwise. The identity matrix on the column index set is used between BiB_iBi​ and Bi∗B_i^*Bi∗​. Subtraction N−kN-kN−k is natural-number subtraction, truncated at zero, although the existence of iii forces k≤Nk\le Nk≤N. Zero values of ddd are allowed: powers with exponent zero are 111, and division by zero is defined to be zero.

QAlgorithms.Papers.Independent.Extend50.P20.multiplicitySquares

For any natural numbers d,rd,rd,r, this defines the real number

multiplicitySquares⁡(d,r)=∑λ a Young diagram∣λ∣=r, λ has at most d rowsmλ2.\operatorname{multiplicitySquares}(d,r) =\sum_{\substack{\lambda\text{ a Young diagram}\\|\lambda|=r,\ \lambda\text{ has at most }d\text{ rows}}} m_\lambda^2.multiplicitySquares(d,r)=λ a Young diagram∣λ∣=r, λ has at most d rows​∑​mλ2​.

Here mλm_\lambdamλ​ is a natural-number dimension, viewed as a real number: number the cells of λ\lambdaλ using the fixed finite-enumeration bijection, let RλR_\lambdaRλ​ and CλC_\lambdaCλ​ be its row-preserving and column-preserving label permutations, and, on the word set Wd,r={x:{0,…,r−1}→{0,…,d−1}}W_{d,r}=\{x:\{0,\ldots,r-1\}\to\{0,\ldots,d-1\}\}Wd,r​={x:{0,…,r−1}→{0,…,d−1}}, form

Yλ(y,x)=∑a∈Rλ∑b∈Cλsgn⁡(b) 1{y=x∘(ab)−1}.Y_\lambda(y,x)= \sum_{a\in R_\lambda}\sum_{b\in C_\lambda} \operatorname{sgn}(b)\, \mathbf 1_{\{y=x\circ(ab)^{-1}\}}.Yλ​(y,x)=a∈Rλ​∑​b∈Cλ​∑​sgn(b)1{y=x∘(ab)−1}​.

Then mλ=dim⁡Cim⁡Yλm_\lambda=\dim_{\mathbb C}\operatorname{im}Y_\lambdamλ​=dimC​imYλ​. Empty sums have value 000; in particular, the value is 000 when d=0<rd=0<rd=0<r, whereas for every ddd, including d=0d=0d=0, the value at r=0r=0r=0 is 111.

QAlgorithms.Papers.Independent.Extend50.P20.optimalMpbtSuccess

For arbitrary natural numbers d,N,kd,N,kd,N,k, including zero, let [r]={0,…,r−1}[r]=\{0,\ldots,r-1\}[r]={0,…,r−1}, Wr=[d][r]W_r=[d]^{[r]}Wr​=[d][r], and I\mathcal II be the set of injections [k]↪[N][k]\hookrightarrow[N][k]↪[N]. For each iii, put Ui=[N]∖range⁡(i)U_i=[N]\setminus\operatorname{range}(i)Ui​=[N]∖range(i), Vi=[d]UiV_i=[d]^{U_i}Vi​=[d]Ui​, and define the matrix BiB_iBi​, with rows (a,u)∈WN×Wk(a,u)\in W_N\times W_k(a,u)∈WN​×Wk​ and columns w∈Viw\in V_iw∈Vi​, to have entry (dk)−1(\sqrt{d^k})^{-1}(dk​)−1 when a(i(j))=u(j)a(i(j))=u(j)a(i(j))=u(j) for every j∈[k]j\in[k]j∈[k] and a(t)=w(t)a(t)=w(t)a(t)=w(t) for every t∈Uit\in U_it∈Ui​, and zero otherwise. Also define L(X)(a,u),(b,v)=Xa,b1u=vL(X)_{(a,u),(b,v)}=X_{a,b}\mathbf1_{u=v}L(X)(a,u),(b,v)​=Xa,b​1u=v​. The defined real number is the supremum of the set

{∑i∈IRe⁡tr⁡(Ti)dN+k | X⪰0, tr⁡X=dN, Ti⪰0 for every i, L(X)−∑i∈IBiTiBi†⪰0},\left\{ \frac{\sum_{i\in\mathcal I}\operatorname{Re}\operatorname{tr}(T_i)}{d^{N+k}} \ \middle|\ X\succeq0,\ \operatorname{tr}X=d^N,\ T_i\succeq0\text{ for every }i,\ L(X)-\sum_{i\in\mathcal I}B_iT_iB_i^\dagger\succeq0 \right\},{dN+k∑i∈I​Retr(Ti​)​ ​ X⪰0, trX=dN, Ti​⪰0 for every i, L(X)−i∈I∑​Bi​Ti​Bi†​⪰0},

where XXX is a complex matrix indexed by WNW_NWN​ and each TiT_iTi​ is a complex matrix indexed by ViV_iVi​. This definition does not assert that the supremum is attained. The real supremum operation returns zero for an empty set or a set unbounded above. Empty sums are zero, inverse zero is zero, and 00=10^0=100=1; in particular, I\mathcal II is empty if k>Nk>Nk>N, W0W_0W0​ is a singleton, and WrW_rWr​ is empty if d=0<rd=0<rd=0<r.

QAlgorithms.Papers.Independent.Extend50.P20.optimalProbOperation

For every pair of natural numbers d,Nd,Nd,N, this defines a complex matrix on the word set Wd,N={x:{0,…,N−1}→{0,…,d−1}}W_{d,N}=\{x:\{0,\ldots,N-1\}\to\{0,\ldots,d-1\}\}Wd,N​={x:{0,…,N−1}→{0,…,d−1}} by

Od,N=∑μ a Young diagram∣μ∣=N, μ has at most d rowsdN mμeμCd,N Jμ,Cd,N=∑ν a Young diagram∣ν∣=N, ν has at most d rowsmν2,O_{d,N}= \sum_{\substack{\mu\text{ a Young diagram}\\|\mu|=N,\ \mu\text{ has at most }d\text{ rows}}} \sqrt{d^N}\, \sqrt{\frac{m_\mu}{e_\mu C_{d,N}}}\,J_\mu, \qquad C_{d,N}= \sum_{\substack{\nu\text{ a Young diagram}\\|\nu|=N,\ \nu\text{ has at most }d\text{ rows}}} m_\nu^2,Od,N​=μ a Young diagram∣μ∣=N, μ has at most d rows​∑​dN​eμ​Cd,N​mμ​​​Jμ​,Cd,N​=ν a Young diagram∣ν∣=N, ν has at most d rows​∑​mν2​,

with the real coefficients embedded in C\mathbb CC. To specify every term, use each diagram λ\lambdaλ’s fixed finite-enumeration numbering of its cells, and let Rλ,Cλ⊆SNR_\lambda,C_\lambda\subseteq S_NRλ​,Cλ​⊆SN​ preserve the row and column of every cell. Define

Pπ(y,x)=1{y=x∘π−1},Yλ=∑a∈Rλ∑b∈Cλsgn⁡(b)Pab,Bλ(g,h)=∑a∈Rλ∑b∈Cλsgn⁡(b)1{g=hab}.P_\pi(y,x)=\mathbf 1_{\{y=x\circ\pi^{-1}\}},\qquad Y_\lambda=\sum_{a\in R_\lambda}\sum_{b\in C_\lambda} \operatorname{sgn}(b)P_{ab}, \qquad B_\lambda(g,h)= \sum_{a\in R_\lambda}\sum_{b\in C_\lambda} \operatorname{sgn}(b)\mathbf 1_{\{g=hab\}}.Pπ​(y,x)=1{y=x∘π−1}​,Yλ​=a∈Rλ​∑​b∈Cλ​∑​sgn(b)Pab​,Bλ​(g,h)=a∈Rλ​∑​b∈Cλ​∑​sgn(b)1{g=hab}​.

Here YλY_\lambdaYλ​ acts on CWd,N\mathbb C^{W_{d,N}}CWd,N​, BλB_\lambdaBλ​ acts on CSN\mathbb C^{S_N}CSN​, mλ=dim⁡Cim⁡Yλm_\lambda=\dim_{\mathbb C}\operatorname{im}Y_\lambdamλ​=dimC​imYλ​, and eλ=dim⁡Cim⁡Bλe_\lambda=\dim_{\mathbb C}\operatorname{im}B_\lambdaeλ​=dimC​imBλ​. Let QλQ_\lambdaQλ​ be the orthogonal projection onto im⁡Bλ\operatorname{im}B_\lambdaimBλ​, put Lπ(g,h)=1{g=πh}L_\pi(g,h)=\mathbf 1_{\{g=\pi h\}}Lπ​(g,h)=1{g=πh}​, and set

χλ(π)=tr⁡(LπQλ),Jλ=eλN!∑π∈SNχλ(π−1)Pπ.\chi_\lambda(\pi)=\operatorname{tr}(L_\pi Q_\lambda), \qquad J_\lambda=\frac{e_\lambda}{N!} \sum_{\pi\in S_N}\chi_\lambda(\pi^{-1})P_\pi.χλ​(π)=tr(Lπ​Qλ​),Jλ​=N!eλ​​π∈SN​∑​χλ​(π−1)Pπ​.

No positivity or nonzero-denominator assumptions are imposed; real division by zero is zero, empty sums are zero, and 00=10^0=100=1. When N=0N=0N=0, the result is the one-by-one identity on the unique empty word, including when d=0d=0d=0; when d=0<Nd=0<Nd=0<N, both the diagram index set and the word index set are empty.

QAlgorithms.Papers.Independent.Extend50.P20.optimalProbTheta

For every natural-number triple d,N,kd,N,kd,N,k, this defines a family Θ\ThetaΘ indexed by injections i:{0,…,k−1}↪{0,…,N−1}i:\{0,\ldots,k-1\}\hookrightarrow\{0,\ldots,N-1\}i:{0,…,k−1}↪{0,…,N−1}. For each such iii, put s=N−ks=N-ks=N−k, let UiU_iUi​ be the complement of its range, and let βi:Ui≃{0,…,s−1}\beta_i:U_i\simeq\{0,\ldots,s-1\}βi​:Ui​≃{0,…,s−1} be the bijection chosen by finite-type enumeration. The matrix Θi\Theta_iΘi​, indexed by functions x,y:Ui→{0,…,d−1}x,y:U_i\to\{0,\ldots,d-1\}x,y:Ui​→{0,…,d−1}, is

Θi(x,y)=∑α a Young diagram∣α∣=s, α has at most d rowsdN+kmαk!(Nk) eα Cd,N Jα(x∘βi−1, y∘βi−1),Cd,N=∑ν a Young diagram∣ν∣=N, ν has at most d rowsmν2.\Theta_i(x,y)= \sum_{\substack{\alpha\text{ a Young diagram}\\|\alpha|=s,\ \alpha\text{ has at most }d\text{ rows}}} \frac{d^{N+k}m_\alpha} {k!\binom Nk\,e_\alpha\,C_{d,N}}\, J_\alpha(x\circ\beta_i^{-1},\,y\circ\beta_i^{-1}), \qquad C_{d,N}= \sum_{\substack{\nu\text{ a Young diagram}\\|\nu|=N,\ \nu\text{ has at most }d\text{ rows}}} m_\nu^2.Θi​(x,y)=α a Young diagram∣α∣=s, α has at most d rows​∑​k!(kN​)eα​Cd,N​dN+kmα​​Jα​(x∘βi−1​,y∘βi−1​),Cd,N​=ν a Young diagram∣ν∣=N, ν has at most d rows​∑​mν2​.

All coefficients are calculated in R\mathbb RR and then embedded in C\mathbb CC. For any diagram λ\lambdaλ with ttt cells, number its cells using the fixed finite-enumeration bijection and let Rλ,Cλ⊆StR_\lambda,C_\lambda\subseteq S_tRλ​,Cλ​⊆St​ be its row-preserving and column-preserving label permutations. On Wd,t={x:{0,…,t−1}→{0,…,d−1}}W_{d,t}=\{x:\{0,\ldots,t-1\}\to\{0,\ldots,d-1\}\}Wd,t​={x:{0,…,t−1}→{0,…,d−1}} and on StS_tSt​, respectively, define

Pπ(y,x)=1{y=x∘π−1},Yλ=∑a∈Rλ∑b∈Cλsgn⁡(b)Pab,Bλ(g,h)=∑a∈Rλ∑b∈Cλsgn⁡(b)1{g=hab}.P_\pi(y,x)=\mathbf 1_{\{y=x\circ\pi^{-1}\}},\qquad Y_\lambda=\sum_{a\in R_\lambda}\sum_{b\in C_\lambda} \operatorname{sgn}(b)P_{ab}, \qquad B_\lambda(g,h)= \sum_{a\in R_\lambda}\sum_{b\in C_\lambda} \operatorname{sgn}(b)\mathbf 1_{\{g=hab\}}.Pπ​(y,x)=1{y=x∘π−1}​,Yλ​=a∈Rλ​∑​b∈Cλ​∑​sgn(b)Pab​,Bλ​(g,h)=a∈Rλ​∑​b∈Cλ​∑​sgn(b)1{g=hab}​.

Then mλ=dim⁡Cim⁡Yλm_\lambda=\dim_{\mathbb C}\operatorname{im}Y_\lambdamλ​=dimC​imYλ​ and eλ=dim⁡Cim⁡Bλe_\lambda=\dim_{\mathbb C}\operatorname{im}B_\lambdaeλ​=dimC​imBλ​. If QλQ_\lambdaQλ​ is the orthogonal projection onto im⁡Bλ\operatorname{im}B_\lambdaimBλ​ and Lπ(g,h)=1{g=πh}L_\pi(g,h)=\mathbf 1_{\{g=\pi h\}}Lπ​(g,h)=1{g=πh}​, define

χλ(π)=tr⁡(LπQλ),Jλ=eλt!∑π∈Stχλ(π−1)Pπ.\chi_\lambda(\pi)=\operatorname{tr}(L_\pi Q_\lambda), \qquad J_\lambda=\frac{e_\lambda}{t!} \sum_{\pi\in S_t}\chi_\lambda(\pi^{-1})P_\pi.χλ​(π)=tr(Lπ​Qλ​),Jλ​=t!eλ​​π∈St​∑​χλ​(π−1)Pπ​.

There are no positivity or nonzero-denominator hypotheses: empty sums are zero, division by zero is defined to be zero, and 00=10^0=100=1. If k>Nk>Nk>N, the family has no indices; if k=Nk=Nk=N, each matrix is indexed by the unique empty word.

QAlgorithms.Papers.Independent.Extend50.P20.pathCount

For any natural numbers d,a,bd,a,bd,a,b, Young diagrams α,μ\alpha,\muα,μ with respectively a,ba,ba,b cells and at most ddd rows, and any natural number kkk, this defines the natural number of sequences of pairs

pj=(rj,λj),0≤j≤k,p_j=(r_j,\lambda_j),\qquad 0\le j\le k,pj​=(rj​,λj​),0≤j≤k,

such that 0≤rj≤a+k0\le r_j\le a+k0≤rj​≤a+k, each λj\lambda_jλj​ is a Young diagram with exactly rjr_jrj​ cells and at most ddd rows, and

λ0=α,λk=μ,rj=a+j(0≤j≤k),λj⊆λj+1(0≤j<k).\lambda_0=\alpha,\qquad \lambda_k=\mu,\qquad r_j=a+j\quad(0\le j\le k),\qquad \lambda_j\subseteq\lambda_{j+1}\quad(0\le j<k).λ0​=α,λk​=μ,rj​=a+j(0≤j≤k),λj​⊆λj+1​(0≤j<k).

The count is the cardinality of the finite set of all such sequences. It is zero if there are no such sequences, in particular if b≠a+kb\ne a+kb=a+k. For k=0k=0k=0, it is 111 when the underlying diagrams α\alphaα and μ\muμ are equal and 000 otherwise. Zero values of d,a,bd,a,bd,a,b are allowed whenever the supplied diagrams exist.

QAlgorithms.Papers.Independent.Extend50.P20.probDualValues

For arbitrary natural numbers d,N,kd,N,kd,N,k, including zero, let [r]={0,…,r−1}[r]=\{0,\ldots,r-1\}[r]={0,…,r−1}, Wr=[d][r]W_r=[d]^{[r]}Wr​=[d][r], J=WN×WkJ=W_N\times W_kJ=WN​×Wk​, and I\mathcal II be the injections [k]↪[N][k]\hookrightarrow[N][k]↪[N]. This definition gives the set of real numbers ppp for which there exist a complex matrix ZZZ indexed by JJJ and a real number bbb satisfying

Z⪰0,b≥0,Bi†ZBi−IVi⪰0 for every i∈I,bIWN−1dN+kR(Z)⪰0,p=dNb.Z\succeq0,\quad b\ge0,\quad B_i^\dagger ZB_i-I_{V_i}\succeq0\text{ for every }i\in\mathcal I,\quad bI_{W_N}-\frac{1}{d^{N+k}}R(Z)\succeq0, \qquad p=d^Nb.Z⪰0,b≥0,Bi†​ZBi​−IVi​​⪰0 for every i∈I,bIWN​​−dN+k1​R(Z)⪰0,p=dNb.

Here ⪰0\succeq0⪰0 means positive semidefinite, Vi=[d][N]∖range⁡(i)V_i=[d]^{[N]\setminus\operatorname{range}(i)}Vi​=[d][N]∖range(i), and R(Z)a,c=∑u∈WkZ(a,u),(c,u)R(Z)_{a,c}=\sum_{u\in W_k}Z_{(a,u),(c,u)}R(Z)a,c​=∑u∈Wk​​Z(a,u),(c,u)​. The matrix BiB_iBi​ has entry (dk)−1(\sqrt{d^k})^{-1}(dk​)−1 at row (a,u)(a,u)(a,u), column w∈Viw\in V_iw∈Vi​, when a(i(j))=u(j)a(i(j))=u(j)a(i(j))=u(j) for every j∈[k]j\in[k]j∈[k] and a(t)=w(t)a(t)=w(t)a(t)=w(t) for every unselected ttt, and zero otherwise. Inverse zero is zero and 00=10^0=100=1. If k>Nk>Nk>N, the conditions indexed by injections are vacuous; word sets with empty domain are singletons, and those with nonempty domain and d=0d=0d=0 are empty.

QAlgorithms.Papers.Independent.Extend50.P20.probScore

For arbitrary natural numbers d,N,kd,N,kd,N,k, including zero, let WrW_rWr​ be the set of functions {0,…,r−1}→{0,…,d−1}\{0,\ldots,r-1\}\to\{0,\ldots,d-1\}{0,…,r−1}→{0,…,d−1}. For every injection i:{0,…,k−1}↪{0,…,N−1}i:\{0,\ldots,k-1\}\hookrightarrow\{0,\ldots,N-1\}i:{0,…,k−1}↪{0,…,N−1}, let TiT_iTi​ be a complex matrix indexed by the functions from the complement of range⁡(i)\operatorname{range}(i)range(i) to {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}. The real score of this family is

∑iRe⁡tr⁡(Ti)dN+k.\frac{\displaystyle\sum_i\operatorname{Re}\operatorname{tr}(T_i)}{d^{N+k}}.dN+ki∑​Retr(Ti​)​.

No positivity or feasibility condition is imposed on the matrices. If k>Nk>Nk>N, the sum is empty and the score is zero. If d=0<N+kd=0<N+kd=0<N+k, division by the zero denominator also gives zero; when d=0d=0d=0 and N+k=0N+k=0N+k=0, the denominator is 00=10^0=100=1. Functions from an empty domain form a singleton, while functions from a nonempty domain to the empty set form an empty indexing set.

QAlgorithms.Papers.Independent.Extend50.P20.probValues

For arbitrary natural numbers d,N,kd,N,kd,N,k, including zero, let [r]={0,…,r−1}[r]=\{0,\ldots,r-1\}[r]={0,…,r−1}, Wr=[d][r]W_r=[d]^{[r]}Wr​=[d][r], and I\mathcal II be the set of injections [k]↪[N][k]\hookrightarrow[N][k]↪[N]; for i∈Ii\in\mathcal Ii∈I, put Ui=[N]∖range⁡(i)U_i=[N]\setminus\operatorname{range}(i)Ui​=[N]∖range(i) and Vi=[d]UiV_i=[d]^{U_i}Vi​=[d]Ui​. This definition gives the set of real numbers ppp for which there exist a complex matrix XXX indexed by WNW_NWN​ and complex matrices TiT_iTi​ indexed by ViV_iVi​, such that XXX is positive semidefinite with tr⁡X=dN\operatorname{tr}X=d^NtrX=dN, every TiT_iTi​ is positive semidefinite,

L(X)−∑i∈IBiTiBi†⪰0,p=∑i∈IRe⁡tr⁡(Ti)dN+k.L(X)-\sum_{i\in\mathcal I}B_iT_iB_i^\dagger\succeq0, \qquad p=\frac{\sum_{i\in\mathcal I}\operatorname{Re}\operatorname{tr}(T_i)}{d^{N+k}}.L(X)−i∈I∑​Bi​Ti​Bi†​⪰0,p=dN+k∑i∈I​Retr(Ti​)​.

Here L(X)(a,u),(b,v)=Xa,b1u=vL(X)_{(a,u),(b,v)}=X_{a,b}\mathbf1_{u=v}L(X)(a,u),(b,v)​=Xa,b​1u=v​ on WN×WkW_N\times W_kWN​×Wk​, and (Bi)(a,u),w=(dk)−1(B_i)_{(a,u),w}=(\sqrt{d^k})^{-1}(Bi​)(a,u),w​=(dk​)−1 if a(i(j))=u(j)a(i(j))=u(j)a(i(j))=u(j) for all j∈[k]j\in[k]j∈[k] and a(t)=w(t)a(t)=w(t)a(t)=w(t) for all t∈Uit\in U_it∈Ui​, and is zero otherwise. The notation ⪰0\succeq0⪰0 means positive semidefinite. All inverses and quotients use inverse zero equal to zero, and 00=10^0=100=1. When k>Nk>Nk>N, there are no injections, so the family condition is vacuous and the sums are zero; W0W_0W0​ is a singleton, while WrW_rWr​ is empty if d=0<rd=0<rd=0<r.

QAlgorithms.Papers.Independent.Extend50.P20.spechtDimension

For any natural numbers d,rd,rd,r and any Young diagram λ\lambdaλ with exactly rrr cells and at most ddd rows, fix the cell numbering chosen by finite enumeration. Let RλR_\lambdaRλ​ and CλC_\lambdaCλ​ consist of the permutations of the rrr cell labels that preserve every cell’s row and column, respectively, and let SrS_rSr​ be the permutation group of {0,…,r−1}\{0,\ldots,r-1\}{0,…,r−1}. Define the complex matrix

Bλ(g,h)=∑a∈Rλ∑b∈Cλsgn⁡(b) 1{g=hab},g,h∈Sr.B_\lambda(g,h)= \sum_{a\in R_\lambda}\sum_{b\in C_\lambda} \operatorname{sgn}(b)\,\mathbf 1_{\{g=hab\}}, \qquad g,h\in S_r.Bλ​(g,h)=a∈Rλ​∑​b∈Cλ​∑​sgn(b)1{g=hab}​,g,h∈Sr​.

Then spechtDimension⁡(λ)\operatorname{spechtDimension}(\lambda)spechtDimension(λ) is the complex dimension of the image of the linear map with matrix BλB_\lambdaBλ​ on CSr\mathbb C^{S_r}CSr​, returned as a natural number. The case r=0r=0r=0 is included and gives dimension 111 for the empty diagram; if d=0<rd=0<rd=0<r, there is no diagram satisfying the argument’s requirements.

QAlgorithms.Papers.Independent.Extend50.P20.successEffect

For natural numbers d,N,kd,N,kd,N,k, an injection i:{0,…,k−1}→{0,…,N−1}i:\{0,\ldots,k-1\}\to\{0,\ldots,N-1\}i:{0,…,k−1}→{0,…,N−1}, and any complex matrix TTT indexed by functions w:Ci→{0,…,d−1}w:C_i\to\{0,\ldots,d-1\}w:Ci​→{0,…,d−1}, where Ci={0,…,N−1}∖range⁡(i)C_i=\{0,\ldots,N-1\}\setminus\operatorname{range}(i)Ci​={0,…,N−1}∖range(i), define successEffect⁡(i,T)=BiTBi∗\operatorname{successEffect}(i,T)=B_iTB_i^*successEffect(i,T)=Bi​TBi∗​, where Bi∗B_i^*Bi∗​ is the conjugate transpose. Here BiB_iBi​ has rows (a,u)(a,u)(a,u), with a:{0,…,N−1}→{0,…,d−1}a:\{0,\ldots,N-1\}\to\{0,\ldots,d-1\}a:{0,…,N−1}→{0,…,d−1} and u:{0,…,k−1}→{0,…,d−1}u:\{0,\ldots,k-1\}\to\{0,\ldots,d-1\}u:{0,…,k−1}→{0,…,d−1}, and entry Bi((a,u),w)=1/dkB_i((a,u),w)=1/\sqrt{d^k}Bi​((a,u),w)=1/dk​ when a∘i=ua\circ i=ua∘i=u and a∣Ci=wa|_{C_i}=wa∣Ci​​=w, and 000 otherwise. Thus the resulting matrix has rows and columns indexed by these pairs (a,u)(a,u)(a,u). No positivity assumption is imposed on TTT. The injection forces k≤Nk\le Nk≤N; zero parameters and empty index sets are included, with d0=1d^0=1d0=1 and 0−1=00^{-1}=00−1=0.

QAlgorithms.Papers.Independent.Extend50.P20.teleportationMatrix

For arbitrary natural numbers d,N,kd,N,kd,N,k, this defines a real matrix whose rows and columns are indexed by Young diagrams with exactly NNN cells and at most ddd rows. Put s=N\dotminusk=max⁡(N−k,0)s=N\mathbin{\dotminus}k=\max(N-k,0)s=N\dotminusk=max(N−k,0). For row diagram μ\muμ and column diagram ν\nuν, its entry is

Tμ,ν=∑α a Young diagram∣α∣=s, α has at most d rowscα,μ(k) cα,ν(k),T_{\mu,\nu} = \sum_{\substack{\alpha\text{ a Young diagram}\\|\alpha|=s,\ \alpha\text{ has at most }d\text{ rows}}} c_{\alpha,\mu}^{(k)}\,c_{\alpha,\nu}^{(k)},Tμ,ν​=α a Young diagram∣α∣=s, α has at most d rows​∑​cα,μ(k)​cα,ν(k)​,

where each count is embedded in R\mathbb RR. For a terminal diagram η\etaη, cα,η(k)c_{\alpha,\eta}^{(k)}cα,η(k)​ is the number of sequences of pairs (rj,λj)(r_j,\lambda_j)(rj​,λj​), 0≤j≤k0\le j\le k0≤j≤k, with 0≤rj≤s+k0\le r_j\le s+k0≤rj​≤s+k, each λj\lambda_jλj​ having exactly rjr_jrj​ cells and at most ddd rows, and satisfying

λ0=α,λk=η,rj=s+j,λj⊆λj+1(0≤j<k).\lambda_0=\alpha,\qquad \lambda_k=\eta,\qquad r_j=s+j,\qquad \lambda_j\subseteq\lambda_{j+1}\quad(0\le j<k).λ0​=α,λk​=η,rj​=s+j,λj​⊆λj+1​(0≤j<k).

Empty sums are zero. No condition k≤Nk\le Nk≤N is assumed: if k>Nk>Nk>N, the required terminal size would be k>Nk>Nk>N, so all these counts and all matrix entries are zero. If k=0k=0k=0, the matrix is the identity on its diagram index set. When d=0<Nd=0<Nd=0<N, that index set is empty; when N=0N=0N=0, it consists of the empty diagram.

QAlgorithms.Papers.Independent.Extend50.P20.traceOutputs

For natural numbers d,N,kd,N,kd,N,k, put Wr={a:{0,…,r−1}→{0,…,d−1}}W_r=\{a:\{0,\ldots,r-1\}\to\{0,\ldots,d-1\}\}Wr​={a:{0,…,r−1}→{0,…,d−1}}. Given any complex matrix ZZZ indexed by (WN×Wk)×(WN×Wk)(W_N\times W_k)\times(W_N\times W_k)(WN​×Wk​)×(WN​×Wk​), traceOutputs⁡(Z)\operatorname{traceOutputs}(Z)traceOutputs(Z) is the complex matrix indexed by WN×WNW_N\times W_NWN​×WN​ whose entries are traceOutputs⁡(Z)a,b=∑w∈WkZ(a,w),(b,w)\operatorname{traceOutputs}(Z)_{a,b}=\sum_{w\in W_k}Z_{(a,w),(b,w)}traceOutputs(Z)a,b​=∑w∈Wk​​Z(a,w),(b,w)​. No positivity or normalization condition is imposed on ZZZ. For k=0k=0k=0, the sum has exactly one term, including for d=0d=0d=0; for d=0<kd=0<kd=0<k, it is an empty sum and equals zero for every available pair a,ba,ba,b.

QAlgorithms.Papers.Independent.Extend50.P20.unselectedYoungProjector

For natural numbers d,N,kd,N,kd,N,k, an injection i:{0,…,k−1}↪{0,…,N−1}i:\{0,\ldots,k-1\}\hookrightarrow\{0,\ldots,N-1\}i:{0,…,k−1}↪{0,…,N−1}, and a Young diagram α\alphaα with s=N−ks=N-ks=N−k cells and at most ddd rows, let UiU_iUi​ be the complement of range⁡(i)\operatorname{range}(i)range(i) and let βi:Ui≃{0,…,s−1}\beta_i:U_i\simeq\{0,\ldots,s-1\}βi​:Ui​≃{0,…,s−1} be the bijection chosen by finite-type enumeration. The definition returns the complex matrix on functions Ui→{0,…,d−1}U_i\to\{0,\ldots,d-1\}Ui​→{0,…,d−1} whose entries are

unselectedYoungProjector⁡(i,α)(x,y)=Jα(x∘βi−1, y∘βi−1).\operatorname{unselectedYoungProjector}(i,\alpha)(x,y) =J_\alpha(x\circ\beta_i^{-1},\,y\circ\beta_i^{-1}).unselectedYoungProjector(i,α)(x,y)=Jα​(x∘βi−1​,y∘βi−1​).

Here JαJ_\alphaJα​ is defined explicitly as follows. Number the cells of α\alphaα using the fixed finite-enumeration bijection, let Rα,Cα⊆SsR_\alpha,C_\alpha\subseteq S_sRα​,Cα​⊆Ss​ preserve their rows and columns, and form

Bα(g,h)=∑a∈Rα∑b∈Cαsgn⁡(b)1{g=hab}.B_\alpha(g,h)= \sum_{a\in R_\alpha}\sum_{b\in C_\alpha} \operatorname{sgn}(b)\mathbf 1_{\{g=hab\}}.Bα​(g,h)=a∈Rα​∑​b∈Cα​∑​sgn(b)1{g=hab}​.

Let Hα=im⁡Bα⊆CSsH_\alpha=\operatorname{im}B_\alpha\subseteq\mathbb C^{S_s}Hα​=imBα​⊆CSs​, let QαQ_\alphaQα​ be its orthogonal projection, set eα=dim⁡CHαe_\alpha=\dim_{\mathbb C}H_\alphaeα​=dimC​Hα​, and define Lπ(g,h)=1{g=πh}L_\pi(g,h)=\mathbf 1_{\{g=\pi h\}}Lπ​(g,h)=1{g=πh}​ and χα(π)=tr⁡(LπQα)\chi_\alpha(\pi)=\operatorname{tr}(L_\pi Q_\alpha)χα​(π)=tr(Lπ​Qα​). On words u,v:{0,…,s−1}→{0,…,d−1}u,v:\{0,\ldots,s-1\}\to\{0,\ldots,d-1\}u,v:{0,…,s−1}→{0,…,d−1}, set

Pπ(u,v)=1{u=v∘π−1},Jα=eαs!∑π∈Ssχα(π−1)Pπ.P_\pi(u,v)=\mathbf 1_{\{u=v\circ\pi^{-1}\}}, \qquad J_\alpha=\frac{e_\alpha}{s!} \sum_{\pi\in S_s}\chi_\alpha(\pi^{-1})P_\pi.Pπ​(u,v)=1{u=v∘π−1}​,Jα​=s!eα​​π∈Ss​∑​χα​(π−1)Pπ​.

The injection forces k≤Nk\le Nk≤N; when k=Nk=Nk=N, UiU_iUi​ and α\alphaα are empty, and the returned matrix is the one-by-one identity on the unique empty word. No positive lower bound on ddd is assumed.

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