Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Definitions for Quantum Spectrum Testing

Definition
QAlgorithms_Papers_Independent_Extend50_P34

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

prove2quantum

The objects the formalized statements of Quantum Spectrum Testing (arXiv:1501.05028) are stated in. Each was checked against the paper by a blind read-back and a moderator.

  • decreasingSpectrum: Decreasing spectrum, padded to the ambient dimension (PDF pp.9-10).
  • unif: The uniform spectrum; only positive dimensions occur in statements (PDF p.22).
  • classicalAccept: Acceptance of a randomized classical test of n samples (PDF pp.10-11).
  • Far: Separation from every property member; valid also for the empty property (PDF p.10).
  • IsSpectralProperty: Symmetric closed properties consist of probability distributions (PDF pp.10-11).
  • QuantumTest: Fixed collective n-copy effect, chosen before the unknown density matrix (PDF p.10).
  • QuantumTestable: Attainable quantum testing guarantees, with no restriction on internal computation (PDF p.10).
  • ClassicalTest: Fixed randomized classical test and its worst-input guarantees (PDF pp.10-11).
  • ClassicalTestable: Attainable iid classical testing guarantees (PDF p.11).
  • supportProperty: Support size at most r, as clarified by the abstract (PDF pp.1,5).
  • ownShape: Unrestricted diagram viewed in the accepted Specht construction (PDF pp.11,16-18).
  • dim: Specht dimension, distinct from the Schur/unitary-group dimension (PDF p.14).
  • extendedSchurPolynomial: Schur polynomial extended by zero beyond the alphabet height (PDF p.15).
  • schurAt: Schur polynomial evaluation (PDF p.15).
  • content: Signed cell content j-i in zero-based coordinates (PDF p.13).
  • contentProduct: Content product d-up-arrow-lambda (PDF p.13).
  • sw: Physical Schur mass on all n, including zero copies; no renormalization (PDF pp.19-22).
  • swSpectrum: Classical-spectrum Schur law via the diagonal density matrix (PDF pp.21-22).
  • expect: Finite Schur expectation, with the law's physical mass (PDF p.26).
  • event: Event mass without conditional renormalization (PDF pp.24,29).
  • schurVariance: Centered variance on the finite Schur law (PDF p.52).
  • eydError: EYD TV error; n>0 is required wherever used (PDF p.29).
  • chiSq: Chi-squared divergence on a finite set (PDF p.9); applications have common support.
  • kl: KL divergence on a finite set (PDF p.9); used only with supp p contained in supp q.
  • rankLaw: Both rank laws embedded in the larger rank's shape space (PDF pp.44-55).
  • adjacentKL: Common-space KL for adjacent uniform ranks, in the stated direction (PDF p.44).
  • adjacentTV: Common-space TV for adjacent uniform ranks (PDF p.52).
  • insertRow: Row insertion bumps the first strictly larger entry (PDF p.15).
  • insertTableau: Recursive row bumping, adding a row when necessary (PDF p.15).
  • rsk: RSK shape from the actual row-insertion algorithm; sorting is inert on valid output (PDF p.15).
  • greeneStatistic: Length of the longest union of k disjoint weakly increasing subsequences (PDF pp.5,16).
  • greeneReport: The d observable Greene statistics, indexed by k=1,...,d (PDF p.5).
  • GreeneTestable: Classical tests whose decisions depend only on the Greene report (PDF p.5).
  • diagrams: Every partition of given size and bounded height, as a finite diagram set (PDF p.11).
  • diagramsLE: All diagrams of size at most K, including the empty partition (PDF pp.11,25).
  • observableWeight: Source weight |mu|+length(mu) (PDF p.28).
  • falling: Falling factorial; Nat subtraction gives the intended zero for k>n (PDF p.13).
  • powerParts: Power-sum polynomial indexed by positive parts, including the empty product (PDF p.14).
  • fullCycle: Full cycle type including fixed points; Mathlib cycleType alone omits them (PDF p.11).
  • character: Character of an unrestricted diagram in the accepted physical Specht construction (PDF pp.16-18).
  • classCharacter: Character on a cycle class, as its class average; no arbitrary representative (PDF p.17).
  • sharpParts: Central character p-sharp, extended by zero when |mu| exceeds |lambda| (PDF p.25).
  • sharp: Central character indexed by a partition (PDF p.25).
  • starShift: Shifted power sum p-star with arbitrary shift c; rows are one-based in the source (PDF p.31).
  • starPower: The canonical p-star uses c=-1/2 (PDF p.25).
  • shiftedSchur: Shifted Schur observable from the Fourier characterization, Theorem 2.33 (PDF p.26).
  • multiplicityFact: Product of multiplicity factorials, with the empty product equal to one (PDF p.47).
  • leading: Explicit highest-weight term in p-star_k (PDF p.47).
  • remainder: The error observable is computed, never supplied as a free variable (PDF p.47).
  • observable: Evaluate a finite rational central-character expansion on every shape (PDF pp.47,51).
  • paninski: Paninski's alternating perturbation, on even positive dimensions (PDF pp.34-35).
  • perturbed: General perturbation Q_x, used only for sum x=0 and x_i≥-1 (PDF p.35).
  • mixednessStateAccept: The Mixedness Tester's acceptance on an arbitrary state (PDF p.33).
  • rankAccept: Rank Tester's acceptance probability on the actual input state (PDF p.56).
  • RankTesterWorks: Source Rank Tester guarantee, including perfect completeness (PDF pp.56-58).
  • UniformRank: Spectrum uniform on exactly r nonzero eigenvalues, in any basis (PDF p.7).
  • DistinguishesRanks: Distinguish uniform ranks r and r+Delta, with one effect fixed before rho (PDF pp.7,43).
  • EYDLowerBound: EYD lower-bound assertion with absolute constants quantified before d,epsilon,n (PDF pp.7,30).
  • groupOn: Restricted symmetric group embedded by fixing the complement (PDF pp.27,37).
  • restrictedCycle: Cycle type of a permutation restricted to R, including fixed points in R (PDF p.37).
  • classOn: Permutations of a specified cycle class on R (PDF p.28).
  • classZ: z_mu, including length-one cycles (PDF p.12).
  • factorizationCount: Actual partial-permutation factorization count g, with union equal to [t] (PDF p.28).
  • structureConstant: Source structure constant computed from Proposition 2.36, independently of Corollary 2.37 (PDF p.28).
  • OverlapRange: The nonzero range of the overlap coefficient (PDF p.28).
  • overlapCoefficient: C^t_{r1,r2}, with its source zero convention (PDF p.28).
  • classProductProbability: Product cycle-class probability, used only in the valid overlap range (PDF p.28).
  • productCharacterMean: Uniform permutation expectation for arbitrary prescribed supports (PDF p.37).
  • RemovesDomino: Successive removal of a rim domino leaves a Young diagram (PDF p.40).
  • DominoBalanced: Empty 2-core, using exactly the source's removable-domino definition (PDF p.40).
  • parityCells: Even and odd content cells; signed parity is taken before subtraction can truncate (PDF p.40).
  • parityProduct: Parity-restricted content product (PDF pp.42-43).
  • quotientRunner: Beta numbers with an even bead cutoff; both Maya runners are retained (PDF pp.40-41).
  • twoQuotient: Two quotient shapes, computed by the two alternating Maya runners (PDF p.41). The labels may swap under bead conventions; their multiset union is invariant.
  • evenDoubleFactorial: Double factorial k!! for even k, including 0!!=1 (PDF p.42).
  • RankRegime: The standing rank-adjacency regime, including the exact integer-compatible copy count (PDF p.44).
  • Usual: Usual means BOTH width and height bounded by the real threshold (PDF p.45).
  • logObservable: Truncated log observable with general denominator a (PDF pp.46-47).
  • logInfinite: L-star-infinity is used only on usual diagrams, where this series converges (PDF p.46).
  • truncation: Source truncation degree, chosen from r and omega (PDF pp.51-52).
  • UsualPlus: Usual-plus uses the SAME r-based event for both adjacent laws (PDF p.54).
  • errorTerm: Entire error term (39), computed from the actual remainder observable (PDF p.48).
  • ErrorConstants: A family witnessing the bounds in Lemma 5.7 (PDF p.50).
  • chosenOmega: A suitable subpolynomial choice, not an arbitrary function bounded by big-O (PDF p.52).
  • sharpMonomial: Monomial in single-cycle central characters (PDF p.51).
  • russian: Russian upper boundary: every rotated unit cell contributes its vertical tent thickness (PDF pp.12-13).
  • scaledBoundary: Area-one scaled Russian boundary, separate from EYD's row vector (PDF p.22).
  • bianeArc: Biane's curved part for positive parameter other than one (PDF p.23).
  • biane: Explicit Biane curve including c=0 and c=1 (PDF p.23, Theorem 2.30).
  • boundaryDistance: L1 boundary distance as a Lebesgue integral; explicit diagrams have bounded difference support (PDF p.60).
  • tildePower: The kth local-extremum moment from the explicit Russian boundary (PDF p.25).
  • bianeMoment: Deterministic Biane moment subtracted in q-tilde, computed from n,d,k (PDF p.62).
  • qTilde: q-tilde is the actual boundary moment minus the deterministic Biane moment (PDF p.62).
  • Diverges: f(d)=omega_d(1), with no prescribed convergence rate (PDF pp.59-60).
  • realObservable: Finite real observables retain arbitrary fixed real coefficients (PDF p.63).
  • complexObservable: Complex central-character expansions for coefficient statements in the complex algebra (PDF pp.24-25,51).
Definition code
import Mathlib
import Definitions.Def_QAlgorithms_Defs_SchurWeylMeasurements
import Definitions.Def_QAlgorithms_Defs_QuantumOutputMetrics
import Definitions.Def_QAlgorithms_Papers_Independent_Support50_P38
import Definitions.Def_QAlgorithms_Papers_Independent_Advance50_P28

noncomputable section

open scoped Matrix BigOperators
open MeasureTheory

namespace QAlgorithms.Papers.Independent.Extend50.P34

attribute [local instance] Classical.propDecidable

-- Reuse exact pinned definitions; these are imports, not local declarations.
open QAlgorithms.Papers.Independent.Support50.P38 (tv wordMass)
open QAlgorithms.Papers.Independent.Advance50.P28 (counts)

/-- Decreasing spectrum, padded to the ambient dimension (PDF pp.9-10). -/
def decreasingSpectrum {d : ℕ} (rho : Matrix (Fin d) (Fin d) ℂ) : Fin d → ℝ :=
  fun i => ascEigenvalues rho (Fin.cast (Fintype.card_fin d).symm i.rev)

/-- The uniform spectrum; only positive dimensions occur in statements (PDF p.22). -/
def unif (d : ℕ) : Fin d → ℝ := fun _ => 1 / d

/-- Acceptance of a randomized classical test of n samples (PDF pp.10-11). -/
def classicalAccept {d n : ℕ} (a : (Fin n → Fin d) → ℝ) (p : Fin d → ℝ) : ℝ :=
  ∑ w, wordMass p w * a w

/-- Separation from every property member; valid also for the empty property (PDF p.10). -/
def Far {d : ℕ} (P : Set (Fin d → ℝ)) (epsilon : ℝ) (p : Fin d → ℝ) : Prop :=
  ∀ q ∈ P, epsilon ≤ tv p q

/-- Symmetric closed properties consist of probability distributions (PDF pp.10-11). -/
def IsSpectralProperty {d : ℕ} (P : Set (Fin d → ℝ)) : Prop :=
  IsClosed P ∧ (∀ p ∈ P, Learning.IsDistribution p) ∧
    ∀ (p : Fin d → ℝ) (pi : Equiv.Perm (Fin d)), p ∘ pi ∈ P ↔ p ∈ P

/-- Fixed collective n-copy effect, chosen before the unknown density matrix (PDF p.10). -/
def QuantumTest {d n : ℕ} (P : Set (Fin d → ℝ)) (epsilon : ℝ)
    (oneSided : Bool) (M : Matrix (Fin n → Fin d) (Fin n → Fin d) ℂ) : Prop :=
  IsEffect M ∧ ∀ rho : Matrix (Fin d) (Fin d) ℂ, IsDensityMatrix rho →
    (decreasingSpectrum rho ∈ P → if oneSided then effectProb M (piKron n rho) = 1
      else 2 / 3 ≤ effectProb M (piKron n rho)) ∧
    (Far P epsilon (decreasingSpectrum rho) → effectProb M (piKron n rho) ≤ 1 / 3)

/-- Attainable quantum testing guarantees, with no restriction on internal computation (PDF p.10). -/
def QuantumTestable (d n : ℕ) (P : Set (Fin d → ℝ)) (epsilon : ℝ)
    (oneSided : Bool := false) : Prop :=
  ∃ M, QuantumTest (n := n) P epsilon oneSided M

/-- Fixed randomized classical test and its worst-input guarantees (PDF pp.10-11). -/
def ClassicalTest {d n : ℕ} (P : Set (Fin d → ℝ)) (epsilon : ℝ)
    (oneSided : Bool) (a : (Fin n → Fin d) → ℝ) : Prop :=
  (∀ w, 0 ≤ a w ∧ a w ≤ 1) ∧ ∀ p, Learning.IsDistribution p →
    (p ∈ P → if oneSided then classicalAccept a p = 1
      else 2 / 3 ≤ classicalAccept a p) ∧
    (Far P epsilon p → classicalAccept a p ≤ 1 / 3)

/-- Attainable iid classical testing guarantees (PDF p.11). -/
def ClassicalTestable (d n : ℕ) (P : Set (Fin d → ℝ)) (epsilon : ℝ) : Prop :=
  ∃ a, ClassicalTest (n := n) P epsilon false a

example {d : ℕ} (a : (Fin 0 → Fin d) → ℝ) (p q : Fin d → ℝ) :
    classicalAccept a p = classicalAccept a q := by simp [classicalAccept, wordMass]

/-- Support size at most r, as clarified by the abstract (PDF pp.1,5). -/
def supportProperty (d r : ℕ) : Set (Fin d → ℝ) :=
  {p | Learning.IsDistribution p ∧ (Finset.univ.filter fun i => p i ≠ 0).card ≤ r}

/-- Unrestricted diagram viewed in the accepted Specht construction (PDF pp.11,16-18). -/
def ownShape (lambda : YoungDiagram) : Schur.Partition (lambda.colLen 0) lambda.card :=
  ⟨lambda, rfl, le_rfl⟩

/-- Specht dimension, distinct from the Schur/unitary-group dimension (PDF p.14). -/
def dim (lambda : YoungDiagram) : ℕ := Module.finrank ℂ (Schur.spechtSpace (ownShape lambda))

/-- Schur polynomial extended by zero beyond the alphabet height (PDF p.15). -/
def extendedSchurPolynomial (d : ℕ) (lambda : YoungDiagram) : MvPolynomial (Fin d) ℝ :=
  if h : lambda.colLen 0 ≤ d then Schur.schurPolynomial ⟨lambda, rfl, h⟩ else 0

/-- Schur polynomial evaluation (PDF p.15). -/
def schurAt {d : ℕ} (lambda : YoungDiagram) (x : Fin d → ℝ) : ℝ :=
  MvPolynomial.eval x (extendedSchurPolynomial d lambda)

/-- Signed cell content j-i in zero-based coordinates (PDF p.13). -/
def content (c : ℕ × ℕ) : ℤ := (c.2 : ℤ) - c.1

/-- Content product d-up-arrow-lambda (PDF p.13). -/
def contentProduct (d : ℝ) (lambda : YoungDiagram) : ℝ :=
  ∏ c ∈ lambda.cells, (d + content c)

/-- Physical Schur mass on all n, including zero copies; no renormalization (PDF pp.19-22). -/
def sw {d n : ℕ} (rho : Matrix (Fin d) (Fin d) ℂ) (lambda : Schur.Partition d n) : ℝ :=
  effectProb (Schur.isotypicProjector lambda) (piKron n rho)

/-- Classical-spectrum Schur law via the diagonal density matrix (PDF pp.21-22). -/
def swSpectrum {d n : ℕ} (p : Fin d → ℝ) : Schur.Partition d n → ℝ :=
  sw (Matrix.diagonal fun i => (p i : ℂ))

/-- Finite Schur expectation, with the law's physical mass (PDF p.26). -/
def expect {d n : ℕ} (p : Fin d → ℝ) (F : YoungDiagram → ℝ) : ℝ :=
  ∑ lambda : Schur.Partition d n, swSpectrum p lambda * F lambda.val

/-- Event mass without conditional renormalization (PDF pp.24,29). -/
def event {d n : ℕ} (p : Fin d → ℝ) (A : YoungDiagram → Prop) : ℝ :=
  expect (n := n) p (fun lambda => if A lambda then 1 else 0)

/-- Centered variance on the finite Schur law (PDF p.52). -/
def schurVariance {d n : ℕ} (p : Fin d → ℝ) (F : YoungDiagram → ℝ) : ℝ :=
  expect (n := n) p (fun lambda => (F lambda - expect (n := n) p F) ^ 2)

/-- EYD TV error; n>0 is required wherever used (PDF p.29). -/
def eydError {d : ℕ} (n : ℕ) (p : Fin d → ℝ) (lambda : YoungDiagram) : ℝ :=
  tv (fun i : Fin d => (lambda.rowLen i : ℝ) / n) p

/-- Chi-squared divergence on a finite set (PDF p.9); applications have common support. -/
def chiSq {a : Type*} [Fintype a] (p q : a → ℝ) : ℝ :=
  ∑ i, if q i = 0 then 0 else q i * (p i / q i - 1) ^ 2

/-- KL divergence on a finite set (PDF p.9); used only with supp p contained in supp q. -/
def kl {a : Type*} [Fintype a] (p q : a → ℝ) : ℝ :=
  ∑ i, if p i = 0 then 0 else p i * Real.log (p i / q i)

/-- Both rank laws embedded in the larger rank's shape space (PDF pp.44-55). -/
def rankLaw (r n D : ℕ) : Schur.Partition D n → ℝ :=
  swSpectrum (fun i : Fin D => if i.val < r then (1 : ℝ) / r else 0)

/-- Common-space KL for adjacent uniform ranks, in the stated direction (PDF p.44). -/
def adjacentKL (r n : ℕ) : ℝ := kl (rankLaw r n (r+1)) (rankLaw (r+1) n (r+1))

/-- Common-space TV for adjacent uniform ranks (PDF p.52). -/
def adjacentTV (r n : ℕ) : ℝ := tv (rankLaw r n (r+1)) (rankLaw (r+1) n (r+1))

example {a : Type} [Fintype a] (p : a → ℝ) : tv p p = 0 := by simp [tv]

example (d : ℕ) (p : Fin d → ℝ) (w : Fin 0 → Fin d) : wordMass p w = 1 := by
  simp [wordMass]

example (d : ℕ) (lambda : YoungDiagram) (h : d < lambda.colLen 0) :
    extendedSchurPolynomial d lambda = 0 := by simp [extendedSchurPolynomial, not_le.mpr h]

example : content (1, 0) = -1 := by norm_num [content]

example {a : Type*} [Fintype a] (p : a → ℝ) : chiSq p p = 0 := by
  classical
  unfold chiSq
  apply Finset.sum_eq_zero
  intro i hi
  by_cases h : p i = 0 <;> simp [chiSq, h]

/-- Row insertion bumps the first strictly larger entry (PDF p.15). -/
def insertRow (b : ℕ) : List ℕ → List ℕ × Option ℕ
  | [] => ([b], none)
  | a :: rest => if b < a then (b :: rest, some a) else
      let out := insertRow b rest
      (a :: out.1, out.2)

/-- Recursive row bumping, adding a row when necessary (PDF p.15). -/
def insertTableau (b : ℕ) : List (List ℕ) → List (List ℕ)
  | [] => [[b]]
  | row :: rows =>
      let out := insertRow b row
      out.1 :: (match out.2 with | none => rows | some c => insertTableau c rows)

/-- RSK shape from the actual row-insertion algorithm; sorting is inert on valid output (PDF p.15). -/
def rsk {d n : ℕ} (w : Fin n → Fin d) : YoungDiagram :=
  let rows := (List.ofFn fun i => (w i).val).foldl (fun T b => insertTableau b T) []
  YoungDiagram.ofRowLens ((rows.map List.length).mergeSort (· ≥ ·))
    (List.sortedGE_mergeSort)

/-- Length of the longest union of k disjoint weakly increasing subsequences (PDF pp.5,16). -/
def greeneStatistic {d n : ℕ} (w : Fin n → Fin d) (k : ℕ) : ℕ :=
  ((Finset.univ : Finset (Finset (Fin n))).filter fun (S : Finset (Fin n)) =>
    ∃ color : {i : Fin n // i ∈ S} → Fin k,
      ∀ i j : {i : Fin n // i ∈ S}, i.val < j.val → color i = color j →
        w i.val ≤ w j.val).sup Finset.card

/-- The d observable Greene statistics, indexed by k=1,...,d (PDF p.5). -/
def greeneReport {d n : ℕ} (w : Fin n → Fin d) : Fin d → ℕ :=
  fun k => greeneStatistic w (k.val + 1)

/-- Classical tests whose decisions depend only on the Greene report (PDF p.5). -/
def GreeneTestable (d n : ℕ) (P : Set (Fin d → ℝ)) (epsilon : ℝ) : Prop :=
  ∃ a : (Fin d → ℕ) → ℝ, (∀ x, 0 ≤ a x ∧ a x ≤ 1) ∧
    ClassicalTest (n := n) P epsilon false (fun w => a (greeneReport w))

/-- Every partition of given size and bounded height, as a finite diagram set (PDF p.11). -/
def diagrams (d k : ℕ) : Finset YoungDiagram :=
  (Finset.univ : Finset (Schur.Partition d k)).image Subtype.val

/-- All diagrams of size at most K, including the empty partition (PDF pp.11,25). -/
def diagramsLE (K : ℕ) : Finset YoungDiagram :=
  (Finset.range (K+1)).biUnion fun k => diagrams K k

/-- Source weight |mu|+length(mu) (PDF p.28). -/
def observableWeight (mu : YoungDiagram) : ℕ := mu.card + mu.colLen 0

/-- Falling factorial; Nat subtraction gives the intended zero for k>n (PDF p.13). -/
def falling (n k : ℕ) : ℝ := (n.descFactorial k : ℝ)

/-- Power-sum polynomial indexed by positive parts, including the empty product (PDF p.14). -/
def powerParts {d : ℕ} (mu : Multiset ℕ) (p : Fin d → ℝ) : ℝ :=
  (mu.map fun k => ∑ i, p i ^ k).prod

/-- Full cycle type including fixed points; Mathlib cycleType alone omits them (PDF p.11). -/
def fullCycle {n : ℕ} (pi : Equiv.Perm (Fin n)) : Multiset ℕ :=
  pi.cycleType + Multiset.replicate (n - pi.support.card) 1

/-- Character of an unrestricted diagram in the accepted physical Specht construction (PDF pp.16-18). -/
def character (lambda : YoungDiagram) (pi : Equiv.Perm (Fin lambda.card)) : ℝ :=
  (Schur.spechtCharacter (ownShape lambda) pi).re

/-- Character on a cycle class, as its class average; no arbitrary representative (PDF p.17). -/
def classCharacter (lambda : YoungDiagram) (mu : Multiset ℕ) : ℝ :=
  let S := (Finset.univ : Finset (Equiv.Perm (Fin lambda.card))).filter
    (fun pi => fullCycle pi = mu)
  (∑ pi ∈ S, character lambda pi) / S.card

/-- Central character p-sharp, extended by zero when |mu| exceeds |lambda| (PDF p.25). -/
def sharpParts (mu : Multiset ℕ) (lambda : YoungDiagram) : ℝ :=
  if mu.sum ≤ lambda.card then
    falling lambda.card mu.sum *
      classCharacter lambda (mu + Multiset.replicate (lambda.card - mu.sum) 1) / dim lambda
  else 0

/-- Central character indexed by a partition (PDF p.25). -/
def sharp (mu lambda : YoungDiagram) : ℝ := sharpParts (mu.rowLens : Multiset ℕ) lambda

/-- Shifted power sum p-star with arbitrary shift c; rows are one-based in the source (PDF p.31). -/
def starShift (k : ℕ) (c : ℝ) (lambda : YoungDiagram) : ℝ :=
  ∑ i ∈ Finset.range (lambda.colLen 0),
    (((lambda.rowLen i : ℝ) - (i+1) - c)^k - (-(i+1 : ℝ) - c)^k)

/-- The canonical p-star uses c=-1/2 (PDF p.25). -/
def starPower (k : ℕ) (lambda : YoungDiagram) : ℝ := starShift k (-1/2) lambda

/-- Shifted Schur observable from the Fourier characterization, Theorem 2.33 (PDF p.26). -/
def shiftedSchur (mu lambda : YoungDiagram) : ℝ :=
  (∑ pi : Equiv.Perm (Fin mu.card),
    character mu pi * sharpParts (fullCycle pi) lambda) / mu.card.factorial

/-- Product of multiplicity factorials, with the empty product equal to one (PDF p.47). -/
def multiplicityFact (mu : YoungDiagram) : ℕ :=
  ∏ j ∈ Finset.range (mu.card+1), (mu.rowLens.count j).factorial

/-- Explicit highest-weight term in p-star_k (PDF p.47). -/
def leading (k : ℕ) (lambda : YoungDiagram) : ℝ :=
  ∑ mu ∈ (diagramsLE (k+1)).filter (fun mu => observableWeight mu = k+1),
    falling k (mu.colLen 0 - 1) / multiplicityFact mu * sharp mu lambda

/-- The error observable is computed, never supplied as a free variable (PDF p.47). -/
def remainder (k : ℕ) (lambda : YoungDiagram) : ℝ := starPower k lambda - leading k lambda

/-- Evaluate a finite rational central-character expansion on every shape (PDF pp.47,51). -/
def observable (a : YoungDiagram →₀ ℚ) (lambda : YoungDiagram) : ℝ :=
  a.sum fun mu c => (c : ℝ) * sharp mu lambda

example : insertRow 1 [1,2] = ([1,1], some 2) := by norm_num [insertRow]

example : insertTableau 1 [[2],[3]] = [[1],[2],[3]] := by norm_num [insertTableau, insertRow]

example {n : ℕ} : fullCycle (1 : Equiv.Perm (Fin n)) = Multiset.replicate n 1 := by
  simp [fullCycle]

example (lambda : YoungDiagram) : starShift 0 0 lambda = 0 := by simp [starShift]

example (lambda : YoungDiagram) : observable 0 lambda = 0 := by simp [observable]

example (d : ℕ) (w : Fin 0 → Fin d) : rsk w = ⊥ := by
  apply YoungDiagram.ext
  simp [rsk, YoungDiagram.ofRowLens, YoungDiagram.cellsOfRowLens]

/-- Paninski's alternating perturbation, on even positive dimensions (PDF pp.34-35). -/
def paninski (d : ℕ) (epsilon : ℝ) : Fin d → ℝ :=
  fun i => (1 + (if Even i.val then 2*epsilon else -2*epsilon)) / d

/-- General perturbation Q_x, used only for sum x=0 and x_i≥-1 (PDF p.35). -/
def perturbed {d : ℕ} (x : Fin d → ℝ) : Fin d → ℝ := fun i => (1+x i)/d

/-- The Mixedness Tester's acceptance on an arbitrary state (PDF p.33). -/
def mixednessStateAccept {d : ℕ} (n : ℕ) (epsilon : ℝ)
    (rho : Matrix (Fin d) (Fin d) ℂ) : ℝ :=
  ∑ lambda : Schur.Partition d n, sw rho lambda *
    (if sharpParts {2} lambda.val ≤ (1+epsilon^2/2)*(n : ℝ)*(n-1 : ℕ)/d then 1 else 0)

/-- Rank Tester's acceptance probability on the actual input state (PDF p.56). -/
def rankAccept {d : ℕ} (n r : ℕ) (rho : Matrix (Fin d) (Fin d) ℂ) : ℝ :=
  ∑ lambda : Schur.Partition d n, sw rho lambda *
    (if lambda.val.colLen 0 ≤ r then 1 else 0)

/-- Source Rank Tester guarantee, including perfect completeness (PDF pp.56-58). -/
def RankTesterWorks (d n r : ℕ) (epsilon : ℝ) : Prop :=
  ∀ rho : Matrix (Fin d) (Fin d) ℂ, IsDensityMatrix rho →
    (decreasingSpectrum rho ∈ supportProperty d r → rankAccept n r rho = 1) ∧
    (Far (supportProperty d r) epsilon (decreasingSpectrum rho) → rankAccept n r rho ≤ 1/3)

/-- Spectrum uniform on exactly r nonzero eigenvalues, in any basis (PDF p.7). -/
def UniformRank {d : ℕ} (r : ℕ) (rho : Matrix (Fin d) (Fin d) ℂ) : Prop :=
  ∃ pi : Equiv.Perm (Fin d), ∀ i,
    decreasingSpectrum rho (pi i) = if i.val < r then (1 : ℝ)/r else 0

/-- Distinguish uniform ranks r and r+Delta, with one effect fixed before rho (PDF pp.7,43). -/
def DistinguishesRanks (d n r Delta : ℕ) : Prop :=
  ∃ M : Matrix (Fin n → Fin d) (Fin n → Fin d) ℂ, IsEffect M ∧
    ∀ rho : Matrix (Fin d) (Fin d) ℂ, IsDensityMatrix rho →
      (UniformRank r rho → effectProb M (piKron n rho) ≤ 1/3) ∧
      (UniformRank (r+Delta) rho → 2/3 ≤ effectProb M (piKron n rho))

/-- EYD lower-bound assertion with absolute constants quantified before d,epsilon,n (PDF pp.7,30). -/
def EYDLowerBound : Prop :=
  ∃ delta epsilon0 a : ℝ, 0 < delta ∧ delta < 1 ∧ 0 < epsilon0 ∧ epsilon0 < 1 ∧ 0 < a ∧
    ∃ d0 : ℕ, 2 ≤ d0 ∧ ∀ d : ℕ, d0 ≤ d →
      ∀ epsilon : ℝ, 0 < epsilon → epsilon ≤ epsilon0 →
        ∀ n : ℕ, 0 < n → (n : ℝ) < a*d^2/epsilon^2 →
          delta ≤ event (n := n) (unif d) (fun lambda => epsilon < eydError n (unif d) lambda)

example (d n : ℕ) : paninski d 0 = unif d := by
  funext i
  simp [paninski, unif]

example (d : ℕ) : perturbed (fun _ : Fin d => 0) = unif d := by
  funext i
  simp [perturbed, unif]

/-- Restricted symmetric group embedded by fixing the complement (PDF pp.27,37). -/
def groupOn {t : ℕ} (R : Finset (Fin t)) : Finset (Equiv.Perm (Fin t)) :=
  Finset.univ.filter fun w => ∀ i, i ∉ R → w i = i

/-- Cycle type of a permutation restricted to R, including fixed points in R (PDF p.37). -/
def restrictedCycle {t : ℕ} (R : Finset (Fin t)) (w : Equiv.Perm (Fin t)) : Multiset ℕ :=
  w.cycleType + Multiset.replicate (R.card - w.support.card) 1

/-- Permutations of a specified cycle class on R (PDF p.28). -/
def classOn {t : ℕ} (R : Finset (Fin t)) (mu : YoungDiagram) : Finset (Equiv.Perm (Fin t)) :=
  (groupOn R).filter fun w => restrictedCycle R w = (mu.rowLens : Multiset ℕ)

/-- z_mu, including length-one cycles (PDF p.12). -/
def classZ (mu : YoungDiagram) : ℕ :=
  ∏ j ∈ Finset.Icc 1 mu.card, j^(mu.rowLens.count j) * (mu.rowLens.count j).factorial

/-- Actual partial-permutation factorization count g, with union equal to [t] (PDF p.28). -/
def factorizationCount (mu nu tau : YoungDiagram)
    (w : Equiv.Perm (Fin tau.card)) : ℕ :=
  let choices : Finset ((Finset (Fin tau.card) × Equiv.Perm (Fin tau.card)) ×
      (Finset (Fin tau.card) × Equiv.Perm (Fin tau.card))) := Finset.univ
  (choices.filter fun pair =>
    pair.1.1 ∪ pair.2.1 = Finset.univ ∧ pair.1.1.card = mu.card ∧ pair.2.1.card = nu.card ∧
    pair.1.2 ∈ classOn pair.1.1 mu ∧ pair.2.2 ∈ classOn pair.2.1 nu ∧
    pair.1.2 * pair.2.2 = w).card

/-- Source structure constant computed from Proposition 2.36, independently of Corollary 2.37 (PDF p.28). -/
def structureConstant (mu nu tau : YoungDiagram) : ℝ :=
  let S := (Finset.univ : Finset (Equiv.Perm (Fin tau.card))).filter
    (fun w => fullCycle w = (tau.rowLens : Multiset ℕ))
  ((classZ mu : ℝ)*classZ nu/classZ tau) *
    ((∑ w ∈ S, (factorizationCount mu nu tau w : ℝ))/S.card)

/-- The nonzero range of the overlap coefficient (PDF p.28). -/
def OverlapRange (r1 r2 t : ℕ) : Prop :=
  0 < r1 ∧ 0 < r2 ∧ 0 < t ∧ r1 ≤ t ∧ r2 ≤ t ∧ t ≤ r1+r2

/-- C^t_{r1,r2}, with its source zero convention (PDF p.28). -/
def overlapCoefficient (r1 r2 t : ℕ) : ℝ :=
  if OverlapRange r1 r2 t then
    (r1.factorial : ℝ)*r2.factorial /
      ((t-r1).factorial*(t-r2).factorial*(r1+r2-t).factorial : ℕ)
  else 0

/-- Product cycle-class probability, used only in the valid overlap range (PDF p.28). -/
def classProductProbability (mu nu tau : YoungDiagram)
    (_h : OverlapRange mu.card nu.card tau.card) : ℝ :=
  let R1 := Finset.univ.filter (fun i : Fin tau.card => i.val < mu.card)
  let R2 := Finset.univ.filter (fun i : Fin tau.card => tau.card-nu.card ≤ i.val)
  let A := classOn R1 mu
  let B := classOn R2 nu
  ((A.product B).filter (fun w => fullCycle (w.1*w.2) = (tau.rowLens : Multiset ℕ))).card /
    ((A.card : ℝ)*B.card)

/-- Uniform permutation expectation for arbitrary prescribed supports (PDF p.37). -/
def productCharacterMean {d t : ℕ} (q : Fin d → ℝ) (mu nu : YoungDiagram)
    (R1 R2 : Finset (Fin t)) : ℝ :=
  (∑ w1 ∈ groupOn R1, ∑ w2 ∈ groupOn R2,
    classCharacter mu (restrictedCycle R1 w1) *
      classCharacter nu (restrictedCycle R2 w2) * powerParts (fullCycle (w1*w2)) q) /
        (((groupOn R1).card : ℝ)*(groupOn R2).card)

/-- Successive removal of a rim domino leaves a Young diagram (PDF p.40). -/
def RemovesDomino (mu nu : YoungDiagram) : Prop :=
  nu.cells ⊆ mu.cells ∧ ∃ a b : ℕ × ℕ, a ≠ b ∧
    mu.cells \ nu.cells = {a,b} ∧
    ((a.1=b.1 ∧ (a.2+1=b.2 ∨ b.2+1=a.2)) ∨
      (a.2=b.2 ∧ (a.1+1=b.1 ∨ b.1+1=a.1)))

/-- Empty 2-core, using exactly the source's removable-domino definition (PDF p.40). -/
def DominoBalanced (mu : YoungDiagram) : Prop :=
  Relation.ReflTransGen RemovesDomino mu ⊥

/-- Even and odd content cells; signed parity is taken before subtraction can truncate (PDF p.40). -/
def parityCells (mu : YoungDiagram) (even : Bool) : Finset (ℕ × ℕ) :=
  mu.cells.filter fun c => if even then Even (content c) else Odd (content c)

/-- Parity-restricted content product (PDF pp.42-43). -/
def parityProduct (d : ℝ) (mu : YoungDiagram) (even : Bool) : ℝ :=
  ∏ c ∈ parityCells mu even, (d + content c)

/-- Beta numbers with an even bead cutoff; both Maya runners are retained (PDF pp.40-41). -/
def quotientRunner (mu : YoungDiagram) (b : ℕ) : List ℕ :=
  let L := 2*mu.colLen 0
  let beta := (List.range L).map fun i => mu.rowLen i + L - 1 - i
  let runner := ((beta.filter fun x => x % 2 = b).map fun x => x/2).mergeSort (· ≥ ·)
  runner.zipIdx |>.map (fun pair => pair.1 - (runner.length - 1 - pair.2))

/-- Two quotient shapes, computed by the two alternating Maya runners (PDF p.41).
The labels may swap under bead conventions; their multiset union is invariant. -/
def twoQuotient (mu : YoungDiagram) (b : Fin 2) : YoungDiagram :=
  YoungDiagram.ofRowLens ((quotientRunner mu b).mergeSort (· ≥ ·))
    (List.sortedGE_mergeSort)

/-- Double factorial k!! for even k, including 0!!=1 (PDF p.42). -/
def evenDoubleFactorial (k : ℕ) : ℝ := (2 : ℝ)^(k/2) * (k/2).factorial

example : DominoBalanced (⊥ : YoungDiagram) := Relation.ReflTransGen.refl

example : evenDoubleFactorial 2 = 2 := by norm_num [evenDoubleFactorial]

example (r1 r2 t : ℕ) (h : ¬ OverlapRange r1 r2 t) :
    overlapCoefficient r1 r2 t = 0 := by simp [overlapCoefficient, h]

/-- The standing rank-adjacency regime, including the exact integer-compatible copy count (PDF p.44). -/
def RankRegime (r n : ℕ) (omega : ℝ) : Prop :=
  0 < r ∧ 0 < n ∧ 200 ≤ omega ∧ omega ≤ Real.sqrt r ∧
    (n : ℝ) = (r : ℝ)^2 / omega^2

/-- Usual means BOTH width and height bounded by the real threshold (PDF p.45). -/
def Usual (r : ℕ) (omega : ℝ) (lambda : YoungDiagram) : Prop :=
  (lambda.rowLen 0 : ℝ) ≤ 10*r/omega ∧ (lambda.colLen 0 : ℝ) ≤ 10*r/omega

/-- Truncated log observable with general denominator a (PDF pp.46-47). -/
def logObservable (a : ℝ) (C : ℕ) (lambda : YoungDiagram) : ℝ :=
  ∑ k ∈ Finset.Icc 2 C, (-1 : ℝ)^k * starPower k lambda / ((k : ℝ)*a^k)

/-- L-star-infinity is used only on usual diagrams, where this series converges (PDF p.46). -/
def logInfinite (r : ℕ) (lambda : YoungDiagram) : ℝ :=
  ∑' k : ℕ, if 2 ≤ k then
    (-1 : ℝ)^k * starPower k lambda / ((k : ℝ)*((r : ℝ)+1/2)^k) else 0

/-- Source truncation degree, chosen from r and omega (PDF pp.51-52). -/
def truncation (r : ℕ) (omega : ℝ) : ℕ :=
  ⌈3*Real.log (10*r)/Real.log (omega/10)⌉₊

/-- Usual-plus uses the SAME r-based event for both adjacent laws (PDF p.54). -/
def UsualPlus (r : ℕ) (omega : ℝ) (lambda : YoungDiagram) : Prop :=
  Usual r omega lambda ∧ |logInfinite r lambda| ≤ 2

/-- Entire error term (39), computed from the actual remainder observable (PDF p.48). -/
def errorTerm (r n C : ℕ) : ℝ :=
  ∑ k ∈ Finset.Icc 2 C, (-1 : ℝ)^k * expect (n := n) (unif r) (remainder k) /
    ((k : ℝ)*(r : ℝ)^k)

/-- A family witnessing the bounds in Lemma 5.7 (PDF p.50). -/
def ErrorConstants (A : ℕ → ℝ) : Prop :=
  ∀ C : ℕ, 2 ≤ C → 0 ≤ A C ∧ ∀ r n : ℕ, ∀ omega : ℝ,
    RankRegime r n omega → |errorTerm r n C| ≤ A C/omega^2

/-- A suitable subpolynomial choice, not an arbitrary function bounded by big-O (PDF p.52). -/
def chosenOmega (B : ℝ) (r : ℕ) : ℝ :=
  Real.exp (B*Real.rpow (Real.log r) (67/100 : ℝ))

/-- Monomial in single-cycle central characters (PDF p.51). -/
def sharpMonomial (mu lambda : YoungDiagram) : ℝ :=
  (mu.rowLens.map fun k => sharpParts {k} lambda).prod

example (a : ℝ) (lambda : YoungDiagram) : logObservable a 1 lambda = 0 := by
  simp [logObservable]

example (r n : ℕ) : errorTerm r n 1 = 0 := by simp [errorTerm]

example (r : ℕ) (omega : ℝ) (lambda : YoungDiagram) (h : UsualPlus r omega lambda) :
    Usual r omega lambda := h.1

/-- Russian upper boundary: every rotated unit cell contributes its vertical tent thickness (PDF pp.12-13). -/
def russian (lambda : YoungDiagram) (x : ℝ) : ℝ :=
  |x| + ∑ c ∈ lambda.cells, 2*max 0 (1 - |x - content c|)

/-- Area-one scaled Russian boundary, separate from EYD's row vector (PDF p.22). -/
def scaledBoundary (lambda : YoungDiagram) (x : ℝ) : ℝ :=
  russian lambda (Real.sqrt lambda.card * x) / Real.sqrt lambda.card

/-- Biane's curved part for positive parameter other than one (PDF p.23). -/
def bianeArc (c x : ℝ) : ℝ :=
  2/Real.pi * (x*Real.arcsin ((x+c)/(2*Real.sqrt (1+c*x))) +
    (1/c)*Real.arccos ((2+c*x-c^2)/(2*Real.sqrt (1+c*x))) +
      Real.sqrt (4-(x-c)^2)/2)

/-- Explicit Biane curve including c=0 and c=1 (PDF p.23, Theorem 2.30). -/
def biane (c x : ℝ) : ℝ :=
  if c = 0 then
    if |x| ≤ 2 then 2/Real.pi*(x*Real.arcsin (x/2)+Real.sqrt (4-x^2)) else |x|
  else if c = 1 then
    if |x-1| ≤ 2 then (x+1)/2 +
      ((x-1)*Real.arcsin ((x-1)/2)+Real.sqrt (4-(x-1)^2))/Real.pi else |x|
  else if 1 < c ∧ -1/c < x ∧ x < c-2 then x+2/c
  else if |x-c| ≤ 2 then bianeArc c x else |x|

/-- L1 boundary distance as a Lebesgue integral; explicit diagrams have bounded difference support (PDF p.60). -/
def boundaryDistance (f g : ℝ → ℝ) : ℝ := ∫ x, |f x-g x|

/-- The kth local-extremum moment from the explicit Russian boundary (PDF p.25). -/
def tildePower (k : ℕ) (lambda : YoungDiagram) : ℝ :=
  (k : ℝ)*(k-1 : ℕ) * ∫ x : ℝ, x^(k-2) * ((russian lambda x - |x|)/2)

/-- Deterministic Biane moment subtracted in q-tilde, computed from n,d,k (PDF p.62). -/
def bianeMoment (k n d : ℕ) : ℝ :=
  ∑ ell ∈ Finset.Icc 1 ((k+1)/2),
    falling k (2*ell-1) /
      (((k+1-ell)*(ell.factorial)*((ell-1).factorial) : ℕ) : ℝ) *
        Real.rpow n ((k : ℝ)/2+1-ell)/(d : ℝ)^(k+1-2*ell)

/-- q-tilde is the actual boundary moment minus the deterministic Biane moment (PDF p.62). -/
def qTilde (k n d : ℕ) (lambda : YoungDiagram) : ℝ :=
  tildePower (k+1) lambda / ((k+1 : ℝ)*Real.rpow n ((k : ℝ)/2)) - bianeMoment k n d

/-- f(d)=omega_d(1), with no prescribed convergence rate (PDF pp.59-60). -/
def Diverges (f : ℕ → ℕ) : Prop :=
  ∀ M : ℕ, ∃ d0 : ℕ, ∀ d : ℕ, d0 ≤ d → M ≤ f d

/-- Finite real observables retain arbitrary fixed real coefficients (PDF p.63). -/
def realObservable (a : YoungDiagram →₀ ℝ) (lambda : YoungDiagram) : ℝ :=
  a.sum fun mu c => c * sharp mu lambda

/-- Complex central-character expansions for coefficient statements in the complex algebra (PDF pp.24-25,51). -/
def complexObservable (a : YoungDiagram →₀ ℂ) (lambda : YoungDiagram) : ℂ :=
  a.sum fun mu c => c * (sharp mu lambda : ℂ)

example (x : ℝ) : russian ⊥ x = |x| := by simp [russian]

example : biane 0 3 = 3 := by norm_num [biane]

example (lambda : YoungDiagram) : realObservable 0 lambda = 0 := by simp [realObservable]

example (lambda : YoungDiagram) : complexObservable 0 lambda = 0 := by simp [complexObservable]

end QAlgorithms.Papers.Independent.Extend50.P34
Source
Quantum Spectrum Testing, arXiv:1501.05028v1, https://arxiv.org/abs/1501.05028v1
Read-back

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

QAlgorithms.Papers.Independent.Extend50.P34.ClassicalTest

For arbitrary natural numbers d,nd,nd,n, a set PPP of real ddd-coordinate vectors, a real ϵ\epsilonϵ, a Boolean parameter oneSided\mathit{oneSided}oneSided, and a real function aaa on length-nnn words over {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}, this predicate requires 0≤a(w)≤10\le a(w)\le10≤a(w)≤1 for every word and the following conditions for every vector ppp satisfying pi≥0p_i\ge0pi​≥0 and ∑ipi=1\sum_i p_i=1∑i​pi​=1. Writing

Ap=∑w(∏i=0n−1pwi)a(w),A_p=\sum_w\left(\prod_{i=0}^{n-1}p_{w_i}\right)a(w),Ap​=w∑​(i=0∏n−1​pwi​​)a(w),

membership p∈Pp\in Pp∈P requires Ap=1A_p=1Ap​=1 when oneSided\mathit{oneSided}oneSided is true and 2/3≤Ap2/3\le A_p2/3≤Ap​ when it is false, while ϵ≤12∑i∣pi−qi∣\epsilon\le\frac12\sum_i|p_i-q_i|ϵ≤21​∑i​∣pi​−qi​∣ for every q∈Pq\in Pq∈P requires Ap≤1/3A_p\le1/3Ap​≤1/3. No additional assumptions on PPP or ϵ\epsilonϵ are imposed. For n=0n=0n=0, Ap=aA_p=aAp​=a of the unique empty word; for d=0d=0d=0, there are no probability vectors and the conditions quantified over ppp are vacuous. A probability vector satisfying both antecedents would impose incompatible acceptance requirements.

QAlgorithms.Papers.Independent.Extend50.P34.ClassicalTestable

For any natural numbers d,nd,nd,n, any set PPP of real ddd-coordinate vectors, and any real ϵ\epsilonϵ, this predicate means that there exists a real function aaa on length-nnn words with 0≤a(w)≤10\le a(w)\le10≤a(w)≤1 for every word such that, for every vector ppp with nonnegative coordinates summing to 111,

p∈P ⟹ 23≤∑w(∏i=0n−1pwi)a(w),p\in P\ \Longrightarrow\ \frac23\le\sum_w\left(\prod_{i=0}^{n-1}p_{w_i}\right)a(w),p∈P ⟹ 32​≤w∑​(i=0∏n−1​pwi​​)a(w),

and

(∀q∈P, ϵ≤12∑i∣pi−qi∣) ⟹ ∑w(∏i=0n−1pwi)a(w)≤13.\left(\forall q\in P,\ \epsilon\le\frac12\sum_i|p_i-q_i|\right) \ \Longrightarrow\ \sum_w\left(\prod_{i=0}^{n-1}p_{w_i}\right)a(w)\le\frac13.(∀q∈P, ϵ≤21​i∑​∣pi​−qi​∣) ⟹ w∑​(i=0∏n−1​pwi​​)a(w)≤31​.

There are no further assumptions on PPP or ϵ\epsilonϵ. When n=0n=0n=0, the acceptance sum is the value of aaa on the empty word; when d=0d=0d=0, there are no probability vectors, so the predicate holds.

QAlgorithms.Papers.Independent.Extend50.P34.DistinguishesRanks

For natural numbers d,n,r,Δd,n,r,\Deltad,n,r,Δ, this predicate says that there exists a complex matrix MMM, indexed by length-nnn words over {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}, such that both MMM and I−MI-MI−M are positive semidefinite and, for every positive semidefinite complex d×dd\times dd×d matrix ρ\rhoρ with trace 111,

Ur(ρ)⟹Re⁡tr⁡(Mρ⊗n)≤13,Ur+Δ(ρ)⟹23≤Re⁡tr⁡(Mρ⊗n),U_r(\rho)\Longrightarrow \operatorname{Re}\operatorname{tr}(M\rho^{\otimes n})\le\tfrac13, \qquad U_{r+\Delta}(\rho)\Longrightarrow \tfrac23\le\operatorname{Re}\operatorname{tr}(M\rho^{\otimes n}),Ur​(ρ)⟹Retr(Mρ⊗n)≤31​,Ur+Δ​(ρ)⟹32​≤Retr(Mρ⊗n),

where (ρ⊗n)y,z=∏i=0n−1ρyi,zi(\rho^{\otimes n})_{y,z}=\prod_{i=0}^{n-1}\rho_{y_i,z_i}(ρ⊗n)y,z​=∏i=0n−1​ρyi​,zi​​. For a natural number sss, Us(ρ)U_s(\rho)Us​(ρ) means that some permutation of the decreasing eigenvalue list of ρ\rhoρ has entries 1/s1/s1/s at indices i<si<si<s and zero at indices i≥si\ge si≥s. The formula uses real division with 1/0=01/0=01/0=0. Zero copies are allowed, in which case the tensor matrix is the scalar 111 on the singleton set of empty words. If s=0s=0s=0 or s>ds>ds>d, no density matrix satisfies UsU_sUs​, so the corresponding implication imposes no condition. In particular, when d=0d=0d=0 the quantification over density matrices is empty. When Δ=0\Delta=0Δ=0 and 1≤r≤d1\le r\le d1≤r≤d, the two implications apply to the same nonempty family and demand incompatible bounds.

QAlgorithms.Papers.Independent.Extend50.P34.Diverges

For any function f:N→Nf:\mathbb N\to\mathbb Nf:N→N, this defines the proposition that for every natural number MMM, there exists a natural number d0d_0d0​ such that every natural number d≥d0d\ge d_0d≥d0​ satisfies M≤f(d)M\le f(d)M≤f(d). Thus every natural-number lower bound eventually holds at all subsequent indices; no monotonicity of fff is required, and both the bound and the indices may be zero.

QAlgorithms.Papers.Independent.Extend50.P34.DominoBalanced

For every Young diagram μ\muμ, this defines the proposition that there exists a finite sequence of Young diagrams starting at μ\muμ and ending at the empty diagram, each successive diagram obtained by deleting exactly two distinct cells that are adjacent horizontally or vertically, with every intermediate cell set still a Young diagram. A sequence of zero deletions is allowed, so the empty diagram satisfies this proposition.

QAlgorithms.Papers.Independent.Extend50.P34.EYDLowerBound

This proposition says that there exist real constants δ,ϵ0,a\delta,\epsilon_0,aδ,ϵ0​,a and a natural number d0d_0d0​ with 0<δ<10<\delta<10<δ<1, 0<ϵ0<10<\epsilon_0<10<ϵ0​<1, a>0a>0a>0, and d0≥2d_0\ge2d0​≥2, such that for every natural d≥d0d\ge d_0d≥d0​, every real 0<ϵ≤ϵ00<\epsilon\le\epsilon_00<ϵ≤ϵ0​, and every natural n>0n>0n>0 satisfying n<ad2/ϵ2n<a d^2/\epsilon^2n<ad2/ϵ2,

δ≤∑λ: ∣λ∣=n, h(λ)≤d12∑i=0d−1∣λi/n−1/d∣>ϵRe⁡tr⁡ ⁣(Pλ d−nI).\delta\le \sum_{\substack{\lambda:\ |\lambda|=n,\ h(\lambda)\le d\\ \frac12\sum_{i=0}^{d-1} \left|\lambda_i/n-1/d\right|>\epsilon}} \operatorname{Re}\operatorname{tr}\!\left(P_\lambda\,d^{-n}I\right).δ≤λ: ∣λ∣=n, h(λ)≤d21​∑i=0d−1​∣λi​/n−1/d∣>ϵ​∑​Retr(Pλ​d−nI).

Here λi\lambda_iλi​ is the row length at zero-based index iii, h(λ)h(\lambda)h(λ) is the first-column length, and III acts on the space indexed by length-nnn words over ddd symbols. The coefficient matrix is defined by labeling the cells of λ\lambdaλ using the specified bijection with nnn labels, taking the row-preserving and column-preserving permutation sets Rλ,Cλ⊆SnR_\lambda,C_\lambda\subseteq S_nRλ​,Cλ​⊆Sn​, and letting QλQ_\lambdaQλ​ be the orthogonal projector onto the range of

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

With Dλ=dim⁡Crange⁡(Yλ)D_\lambda=\dim_{\mathbb C}\operatorname{range}(Y_\lambda)Dλ​=dimC​range(Yλ​), Lπ(g,h)=1{g=πh}L_\pi(g,h)=\mathbf1_{\{g=\pi h\}}Lπ​(g,h)=1{g=πh}​, and Tπ(y,z)=1{y=z∘π−1}T_\pi(y,z)=\mathbf1_{\{y=z\circ\pi^{-1}\}}Tπ​(y,z)=1{y=z∘π−1}​, it is

Pλ=Dλn!∑π∈Sntr⁡(Lπ−1Qλ) Tπ.P_\lambda=\frac{D_\lambda}{n!} \sum_{\pi\in S_n}\operatorname{tr}(L_{\pi^{-1}}Q_\lambda)\,T_\pi.Pλ​=n!Dλ​​π∈Sn​∑​tr(Lπ−1​Qλ​)Tπ​.

Thus the sum weights precisely the diagrams whose first ddd row lengths divided by nnn have total variation distance strictly greater than ϵ\epsilonϵ from the vector with all entries 1/d1/d1/d. The constants are chosen before d,ϵ,nd,\epsilon,nd,ϵ,n; the hypotheses exclude zero dimensions and zero sample sizes.

QAlgorithms.Papers.Independent.Extend50.P34.ErrorConstants

For a function A:N→RA:\mathbb N\to\mathbb RA:N→R, this predicate requires, for every natural number C≥2C\ge2C≥2, that A(C)≥0A(C)\ge0A(C)≥0 and that, for every pair of natural numbers r,nr,nr,n and every real number ω\omegaω satisfying

r>0,n>0,200≤ω≤r,n=r2ω2,r>0,\quad n>0,\quad 200\le\omega\le\sqrt r,\quad n=\frac{r^2}{\omega^2},r>0,n>0,200≤ω≤r​,n=ω2r2​,

one has

∣∑k=2C(−1)kkrk∑λ a Young diagram∣λ∣=n, h(λ)≤rwλ,r,n(Sk(λ)−∑μ a Young diagram∣μ∣+h(μ)=k+1kh(μ)−1‾∏j=0∣μ∣mj(μ)! Aμ(λ))∣≤A(C)ω2.\left| \sum_{k=2}^{C}\frac{(-1)^k}{k r^k} \sum_{\substack{\lambda\text{ a Young diagram}\\|\lambda|=n,\ h(\lambda)\le r}} w_{\lambda,r,n}\left(S_k(\lambda)- \sum_{\substack{\mu\text{ a Young diagram}\\|\mu|+h(\mu)=k+1}} \frac{k^{\underline{h(\mu)-1}}} {\prod_{j=0}^{|\mu|}m_j(\mu)!}\, A_\mu(\lambda)\right) \right|\le\frac{A(C)}{\omega^2}.​k=2∑C​krk(−1)k​λ a Young diagram∣λ∣=n, h(λ)≤r​∑​wλ,r,n​​Sk​(λ)−μ a Young diagram∣μ∣+h(μ)=k+1​∑​∏j=0∣μ∣​mj​(μ)!kh(μ)−1​​Aμ​(λ)​​≤ω2A(C)​.

Here hhh is the number of nonempty rows, mj(μ)m_j(\mu)mj​(μ) counts rows of length jjj, kq‾k^{\underline q}kq​ is the natural descending factorial, and

Sk(λ)=∑i=0h(λ)−1[(λi−i−12)k−(−i−12)k].S_k(\lambda)=\sum_{i=0}^{h(\lambda)-1} \left[(\lambda_i-i-\tfrac12)^k-(-i-\tfrac12)^k\right].Sk​(λ)=i=0∑h(λ)−1​[(λi​−i−21​)k−(−i−21​)k].

The remaining symbols are defined as follows: number the cells of each diagram ν\nuν of size sss using the construction's chosen bijection with {0,…,s−1}\{0,\ldots,s-1\}{0,…,s−1}, and let Rν,Cν⊆SsR_\nu,C_\nu\subseteq\mathfrak S_sRν​,Cν​⊆Ss​ preserve cell rows and columns, respectively; form the matrix

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

Let VνV_\nuVν​ be its range, QνQ_\nuQν​ the orthogonal projection onto that range, dν=dim⁡CVνd_\nu=\dim_{\mathbb C}V_\nudν​=dimC​Vν​, and χν(π)=Tr⁡(LπQν)\chi_\nu(\pi)=\operatorname{Tr}(L_\pi Q_\nu)χν​(π)=Tr(Lπ​Qν​), where (Lπ)g,h=1{g=πh}(L_\pi)_{g,h}=\mathbf1_{\{g=\pi h\}}(Lπ​)g,h​=1{g=πh}​. Set Aμ(λ)=0A_\mu(\lambda)=0Aμ​(λ)=0 when ∣μ∣>n|\mu|>n∣μ∣>n; otherwise it is n∣μ∣‾/dλn^{\underline{|\mu|}}/d_\lambdan∣μ∣​/dλ​ times the mean of Re⁡χλ(π)\operatorname{Re}\chi_\lambda(\pi)Reχλ​(π) over permutations with cycle lengths given by μ\muμ's row lengths and n−∣μ∣n-|\mu|n−∣μ∣ further ones. For words of length nnn over rrr symbols, 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 define

wλ,r,n=Re⁡Tr⁡[(dλn!∑π∈Snχλ(π−1)Tπ)(r−1I)⊗n].w_{\lambda,r,n}= \operatorname{Re}\operatorname{Tr}\left[ \left(\frac{d_\lambda}{n!}\sum_{\pi\in\mathfrak S_n} \chi_\lambda(\pi^{-1})T_\pi\right)(r^{-1}I)^{\otimes n} \right].wλ,r,n​=ReTr[(n!dλ​​π∈Sn​∑​χλ​(π−1)Tπ​)(r−1I)⊗n].

Scalar divisions use the total convention that division by zero is zero. There is no condition on A(0)A(0)A(0) or A(1)A(1)A(1); for C≥2C\ge2C≥2, nonnegativity is required independently of whether any r,n,ωr,n,\omegar,n,ω satisfy the displayed regime, while the error bound applies only when they do.

QAlgorithms.Papers.Independent.Extend50.P34.Far

For any natural number ddd, any set PPP of real ddd-coordinate vectors, any real ϵ\epsilonϵ, and any real ddd-coordinate vector ppp, this predicate means that

ϵ≤12∑i=0d−1∣pi−qi∣for every q∈P.\epsilon\le \frac12\sum_{i=0}^{d-1}|p_i-q_i| \qquad\text{for every }q\in P.ϵ≤21​i=0∑d−1​∣pi​−qi​∣for every q∈P.

No probability assumptions or sign restriction on ϵ\epsilonϵ are imposed. If PPP is empty, the predicate holds vacuously; if d=0d=0d=0 and PPP is nonempty, it means ϵ≤0\epsilon\le0ϵ≤0.

QAlgorithms.Papers.Independent.Extend50.P34.GreeneTestable

For natural numbers d,nd,nd,n, an arbitrary set P⊆RdP\subseteq\mathbb R^dP⊆Rd, and an arbitrary real number ϵ\epsilonϵ, this means that there exists a function a:Nd→Ra:\mathbb N^d\to\mathbb Ra:Nd→R satisfying 0≤a(x)≤10\le a(x)\le10≤a(x)≤1 for every x∈Ndx\in\mathbb N^dx∈Nd, with the following property. For every probability vector p∈Rdp\in\mathbb R^dp∈Rd, meaning pi≥0p_i\ge0pi​≥0 and ∑ipi=1\sum_i p_i=1∑i​pi​=1, put

A(p)=∑w:{0,…,n−1}→{0,…,d−1}(∏i=0n−1pwi)a(G(w)),A(p)=\sum_{w:\{0,\ldots,n-1\}\to\{0,\ldots,d-1\}} \left(\prod_{i=0}^{n-1}p_{w_i}\right)a(G(w)),A(p)=w:{0,…,n−1}→{0,…,d−1}∑​(i=0∏n−1​pwi​​)a(G(w)),

where coordinate kkk of G(w)G(w)G(w) is the maximum number of positions colorable with k+1k+1k+1 colors such that each color class has nondecreasing word values in position order. It is required that p∈Pp\in Pp∈P implies A(p)≥2/3A(p)\ge2/3A(p)≥2/3, and that ϵ≤12∑i∣pi−qi∣\epsilon\le\frac12\sum_i|p_i-q_i|ϵ≤21​∑i​∣pi​−qi​∣ for every q∈Pq\in Pq∈P implies A(p)≤1/3A(p)\le1/3A(p)≤1/3. The bounds on aaa apply even to vectors that are not reports of any word. No closedness, permutation invariance, or distribution condition is assumed for PPP, and ϵ\epsilonϵ need not be positive; when PPP is empty, the second premise is vacuous. For n=0n=0n=0, the acceptance expression uses the unique empty word, empty product 111, and zero report; for d=0d=0d=0, there are no probability vectors, so the probability-vector requirements are vacuous.

QAlgorithms.Papers.Independent.Extend50.P34.IsSpectralProperty

For any natural number ddd and any set PPP of real ddd-coordinate vectors, this predicate means that PPP is closed in the usual topology, every p∈Pp\in Pp∈P satisfies pi≥0p_i\ge0pi​≥0 for every coordinate and ∑ipi=1\sum_i p_i=1∑i​pi​=1, and, for every real vector ppp and every permutation π\piπ of {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1},

(pπ(i))i∈P⟺p∈P.(p_{\pi(i)})_i\in P\quad\Longleftrightarrow\quad p\in P.(pπ(i)​)i​∈P⟺p∈P.

The empty set is allowed. When d=0d=0d=0, no vector satisfies the required normalization, so this predicate forces PPP to be empty.

QAlgorithms.Papers.Independent.Extend50.P34.OverlapRange

For every three natural numbers r1,r2,tr_1,r_2,tr1​,r2​,t, this defines the proposition

0<r1,0<r2,0<t,r1≤t,r2≤t,t≤r1+r2.0<r_1,\qquad 0<r_2,\qquad 0<t,\qquad r_1\le t,\qquad r_2\le t,\qquad t\le r_1+r_2.0<r1​,0<r2​,0<t,r1​≤t,r2​≤t,t≤r1​+r2​.

All six conditions must hold together. In particular, the proposition is false if any of the three numbers is 000, while equality is allowed in each of the last three inequalities.

QAlgorithms.Papers.Independent.Extend50.P34.QuantumTest

For arbitrary natural numbers d,nd,nd,n, a set PPP of real ddd-coordinate vectors, a real ϵ\epsilonϵ, a Boolean parameter oneSided\mathit{oneSided}oneSided, and a complex matrix MMM indexed by pairs of length-nnn words over {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}, this predicate requires that MMM and I−MI-MI−M be positive semidefinite and that the following hold for every positive semidefinite d×dd\times dd×d matrix ρ\rhoρ of trace 111. Let λ(ρ)\lambda(\rho)λ(ρ) list its eigenvalues in nonincreasing order, and define

Tρ(u,v)=∏i=0n−1ρui,vi,Aρ=Re⁡tr⁡(MTρ).T_\rho(u,v)=\prod_{i=0}^{n-1}\rho_{u_i,v_i}, \qquad A_\rho=\operatorname{Re}\operatorname{tr}(MT_\rho).Tρ​(u,v)=i=0∏n−1​ρui​,vi​​,Aρ​=Retr(MTρ​).

If λ(ρ)∈P\lambda(\rho)\in Pλ(ρ)∈P, then Aρ=1A_\rho=1Aρ​=1 when oneSided\mathit{oneSided}oneSided is true, and 2/3≤Aρ2/3\le A_\rho2/3≤Aρ​ when it is false; if ϵ≤12∑i∣λi(ρ)−qi∣\epsilon\le\frac12\sum_i|\lambda_i(\rho)-q_i|ϵ≤21​∑i​∣λi​(ρ)−qi​∣ for every q∈Pq\in Pq∈P, then Aρ≤1/3A_\rho\le1/3Aρ​≤1/3. No additional conditions on PPP or ϵ\epsilonϵ are required. For n=0n=0n=0, TρT_\rhoTρ​ is the one-dimensional matrix [1][1][1]; for d=0d=0d=0, there are no trace-111 density matrices, so the conditions quantified over ρ\rhoρ are vacuous. If a density matrix satisfies both antecedents, the resulting acceptance requirements are incompatible.

QAlgorithms.Papers.Independent.Extend50.P34.QuantumTestable

For natural numbers d,nd,nd,n, a set PPP of real ddd-coordinate vectors, a real ϵ\epsilonϵ, and a Boolean parameter oneSided\mathit{oneSided}oneSided, which defaults to false when omitted, this predicate means that there exists a complex matrix MMM indexed by length-nnn words such that MMM and I−MI-MI−M are positive semidefinite and, for every positive semidefinite d×dd\times dd×d matrix ρ\rhoρ of trace 111, the number

Aρ=Re⁡tr⁡(MTρ),Tρ(u,v)=∏i=0n−1ρui,vi,A_\rho=\operatorname{Re}\operatorname{tr}(MT_\rho), \qquad T_\rho(u,v)=\prod_{i=0}^{n-1}\rho_{u_i,v_i},Aρ​=Retr(MTρ​),Tρ​(u,v)=i=0∏n−1​ρui​,vi​​,

equals 111 if oneSided\mathit{oneSided}oneSided is true and the decreasing eigenvalue vector λ(ρ)\lambda(\rho)λ(ρ) belongs to PPP, is at least 2/32/32/3 if oneSided\mathit{oneSided}oneSided is false and λ(ρ)∈P\lambda(\rho)\in Pλ(ρ)∈P, and is at most 1/31/31/3 whenever ϵ≤12∑i∣λi(ρ)−qi∣\epsilon\le\frac12\sum_i|\lambda_i(\rho)-q_i|ϵ≤21​∑i​∣λi​(ρ)−qi​∣ for every q∈Pq\in Pq∈P. There are no further assumptions on PPP or ϵ\epsilonϵ. For n=0n=0n=0, the product defining TρT_\rhoTρ​ is 111; for d=0d=0d=0, the density-matrix requirements are vacuous and such an MMM exists.

QAlgorithms.Papers.Independent.Extend50.P34.RankRegime

For natural numbers r,nr,nr,n and a real number ω\omegaω, this predicate means that all five conditions hold:

r>0,n>0,200≤ω,ω≤r,n=r2ω2,r>0,\qquad n>0,\qquad 200\le\omega,\qquad \omega\le\sqrt r,\qquad n=\frac{r^2}{\omega^2},r>0,n>0,200≤ω,ω≤r​,n=ω2r2​,

where the last equality and square root are over the real numbers. In particular, neither r=0r=0r=0 nor n=0n=0n=0 satisfies the predicate, and the bounds on ω\omegaω cannot be satisfied when r<40000r<40000r<40000.

QAlgorithms.Papers.Independent.Extend50.P34.RankTesterWorks

For natural numbers d,n,rd,n,rd,n,r and real ϵ\epsilonϵ, this predicate requires the following for every positive semidefinite complex d×dd\times dd×d matrix ρ\rhoρ with trace 111. Write p0≥⋯≥pd−1p_0\ge\cdots\ge p_{d-1}p0​≥⋯≥pd−1​ for its eigenvalues, with multiplicities, and let Pr\mathcal P_rPr​ be the set of vectors q∈Rdq\in\mathbb R^dq∈Rd having nonnegative entries, sum 111, and at most rrr nonzero entries. Define

A(ρ)=∑λ: ∣λ∣=nh(λ)≤d, h(λ)≤rRe⁡tr⁡(Pλρ⊗n),(ρ⊗n)y,z=∏i=0n−1ρyi,zi.A(\rho)= \sum_{\substack{\lambda:\ |\lambda|=n\\h(\lambda)\le d,\ h(\lambda)\le r}} \operatorname{Re}\operatorname{tr}(P_\lambda\rho^{\otimes n}), \qquad (\rho^{\otimes n})_{y,z}=\prod_{i=0}^{n-1}\rho_{y_i,z_i}.A(ρ)=λ: ∣λ∣=nh(λ)≤d, h(λ)≤r​∑​Retr(Pλ​ρ⊗n),(ρ⊗n)y,z​=i=0∏n−1​ρyi​,zi​​.

Here h(λ)h(\lambda)h(λ) is the first-column length; to construct PλP_\lambdaPλ​, use the specified cell labeling, form the row-preserving and column-preserving permutation sets Rλ,CλR_\lambda,C_\lambdaRλ​,Cλ​, let QλQ_\lambdaQλ​ be the orthogonal projector onto the range of Yλ(g,h)=∑a∈Rλ,b∈Cλ1{g=hab}sgn⁡(b)Y_\lambda(g,h)=\sum_{a\in R_\lambda,b\in C_\lambda}\mathbf1_{\{g=hab\}}\operatorname{sgn}(b)Yλ​(g,h)=∑a∈Rλ​,b∈Cλ​​1{g=hab}​sgn(b), put Dλ=dim⁡Crange⁡(Yλ)D_\lambda=\dim_{\mathbb C}\operatorname{range}(Y_\lambda)Dλ​=dimC​range(Yλ​), and set

Pλ=Dλn!∑π∈Sntr⁡(Lπ−1Qλ) Tπ,Lπ(g,h)=1{g=πh},Tπ(y,z)=1{y=z∘π−1}.P_\lambda=\frac{D_\lambda}{n!} \sum_{\pi\in S_n}\operatorname{tr}(L_{\pi^{-1}}Q_\lambda)\,T_\pi, \quad L_\pi(g,h)=\mathbf1_{\{g=\pi h\}}, \quad T_\pi(y,z)=\mathbf1_{\{y=z\circ\pi^{-1}\}}.Pλ​=n!Dλ​​π∈Sn​∑​tr(Lπ−1​Qλ​)Tπ​,Lπ​(g,h)=1{g=πh}​,Tπ​(y,z)=1{y=z∘π−1}​.

The two required implications are

p∈Pr ⟹ A(ρ)=1,(∀q∈Pr, ϵ≤12∑i∣pi−qi∣) ⟹ A(ρ)≤13.p\in\mathcal P_r\ \Longrightarrow\ A(\rho)=1, \qquad \left(\forall q\in\mathcal P_r,\ \epsilon\le\tfrac12\sum_i|p_i-q_i|\right) \ \Longrightarrow\ A(\rho)\le\tfrac13.p∈Pr​ ⟹ A(ρ)=1,(∀q∈Pr​, ϵ≤21​i∑​∣pi​−qi​∣) ⟹ A(ρ)≤31​.

No positivity of ϵ\epsilonϵ, positivity of nnn, or upper bound on rrr is assumed. At d=0d=0d=0 there is no trace-one matrix, so the predicate is vacuous. At n=0n=0n=0, the empty tensor product and empty diagram give A(ρ)=1A(\rho)=1A(ρ)=1. The universal condition over Pr\mathcal P_rPr​ is vacuous if that set is empty; if its two antecedents hold simultaneously for any density matrix, the two required conclusions are incompatible.

QAlgorithms.Papers.Independent.Extend50.P34.RemovesDomino

For every two Young diagrams μ,ν\mu,\nuμ,ν, this defines the proposition that the cells of ν\nuν are a subset of those of μ\muμ, and there exist two distinct cells a=(a1,a2)a=(a_1,a_2)a=(a1​,a2​), b=(b1,b2)b=(b_1,b_2)b=(b1​,b2​) with natural-number coordinates such that

μ.cells∖ν.cells={a,b},\mu.\mathrm{cells}\setminus\nu.\mathrm{cells}=\{a,b\},μ.cells∖ν.cells={a,b},

and either a1=b1a_1=b_1a1​=b1​ with a2+1=b2a_2+1=b_2a2​+1=b2​ or b2+1=a2b_2+1=a_2b2​+1=a2​, or a2=b2a_2=b_2a2​=b2​ with a1+1=b1a_1+1=b_1a1​+1=b1​ or b1+1=a1b_1+1=a_1b1​+1=a1​. Thus exactly two horizontally or vertically adjacent cells are removed, and the remaining cells must themselves be the given Young diagram ν\nuν.

QAlgorithms.Papers.Independent.Extend50.P34.UniformRank

For every natural dimension ddd, natural number rrr, and arbitrary complex d×dd\times dd×d matrix ρ\rhoρ, this predicate says that there exists a permutation π\piπ of {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1} such that

pπ(i)={1/r,i<r,0,i≥rfor every i<d,p_{\pi(i)}= \begin{cases} 1/r,&i<r,\\ 0,&i\ge r \end{cases} \quad\text{for every }i<d,pπ(i)​={1/r,0,​i<r,i≥r​for every i<d,

where ppp is the decreasing list of eigenvalues when ρ\rhoρ is Hermitian, and is the identically zero vector when ρ\rhoρ is not Hermitian. No assumption that ρ\rhoρ is positive semidefinite or trace one is included. When r=0r=0r=0, the right side is identically zero, using the convention 1/0=01/0=01/0=0; in particular every non-Hermitian matrix satisfies this predicate for r=0r=0r=0. When r>dr>dr>d, all ddd entries are required to equal 1/r1/r1/r. When d=0d=0d=0, the pointwise condition is empty and the predicate holds for every rrr.

QAlgorithms.Papers.Independent.Extend50.P34.Usual

For any natural number rrr, real number ω\omegaω, and Young diagram λ\lambdaλ, this predicate means that both the length of its first row and the number of its nonempty rows satisfy

λ.rowLen(0)≤10rω,λ.colLen(0)≤10rω,\lambda.\mathrm{rowLen}(0)\le\frac{10r}{\omega}, \qquad \lambda.\mathrm{colLen}(0)\le\frac{10r}{\omega},λ.rowLen(0)≤ω10r​,λ.colLen(0)≤ω10r​,

with the lengths regarded as real numbers. There are no positivity assumptions on rrr or ω\omegaω. Division by zero is defined to give zero, so when ω=0\omega=0ω=0, or when r=0r=0r=0, the predicate requires both lengths to be zero.

QAlgorithms.Papers.Independent.Extend50.P34.UsualPlus

For any natural number rrr, real number ω\omegaω, and Young diagram λ\lambdaλ, write h=λ.colLen(0)h=\lambda.\mathrm{colLen}(0)h=λ.colLen(0) and λi=λ.rowLen(i)\lambda_i=\lambda.\mathrm{rowLen}(i)λi​=λ.rowLen(i). This predicate requires

λ0≤10rω,h≤10rω,∣∑k=2∞(−1)kk(r+12)k∑i=0h−1[(λi−i−12)k−(−i−12)k]∣≤2.\lambda_0\le\frac{10r}{\omega},\qquad h\le\frac{10r}{\omega},\qquad \left| \sum_{k=2}^{\infty} \frac{(-1)^k}{k(r+\tfrac12)^k} \sum_{i=0}^{h-1} \left[ \left(\lambda_i-i-\frac12\right)^k -\left(-i-\frac12\right)^k \right] \right|\le2.λ0​≤ω10r​,h≤ω10r​,​k=2∑∞​k(r+21​)k(−1)k​i=0∑h−1​[(λi​−i−21​)k−(−i−21​)k]​≤2.

All lengths in these inequalities are interpreted as real numbers. No restrictions on rrr or ω\omegaω and no summability assumption are included: division by zero gives zero, and the displayed infinite sum is defined to be zero if its terms are not summable. Consequently, in that nonsummable case the final absolute-value condition holds automatically.

QAlgorithms.Papers.Independent.Extend50.P34.adjacentKL

For natural numbers r,nr,nr,n, set D=r+1D=r+1D=r+1. For s=rs=rs=r and s=r+1s=r+1s=r+1, put pi(s)=1/sp^{(s)}_i=1/spi(s)​=1/s when i<si<si<s, and pi(s)=0p^{(s)}_i=0pi(s)​=0 otherwise, for 0≤i<D0\le i<D0≤i<D; let AsA_sAs​ be the diagonal matrix on length-nnn words over these DDD indices with diagonal entry ∏ipxi(s)\prod_i p^{(s)}_{x_i}∏i​pxi​(s)​. For each Young diagram λ\lambdaλ with nnn cells and at most DDD rows, define Pλ=(dim⁡CVλ/n!)∑π∈Sntr⁡(Lπ−1Πλ)TπP_\lambda=(\dim_{\mathbb C}V_\lambda/n!)\sum_{\pi\in S_n}\operatorname{tr}(L_{\pi^{-1}}\Pi_\lambda)T_\piPλ​=(dimC​Vλ​/n!)∑π∈Sn​​tr(Lπ−1​Πλ​)Tπ​, where the cells are numbered by the construction’s fixed bijection, RλR_\lambdaRλ​ and CλC_\lambdaCλ​ are the permutations preserving their rows and columns, VλV_\lambdaVλ​ is the range of Yg,h=∑a∈Rλ,b∈Cλ1{g=hab}sgn⁡(b)Y_{g,h}=\sum_{a\in R_\lambda,b\in C_\lambda}\mathbf1_{\{g=hab\}}\operatorname{sgn}(b)Yg,h​=∑a∈Rλ​,b∈Cλ​​1{g=hab}​sgn(b), Πλ\Pi_\lambdaΠλ​ is its orthogonal projector, 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}​. Write uλ=Re⁡tr⁡(PλAr)u_\lambda=\operatorname{Re}\operatorname{tr}(P_\lambda A_r)uλ​=Retr(Pλ​Ar​) and vλ=Re⁡tr⁡(PλAr+1)v_\lambda=\operatorname{Re}\operatorname{tr}(P_\lambda A_{r+1})vλ​=Retr(Pλ​Ar+1​). The defined value is

∑λ{0,uλ=0,uλlog⁡(uλ/vλ),uλ≠0,\sum_\lambda \begin{cases} 0,&u_\lambda=0,\\ u_\lambda\log(u_\lambda/v_\lambda),&u_\lambda\ne0, \end{cases}λ∑​{0,uλ​log(uλ​/vλ​),​uλ​=0,uλ​=0,​

with the natural logarithm. These are total real operations: division by zero and log⁡0\log 0log0 both give 000, so a term with vλ=0v_\lambda=0vλ​=0 contributes 000 even if uλ≠0u_\lambda\ne0uλ​=0. The parameters include r=0r=0r=0 and n=0n=0n=0; the resulting value is 000 in either case.

QAlgorithms.Papers.Independent.Extend50.P34.adjacentTV

For natural numbers r,nr,nr,n, set D=r+1D=r+1D=r+1. For s=r,r+1s=r,r+1s=r,r+1, define pi(s)=1/sp^{(s)}_i=1/spi(s)​=1/s if i<si<si<s, and 000 otherwise, for i<Di<Di<D, and let AsA_sAs​ be diagonal on length-nnn words xxx over {0,…,D−1}\{0,\ldots,D-1\}{0,…,D−1}, with diagonal entry ∏ipxi(s)\prod_i p^{(s)}_{x_i}∏i​pxi​(s)​. For each Young diagram λ\lambdaλ with nnn cells and at most DDD rows, use the construction’s fixed numbering of its cells; let Rλ,Cλ⊆SnR_\lambda,C_\lambda\subseteq S_nRλ​,Cλ​⊆Sn​ preserve the rows and columns, respectively; let VλV_\lambdaVλ​ be the range of Yg,h=∑a∈Rλ,b∈Cλ1{g=hab}sgn⁡(b)Y_{g,h}=\sum_{a\in R_\lambda,b\in C_\lambda}\mathbf1_{\{g=hab\}}\operatorname{sgn}(b)Yg,h​=∑a∈Rλ​,b∈Cλ​​1{g=hab}​sgn(b), and let Πλ\Pi_\lambdaΠλ​ be its orthogonal projector. With 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}​, put Pλ=(dim⁡CVλ/n!)∑π∈Sntr⁡(Lπ−1Πλ)TπP_\lambda=(\dim_{\mathbb C}V_\lambda/n!)\sum_{\pi\in S_n}\operatorname{tr}(L_{\pi^{-1}}\Pi_\lambda)T_\piPλ​=(dimC​Vλ​/n!)∑π∈Sn​​tr(Lπ−1​Πλ​)Tπ​. The defined value is

12∑λ∣Re⁡tr⁡(PλAr)−Re⁡tr⁡(PλAr+1)∣.\frac12\sum_\lambda \left|\operatorname{Re}\operatorname{tr}(P_\lambda A_r) -\operatorname{Re}\operatorname{tr}(P_\lambda A_{r+1})\right|.21​λ∑​∣Retr(Pλ​Ar​)−Retr(Pλ​Ar+1​)∣.

There are no positivity restrictions on rrr or nnn. In particular, when r=0<nr=0<nr=0<n, the first diagonal matrix is zero and the value is 1/21/21/2; when n=0n=0n=0, both values on the unique empty diagram are 111, so the result is 000.

QAlgorithms.Papers.Independent.Extend50.P34.biane

For arbitrary real c,xc,xc,x, define the auxiliary expression

A(c,x)=2π[xarcsin⁡ ⁣(x+c21+cx)+1carccos⁡ ⁣(2+cx−c221+cx)+4−(x−c)22].A(c,x)=\frac2\pi\left[ x\arcsin\!\left(\frac{x+c}{2\sqrt{1+cx}}\right) +\frac1c\arccos\!\left(\frac{2+cx-c^2}{2\sqrt{1+cx}}\right) +\frac{\sqrt{4-(x-c)^2}}2 \right].A(c,x)=π2​[xarcsin(21+cx​x+c​)+c1​arccos(21+cx​2+cx−c2​)+24−(x−c)2​​].

The declaration defines the following function, with cases applied in the displayed order:

{2π(xarcsin⁡(x/2)+4−x2),c=0, ∣x∣≤2,∣x∣,c=0, ∣x∣>2,x+12+(x−1)arcsin⁡((x−1)/2)+4−(x−1)2π,c=1, ∣x−1∣≤2,∣x∣,c=1, ∣x−1∣>2,x+2c,c∉{0,1}, c>1, −1/c<x<c−2,A(c,x),c∉{0,1}, ¬(c>1 and −1/c<x<c−2), ∣x−c∣≤2,∣x∣,otherwise.\begin{cases} \dfrac2\pi\bigl(x\arcsin(x/2)+\sqrt{4-x^2}\bigr), &c=0,\ |x|\le2,\\ |x|,&c=0,\ |x|>2,\\ \dfrac{x+1}{2}+ \dfrac{(x-1)\arcsin((x-1)/2)+\sqrt{4-(x-1)^2}}{\pi}, &c=1,\ |x-1|\le2,\\ |x|,&c=1,\ |x-1|>2,\\ x+\dfrac2c, &c\notin\{0,1\},\ c>1,\ -1/c<x<c-2,\\ A(c,x), &c\notin\{0,1\},\ \neg(c>1\ \text{and}\ -1/c<x<c-2),\ |x-c|\le2,\\ |x|,&\text{otherwise}. \end{cases}⎩⎨⎧​π2​(xarcsin(x/2)+4−x2​),∣x∣,2x+1​+π(x−1)arcsin((x−1)/2)+4−(x−1)2​​,∣x∣,x+c2​,A(c,x),∣x∣,​c=0, ∣x∣≤2,c=0, ∣x∣>2,c=1, ∣x−1∣≤2,c=1, ∣x−1∣>2,c∈/{0,1}, c>1, −1/c<x<c−2,c∈/{0,1}, ¬(c>1 and −1/c<x<c−2), ∣x−c∣≤2,otherwise.​

Negative ccc are included. Division by zero and square roots of negative numbers are 000; inverse trigonometric functions use their total real extensions.

QAlgorithms.Papers.Independent.Extend50.P34.bianeArc

For arbitrary real numbers c,xc,xc,x, this defines

2π[xarcsin⁡ ⁣(x+c21+cx)+1carccos⁡ ⁣(2+cx−c221+cx)+4−(x−c)22].\frac2\pi\left[ x\arcsin\!\left(\frac{x+c}{2\sqrt{1+cx}}\right) +\frac1c\arccos\!\left(\frac{2+cx-c^2}{2\sqrt{1+cx}}\right) +\frac{\sqrt{4-(x-c)^2}}2 \right].π2​[xarcsin(21+cx​x+c​)+c1​arccos(21+cx​2+cx−c2​)+24−(x−c)2​​].

There are no restrictions on either argument. All functions use their total real-valued conventions: square roots of negative numbers and division by zero are 000, while arcsin⁡\arcsinarcsin and arccos⁡\arccosarccos remain defined outside [−1,1][-1,1][−1,1] using their endpoint values.

QAlgorithms.Papers.Independent.Extend50.P34.bianeMoment

For all natural numbers k,n,dk,n,dk,n,d, this defines

∑ℓ=1⌊(k+1)/2⌋k 2ℓ−1 ‾(k+1−ℓ) ℓ! (ℓ−1)! n k/2+1−ℓd k+1−2ℓ,\sum_{\ell=1}^{\lfloor(k+1)/2\rfloor} \frac{k^{\underline{\,2\ell-1\,}}} {(k+1-\ell)\,\ell!\,(\ell-1)!}\, \frac{n^{\,k/2+1-\ell}}{d^{\,k+1-2\ell}},ℓ=1∑⌊(k+1)/2⌋​(k+1−ℓ)ℓ!(ℓ−1)!k2ℓ−1​​dk+1−2ℓnk/2+1−ℓ​,

where ks‾k^{\underline s}ks​ is the natural-number descending factorial, the exponent on nnn is real, and the exponent on ddd is natural. Natural-number subtractions are truncated at zero. No positivity assumptions are imposed on nnn or ddd; division by zero is 000, and real powers use the total real-power convention, including 00=10^0=100=1. When k=0k=0k=0, the indexing interval is empty and the value is 000.

QAlgorithms.Papers.Independent.Extend50.P34.boundaryDistance

For any functions f,g:R→Rf,g:\mathbb R\to\mathbb Rf,g:R→R, with no measurability or integrability assumptions, this defines the real-valued Lebesgue integral

∫R∣f(x)−g(x)∣ dx.\int_{\mathbb R}|f(x)-g(x)|\,dx.∫R​∣f(x)−g(x)∣dx.

The integral uses the total Bochner-integral convention: if the integrand is not integrable, the defined value is 000, rather than +∞+\infty+∞.

QAlgorithms.Papers.Independent.Extend50.P34.character

For any Young diagram λ\lambdaλ and any permutation π\piπ of its n=∣λ∣n=|\lambda|n=∣λ∣ cell labels, this defines Re⁡tr⁡(LπPλ)\operatorname{Re}\operatorname{tr}(L_\pi P_\lambda)Retr(Lπ​Pλ​) as follows. Regard λ\lambdaλ as a partition of nnn with at most h=λ.colLen⁡(0)h=\lambda.\operatorname{colLen}(0)h=λ.colLen(0) rows, and use the chosen bijection between its cells and {0,…,n−1}\{0,\ldots,n-1\}{0,…,n−1}. Let RλR_\lambdaRλ​ consist of label permutations preserving each cell’s row coordinate, and CλC_\lambdaCλ​ of those preserving each cell’s column coordinate. On the complex coordinate space indexed by all permutations of the labels, form the matrix YλY_\lambdaYλ​ with entries (Yλ)g,h′=∑a∈Rλ∑b∈Cλ1{g=h′ab}sgn⁡(b)(Y_\lambda)_{g,h'}=\sum_{a\in R_\lambda}\sum_{b\in C_\lambda}\mathbf1_{\{g=h'ab\}}\operatorname{sgn}(b)(Yλ​)g,h′​=∑a∈Rλ​​∑b∈Cλ​​1{g=h′ab}​sgn(b). Here PλP_\lambdaPλ​ is the orthogonal projector onto the range of YλY_\lambdaYλ​, and (Lπ)g,h′=1{g=πh′}(L_\pi)_{g,h'}=\mathbf1_{\{g=\pi h'\}}(Lπ​)g,h′​=1{g=πh′}​. The empty Young diagram is allowed, in which case the permutation group has one element.

QAlgorithms.Papers.Independent.Extend50.P34.chiSq

For every finite type aaa, equipped with a finite enumeration, and arbitrary functions p,q:a→Rp,q:a\to\mathbb Rp,q:a→R, this defines

∑i∈a{0,qi=0,qi(piqi−1)2,qi≠0.\sum_{i\in a} \begin{cases} 0,&q_i=0,\\ q_i\left(\dfrac{p_i}{q_i}-1\right)^2,&q_i\ne0. \end{cases}i∈a∑​⎩⎨⎧​0,qi​(qi​pi​​−1)2,​qi​=0,qi​=0.​

Neither function is required to be nonnegative or normalized. Every coordinate with qi=0q_i=0qi​=0 contributes 000, regardless of pip_ipi​, and an empty index type gives 000.

QAlgorithms.Papers.Independent.Extend50.P34.chosenOmega

For every real number BBB and natural number rrr, this defines

exp⁡ ⁣(B (log⁡r)67/100),\exp\!\left(B\,(\log r)^{67/100}\right),exp(B(logr)67/100),

where rrr is regarded as real and the fractional power is the total real-power operation. No positivity assumption on BBB or rrr is imposed. In particular, since the total real logarithm satisfies log⁡0=log⁡1=0\log0=\log1=0log0=log1=0, the value is 111 for both r=0r=0r=0 and r=1r=1r=1; it is also 111 whenever B=0B=0B=0.

QAlgorithms.Papers.Independent.Extend50.P34.classCharacter

For any Young diagram λ\lambdaλ, with n=∣λ∣n=|\lambda|n=∣λ∣, and any finite multiset μ\muμ of natural numbers, let SμS_\muSμ​ be the set of permutations of {0,…,n−1}\{0,\ldots,n-1\}{0,…,n−1} whose multiset of all cycle lengths, including one 111 per fixed point, equals μ\muμ. This defines ∣Sμ∣−1∑π∈SμRe⁡tr⁡(LπPλ)|S_\mu|^{-1}\sum_{\pi\in S_\mu}\operatorname{Re}\operatorname{tr}(L_\pi P_\lambda)∣Sμ​∣−1∑π∈Sμ​​Retr(Lπ​Pλ​). To specify PλP_\lambdaPλ​, number the cells of λ\lambdaλ by the chosen bijection with these nnn labels, let Rλ,CλR_\lambda,C_\lambdaRλ​,Cλ​ be the permutations preserving row and column coordinates respectively, and form (Yλ)g,h=∑a∈Rλ,b∈Cλ1{g=hab}sgn⁡(b)(Y_\lambda)_{g,h}=\sum_{a\in R_\lambda,b\in C_\lambda}\mathbf1_{\{g=hab\}}\operatorname{sgn}(b)(Yλ​)g,h​=∑a∈Rλ​,b∈Cλ​​1{g=hab}​sgn(b); then PλP_\lambdaPλ​ is the orthogonal projector onto its range, while (Lπ)g,h=1{g=πh}(L_\pi)_{g,h}=\mathbf1_{\{g=\pi h\}}(Lπ​)g,h​=1{g=πh}​. There is no assumption that μ\muμ is a possible cycle multiset: if SμS_\muSμ​ is empty, both the sum and the denominator are 000, and real division by zero makes the defined value 000. Empty diagrams and empty multisets are included.

QAlgorithms.Papers.Independent.Extend50.P34.classOn

For every natural number ttt, subset R⊆{0,…,t−1}R\subseteq\{0,\ldots,t-1\}R⊆{0,…,t−1}, and Young diagram μ\muμ, this defines the finite set of permutations www of {0,…,t−1}\{0,\ldots,t-1\}{0,…,t−1} that fix every element outside RRR and satisfy

cycleType⁡(w)⊎{1} ∣R∣−∣supp⁡(w)∣=rowLens⁡(μ).\operatorname{cycleType}(w)\uplus \{1\}^{\,|R|-|\operatorname{supp}(w)|} =\operatorname{rowLens}(\mu).cycleType(w)⊎{1}∣R∣−∣supp(w)∣=rowLens(μ).

Here cycleType⁡(w)\operatorname{cycleType}(w)cycleType(w) is the multiset of lengths of the nontrivial cycles of www, supp⁡(w)\operatorname{supp}(w)supp(w) is the set of elements it moves, ⊎\uplus⊎ denotes multiset addition, and {1}k\{1\}^{k}{1}k means kkk copies of 111. Thus fixed points belonging to RRR contribute parts of size 111; elements outside RRR do not. The subtraction is natural-number subtraction, although fixing the complement of RRR ensures ∣supp⁡(w)∣≤∣R∣|\operatorname{supp}(w)|\le |R|∣supp(w)∣≤∣R∣. No positivity or size hypothesis is imposed on ttt, RRR, or μ\muμ; the defined set may be empty.

QAlgorithms.Papers.Independent.Extend50.P34.classProductProbability

For every three Young diagrams μ,ν,τ\mu,\nu,\tauμ,ν,τ, supplied with a proof that their sizes r1=∣μ∣r_1=|\mu|r1​=∣μ∣, r2=∣ν∣r_2=|\nu|r2​=∣ν∣, and t=∣τ∣t=|\tau|t=∣τ∣ satisfy 0<r10<r_10<r1​, 0<r20<r_20<r2​, 0<t0<t0<t, r1≤tr_1\le tr1​≤t, r2≤tr_2\le tr2​≤t, and t≤r1+r2t\le r_1+r_2t≤r1​+r2​, define R1={0,…,r1−1}R_1=\{0,\ldots,r_1-1\}R1​={0,…,r1​−1} and R2={t−r2,…,t−1}R_2=\{t-r_2,\ldots,t-1\}R2​={t−r2​,…,t−1} inside Ω={0,…,t−1}\Omega=\{0,\ldots,t-1\}Ω={0,…,t−1}. Let AAA consist of permutations fixing Ω∖R1\Omega\setminus R_1Ω∖R1​ whose cycle lengths on R1R_1R1​, including its fixed points as parts 111, equal the row-length multiset of μ\muμ; define BBB in the same way using R2R_2R2​ and ν\nuν. This defines

∣{(u,v)∈A×B:cycleType⁡(uv)⊎{1} t−∣supp⁡(uv)∣=rowLens⁡(τ)}∣∣A∣ ∣B∣,\frac{\bigl|\{(u,v)\in A\times B: \operatorname{cycleType}(uv)\uplus \{1\}^{\,t-|\operatorname{supp}(uv)|} =\operatorname{rowLens}(\tau)\}\bigr|}{|A|\,|B|},∣A∣∣B∣​{(u,v)∈A×B:cycleType(uv)⊎{1}t−∣supp(uv)∣=rowLens(τ)}​​,

as a real number, where uvuvuv applies vvv first, cycle type records nontrivial cycles, and support records moved elements. The supplied proof imposes the size conditions but is otherwise unused by the formula; real division by zero uses the value 000.

QAlgorithms.Papers.Independent.Extend50.P34.classZ

For every Young diagram μ\muμ, let ∣μ∣|\mu|∣μ∣ be its number of cells and let mjm_jmj​ be the number of rows of length jjj, counted in its list of row lengths. This defines the natural number

Z(μ)=∏j=1∣μ∣jmjmj!.Z(\mu)=\prod_{j=1}^{|\mu|}j^{m_j}m_j!.Z(μ)=j=1∏∣μ∣​jmj​mj​!.

Only positive row lengths from 111 through ∣μ∣|\mu|∣μ∣ occur in the product. For the empty diagram the product is empty and equals 111.

QAlgorithms.Papers.Independent.Extend50.P34.classicalAccept

For arbitrary natural numbers d,nd,nd,n, a real function aaa on length-nnn words over {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}, and any real vector ppp on that alphabet, this defines

∑w:{0,…,n−1}→{0,…,d−1}(∏i=0n−1pwi)a(w).\sum_{w:\{0,\ldots,n-1\}\to\{0,\ldots,d-1\}} \left(\prod_{i=0}^{n-1}p_{w_i}\right)a(w).w:{0,…,n−1}→{0,…,d−1}∑​(i=0∏n−1​pwi​​)a(w).

Neither normalization nor nonnegativity of ppp, nor bounds on aaa, are required. For n=0n=0n=0, there is one empty word and its product is 111, so the value is aaa of that word; for d=0<nd=0<nd=0<n, the sum is empty and equals 000.

QAlgorithms.Papers.Independent.Extend50.P34.complexObservable

For every finitely supported complex-valued function aaa on Young diagrams and every Young diagram λ\lambdaλ, this defines ∑μ∈supp⁡(a)a(μ)Sμ(λ)\sum_{\mu\in\operatorname{supp}(a)}a(\mu)S_\mu(\lambda)∑μ∈supp(a)​a(μ)Sμ​(λ), where each real number Sμ(λ)S_\mu(\lambda)Sμ​(λ) is embedded in C\mathbb CC. Put N=∣λ∣N=|\lambda|N=∣λ∣ and s=∣μ∣s=|\mu|s=∣μ∣; then Sμ(λ)=0S_\mu(\lambda)=0Sμ​(λ)=0 if s>Ns>Ns>N, and otherwise

Sμ(λ)=Ns‾Dλ∑π∈Cμ,NRe⁡tr⁡(LπΠλ)∣Cμ,N∣.S_\mu(\lambda)=\frac{N^{\underline s}}{D_\lambda} \frac{\displaystyle\sum_{\pi\in\mathcal C_{\mu,N}} \operatorname{Re}\operatorname{tr}(L_\pi\Pi_\lambda)} {|\mathcal C_{\mu,N}|}.Sμ​(λ)=Dλ​Ns​​∣Cμ,N​∣π∈Cμ,N​∑​Retr(Lπ​Πλ​)​.

Here Cμ,N⊆SN\mathcal C_{\mu,N}\subseteq S_NCμ,N​⊆SN​ consists of permutations whose complete cycle-length multiset, including fixed points, is the multiset of row lengths of μ\muμ together with N−sN-sN−s additional ones, and Ns‾N^{\underline s}Ns​ is the natural-number descending factorial. Use the chosen numbering of λ\lambdaλ’s cells by {0,…,N−1}\{0,\ldots,N-1\}{0,…,N−1} to define the row-preserving and column-preserving permutation sets Rλ,CλR_\lambda,C_\lambdaRλ​,Cλ​, and form (Yλ)g,h=∑r∈Rλ∑c∈Cλsgn⁡(c)1{g=hrc}(Y_\lambda)_{g,h}=\sum_{r\in R_\lambda}\sum_{c\in C_\lambda}\operatorname{sgn}(c)\mathbf1_{\{g=hrc\}}(Yλ​)g,h​=∑r∈Rλ​​∑c∈Cλ​​sgn(c)1{g=hrc}​. Then Πλ\Pi_\lambdaΠλ​ is the orthogonal projection onto the range of YλY_\lambdaYλ​ in CSN\mathbb C^{S_N}CSN​, DλD_\lambdaDλ​ is that range’s complex dimension, and (Lπ)g,h=1{g=πh}(L_\pi)_{g,h}=\mathbf1_{\{g=\pi h\}}(Lπ​)g,h​=1{g=πh}​. The coefficients have no normalization restrictions. Empty support gives 000, empty diagrams are permitted, and every division by zero is 000.

QAlgorithms.Papers.Independent.Extend50.P34.content

For every pair c=(r,s)c=(r,s)c=(r,s) of natural numbers, this defines its content to be the integer

content⁡(r,s)=s−r.\operatorname{content}(r,s)=s-r.content(r,s)=s−r.

The subtraction takes place in the integers and may therefore be negative; the pair need not belong to any Young diagram.

QAlgorithms.Papers.Independent.Extend50.P34.contentProduct

For every real number ddd and every Young diagram λ\lambdaλ, this defines

∏(r,s)∈λ(d+s−r),\prod_{(r,s)\in\lambda}\bigl(d+s-r\bigr),(r,s)∈λ∏​(d+s−r),

where the product runs over the cells of λ\lambdaλ and s−rs-rs−r is integer subtraction, subsequently regarded as a real number. There is no positivity or integrality assumption on ddd. The empty diagram gives 111.

QAlgorithms.Papers.Independent.Extend50.P34.decreasingSpectrum

For every natural number ddd and every complex d×dd\times dd×d matrix ρ\rhoρ, this defines a real vector indexed by i=0,…,d−1i=0,\ldots,d-1i=0,…,d−1: if ρ\rhoρ is Hermitian, its entries are the eigenvalues of ρ\rhoρ in nonincreasing order, counted with multiplicity; if ρ\rhoρ is not Hermitian, every entry is 000. No positivity or trace assumption is imposed on ρ\rhoρ. When d=0d=0d=0, the resulting vector is empty.

QAlgorithms.Papers.Independent.Extend50.P34.diagrams

For natural numbers d,kd,kd,k, this is the finite set of all Young diagrams having exactly kkk cells and first-column length at most ddd, obtained by discarding the accompanying proofs of these two conditions. The bound includes equality. For k=0k=0k=0, the set consists of the empty diagram for every ddd; for d=0<kd=0<kd=0<k, it is empty.

QAlgorithms.Papers.Independent.Extend50.P34.diagramsLE

For a natural number KKK, this is the union, over k=0,…,Kk=0,\ldots,Kk=0,…,K, of the finite sets of Young diagrams having exactly kkk cells and first-column length at most KKK. Equivalently, it contains precisely the Young diagrams with at most KKK cells and at most KKK rows. The empty diagram is included, and for K=0K=0K=0 it is the only element.

QAlgorithms.Papers.Independent.Extend50.P34.dim

For every Young diagram λ\lambdaλ, put n=∣λ∣n=|\lambda|n=∣λ∣ and choose the fixed cell-numbering bijection between its cells and {0,…,n−1}\{0,\ldots,n-1\}{0,…,n−1} used by the definition. Let RλR_\lambdaRλ​ be the permutations preserving the row of each numbered cell, and CλC_\lambdaCλ​ the permutations preserving its column. Define a complex matrix YλY_\lambdaYλ​, with rows and columns indexed by permutations g,hg,hg,h of {0,…,n−1}\{0,\ldots,n-1\}{0,…,n−1}, by

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

This defines dim⁡(λ)\dim(\lambda)dim(λ) to be the complex vector-space dimension of the image of the linear operator with matrix YλY_\lambdaYλ​ on the Euclidean space of complex functions on those permutations. No nonemptiness assumption on λ\lambdaλ is imposed; when λ\lambdaλ is empty, the permutation set has one element and Yλ=[1]Y_\lambda=[1]Yλ​=[1].

QAlgorithms.Papers.Independent.Extend50.P34.errorTerm

For arbitrary natural numbers r,n,Cr,n,Cr,n,C, this defines

∑k=2C(−1)kkrk∑λ a Young diagram∣λ∣=n, h(λ)≤rwλ,r,n(Sk(λ)−∑μ a Young diagram∣μ∣+h(μ)=k+1kh(μ)−1‾∏j=0∣μ∣mj(μ)! Aμ(λ)).\sum_{k=2}^{C}\frac{(-1)^k}{k r^k} \sum_{\substack{\lambda\text{ a Young diagram}\\|\lambda|=n,\ h(\lambda)\le r}} w_{\lambda,r,n}\left(S_k(\lambda)- \sum_{\substack{\mu\text{ a Young diagram}\\|\mu|+h(\mu)=k+1}} \frac{k^{\underline{h(\mu)-1}}} {\prod_{j=0}^{|\mu|}m_j(\mu)!}\, A_\mu(\lambda)\right).k=2∑C​krk(−1)k​λ a Young diagram∣λ∣=n, h(λ)≤r​∑​wλ,r,n​​Sk​(λ)−μ a Young diagram∣μ∣+h(μ)=k+1​∑​∏j=0∣μ∣​mj​(μ)!kh(μ)−1​​Aμ​(λ)​.

Here h(λ)h(\lambda)h(λ) is the number of nonempty rows, mj(μ)m_j(\mu)mj​(μ) counts occurrences of jjj in μ\muμ's list of row lengths, kq‾k^{\underline q}kq​ is the natural descending factorial, and

Sk(λ)=∑i=0h(λ)−1[(λi−i−12)k−(−i−12)k].S_k(\lambda)=\sum_{i=0}^{h(\lambda)-1} \left[(\lambda_i-i-\tfrac12)^k-(-i-\tfrac12)^k\right].Sk​(λ)=i=0∑h(λ)−1​[(λi​−i−21​)k−(−i−21​)k].

To specify AμA_\muAμ​ and the weights completely, for each diagram ν\nuν of size sss, use the construction's chosen numbering of its cells by 0,…,s−10,\ldots,s-10,…,s−1; let Rν,Cν⊆SsR_\nu,C_\nu\subseteq\mathfrak S_sRν​,Cν​⊆Ss​ be the permutations preserving, respectively, every numbered cell's row and column. Define YνY_\nuYν​, indexed by Ss\mathfrak S_sSs​, by

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

let VνV_\nuVν​ be its range on CSs\mathbb C^{\mathfrak S_s}CSs​, let QνQ_\nuQν​ be the orthogonal projection onto that range, and put dν=dim⁡CVνd_\nu=\dim_{\mathbb C}V_\nudν​=dimC​Vν​ and χν(π)=Tr⁡(LπQν)\chi_\nu(\pi)=\operatorname{Tr}(L_\pi Q_\nu)χν​(π)=Tr(Lπ​Qν​), where (Lπ)g,h=1{g=πh}(L_\pi)_{g,h}=\mathbf1_{\{g=\pi h\}}(Lπ​)g,h​=1{g=πh}​. If ∣μ∣>∣λ∣=n|\mu|>|\lambda|=n∣μ∣>∣λ∣=n, set Aμ(λ)=0A_\mu(\lambda)=0Aμ​(λ)=0; otherwise Aμ(λ)A_\mu(\lambda)Aμ​(λ) is n∣μ∣‾/dλn^{\underline{|\mu|}}/d_\lambdan∣μ∣​/dλ​ times the arithmetic mean of Re⁡χλ(π)\operatorname{Re}\chi_\lambda(\pi)Reχλ​(π) over permutations of nnn whose cycle lengths, including fixed points, are μ\muμ's row lengths together with n−∣μ∣n-|\mu|n−∣μ∣ additional ones. An empty averaging set gives zero by total division. Finally, on words x,y:{0,…,n−1}→{0,…,r−1}x,y:\{0,\ldots,n-1\}\to\{0,\ldots,r-1\}x,y:{0,…,n−1}→{0,…,r−1}, set (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λ,r=dλn!∑π∈Snχλ(π−1)Tπ,wλ,r,n=Re⁡Tr⁡(Pλ,r (r−1I)⊗n).P_{\lambda,r}=\frac{d_\lambda}{n!} \sum_{\pi\in\mathfrak S_n}\chi_\lambda(\pi^{-1})T_\pi, \qquad w_{\lambda,r,n}=\operatorname{Re}\operatorname{Tr} \left(P_{\lambda,r}\,(r^{-1}I)^{\otimes n}\right).Pλ,r​=n!dλ​​π∈Sn​∑​χλ​(π−1)Tπ​,wλ,r,n​=ReTr(Pλ,r​(r−1I)⊗n).

The tensor power here has entries ∏i=0n−1(r−1I)xi,yi\prod_{i=0}^{n-1}(r^{-1}I)_{x_i,y_i}∏i=0n−1​(r−1I)xi​,yi​​, with empty product 111. All scalar divisions are total, returning zero at a zero denominator. Thus the definition includes zero parameters; it is zero when C<2C<2C<2, when r=0r=0r=0, or when n=0n=0n=0.

QAlgorithms.Papers.Independent.Extend50.P34.evenDoubleFactorial

For every natural number kkk, this defines the real number

2⌊k/2⌋(⌊k/2⌋)!.2^{\lfloor k/2\rfloor}\bigl(\lfloor k/2\rfloor\bigr)!.2⌊k/2⌋(⌊k/2⌋)!.

The division k/2k/2k/2 is natural-number division. Thus the definition applies to odd kkk as well as even kkk, gives the same value at 2j2j2j and 2j+12j+12j+1, and equals 111 at k=0k=0k=0.

QAlgorithms.Papers.Independent.Extend50.P34.event

For arbitrary natural numbers d,nd,nd,n, any real vector ppp indexed by {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}, and any predicate AAA on Young diagrams, this defines

∑λ: ∣λ∣=nλ has at most d rowsA(λ)wλ(p),wλ(p)=Re⁡Tr⁡(ΠλDp),(Dp)x,y=1{x=y}∏t=0n−1px(t),\sum_{\substack{\lambda:\ |\lambda|=n\\\lambda\text{ has at most }d\text{ rows}\\A(\lambda)}} w_\lambda(p), \qquad w_\lambda(p)=\operatorname{Re}\operatorname{Tr}(\Pi_\lambda D_p), \quad (D_p)_{x,y}=\mathbf1_{\{x=y\}}\prod_{t=0}^{n-1}p_{x(t)},λ: ∣λ∣=nλ has at most d rowsA(λ)​∑​wλ​(p),wλ​(p)=ReTr(Πλ​Dp​),(Dp​)x,y​=1{x=y}​t=0∏n−1​px(t)​,

where x,yx,yx,y are length-nnn words over {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}. For each λ\lambdaλ, use the definition’s chosen cell numbering by {0,…,n−1}\{0,\ldots,n-1\}{0,…,n−1} and let Rλ,Cλ⊆Sn\mathcal R_\lambda,\mathcal C_\lambda\subseteq S_nRλ​,Cλ​⊆Sn​ preserve rows and columns. Define

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

Let QλQ_\lambdaQλ​ be the orthogonal projection onto its range and rλr_\lambdarλ​ the complex dimension of that range. With (Lπ)g,h=1{g=πh}(L_\pi)_{g,h}=\mathbf1_{\{g=\pi h\}}(Lπ​)g,h​=1{g=πh}​ and (Kπ)x,y=1{x=y∘π−1}(K_\pi)_{x,y}=\mathbf1_{\{x=y\circ\pi^{-1}\}}(Kπ​)x,y​=1{x=y∘π−1}​, the matrix used is

Πλ=rλn!∑π∈SnTr⁡(Lπ−1Qλ)Kπ.\Pi_\lambda=\frac{r_\lambda}{n!}\sum_{\pi\in S_n} \operatorname{Tr}(L_{\pi^{-1}}Q_\lambda)K_\pi.Πλ​=n!rλ​​π∈Sn​∑​Tr(Lπ−1​Qλ​)Kπ​.

The vector ppp need not be a probability distribution. At n=0n=0n=0, the result is 111 if AAA holds for the empty diagram and 000 otherwise; for d=0<nd=0<nd=0<n, it is 000.

QAlgorithms.Papers.Independent.Extend50.P34.expect

For arbitrary natural numbers d,nd,nd,n, any real vector ppp indexed by {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}, and any function FFF from Young diagrams to R\mathbb RR, this defines

∑λ: ∣λ∣=nλ has at most d rowswλ(p)F(λ),wλ(p)=Re⁡Tr⁡(ΠλDp),(Dp)x,y=1{x=y}∏t=0n−1px(t),\sum_{\substack{\lambda:\ |\lambda|=n\\\lambda\text{ has at most }d\text{ rows}}} w_\lambda(p)F(\lambda), \qquad w_\lambda(p)=\operatorname{Re}\operatorname{Tr}(\Pi_\lambda D_p), \quad (D_p)_{x,y}=\mathbf1_{\{x=y\}}\prod_{t=0}^{n-1}p_{x(t)},λ: ∣λ∣=nλ has at most d rows​∑​wλ​(p)F(λ),wλ​(p)=ReTr(Πλ​Dp​),(Dp​)x,y​=1{x=y}​t=0∏n−1​px(t)​,

where x,yx,yx,y are length-nnn words over {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}. The matrix Πλ\Pi_\lambdaΠλ​ is specified as follows: number the cells of λ\lambdaλ by {0,…,n−1}\{0,\ldots,n-1\}{0,…,n−1} using the definition’s chosen bijection, let Rλ,Cλ⊆Sn\mathcal R_\lambda,\mathcal C_\lambda\subseteq S_nRλ​,Cλ​⊆Sn​ preserve rows and columns, and define

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

Writing QλQ_\lambdaQλ​ for the orthogonal projection onto range⁡Yλ\operatorname{range}Y_\lambdarangeYλ​, rλr_\lambdarλ​ for its complex dimension, (Lπ)g,h=1{g=πh}(L_\pi)_{g,h}=\mathbf1_{\{g=\pi h\}}(Lπ​)g,h​=1{g=πh}​, and (Kπ)x,y=1{x=y∘π−1}(K_\pi)_{x,y}=\mathbf1_{\{x=y\circ\pi^{-1}\}}(Kπ​)x,y​=1{x=y∘π−1}​, set

Πλ=rλn!∑π∈SnTr⁡(Lπ−1Qλ)Kπ.\Pi_\lambda=\frac{r_\lambda}{n!}\sum_{\pi\in S_n} \operatorname{Tr}(L_{\pi^{-1}}Q_\lambda)K_\pi.Πλ​=n!rλ​​π∈Sn​∑​Tr(Lπ−1​Qλ​)Kπ​.

No probability assumptions on ppp are required. When n=0n=0n=0, the result is F(∅)F(\varnothing)F(∅); when d=0<nd=0<nd=0<n, the sum is empty and equals 000.

QAlgorithms.Papers.Independent.Extend50.P34.extendedSchurPolynomial

For every natural number ddd, including 000, and every Young diagram λ\lambdaλ, this defines a real polynomial in variables X0,…,Xd−1X_0,\ldots,X_{d-1}X0​,…,Xd−1​. If λ\lambdaλ has more than ddd rows, the polynomial is 000. Otherwise it is

∑T∏c∈λXT(c),\sum_T\prod_{c\in\lambda}X_{T(c)},T∑​c∈λ∏​XT(c)​,

where the sum runs over all fillings TTT of the cells of λ\lambdaλ by {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1} that are weakly increasing along each row and strictly increasing down each column. The empty diagram gives the polynomial 111, including when d=0d=0d=0; when d=0d=0d=0, every nonempty diagram gives 000.

QAlgorithms.Papers.Independent.Extend50.P34.eydError

For every natural number ddd, every natural number nnn, every real vector ppp indexed by {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}, and every Young diagram λ\lambdaλ, this defines

12∑i=0d−1∣λin−pi∣,\frac12\sum_{i=0}^{d-1} \left|\frac{\lambda_i}{n}-p_i\right|,21​i=0∑d−1​​nλi​​−pi​​,

where λi\lambda_iλi​ is the length of the zero-indexed row iii, with absent rows having length 000. There is no requirement that λ\lambdaλ have nnn cells or at most ddd rows, or that ppp be a probability distribution. Division by 000 is defined to give 000, so at n=0n=0n=0 the value is 12∑i∣pi∣\frac12\sum_i|p_i|21​∑i​∣pi​∣; at d=0d=0d=0 it is 000.

QAlgorithms.Papers.Independent.Extend50.P34.factorizationCount

For every three Young diagrams μ,ν,τ\mu,\nu,\tauμ,ν,τ and every permutation www of Ω={0,…,∣τ∣−1}\Omega=\{0,\ldots,|\tau|-1\}Ω={0,…,∣τ∣−1}, this defines the number of ordered pairs ((R1,u),(R2,v))((R_1,u),(R_2,v))((R1​,u),(R2​,v)), where R1,R2⊆ΩR_1,R_2\subseteq\OmegaR1​,R2​⊆Ω and u,vu,vu,v are permutations of Ω\OmegaΩ, satisfying all of the following: R1∪R2=ΩR_1\cup R_2=\OmegaR1​∪R2​=Ω, ∣R1∣=∣μ∣|R_1|=|\mu|∣R1​∣=∣μ∣, ∣R2∣=∣ν∣|R_2|=|\nu|∣R2​∣=∣ν∣, uuu fixes the complement of R1R_1R1​, vvv fixes the complement of R2R_2R2​,

cycleType⁡(u)⊎{1} ∣R1∣−∣supp⁡(u)∣=rowLens⁡(μ),cycleType⁡(v)⊎{1} ∣R2∣−∣supp⁡(v)∣=rowLens⁡(ν),uv=w.\operatorname{cycleType}(u)\uplus\{1\}^{\,|R_1|-|\operatorname{supp}(u)|} =\operatorname{rowLens}(\mu),\qquad \operatorname{cycleType}(v)\uplus\{1\}^{\,|R_2|-|\operatorname{supp}(v)|} =\operatorname{rowLens}(\nu), \quad uv=w.cycleType(u)⊎{1}∣R1​∣−∣supp(u)∣=rowLens(μ),cycleType(v)⊎{1}∣R2​∣−∣supp(v)∣=rowLens(ν),uv=w.

Here cycle types list nontrivial cycle lengths, supports consist of moved elements, and uvuvuv means composition with vvv applied first. The sets R1,R2R_1,R_2R1​,R2​ may overlap and may contain fixed points of their respective permutations. All diagrams, including empty diagrams, are allowed; if no such choices exist, the count is 000.

QAlgorithms.Papers.Independent.Extend50.P34.falling

For any natural numbers nnn and kkk, this defines the real number nk‾n^{\underline{k}}nk​ obtained by converting the natural-number descending factorial n(n−1)⋯(n−k+1)n(n-1)\cdots(n-k+1)n(n−1)⋯(n−k+1) to R\mathbb RR. The empty product, when k=0k=0k=0, is 111; when k>nk>nk>n, the value is 000. Thus n=0n=0n=0 is included.

QAlgorithms.Papers.Independent.Extend50.P34.fullCycle

For any natural number nnn and any permutation π\piπ of {0,…,n−1}\{0,\ldots,n-1\}{0,…,n−1}, this defines the multiset consisting of the lengths of all nontrivial cycles of π\piπ, together with n−∣supp⁡π∣n-|\operatorname{supp}\pi|n−∣suppπ∣ copies of 111, where supp⁡π={i:π(i)≠i}\operatorname{supp}\pi=\{i:\pi(i)\ne i\}suppπ={i:π(i)=i}. Thus fixed points are included as cycles of length 111, and the multiset records the lengths of all cycles. The subtraction is natural-number subtraction; here the support has at most nnn elements. For n=0n=0n=0, the multiset is empty.

QAlgorithms.Papers.Independent.Extend50.P34.greeneReport

For natural numbers d,nd,nd,n and a word w:{0,…,n−1}→{0,…,d−1}w:\{0,\ldots,n-1\}\to\{0,\ldots,d-1\}w:{0,…,n−1}→{0,…,d−1}, this defines a vector of ddd natural numbers. Its coordinate indexed by k∈{0,…,d−1}k\in\{0,\ldots,d-1\}k∈{0,…,d−1} is the largest cardinality of a subset of word positions that can be colored with k+1k+1k+1 colors so that positions of the same color have nondecreasing word values when read in increasing position order. Colors may be unused and the empty subset is allowed. For n=0n=0n=0, every coordinate is 000; for d=0d=0d=0, the report has no coordinates, and an input word exists only when n=0n=0n=0.

QAlgorithms.Papers.Independent.Extend50.P34.greeneStatistic

For natural numbers d,nd,nd,n, a word w:{0,…,n−1}→{0,…,d−1}w:\{0,\ldots,n-1\}\to\{0,\ldots,d-1\}w:{0,…,n−1}→{0,…,d−1}, and a natural number kkk, this is the maximum cardinality of a subset SSS of the positions for which there exists a coloring c:S→{0,…,k−1}c:S\to\{0,\ldots,k-1\}c:S→{0,…,k−1} such that, whenever i<ji<ji<j belong to SSS and have the same color, wi≤wjw_i\le w_jwi​≤wj​. Thus each color class, read in position order, must have nondecreasing word values; colors need not all be used. The empty subset is permitted. In particular, the value is 000 when k=0k=0k=0 or n=0n=0n=0. If d=0<nd=0<nd=0<n, there is no input word.

QAlgorithms.Papers.Independent.Extend50.P34.groupOn

For every natural number ttt and finite subset R⊆{0,…,t−1}R\subseteq\{0,\ldots,t-1\}R⊆{0,…,t−1}, this defines the finite set

{  w∈St: ∀i∉R, w(i)=i  }.\{\;w\in S_t:\ \forall i\notin R,\ w(i)=i\;\}.{w∈St​: ∀i∈/R, w(i)=i}.

Thus membership requires every point outside RRR to be fixed, while points inside RRR may also be fixed. If RRR is empty, the set consists only of the identity; if RRR is the whole index set, it consists of all permutations. The case t=0t=0t=0 is included and gives the singleton containing the empty permutation.

QAlgorithms.Papers.Independent.Extend50.P34.insertRow

For a natural number bbb and any finite list of natural numbers, this returns a new list and an optional displaced number. It scans the list from left to right until the first entry aaa satisfying b<ab<ab<a, replaces that entry by bbb, leaves the remaining entries unchanged, and returns aaa as the displaced number. If no entry is strictly greater than bbb, it appends bbb and returns no displaced number. Thus the empty list produces ([b],no displaced number)([b],\text{no displaced number})([b],no displaced number), and entries equal to bbb are passed over. No ordering assumption is imposed on the input list.

QAlgorithms.Papers.Independent.Extend50.P34.insertTableau

For a natural number bbb and any finite list of rows, each itself a finite list of natural numbers, this inserts bbb into the first row by replacing its first entry strictly greater than bbb, returning that entry as displaced, or appending bbb if no such entry exists. It keeps the resulting first row; if an entry ccc was displaced, it applies the same procedure recursively to ccc and the remaining rows, and otherwise leaves all remaining rows unchanged. Inserting into an empty list of rows produces the single row [b][b][b]. An empty first row becomes [b][b][b] without displacing anything. No ordering or tableau conditions are required of the input rows.

QAlgorithms.Papers.Independent.Extend50.P34.kl

For every finite type aaa, equipped with a finite enumeration, and arbitrary functions p,q:a→Rp,q:a\to\mathbb Rp,q:a→R, this defines

∑i∈a{0,pi=0,pilog⁡(pi/qi),pi≠0.\sum_{i\in a} \begin{cases} 0,&p_i=0,\\ p_i\log(p_i/q_i),&p_i\ne0. \end{cases}i∈a∑​{0,pi​log(pi​/qi​),​pi​=0,pi​=0.​

Here log⁡\loglog is the total real logarithm: log⁡0=0\log 0=0log0=0 and, for a negative argument, it equals the logarithm of its absolute value; real division by 000 gives 000. Thus a coordinate with qi=0q_i=0qi​=0 also contributes 000, even if pi≠0p_i\ne0pi​=0. No nonnegativity, normalization, or support-inclusion assumptions are imposed, and an empty index type gives 000.

QAlgorithms.Papers.Independent.Extend50.P34.leading

For any natural number kkk and Young diagram λ\lambdaλ, this defines the sum ∑μkhμ−1‾∏j=0∣μ∣(mj!) Aλ(μ)\sum_\mu \frac{k^{\underline{h_\mu-1}}}{\prod_{j=0}^{|\mu|}(m_j!)}\,A_\lambda(\mu)∑μ​∏j=0∣μ∣​(mj​!)khμ​−1​​Aλ​(μ), taken over all Young diagrams μ\muμ with at most k+1k+1k+1 cells and at most k+1k+1k+1 rows that satisfy ∣μ∣+hμ=k+1|\mu|+h_\mu=k+1∣μ∣+hμ​=k+1; here hμ=μ.colLen⁡(0)h_\mu=\mu.\operatorname{colLen}(0)hμ​=μ.colLen(0), mjm_jmj​ counts occurrences of jjj in μ\muμ’s row-length list, and hμ−1h_\mu-1hμ​−1 uses natural-number subtraction, truncated at zero. The descending factorial is converted to a real number. To define Aλ(μ)A_\lambda(\mu)Aλ​(μ), put n=∣λ∣n=|\lambda|n=∣λ∣ and s=∣μ∣s=|\mu|s=∣μ∣: it is 000 if s>ns>ns>n, and otherwise is ns‾/Dλn^{\underline{s}}/D_\lambdans​/Dλ​ times the average of cλ(π)c_\lambda(\pi)cλ​(π) over permutations of nnn labels whose full cycle multiset is the row-length multiset of μ\muμ with n−sn-sn−s additional 111’s. Using the chosen numbering of λ\lambdaλ’s cells, form (Yλ)g,h=∑a∈Rλ,b∈Cλ1{g=hab}sgn⁡(b)(Y_\lambda)_{g,h}=\sum_{a\in R_\lambda,b\in C_\lambda}\mathbf1_{\{g=hab\}}\operatorname{sgn}(b)(Yλ​)g,h​=∑a∈Rλ​,b∈Cλ​​1{g=hab}​sgn(b), where Rλ,CλR_\lambda,C_\lambdaRλ​,Cλ​ preserve row and column coordinates; then DλD_\lambdaDλ​ is the complex dimension of its range, PλP_\lambdaPλ​ is the orthogonal projector onto that range, and cλ(π)=Re⁡tr⁡(LπPλ)c_\lambda(\pi)=\operatorname{Re}\operatorname{tr}(L_\pi P_\lambda)cλ​(π)=Retr(Lπ​Pλ​), with (Lπ)g,h=1{g=πh}(L_\pi)_{g,h}=\mathbf1_{\{g=\pi h\}}(Lπ​)g,h​=1{g=πh}​. Empty averages and division by zero give 000. The diagram λ\lambdaλ may be empty; when k=0k=0k=0, no diagram satisfies the summation condition, so the sum is 000.

QAlgorithms.Papers.Independent.Extend50.P34.logInfinite

For any natural number rrr and Young diagram λ\lambdaλ, write h=λ.colLen(0)h=\lambda.\mathrm{colLen}(0)h=λ.colLen(0) and λi=λ.rowLen(i)\lambda_i=\lambda.\mathrm{rowLen}(i)λi​=λ.rowLen(i). This defines the real-valued total infinite sum

∑k=2∞(−1)kk(r+12)k∑i=0h−1[(λi−i−12)k−(−i−12)k].\sum_{k=2}^{\infty} \frac{(-1)^k}{k(r+\tfrac12)^k} \sum_{i=0}^{h-1} \left[ \left(\lambda_i-i-\frac12\right)^k -\left(-i-\frac12\right)^k \right].k=2∑∞​k(r+21​)k(−1)k​i=0∑h−1​[(λi​−i−21​)k−(−i−21​)k].

The terms indexed by k=0,1k=0,1k=0,1 in the underlying sum over all natural numbers are explicitly zero. No summability hypothesis is required: if the sequence is not summable, this total infinite-sum operation returns zero. The definition includes r=0r=0r=0, and gives zero for the empty diagram.

QAlgorithms.Papers.Independent.Extend50.P34.logObservable

For any real number aaa, natural number CCC, and Young diagram λ\lambdaλ, write h=λ.colLen(0)h=\lambda.\mathrm{colLen}(0)h=λ.colLen(0) and λi=λ.rowLen(i)\lambda_i=\lambda.\mathrm{rowLen}(i)λi​=λ.rowLen(i). This defines

∑k=2C(−1)kk ak∑i=0h−1[(λi−i−12)k−(−i−12)k],\sum_{k=2}^{C} \frac{(-1)^k}{k\,a^k} \sum_{i=0}^{h-1} \left[ \left(\lambda_i-i-\frac12\right)^k -\left(-i-\frac12\right)^k \right],k=2∑C​kak(−1)k​i=0∑h−1​[(λi​−i−21​)k−(−i−21​)k],

where the row lengths and indices inside the powers are interpreted as real numbers. The outer sum is empty, hence zero, when C<2C<2C<2; the inner sum is empty for the empty diagram. No assumption a≠0a\ne0a=0 is imposed: division by zero gives zero, so the entire expression is zero when a=0a=0a=0.

QAlgorithms.Papers.Independent.Extend50.P34.mixednessStateAccept

For every natural dimension ddd, natural number nnn, real ϵ\epsilonϵ, and arbitrary complex d×dd\times dd×d matrix ρ\rhoρ, this defines

∑λ: ∣λ∣=nh(λ)≤dRe⁡tr⁡ ⁣(Pλ ρ⊗n)1{Aλ≤(1+ϵ2/2) n max⁡(n−1,0)/d},\sum_{\substack{\lambda:\ |\lambda|=n\\h(\lambda)\le d}} \operatorname{Re}\operatorname{tr}\!\left(P_\lambda\,\rho^{\otimes n}\right) \mathbf1_{\left\{ A_\lambda\le (1+\epsilon^2/2)\,n\,\max(n-1,0)/d \right\}},λ: ∣λ∣=nh(λ)≤d​∑​Retr(Pλ​ρ⊗n)1{Aλ​≤(1+ϵ2/2)nmax(n−1,0)/d}​,

where the tensor matrix has entries (ρ⊗n)y,z=∏i=0n−1ρyi,zi(\rho^{\otimes n})_{y,z}=\prod_{i=0}^{n-1}\rho_{y_i,z_i}(ρ⊗n)y,z​=∏i=0n−1​ρyi​,zi​​. The matrices and statistic in this expression are specified as follows. Label the cells of λ\lambdaλ by the specified bijection with nnn labels, let Rλ,Cλ⊆SnR_\lambda,C_\lambda\subseteq S_nRλ​,Cλ​⊆Sn​ preserve rows and columns, let Hλ⊆CSnH_\lambda\subseteq\mathbb C^{S_n}Hλ​⊆CSn​ be the range of Yλ(g,h)=∑a∈Rλ,b∈Cλ1{g=hab}sgn⁡(b)Y_\lambda(g,h)=\sum_{a\in R_\lambda,b\in C_\lambda}\mathbf1_{\{g=hab\}}\operatorname{sgn}(b)Yλ​(g,h)=∑a∈Rλ​,b∈Cλ​​1{g=hab}​sgn(b), and let QλQ_\lambdaQλ​ be its orthogonal projector. Put Dλ=dim⁡CHλD_\lambda=\dim_{\mathbb C}H_\lambdaDλ​=dimC​Hλ​, Lπ(g,h)=1{g=πh}L_\pi(g,h)=\mathbf1_{\{g=\pi h\}}Lπ​(g,h)=1{g=πh}​, χλ(π)=tr⁡(LπQλ)\chi_\lambda(\pi)=\operatorname{tr}(L_\pi Q_\lambda)χλ​(π)=tr(Lπ​Qλ​), and Tπ(y,z)=1{y=z∘π−1}T_\pi(y,z)=\mathbf1_{\{y=z\circ\pi^{-1}\}}Tπ​(y,z)=1{y=z∘π−1}​. Then

Pλ=Dλn!∑π∈Snχλ(π−1)Tπ.P_\lambda=\frac{D_\lambda}{n!}\sum_{\pi\in S_n}\chi_\lambda(\pi^{-1})T_\pi.Pλ​=n!Dλ​​π∈Sn​∑​χλ​(π−1)Tπ​.

For n<2n<2n<2, Aλ=0A_\lambda=0Aλ​=0; for n≥2n\ge2n≥2, it is

Aλ=n(n−1)Dλ ∑τ∈Sn: τ is a transpositionRe⁡χλ(τ)∣{τ∈Sn:τ is a transposition}∣.A_\lambda= \frac{n(n-1)}{D_\lambda}\, \frac{\sum_{\tau\in S_n:\,\tau\text{ is a transposition}} \operatorname{Re}\chi_\lambda(\tau)} {|\{\tau\in S_n:\tau\text{ is a transposition}\}|}.Aλ​=Dλ​n(n−1)​∣{τ∈Sn​:τ is a transposition}∣∑τ∈Sn​:τ is a transposition​Reχλ​(τ)​.

The definition assumes neither that ρ\rhoρ is a density matrix nor that ϵ\epsilonϵ is positive. Natural subtraction is truncated, real division by zero is zero, and empty products equal one. Thus d=0d=0d=0 and n=0n=0n=0 are included: the sum is empty when d=0<nd=0<nd=0<n, while at n=0n=0n=0 the sole diagram is empty and the defined value is 111.

QAlgorithms.Papers.Independent.Extend50.P34.multiplicityFact

For any Young diagram μ\muμ, this defines the natural number ∏j=0∣μ∣(mj!)\prod_{j=0}^{|\mu|}(m_j!)∏j=0∣μ∣​(mj​!), where mjm_jmj​ is the number of occurrences of jjj in the finite list of row lengths of μ\muμ. Thus each possible row length from 000 through the number of cells contributes the factorial of its multiplicity, and an absent length contributes 0!=10!=10!=1. The empty diagram is included and gives 111.

QAlgorithms.Papers.Independent.Extend50.P34.observable

For every finitely supported rational-valued function aaa on Young diagrams and every Young diagram λ\lambdaλ, this defines

observable⁡(a,λ)=∑μ∈supp⁡(a)a(μ) Sμ(λ),\operatorname{observable}(a,\lambda) =\sum_{\mu\in\operatorname{supp}(a)}a(\mu)\,S_\mu(\lambda),observable(a,λ)=μ∈supp(a)∑​a(μ)Sμ​(λ),

with rational coefficients regarded as real numbers. The quantity Sμ(λ)S_\mu(\lambda)Sμ​(λ) is defined as follows: put N=∣λ∣N=|\lambda|N=∣λ∣, label the cells of λ\lambdaλ by the specified bijection with NNN labels, and let Rλ,Cλ⊆SNR_\lambda,C_\lambda\subseteq S_NRλ​,Cλ​⊆SN​ consist of permutations preserving rows and columns, respectively. Let Hλ⊆CSNH_\lambda\subseteq\mathbb C^{S_N}Hλ​⊆CSN​ be the range of

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

let QλQ_\lambdaQλ​ be the orthogonal projector onto this range, let Dλ=dim⁡CHλD_\lambda=\dim_{\mathbb C}H_\lambdaDλ​=dimC​Hλ​, and define χλ(π)=Re⁡tr⁡(LπQλ)\chi_\lambda(\pi)=\operatorname{Re}\operatorname{tr}(L_\pi Q_\lambda)χλ​(π)=Retr(Lπ​Qλ​), where Lπ(g,h)=1{g=πh}L_\pi(g,h)=\mathbf1_{\{g=\pi h\}}Lπ​(g,h)=1{g=πh}​. If ∣μ∣>N|\mu|>N∣μ∣>N, set Sμ(λ)=0S_\mu(\lambda)=0Sμ​(λ)=0; otherwise let Cμ,N\mathcal C_{\mu,N}Cμ,N​ contain the permutations whose full cycle lengths are the row lengths of μ\muμ together with N−∣μ∣N-|\mu|N−∣μ∣ additional ones, and set

Sμ(λ)=N∣μ∣‾Dλ∑π∈Cμ,Nχλ(π)∣Cμ,N∣.S_\mu(\lambda)= \frac{N^{\underline{|\mu|}}}{D_\lambda} \frac{\sum_{\pi\in\mathcal C_{\mu,N}}\chi_\lambda(\pi)} {|\mathcal C_{\mu,N}|}.Sμ​(λ)=Dλ​N∣μ∣​​∣Cμ,N​∣∑π∈Cμ,N​​χλ​(π)​.

Here the descending factorial is computed in the natural numbers and real division by zero is zero. The function aaa may have negative coefficients or empty support, and λ\lambdaλ may be empty; empty support gives value zero. No positivity or normalization of aaa is required.

QAlgorithms.Papers.Independent.Extend50.P34.observableWeight

For any Young diagram μ\muμ, this defines its weight to be the number of its cells plus the length of its first column, equivalently its number of cells plus its number of nonempty rows. The empty diagram has weight 000.

QAlgorithms.Papers.Independent.Extend50.P34.overlapCoefficient

For every three natural numbers r1,r2,tr_1,r_2,tr1​,r2​,t, this defines the real number

{r1! r2!(t−r1)! (t−r2)! (r1+r2−t)!,if 0<r1, 0<r2, 0<t, r1≤t, r2≤t, t≤r1+r2,0,otherwise.\begin{cases} \displaystyle\frac{r_1!\,r_2!} {(t-r_1)!\,(t-r_2)!\,(r_1+r_2-t)!}, &\text{if }0<r_1,\ 0<r_2,\ 0<t,\ r_1\le t,\ r_2\le t,\ t\le r_1+r_2,\\[6pt] 0,&\text{otherwise}. \end{cases}⎩⎨⎧​(t−r1​)!(t−r2​)!(r1​+r2​−t)!r1​!r2​!​,0,​if 0<r1​, 0<r2​, 0<t, r1​≤t, r2​≤t, t≤r1​+r2​,otherwise.​

The differences inside factorials are natural-number differences; in the first branch the stated inequalities prevent truncation. Its denominator is a positive natural number converted to a real number, with 0!=10!=10!=1. In particular, any zero argument selects the second branch.

QAlgorithms.Papers.Independent.Extend50.P34.ownShape

For every Young diagram λ\lambdaλ, this returns the same diagram regarded as a partition with exactly ∣λ∣|\lambda|∣λ∣ cells and with its first column containing at most λ\lambdaλ’s own first-column length. Here a partition with parameters (d,n)(d,n)(d,n) means a Young diagram with nnn cells and first-column length at most ddd; the returned parameters are d=λ.colLen(0)d=\lambda.\mathrm{colLen}(0)d=λ.colLen(0) and n=∣λ∣n=|\lambda|n=∣λ∣. The empty diagram is included and gives parameters (0,0)(0,0)(0,0).

QAlgorithms.Papers.Independent.Extend50.P34.paninski

For every natural number ddd and every real number ϵ\epsilonϵ, this defines a real-valued function on the indices i=0,…,d−1i=0,\ldots,d-1i=0,…,d−1 by

pi={(1+2ϵ)/d,i is even,(1−2ϵ)/d,i is odd.p_i= \begin{cases} (1+2\epsilon)/d,&i\text{ is even},\\ (1-2\epsilon)/d,&i\text{ is odd}. \end{cases}pi​={(1+2ϵ)/d,(1−2ϵ)/d,​i is even,i is odd.​

There is no restriction on ϵ\epsilonϵ, and the definition imposes neither nonnegativity nor normalization. When d=0d=0d=0, the domain is empty. For positive even ddd, the entries sum to 111; for odd ddd, they sum to 1+2ϵ/d1+2\epsilon/d1+2ϵ/d.

QAlgorithms.Papers.Independent.Extend50.P34.parityCells

For every Young diagram μ\muμ and Boolean value eee, this defines the subset of its cells c=(i,j)c=(i,j)c=(i,j) whose integer content j−ij-ij−i is even when e=truee=\mathrm{true}e=true, and whose content is odd when e=falsee=\mathrm{false}e=false. The difference is taken in the integers, so negative contents retain their usual parity. For the empty diagram this set is empty.

QAlgorithms.Papers.Independent.Extend50.P34.parityProduct

For every real number ddd, Young diagram μ\muμ, and Boolean value eee, this defines

∏(i,j)∈μ.cellsj−i even if e=true, j−i odd if e=false(d+(j−i)).\prod_{\substack{(i,j)\in\mu.\mathrm{cells}\\ j-i\text{ even if }e=\mathrm{true},\ j-i\text{ odd if }e=\mathrm{false}}} \bigl(d+(j-i)\bigr).(i,j)∈μ.cellsj−i even if e=true, j−i odd if e=false​∏​(d+(j−i)).

Here j−ij-ij−i is computed as an integer and then converted to a real number. No positivity or integrality hypothesis is imposed on ddd, so factors may be zero or negative. If there are no cells of the selected parity, including when μ\muμ is empty, the product equals 111.

QAlgorithms.Papers.Independent.Extend50.P34.perturbed

For every natural number ddd and every real-valued vector x=(xi)i=0d−1x=(x_i)_{i=0}^{d-1}x=(xi​)i=0d−1​, this defines the vector

pi=1+xid.p_i=\frac{1+x_i}{d}.pi​=d1+xi​​.

No condition on the entries or sum of xxx is assumed, so nonnegativity and normalization are not part of the definition. For d>0d>0d>0, the sum of the resulting entries is 1+1d∑ixi1+\frac1d\sum_i x_i1+d1​∑i​xi​; for d=0d=0d=0, both vectors have empty domain.

QAlgorithms.Papers.Independent.Extend50.P34.powerParts

For any natural number ddd, any finite multiset μ\muμ of natural numbers, and any real vector p=(pi)0≤i<dp=(p_i)_{0\le i<d}p=(pi​)0≤i<d​, this defines ∏k∈μ(∑i=0d−1pik)\prod_{k\in\mu}\bigl(\sum_{i=0}^{d-1}p_i^k\bigr)∏k∈μ​(∑i=0d−1​pik​), with repeated elements of μ\muμ contributing repeated factors. No nonnegativity or normalization of ppp is assumed. An empty multiset gives 111. A part k=0k=0k=0 contributes ddd, since every zeroth power, including 000^000, is 111. If d=0d=0d=0, every inner sum is 000, so the value is 000 for nonempty μ\muμ and 111 for empty μ\muμ.

QAlgorithms.Papers.Independent.Extend50.P34.productCharacterMean

For every natural numbers d,td,td,t, arbitrary real vector q=(q0,…,qd−1)q=(q_0,\ldots,q_{d-1})q=(q0​,…,qd−1​), Young diagrams μ,ν\mu,\nuμ,ν, and subsets R1,R2⊆Ω={0,…,t−1}R_1,R_2\subseteq\Omega=\{0,\ldots,t-1\}R1​,R2​⊆Ω={0,…,t−1}, let GRG_RGR​ be the permutations of Ω\OmegaΩ fixing its complement of RRR, let cR(w)=cycleType⁡(w)⊎{1} ∣R∣−∣supp⁡(w)∣c_R(w)=\operatorname{cycleType}(w)\uplus\{1\}^{\,|R|-|\operatorname{supp}(w)|}cR​(w)=cycleType(w)⊎{1}∣R∣−∣supp(w)∣ for w∈GRw\in G_Rw∈GR​, and let cΩ(w)c_\Omega(w)cΩ​(w) include all fixed points of Ω\OmegaΩ. This defines

1∣GR1∣ ∣GR2∣∑u∈GR1∑v∈GR2Cμ(cR1(u)) Cν(cR2(v))∏k∈cΩ(uv)(∑i=0d−1qik).\frac{1}{|G_{R_1}|\,|G_{R_2}|} \sum_{u\in G_{R_1}}\sum_{v\in G_{R_2}} C_\mu(c_{R_1}(u))\,C_\nu(c_{R_2}(v)) \prod_{k\in c_\Omega(uv)} \left(\sum_{i=0}^{d-1}q_i^k\right).∣GR1​​∣∣GR2​​∣1​u∈GR1​​∑​v∈GR2​​∑​Cμ​(cR1​​(u))Cν​(cR2​​(v))k∈cΩ​(uv)∏​(i=0∑d−1​qik​).

The product counts repeated parts with their multiplicities, and uvuvuv applies vvv first. To specify Cλ(ξ)C_\lambda(\xi)Cλ​(ξ), let Sλ(ξ)S_\lambda(\xi)Sλ​(ξ) be the permutations of {0,…,∣λ∣−1}\{0,\ldots,|\lambda|-1\}{0,…,∣λ∣−1} whose full cycle-length multiset is ξ\xiξ; then Cλ(ξ)=∣Sλ(ξ)∣−1∑π∈Sλ(ξ)Re⁡Tr⁡(LπPλ)C_\lambda(\xi)=|S_\lambda(\xi)|^{-1}\sum_{\pi\in S_\lambda(\xi)}\operatorname{Re}\operatorname{Tr}(L_\pi P_\lambda)Cλ​(ξ)=∣Sλ​(ξ)∣−1∑π∈Sλ​(ξ)​ReTr(Lπ​Pλ​). Here LπL_\piLπ​ has entries (Lπ)g,h=1(L_\pi)_{g,h}=1(Lπ​)g,h​=1 if g=πhg=\pi hg=πh, and 000 otherwise; PλP_\lambdaPλ​ is the orthogonal projection onto the range of the matrix YλY_\lambdaYλ​ with entries (Yλ)g,h=∑a,bsgn⁡(b)1{g=hab}(Y_\lambda)_{g,h}=\sum_{a,b}\operatorname{sgn}(b)\mathbf1_{\{g=hab\}}(Yλ​)g,h​=∑a,b​sgn(b)1{g=hab}​, where, under the fixed enumeration of the cells of λ\lambdaλ used by the definition, aaa preserves every cell’s row coordinate and bbb preserves every cell’s column coordinate. There is no normalization, nonnegativity, or size-compatibility hypothesis on q,μ,ν,R1,R2q,\mu,\nu,R_1,R_2q,μ,ν,R1​,R2​; if Sλ(ξ)S_\lambda(\xi)Sλ​(ξ) is empty, its displayed average is 000 by real division by zero. The cases d=0d=0d=0, t=0t=0t=0, and empty subsets are included, with empty sums 000 and empty products 111.

QAlgorithms.Papers.Independent.Extend50.P34.qTilde

For all natural numbers k,n,dk,n,dk,n,d and every Young diagram λ\lambdaλ, this defines the real number

k(k+1)(k+1)nk/2∫Rxmax⁡{k−1,0}(∑(i,j)∈λmax⁡{0, 1−∣x−(j−i)∣}) dx−∑ℓ=1⌊(k+1)/2⌋k 2ℓ−1 ‾ n k/2+1−ℓ(k+1−ℓ) ℓ! (ℓ−1)! d k+1−2ℓ.\frac{k(k+1)} {(k+1)n^{k/2}} \int_{\mathbb R}x^{\max\{k-1,0\}} \left(\sum_{(i,j)\in\lambda}\max\{0,\,1-|x-(j-i)|\}\right)\,dx - \sum_{\ell=1}^{\lfloor(k+1)/2\rfloor} \frac{k^{\underline{\,2\ell-1\,}}\,n^{\,k/2+1-\ell}} {(k+1-\ell)\,\ell!\,(\ell-1)!\,d^{\,k+1-2\ell}}.(k+1)nk/2k(k+1)​∫R​xmax{k−1,0}​(i,j)∈λ∑​max{0,1−∣x−(j−i)∣}​dx−ℓ=1∑⌊(k+1)/2⌋​(k+1−ℓ)ℓ!(ℓ−1)!dk+1−2ℓk2ℓ−1​nk/2+1−ℓ​.

Here j−ij-ij−i is integer cell content, ks‾k^{\underline s}ks​ is the natural-number descending factorial, and the integral is with respect to Lebesgue measure. Subtractions in natural-number exponents and indices truncate at zero. The definition allows k,n,d=0k,n,d=0k,n,d=0 and empty diagrams; division by zero is 000, real powers are total with 00=10^0=100=1, and empty sums are 000.

QAlgorithms.Papers.Independent.Extend50.P34.quotientRunner

For any Young diagram μ\muμ and any natural number bbb, let h=μ.colLen(0)h=\mu.\mathrm{colLen}(0)h=μ.colLen(0), the number of nonempty rows, and L=2hL=2hL=2h. Form the list μi+L−1−i\mu_i+L-1-iμi​+L−1−i for i=0,…,L−1i=0,\ldots,L-1i=0,…,L−1, where μi\mu_iμi​ is row iii's length and all subtractions are natural-number subtraction, truncated at zero. Keep precisely the entries whose remainder modulo 222 equals bbb, divide each retained entry by 222 using integer division, and sort the resulting list in nonincreasing order, say r0,…,rs−1r_0,\ldots,r_{s-1}r0​,…,rs−1​. The returned list is

[max⁡(rj−(s−1−j),0)]j=0s−1.\bigl[\max(r_j-(s-1-j),0)\bigr]_{j=0}^{s-1}.[max(rj​−(s−1−j),0)]j=0s−1​.

The parameter bbb is not restricted to 000 or 111; if b≥2b\ge2b≥2, the returned list is empty. An empty diagram also produces an empty list.

QAlgorithms.Papers.Independent.Extend50.P34.rankAccept

For every natural dimension ddd, natural numbers n,rn,rn,r, and arbitrary complex d×dd\times dd×d matrix ρ\rhoρ, this defines

∑λ: ∣λ∣=nh(λ)≤d, h(λ)≤rRe⁡tr⁡ ⁣(Pλ ρ⊗n),(ρ⊗n)y,z=∏i=0n−1ρyi,zi,\sum_{\substack{\lambda:\ |\lambda|=n\\h(\lambda)\le d,\ h(\lambda)\le r}} \operatorname{Re}\operatorname{tr}\!\left(P_\lambda\,\rho^{\otimes n}\right), \qquad (\rho^{\otimes n})_{y,z}=\prod_{i=0}^{n-1}\rho_{y_i,z_i},λ: ∣λ∣=nh(λ)≤d, h(λ)≤r​∑​Retr(Pλ​ρ⊗n),(ρ⊗n)y,z​=i=0∏n−1​ρyi​,zi​​,

where h(λ)h(\lambda)h(λ) is the first-column length. To specify PλP_\lambdaPλ​, label the diagram’s cells by the specified bijection with nnn labels, let Rλ,Cλ⊆SnR_\lambda,C_\lambda\subseteq S_nRλ​,Cλ​⊆Sn​ preserve rows and columns, and let Hλ⊆CSnH_\lambda\subseteq\mathbb C^{S_n}Hλ​⊆CSn​ be the range of

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

If QλQ_\lambdaQλ​ is the orthogonal projector onto HλH_\lambdaHλ​, Dλ=dim⁡CHλD_\lambda=\dim_{\mathbb C}H_\lambdaDλ​=dimC​Hλ​, Lπ(g,h)=1{g=πh}L_\pi(g,h)=\mathbf1_{\{g=\pi h\}}Lπ​(g,h)=1{g=πh}​, and Tπ(y,z)=1{y=z∘π−1}T_\pi(y,z)=\mathbf1_{\{y=z\circ\pi^{-1}\}}Tπ​(y,z)=1{y=z∘π−1}​, then

Pλ=Dλn!∑π∈Sntr⁡(Lπ−1Qλ) Tπ.P_\lambda=\frac{D_\lambda}{n!} \sum_{\pi\in S_n}\operatorname{tr}(L_{\pi^{-1}}Q_\lambda)\,T_\pi.Pλ​=n!Dλ​​π∈Sn​∑​tr(Lπ−1​Qλ​)Tπ​.

There is no density-matrix assumption on ρ\rhoρ and no restriction relating r,d,nr,d,nr,d,n. Empty products equal one: at n=0n=0n=0 the value is 111, including when d=0d=0d=0; if n>0n>0n>0 and either r=0r=0r=0 or d=0d=0d=0, the sum is empty and equals zero.

QAlgorithms.Papers.Independent.Extend50.P34.rankLaw

For natural numbers r,n,Dr,n,Dr,n,D, this defines a real-valued function on Young diagrams λ\lambdaλ having exactly nnn cells and first-column length at most DDD. Put pi=1/rp_i=1/rpi​=1/r for 0≤i<min⁡(r,D)0\le i<\min(r,D)0≤i<min(r,D), and pi=0p_i=0pi​=0 for the other indices i<Di<Di<D. Its value at λ\lambdaλ is Re⁡tr⁡(PλA)\operatorname{Re}\operatorname{tr}(P_\lambda A)Retr(Pλ​A), where AAA, indexed by words x:{0,…,n−1}→{0,…,D−1}x:\{0,\ldots,n-1\}\to\{0,\ldots,D-1\}x:{0,…,n−1}→{0,…,D−1}, is diagonal with Ax,x=∏i=0n−1pxiA_{x,x}=\prod_{i=0}^{n-1}p_{x_i}Ax,x​=∏i=0n−1​pxi​​. The matrix PλP_\lambdaPλ​ is defined as follows: use the construction’s fixed numbering of the cells of λ\lambdaλ by {0,…,n−1}\{0,\ldots,n-1\}{0,…,n−1}; let Rλ,Cλ⊆SnR_\lambda,C_\lambda\subseteq S_nRλ​,Cλ​⊆Sn​ be the permutations preserving, respectively, each numbered cell’s row and column; and let Vλ⊆CSnV_\lambda\subseteq\mathbb C^{S_n}Vλ​⊆CSn​ be the range of the matrix Yg,h=∑a∈Rλ∑b∈Cλ1{g=hab}sgn⁡(b)Y_{g,h}=\sum_{a\in R_\lambda}\sum_{b\in C_\lambda}\mathbf1_{\{g=hab\}}\operatorname{sgn}(b)Yg,h​=∑a∈Rλ​​∑b∈Cλ​​1{g=hab}​sgn(b). Write Πλ\Pi_\lambdaΠλ​ for orthogonal projection onto VλV_\lambdaVλ​, Lπg,h=1{g=πh}L_\pi{}_{g,h}=\mathbf1_{\{g=\pi h\}}Lπ​g,h​=1{g=πh}​, χλ(π)=tr⁡(LπΠλ)\chi_\lambda(\pi)=\operatorname{tr}(L_\pi\Pi_\lambda)χλ​(π)=tr(Lπ​Πλ​), 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}​. Then Pλ=(dim⁡CVλ/n!)∑π∈Snχλ(π−1)TπP_\lambda=(\dim_{\mathbb C}V_\lambda/n!)\sum_{\pi\in S_n}\chi_\lambda(\pi^{-1})T_\piPλ​=(dimC​Vλ​/n!)∑π∈Sn​​χλ​(π−1)Tπ​. No restriction 1≤r≤D1\le r\le D1≤r≤D is imposed: r=0r=0r=0 gives the zero vector ppp, while r>Dr>Dr>D gives total mass D/rD/rD/r. For n=0n=0n=0, the empty product is 111, and the value on the empty diagram is 111, including when r=0r=0r=0 or D=0D=0D=0; for D=0<nD=0<nD=0<n, the domain of diagrams is empty.

QAlgorithms.Papers.Independent.Extend50.P34.realObservable

For every finitely supported real-valued function aaa on Young diagrams and every Young diagram λ\lambdaλ, this defines ∑μ∈supp⁡(a)a(μ)Sμ(λ)\sum_{\mu\in\operatorname{supp}(a)}a(\mu)S_\mu(\lambda)∑μ∈supp(a)​a(μ)Sμ​(λ) as follows. Put N=∣λ∣N=|\lambda|N=∣λ∣ and s=∣μ∣s=|\mu|s=∣μ∣; then Sμ(λ)=0S_\mu(\lambda)=0Sμ​(λ)=0 if s>Ns>Ns>N, and otherwise

Sμ(λ)=Ns‾Dλ∑π∈Cμ,NRe⁡tr⁡(LπΠλ)∣Cμ,N∣.S_\mu(\lambda)=\frac{N^{\underline s}}{D_\lambda} \frac{\displaystyle\sum_{\pi\in\mathcal C_{\mu,N}} \operatorname{Re}\operatorname{tr}(L_\pi\Pi_\lambda)} {|\mathcal C_{\mu,N}|}.Sμ​(λ)=Dλ​Ns​​∣Cμ,N​∣π∈Cμ,N​∑​Retr(Lπ​Πλ​)​.

Here Cμ,N⊆SN\mathcal C_{\mu,N}\subseteq S_NCμ,N​⊆SN​ consists of permutations whose complete cycle-length multiset, including fixed points, is the multiset of row lengths of μ\muμ together with N−sN-sN−s additional ones, and Ns‾N^{\underline s}Ns​ is the natural-number descending factorial. To define DλD_\lambdaDλ​ and Πλ\Pi_\lambdaΠλ​, use the chosen numbering of λ\lambdaλ’s cells by {0,…,N−1}\{0,\ldots,N-1\}{0,…,N−1}, let Rλ,CλR_\lambda,C_\lambdaRλ​,Cλ​ be the permutations preserving each cell’s row and column respectively, and form (Yλ)g,h=∑r∈Rλ∑c∈Cλsgn⁡(c)1{g=hrc}(Y_\lambda)_{g,h}=\sum_{r\in R_\lambda}\sum_{c\in C_\lambda}\operatorname{sgn}(c)\mathbf1_{\{g=hrc\}}(Yλ​)g,h​=∑r∈Rλ​​∑c∈Cλ​​sgn(c)1{g=hrc}​. Then Πλ\Pi_\lambdaΠλ​ is the orthogonal projection onto the range of YλY_\lambdaYλ​ in CSN\mathbb C^{S_N}CSN​, DλD_\lambdaDλ​ is that range’s complex dimension, and (Lπ)g,h=1{g=πh}(L_\pi)_{g,h}=\mathbf1_{\{g=\pi h\}}(Lπ​)g,h​=1{g=πh}​. No sign or normalization restrictions are imposed on aaa. Empty support gives 000, empty diagrams are permitted, and every division by zero is 000.

QAlgorithms.Papers.Independent.Extend50.P34.remainder

For every natural number kkk and Young diagram λ\lambdaλ, this defines the real number

remainder⁡(k,λ)=∑i=0h(λ)−1[(λi−i−12)k−(−i−12)k]−∑μ: ∣μ∣≤k+1, h(μ)≤k+1∣μ∣+h(μ)=k+1kh(μ)−1‾∏j=0∣μ∣mj(μ)! Sμ(λ).\operatorname{remainder}(k,\lambda)= \sum_{i=0}^{h(\lambda)-1} \left[\left(\lambda_i-i-\tfrac12\right)^k- \left(-i-\tfrac12\right)^k\right] - \sum_{\substack{\mu:\ |\mu|\le k+1,\ h(\mu)\le k+1\\|\mu|+h(\mu)=k+1}} \frac{k^{\underline{h(\mu)-1}}} {\prod_{j=0}^{|\mu|}m_j(\mu)!}\,S_\mu(\lambda).remainder(k,λ)=i=0∑h(λ)−1​[(λi​−i−21​)k−(−i−21​)k]−μ: ∣μ∣≤k+1, h(μ)≤k+1∣μ∣+h(μ)=k+1​∑​∏j=0∣μ∣​mj​(μ)!kh(μ)−1​​Sμ​(λ).

Here ∣ν∣|\nu|∣ν∣ is the number of cells of a diagram ν\nuν, h(ν)h(\nu)h(ν) is its first-column length, νi\nu_iνi​ is its iii-th row length with rows numbered from zero, mj(ν)m_j(\nu)mj​(ν) counts rows of length jjj, and ka‾k^{\underline a}ka​ is the natural-number descending factorial; the subtraction h(μ)−1h(\mu)-1h(μ)−1 is truncated at zero. To specify Sμ(λ)S_\mu(\lambda)Sμ​(λ), put N=∣λ∣N=|\lambda|N=∣λ∣, label the cells of λ\lambdaλ by the specified bijection with {0,…,N−1}\{0,\ldots,N-1\}{0,…,N−1}, and let Rλ,Cλ⊆SNR_\lambda,C_\lambda\subseteq S_NRλ​,Cλ​⊆SN​ be the permutations preserving each cell label’s row and column, respectively. Let Hλ⊆CSNH_\lambda\subseteq\mathbb C^{S_N}Hλ​⊆CSN​ be the range of the matrix

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

let QλQ_\lambdaQλ​ be its orthogonal projector, put Dλ=dim⁡CHλD_\lambda=\dim_{\mathbb C}H_\lambdaDλ​=dimC​Hλ​, and set χλ(π)=Re⁡tr⁡(LπQλ)\chi_\lambda(\pi)=\operatorname{Re}\operatorname{tr}(L_\pi Q_\lambda)χλ​(π)=Retr(Lπ​Qλ​), where Lπ(g,h)=1{g=πh}L_\pi(g,h)=\mathbf1_{\{g=\pi h\}}Lπ​(g,h)=1{g=πh}​. If ∣μ∣>N|\mu|>N∣μ∣>N, then Sμ(λ)=0S_\mu(\lambda)=0Sμ​(λ)=0; otherwise, if C\mathcal CC is the set of permutations of NNN labels whose full cycle-length multiset is the row-length multiset of μ\muμ together with N−∣μ∣N-|\mu|N−∣μ∣ additional ones, then

Sμ(λ)=N∣μ∣‾Dλ∑π∈Cχλ(π)∣C∣.S_\mu(\lambda)= \frac{N^{\underline{|\mu|}}}{D_\lambda} \frac{\sum_{\pi\in\mathcal C}\chi_\lambda(\pi)}{|\mathcal C|}.Sμ​(λ)=Dλ​N∣μ∣​​∣C∣∑π∈C​χλ​(π)​.

All divisions are real divisions, with division by zero defined as zero. Both k=0k=0k=0 and the empty diagram are allowed; the defined remainder is zero in either of those cases.

QAlgorithms.Papers.Independent.Extend50.P34.restrictedCycle

For every natural number ttt, finite subset R⊆{0,…,t−1}R\subseteq\{0,\ldots,t-1\}R⊆{0,…,t−1}, and permutation w∈Stw\in S_tw∈St​, this defines the multiset

cycleType⁡(w)⊎{1,…,1⏟max⁡(∣R∣−∣supp⁡(w)∣, 0) copies},\operatorname{cycleType}(w) \uplus \{\underbrace{1,\ldots,1}_{\max(|R|-|\operatorname{supp}(w)|,\,0)\text{ copies}}\},cycleType(w)⊎{max(∣R∣−∣supp(w)∣,0) copies1,…,1​​},

where cycleType⁡(w)\operatorname{cycleType}(w)cycleType(w) contains the lengths of its nontrivial cycles and supp⁡(w)={i:w(i)≠i}\operatorname{supp}(w)=\{i:w(i)\ne i\}supp(w)={i:w(i)=i}. No hypothesis requires www to fix points outside RRR; its full nontrivial cycle type is retained regardless of RRR. The natural-number subtraction is truncated at zero, so no ones are added when ∣supp⁡(w)∣>∣R∣|\operatorname{supp}(w)|>|R|∣supp(w)∣>∣R∣. For the identity permutation the result is ∣R∣|R|∣R∣ copies of 111, and when t=0t=0t=0 the result is the empty multiset.

QAlgorithms.Papers.Independent.Extend50.P34.rsk

For natural numbers d,nd,nd,n and a word w:{0,…,n−1}→{0,…,d−1}w:\{0,\ldots,n-1\}\to\{0,\ldots,d-1\}w:{0,…,n−1}→{0,…,d−1}, this constructs a Young diagram by processing the entries w0,…,wn−1w_0,\ldots,w_{n-1}w0​,…,wn−1​ in that order, starting with no rows. Each entry is inserted into the first row by replacing its first strictly larger entry and passing the displaced entry to the next row; if no strictly larger entry exists, it is appended and insertion stops, and reaching beyond the last row creates a new singleton row. After all insertions, the row lengths are collected, explicitly sorted in nonincreasing order, and used as the row lengths of the returned Young diagram. For n=0n=0n=0, the result is the empty diagram. If d=0<nd=0<nd=0<n, no word www of the required type exists.

QAlgorithms.Papers.Independent.Extend50.P34.russian

For every Young diagram λ\lambdaλ and every real xxx, this defines

∣x∣+∑(i,j)∈λ2max⁡{0, 1−∣x−(j−i)∣},|x|+\sum_{(i,j)\in\lambda}2\max\{0,\,1-|x-(j-i)|\},∣x∣+(i,j)∈λ∑​2max{0,1−∣x−(j−i)∣},

where cells have natural-number row and column coordinates (i,j)(i,j)(i,j) and their content is the integer j−ij-ij−i. The sum includes every cell, so cells of equal content contribute separately. For the empty diagram the value is ∣x∣|x|∣x∣.

QAlgorithms.Papers.Independent.Extend50.P34.scaledBoundary

For every Young diagram λ\lambdaλ and every real xxx, writing N=∣λ∣N=|\lambda|N=∣λ∣, this defines

∣N x∣+∑(i,j)∈λ2max⁡{0, 1−∣N x−(j−i)∣}N.\frac{|\sqrt N\,x|+\displaystyle\sum_{(i,j)\in\lambda} 2\max\{0,\,1-|\sqrt N\,x-(j-i)|\}}{\sqrt N}.N​∣N​x∣+(i,j)∈λ∑​2max{0,1−∣N​x−(j−i)∣}​.

Here NNN is interpreted as a real number in the square root, and j−ij-ij−i is the integer content of the cell. The definition includes the empty diagram: when N=0N=0N=0, division by zero is assigned the value 000, so the resulting function is identically zero.

QAlgorithms.Papers.Independent.Extend50.P34.schurAt

For every natural number ddd, every Young diagram λ\lambdaλ, and every real vector x=(x0,…,xd−1)x=(x_0,\ldots,x_{d-1})x=(x0​,…,xd−1​), this defines

sλ(x)={∑T∏c∈λxT(c),λ has at most d rows,0,otherwise,s_\lambda(x)= \begin{cases} \displaystyle\sum_T\prod_{c\in\lambda}x_{T(c)},&\lambda\text{ has at most }d\text{ rows},\\ 0,&\text{otherwise}, \end{cases}sλ​(x)=⎩⎨⎧​T∑​c∈λ∏​xT(c)​,0,​λ has at most d rows,otherwise,​

where TTT ranges over fillings of λ\lambdaλ by {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1} that are weakly increasing along rows and strictly increasing down columns. No nonnegativity or normalization of xxx is required. For the empty diagram the value is 111, including when d=0d=0d=0.

QAlgorithms.Papers.Independent.Extend50.P34.schurVariance

For arbitrary natural numbers d,nd,nd,n, any real vector ppp indexed by {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}, and any real-valued function FFF on Young diagrams, let Λd,n\Lambda_{d,n}Λd,n​ be the diagrams with nnn cells and at most ddd rows. This defines

∑λ∈Λd,nwλ(p)(F(λ)−∑μ∈Λd,nwμ(p)F(μ))2,wλ(p)=Re⁡Tr⁡(ΠλDp),(Dp)x,y=1{x=y}∏t=0n−1px(t),\sum_{\lambda\in\Lambda_{d,n}}w_\lambda(p) \left(F(\lambda)-\sum_{\mu\in\Lambda_{d,n}}w_\mu(p)F(\mu)\right)^2, \qquad w_\lambda(p)=\operatorname{Re}\operatorname{Tr}(\Pi_\lambda D_p), \quad (D_p)_{x,y}=\mathbf1_{\{x=y\}}\prod_{t=0}^{n-1}p_{x(t)},λ∈Λd,n​∑​wλ​(p)​F(λ)−μ∈Λd,n​∑​wμ​(p)F(μ)​2,wλ​(p)=ReTr(Πλ​Dp​),(Dp​)x,y​=1{x=y}​t=0∏n−1​px(t)​,

where x,yx,yx,y are length-nnn words over {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}. For each λ\lambdaλ, use the definition’s chosen numbering of its cells by {0,…,n−1}\{0,\ldots,n-1\}{0,…,n−1}, let Rλ,Cλ⊆Sn\mathcal R_\lambda,\mathcal C_\lambda\subseteq S_nRλ​,Cλ​⊆Sn​ preserve rows and columns, and form

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

Let QλQ_\lambdaQλ​ project orthogonally onto its range and let rλr_\lambdarλ​ be the complex dimension of that range. With (Lπ)g,h=1{g=πh}(L_\pi)_{g,h}=\mathbf1_{\{g=\pi h\}}(Lπ​)g,h​=1{g=πh}​ and (Kπ)x,y=1{x=y∘π−1}(K_\pi)_{x,y}=\mathbf1_{\{x=y\circ\pi^{-1}\}}(Kπ​)x,y​=1{x=y∘π−1}​, set

Πλ=rλn!∑π∈SnTr⁡(Lπ−1Qλ)Kπ.\Pi_\lambda=\frac{r_\lambda}{n!}\sum_{\pi\in S_n} \operatorname{Tr}(L_{\pi^{-1}}Q_\lambda)K_\pi.Πλ​=n!rλ​​π∈Sn​∑​Tr(Lπ−1​Qλ​)Kπ​.

No nonnegativity or normalization of ppp is assumed, and no division by the sum of the weights occurs. The value is 000 when n=0n=0n=0 or when d=0<nd=0<nd=0<n.

QAlgorithms.Papers.Independent.Extend50.P34.sharp

For any Young diagrams μ\muμ and λ\lambdaλ, put s=∣μ∣s=|\mu|s=∣μ∣, n=∣λ∣n=|\lambda|n=∣λ∣, and let ρ\rhoρ be the multiset of row lengths of μ\muμ. This defines 000 when s>ns>ns>n, and otherwise defines ns‾ ∣S∣−1∑π∈SRe⁡tr⁡(LπPλ) /Dλn^{\underline{s}}\,|S|^{-1}\sum_{\pi\in S}\operatorname{Re}\operatorname{tr}(L_\pi P_\lambda)\,/D_\lambdans​∣S∣−1∑π∈S​Retr(Lπ​Pλ​)/Dλ​, where SSS consists of permutations of nnn labels with full cycle-length multiset ρ\rhoρ together with n−sn-sn−s copies of 111, and ns‾n^{\underline{s}}ns​ is the descending factorial viewed as a real number. For completeness, number the cells of λ\lambdaλ using the chosen bijection, let Rλ,CλR_\lambda,C_\lambdaRλ​,Cλ​ preserve their row and column coordinates, and form (Yλ)g,h=∑a∈Rλ,b∈Cλ1{g=hab}sgn⁡(b)(Y_\lambda)_{g,h}=\sum_{a\in R_\lambda,b\in C_\lambda}\mathbf1_{\{g=hab\}}\operatorname{sgn}(b)(Yλ​)g,h​=∑a∈Rλ​,b∈Cλ​​1{g=hab}​sgn(b); PλP_\lambdaPλ​ projects orthogonally onto its range, DλD_\lambdaDλ​ is its range’s complex dimension, and (Lπ)g,h=1{g=πh}(L_\pi)_{g,h}=\mathbf1_{\{g=\pi h\}}(Lπ​)g,h​=1{g=πh}​. Empty diagrams are included, with the empty descending factorial equal to 111; empty averages and division by zero have value 000.

QAlgorithms.Papers.Independent.Extend50.P34.sharpMonomial

For any Young diagrams μ,λ\mu,\lambdaμ,λ, this defines a real number by multiplying one factor for each row length of μ\muμ, including repeated row lengths. To specify the factors, put N=∣λ∣N=|\lambda|N=∣λ∣. Number the cells of λ\lambdaλ by {0,…,N−1}\{0,\ldots,N-1\}{0,…,N−1} using the chosen cell-numbering bijection, and let Rλ,Cλ⊆SNR_\lambda,C_\lambda\subseteq S_NRλ​,Cλ​⊆SN​ be the permutations preserving, respectively, the row and column of every numbered cell. Define the matrix YλY_\lambdaYλ​ indexed by SNS_NSN​ by (Yλ)g,h=∑a∈Rλ∑b∈Cλsgn⁡(b)1{g=hab}(Y_\lambda)_{g,h}=\sum_{a\in R_\lambda}\sum_{b\in C_\lambda}\operatorname{sgn}(b)\mathbf1_{\{g=hab\}}(Yλ​)g,h​=∑a∈Rλ​​∑b∈Cλ​​sgn(b)1{g=hab}​, let Πλ\Pi_\lambdaΠλ​ be the orthogonal projection onto its range in CSN\mathbb C^{S_N}CSN​, and let DλD_\lambdaDλ​ be the complex dimension of that range. For π∈SN\pi\in S_Nπ∈SN​, let (Lπ)g,h=1{g=πh}(L_\pi)_{g,h}=\mathbf1_{\{g=\pi h\}}(Lπ​)g,h​=1{g=πh}​ and χλ(π)=Re⁡tr⁡(LπΠλ)\chi_\lambda(\pi)=\operatorname{Re}\operatorname{tr}(L_\pi\Pi_\lambda)χλ​(π)=Retr(Lπ​Πλ​). For a multiset ν\nuν of natural numbers, let χ‾λ(ν)\overline\chi_\lambda(\nu)χ​λ​(ν) be the sum of χλ(π)\chi_\lambda(\pi)χλ​(π) over permutations whose complete multiset of cycle lengths, including fixed points, is ν\nuν, divided by the number of such permutations. Writing Nr‾=N(N−1)⋯(N−r+1)N^{\underline r}=N(N-1)\cdots(N-r+1)Nr​=N(N−1)⋯(N−r+1), the defined value is

∏r a row length of μ{Nr‾ χ‾λ({r}⊎{1}N−r)Dλ,r≤N,0,r>N.\prod_{r\text{ a row length of }\mu} \begin{cases} \dfrac{N^{\underline r}\,\overline\chi_\lambda(\{r\}\uplus\{1\}^{N-r})}{D_\lambda},&r\le N,\\ 0,&r>N. \end{cases}r a row length of μ∏​⎩⎨⎧​Dλ​Nr​χ​λ​({r}⊎{1}N−r)​,0,​r≤N,r>N.​

An empty product is 111, so the value is 111 when μ\muμ is empty. Division by zero is assigned the value 000, including in the cycle-class average or the division by DλD_\lambdaDλ​.

QAlgorithms.Papers.Independent.Extend50.P34.sharpParts

For any finite multiset μ\muμ of natural numbers and any Young diagram λ\lambdaλ, put s=∑a∈μas=\sum_{a\in\mu}as=∑a∈μ​a and n=∣λ∣n=|\lambda|n=∣λ∣. The value is 000 if s>ns>ns>n; otherwise it is ns‾ ∣S∣−1∑π∈SRe⁡tr⁡(LπPλ) /Dλn^{\underline{s}}\,|S|^{-1}\sum_{\pi\in S}\operatorname{Re}\operatorname{tr}(L_\pi P_\lambda)\,/D_\lambdans​∣S∣−1∑π∈S​Retr(Lπ​Pλ​)/Dλ​, where ns‾n^{\underline{s}}ns​ is the descending factorial converted to a real number, and SSS consists of permutations of nnn labels whose full cycle-length multiset is μ\muμ with n−sn-sn−s additional copies of 111. To define PλP_\lambdaPλ​ and DλD_\lambdaDλ​, use the chosen numbering of λ\lambdaλ’s cells, let Rλ,CλR_\lambda,C_\lambdaRλ​,Cλ​ preserve row and column coordinates, and set (Yλ)g,h=∑a∈Rλ,b∈Cλ1{g=hab}sgn⁡(b)(Y_\lambda)_{g,h}=\sum_{a\in R_\lambda,b\in C_\lambda}\mathbf1_{\{g=hab\}}\operatorname{sgn}(b)(Yλ​)g,h​=∑a∈Rλ​,b∈Cλ​​1{g=hab}​sgn(b); PλP_\lambdaPλ​ is the orthogonal projector onto the range of YλY_\lambdaYλ​, DλD_\lambdaDλ​ is that range’s complex dimension, and (Lπ)g,h=1{g=πh}(L_\pi)_{g,h}=\mathbf1_{\{g=\pi h\}}(Lπ​)g,h​=1{g=πh}​. Zero parts and empty multisets are allowed, as is the empty diagram. If SSS is empty, its average is 000; any division by a zero dimension is also defined to give 000.

QAlgorithms.Papers.Independent.Extend50.P34.shiftedSchur

For any Young diagrams μ,λ\mu,\lambdaμ,λ, with r=∣μ∣r=|\mu|r=∣μ∣ and n=∣λ∣n=|\lambda|n=∣λ∣, this defines 1r!∑π∈Srcμ(π)Aλ(ρπ)\frac1{r!}\sum_{\pi\in S_r}c_\mu(\pi)A_\lambda(\rho_\pi)r!1​∑π∈Sr​​cμ​(π)Aλ​(ρπ​), where ρπ\rho_\piρπ​ is the multiset of all cycle lengths of π\piπ, including fixed points. For either diagram ν\nuν, choose its specified cell numbering, let Rν,CνR_\nu,C_\nuRν​,Cν​ be the permutations preserving row and column coordinates, form (Yν)g,h=∑a∈Rν,b∈Cν1{g=hab}sgn⁡(b)(Y_\nu)_{g,h}=\sum_{a\in R_\nu,b\in C_\nu}\mathbf1_{\{g=hab\}}\operatorname{sgn}(b)(Yν​)g,h​=∑a∈Rν​,b∈Cν​​1{g=hab}​sgn(b), and let PνP_\nuPν​ project orthogonally onto its range; then cν(σ)=Re⁡tr⁡(LσPν)c_\nu(\sigma)=\operatorname{Re}\operatorname{tr}(L_\sigma P_\nu)cν​(σ)=Retr(Lσ​Pν​), with (Lσ)g,h=1{g=σh}(L_\sigma)_{g,h}=\mathbf1_{\{g=\sigma h\}}(Lσ​)g,h​=1{g=σh}​, and Dν=dim⁡Crange⁡YνD_\nu=\dim_{\mathbb C}\operatorname{range}Y_\nuDν​=dimC​rangeYν​. Explicitly, Aλ(ρ)=0A_\lambda(\rho)=0Aλ​(ρ)=0 if ∑ρ>n\sum\rho>n∑ρ>n; otherwise, for s=∑ρs=\sum\rhos=∑ρ, it is ns‾/Dλn^{\underline{s}}/D_\lambdans​/Dλ​ times the average of cλc_\lambdacλ​ over permutations whose full cycle multiset is ρ\rhoρ with n−sn-sn−s additional 111’s. Here the descending factorial and factorial are converted to real numbers, empty averages and division by zero give 000, and empty diagrams are allowed; 0!=10!=10!=1, and the permutation group on no labels has one element.

QAlgorithms.Papers.Independent.Extend50.P34.starPower

For any natural number kkk and Young diagram λ\lambdaλ, this defines the shifted-power sum at shift −12-\tfrac12−21​, namely ∑i=0h−1[(λi−i−12)k−(−i−12)k]\sum_{i=0}^{h-1}\bigl[(\lambda_i-i-\tfrac12)^k-(-i-\tfrac12)^k\bigr]∑i=0h−1​[(λi​−i−21​)k−(−i−21​)k], where h=λ.colLen⁡(0)h=\lambda.\operatorname{colLen}(0)h=λ.colLen(0) is the number of rows and λi=λ.rowLen⁡(i)\lambda_i=\lambda.\operatorname{rowLen}(i)λi​=λ.rowLen(i), indexed from 000. The empty diagram gives 000, and k=0k=0k=0 gives 000.

QAlgorithms.Papers.Independent.Extend50.P34.starShift

For any natural number kkk, real number ccc, and Young diagram λ\lambdaλ, let h=λ.colLen⁡(0)h=\lambda.\operatorname{colLen}(0)h=λ.colLen(0) be its number of rows and let λi=λ.rowLen⁡(i)\lambda_i=\lambda.\operatorname{rowLen}(i)λi​=λ.rowLen(i), with rows indexed from 000. This defines ∑i=0h−1[(λi−(i+1)−c)k−(−(i+1)−c)k]\sum_{i=0}^{h-1}\bigl[(\lambda_i-(i+1)-c)^k-(-(i+1)-c)^k\bigr]∑i=0h−1​[(λi​−(i+1)−c)k−(−(i+1)−c)k], with row lengths and indices interpreted as real numbers inside the powers. There is no restriction on ccc. The empty diagram gives an empty sum, hence 000; k=0k=0k=0 also gives 000, because each summand is 1−11-11−1, including when a base is zero.

QAlgorithms.Papers.Independent.Extend50.P34.structureConstant

For every three Young diagrams μ,ν,τ\mu,\nu,\tauμ,ν,τ, put Z(λ)=∏j=1∣λ∣jmj(λ)mj(λ)!Z(\lambda)=\prod_{j=1}^{|\lambda|}j^{m_j(\lambda)}m_j(\lambda)!Z(λ)=∏j=1∣λ∣​jmj​(λ)mj​(λ)!, where mj(λ)m_j(\lambda)mj​(λ) counts rows of length jjj, and let SSS consist of the permutations www of Ω={0,…,∣τ∣−1}\Omega=\{0,\ldots,|\tau|-1\}Ω={0,…,∣τ∣−1} whose nontrivial cycle lengths, supplemented by one part 111 for every fixed point of Ω\OmegaΩ, form the row-length multiset of τ\tauτ. This defines the real number

Z(μ)Z(ν)Z(τ)∑w∈SFμ,ν,τ(w)∣S∣,\frac{Z(\mu)Z(\nu)}{Z(\tau)} \frac{\sum_{w\in S}F_{\mu,\nu,\tau}(w)}{|S|},Z(τ)Z(μ)Z(ν)​∣S∣∑w∈S​Fμ,ν,τ​(w)​,

where Fμ,ν,τ(w)F_{\mu,\nu,\tau}(w)Fμ,ν,τ​(w) counts ordered choices ((R1,u),(R2,v))((R_1,u),(R_2,v))((R1​,u),(R2​,v)) with R1∪R2=ΩR_1\cup R_2=\OmegaR1​∪R2​=Ω, ∣R1∣=∣μ∣|R_1|=|\mu|∣R1​∣=∣μ∣, ∣R2∣=∣ν∣|R_2|=|\nu|∣R2​∣=∣ν∣, uv=wuv=wuv=w, and each permutation fixing the complement of its corresponding set and having, on that set including fixed points, the row-length cycle multiset of μ\muμ or ν\nuν, respectively. All natural-number counts are converted to real numbers in this formula. Empty diagrams are permitted, empty products equal 111, and real division by zero is defined to be 000.

QAlgorithms.Papers.Independent.Extend50.P34.supportProperty

For natural numbers d,rd,rd,r, this defines the set of real vectors ppp indexed by {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1} such that every coordinate is nonnegative, ∑ipi=1\sum_i p_i=1∑i​pi​=1, and at most rrr coordinates are nonzero. Both d=0d=0d=0 and r=0r=0r=0 are permitted; in either case the resulting set is empty.

QAlgorithms.Papers.Independent.Extend50.P34.sw

For arbitrary natural numbers d,nd,nd,n, a complex d×dd\times dd×d matrix ρ\rhoρ, and a Young diagram λ\lambdaλ with exactly nnn cells and at most ddd rows, this defines the real number

Re⁡Tr⁡(ΠλR),Rx,y=∏t=0n−1ρx(t),y(t),x,y:{0,…,n−1}→{0,…,d−1}.\operatorname{Re}\operatorname{Tr}(\Pi_\lambda R), \qquad R_{x,y}=\prod_{t=0}^{n-1}\rho_{x(t),y(t)}, \quad x,y:\{0,\ldots,n-1\}\to\{0,\ldots,d-1\}.ReTr(Πλ​R),Rx,y​=t=0∏n−1​ρx(t),y(t)​,x,y:{0,…,n−1}→{0,…,d−1}.

Here, writing SnS_nSn​ for the permutations of {0,…,n−1}\{0,\ldots,n-1\}{0,…,n−1}, use the definition’s chosen bijection between the cells of λ\lambdaλ and that set to form the subgroups Rλ,Cλ\mathcal R_\lambda,\mathcal C_\lambdaRλ​,Cλ​ preserving, respectively, each cell’s row and column. Define the matrix on CSn\mathbb C^{S_n}CSn​ by

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

Let QλQ_\lambdaQλ​ be the orthogonal projection onto the range of YλY_\lambdaYλ​, let rλr_\lambdarλ​ be the complex dimension of that range, and let (Lπ)g,h=1{g=πh}(L_\pi)_{g,h}=\mathbf1_{\{g=\pi h\}}(Lπ​)g,h​=1{g=πh}​. Then

Πλ=rλn!∑π∈SnTr⁡(Lπ−1Qλ)Kπ,(Kπ)x,y=1{x=y∘π−1}.\Pi_\lambda=\frac{r_\lambda}{n!} \sum_{\pi\in S_n}\operatorname{Tr}(L_{\pi^{-1}}Q_\lambda)K_\pi, \qquad (K_\pi)_{x,y}=\mathbf1_{\{x=y\circ\pi^{-1}\}}.Πλ​=n!rλ​​π∈Sn​∑​Tr(Lπ−1​Qλ​)Kπ​,(Kπ​)x,y​=1{x=y∘π−1}​.

No density-matrix hypothesis on ρ\rhoρ is imposed. When n=0n=0n=0, the value is 111; when d=0<nd=0<nd=0<n, no admissible λ\lambdaλ exists.

QAlgorithms.Papers.Independent.Extend50.P34.swSpectrum

For arbitrary natural numbers d,nd,nd,n and any real vector p=(p0,…,pd−1)p=(p_0,\ldots,p_{d-1})p=(p0​,…,pd−1​), this defines a real-valued function on Young diagrams λ\lambdaλ with nnn cells and at most ddd rows, whose value is

wλ(p)=Re⁡Tr⁡(ΠλDp),(Dp)x,y=1{x=y}∏t=0n−1px(t),w_\lambda(p)= \operatorname{Re}\operatorname{Tr}(\Pi_\lambda D_p), \qquad (D_p)_{x,y}=\mathbf1_{\{x=y\}}\prod_{t=0}^{n-1}p_{x(t)},wλ​(p)=ReTr(Πλ​Dp​),(Dp​)x,y​=1{x=y}​t=0∏n−1​px(t)​,

with x,y:{0,…,n−1}→{0,…,d−1}x,y:\{0,\ldots,n-1\}\to\{0,\ldots,d-1\}x,y:{0,…,n−1}→{0,…,d−1}. To specify Πλ\Pi_\lambdaΠλ​, use the definition’s chosen numbering of the cells by {0,…,n−1}\{0,\ldots,n-1\}{0,…,n−1}, and let Rλ,Cλ⊆Sn\mathcal R_\lambda,\mathcal C_\lambda\subseteq S_nRλ​,Cλ​⊆Sn​ preserve rows and columns, respectively. Set

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

Let QλQ_\lambdaQλ​ project orthogonally onto range⁡Yλ\operatorname{range}Y_\lambdarangeYλ​, let rλ=dim⁡Crange⁡Yλr_\lambda=\dim_{\mathbb C}\operatorname{range}Y_\lambdarλ​=dimC​rangeYλ​, and set (Lπ)g,h=1{g=πh}(L_\pi)_{g,h}=\mathbf1_{\{g=\pi h\}}(Lπ​)g,h​=1{g=πh}​ and (Kπ)x,y=1{x=y∘π−1}(K_\pi)_{x,y}=\mathbf1_{\{x=y\circ\pi^{-1}\}}(Kπ​)x,y​=1{x=y∘π−1}​. The matrix used above is

Πλ=rλn!∑π∈SnTr⁡(Lπ−1Qλ)Kπ.\Pi_\lambda=\frac{r_\lambda}{n!}\sum_{\pi\in S_n} \operatorname{Tr}(L_{\pi^{-1}}Q_\lambda)K_\pi.Πλ​=n!rλ​​π∈Sn​∑​Tr(Lπ−1​Qλ​)Kπ​.

The entries of ppp need not be nonnegative or sum to 111. At n=0n=0n=0 the function has value 111 on the empty diagram; for d=0<nd=0<nd=0<n its domain is empty.

QAlgorithms.Papers.Independent.Extend50.P34.tildePower

For every natural number kkk, including 000 and 111, and every Young diagram λ\lambdaλ, this defines

k max⁡{k−1,0}∫Rxmax⁡{k−2,0}(∑(i,j)∈λmax⁡{0, 1−∣x−(j−i)∣}) dx.k\,\max\{k-1,0\}\int_{\mathbb R} x^{\max\{k-2,0\}} \left(\sum_{(i,j)\in\lambda}\max\{0,\,1-|x-(j-i)|\}\right)\,dx.kmax{k−1,0}∫R​xmax{k−2,0}​(i,j)∈λ∑​max{0,1−∣x−(j−i)∣}​dx.

The maxima in the prefactor and exponent express subtraction in the natural numbers, which truncates at zero; cell content j−ij-ij−i is instead an integer difference. The integral is with respect to Lebesgue measure. The value is 000 for k=0k=0k=0 or k=1k=1k=1, and also for an empty diagram.

QAlgorithms.Papers.Independent.Extend50.P34.truncation

For every natural number rrr and real number ω\omegaω, this defines the natural-number ceiling

⌈3log⁡(10r)log⁡(ω/10)⌉+,\left\lceil\frac{3\log(10r)}{\log(\omega/10)}\right\rceil_{+},⌈log(ω/10)3log(10r)​⌉+​,

meaning the least natural number at least the displayed real number, with value zero when that number is nonpositive. There are no positivity or nonvanishing assumptions. The real logarithm is total, with log⁡0=0\log0=0log0=0 and log⁡x=log⁡∣x∣\log x=\log|x|logx=log∣x∣ for negative xxx, and division by zero gives zero; in particular, the definition gives zero when r=0r=0r=0 or when log⁡(ω/10)=0\log(\omega/10)=0log(ω/10)=0.

QAlgorithms.Papers.Independent.Extend50.P34.twoQuotient

For any Young diagram μ\muμ and b∈{0,1}b\in\{0,1\}b∈{0,1}, let L=2μ.colLen(0)L=2\mu.\mathrm{colLen}(0)L=2μ.colLen(0). From the list μi+L−1−i\mu_i+L-1-iμi​+L−1−i, 0≤i<L0\le i<L0≤i<L, retain entries congruent to bbb modulo 222, divide them by 222 using integer division, and sort them in nonincreasing order r0,…,rs−1r_0,\ldots,r_{s-1}r0​,…,rs−1​. Form the list max⁡(rj−(s−1−j),0)\max(r_j-(s-1-j),0)max(rj​−(s−1−j),0), sort that list again in nonincreasing order, and construct the Young diagram with those row lengths; zero entries contribute no cells. Every subtraction in this construction is natural-number subtraction truncated at zero. This defines the returned diagram, including the empty diagram when the resulting list is empty.

QAlgorithms.Papers.Independent.Extend50.P34.unif

For every natural number ddd, this defines the real vector on {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1} whose every coordinate equals 1/d1/d1/d. The case d=0d=0d=0 is included: the vector then has no coordinates, and division by zero is assigned the value 000.

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