Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Definitions for An efficient high dimensional quantum Schur transform

Definition
QAlgorithms_Papers_Independent_Extend50_P24

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

prove2quantum

The objects the formalized statements of An efficient high dimensional quantum Schur transform (arXiv:1804.00055) are stated in. Each was checked against the paper by a blind read-back and a moderator.

  • StandardTableau: Actual standard tableaux: label-to-cell bijections, with increasing rows and columns (PDF pp.4-5). Equivalence forces exactly n occupied cells.
  • youngCoefficient: Every matrix entry of (2.5)-(2.8), including the positive square root, same-row +1 and same-column -1 cases (PDF p.5).
  • YoungModel: The named Young orthonormal representation, fixed independently of any input or accuracy (PDF pp.3-5). The defining generator equations are complete; no subgroup-average annihilation or multiplicity compression is assumed.
  • YoungFourierIndex: Full symmetric-group Fourier labels, with irrep coordinate before multiplicity coordinate; both are genuine SYTs (PDF p.10).
  • SymmetricModels: A fixed Young realization of every shape, not a transform chosen after an input vector or a requested precision (PDF pp.5,10).
  • symmetricFourier: The nonabelian QFT in those Young coordinates. Left multiplication acts on the first tableau coordinate; this fixes all conjugation conventions (PDF pp.3,10,14).
  • IsUnitaryBetween: Rectangular unitary/isometry equivalence in orthonormal coordinates. No accidental entrywise matrix norm is used (PDF pp.3,10).
  • applyMatrix: Rectangular action on L2 vectors (PDF p.10, (3.1)).
  • CompiledCircuit: Serial circuits in the frozen finite universal gate set H,S,T,X,CNOT. Each gate acts on named wires. There are no free oracle or group-operation instructions (PDF pp.2,10).
  • CompiledCircuit.run: Actual gate-by-gate circuit execution (PDF p.10).
  • CompiledCircuit.code: Finite binary serialization, including wire count and every gate/wire. The generating classical TM must output exactly this code (PDF pp.2,10).
  • CompiledCircuit.work: Execution length and serialized allocation/output cost, all tied to actual syntax rather than an arbitrary declared runtime (PDF pp.2,10).
  • requestCode: Public requests: unary n and precision bits t, binary d with a unary length prefix. Request length is O(n+t+1+log d) (PDF pp.2,10).
  • encodedVector: A fixed numerical basis encoding, padded with zeroes to the circuit's wire count. Injectivity at that width is required by Approximates (PDF p.10). Leading zeroes include all input-independent clean ancillary wires.
  • Approximates: Operator-norm error on the whole encoded input subspace, including ancilla leakage. No input-dependent global phase is discarded (3.1, p.10). The inequality includes every vector and is homogeneous, so zero is harmless.
  • permutationCode: Canonical base-(n+1) permutation encoding, retaining the numbered tensor positions of the symmetric tower (PDF pp.5,10).
  • tableauCode: Canonical label-to-cell serialization. Occupied cells determine the shape, so this code does not use an arbitrary enumeration of partitions or an uncomputed change of tableau basis (PDF pp.4-5).
  • symmetricCode: Both Fourier tableau labels are serialized without a basis rotation (PDF p.10). Nat.pair is an explicit arithmetic pairing function.
  • FourierData: A finite list of unitary irreps in fixed orthonormal coordinates (PDF pp.3,10-11). Completeness is imposed on the explicit Fourier matrix, not on an arbitrary block-diagonalizing map.
  • FourierIndex: Irrep, irrep-space index, multiplicity index (PDF pp.3,11).
  • groupFourier: Explicit group Fourier matrix with orthonormal normalization (PDF p.14, (3.7)-(3.9)). The chosen convention puts left action on the first index.
  • fourierAction: Computed block action in the full padded Fourier space (PDF pp.3,11).
  • LeftTransversal: A fixed left-coset transversal and the actual implemented relabelling (t,h) ↔ th, not an uncharged oracle (PDF pp.3,11).
  • inducedAction: The induced representation (2.2), gt=t' h, in transversal/irrep coordinates (PDF p.3). This is computed from sigma and the transversal.
  • inducedEmbedding: Steps 1 and 2 of §3.3: insert the fixed multiplicity coordinate u, apply F_H dagger, and perform the explicit relabelling |t,h>↦|th> (p.11). No choice depends on the input irrep vector v.
  • inducedFourier: Step 3: F_G after the padded embedding; no unsupported clean-register compression is hidden in this definition (PDF p.11).
  • PermutationType: A type represented by its uniquely sorted E0 word (PDF pp.9,11). Its counts are the source's t_i; zero counts are permitted.
  • ModuleWord: The permutation module's orthonormal word/coset coordinates (PDF pp.9,11). Different permutations of E0 give the same index exactly for the same coset.
  • youngSubgroup: Stabilizer Y_T of the sorted word, hence a product of symmetric groups on consecutive label-position blocks (PDF pp.9,11).
  • cosetEmbedding: Normalized coset-state embedding J_T; this includes the uniform subgroup ancilla |Y_T|^(-1/2), not the unnormalized subgroup sum of Lemma 2 (p.11).
  • qftPermMod: Exact action of the QFTPermMod circuit on its promised coset input: F_(S_n) J_T. Coherent right-Y_T GPE has the trivial label and leaves J_T unchanged; its clean trivial ancilla is implicit (PDF pp.13-14).
  • moduleAction: Actual permutation action on the module words (PDF pp.9,11).
  • youngFourierAction: Left symmetric action in the padded Fourier register (PDF pp.10,13).
  • moduleWordCode: Explicit base-(n+1) word and type encoding (PDF pp.9,13).
  • moduleRequest: Request for a permutation module. Unary entries of E0 add O(n^2) bits, so polynomial-time generation remains polynomial in n and t (p.13).
  • IsConsecutive: Contiguous sets of numbered labels, including empty and singleton sets (PDF p.15, Lemma 2). Source labels 1,...,n correspond to Fin n.
  • permutationsOn: S_A fixes every label outside A, and otherwise permits all permutations (PDF p.15). No arbitrary subgroup or subgroup invariance is assumed.
  • subgroupSum: Unnormalized group-algebra symmetrizer sum_(g in S_A) lambda(g), exactly the Lemma 2 convention, not (3.2)'s average (PDF p.15).
  • SemistandardTableau: Bounded-alphabet SSYTs, using the accepted row/column predicate (PDF pp.6-9). These fillings label physical U(d) factors.
  • alphabetMinor: First k alphabet coordinates are the fixed U(k) minor; all other coordinates are identity (PDF pp.5-8). k≤d is required by the caller.
  • gtPrefixCells: The actual subdiagram of boxes carrying letters below k, expressed as a finite set so no arbitrary GT path is substituted (PDF pp.5-8).
  • IsPhysicalGTBasis: Physical GT tower adaptation, not just SSYT names or weight labels. For every k, the named vector belongs to a copy of the actual polynomial U(k) module of its prefix shape, with an injective isometric intertwiner into the fixed physical Schur factor (PDF pp.5-9,17-19). Branching is multiplicity-free, so all these prefix conditions specify the GT line.
  • StrongIndex: Strong Schur output coordinates: shape, symmetric Young coordinate, and physical unitary GT coordinate (PDF pp.9,16).
  • StrongSchurFrame: Exact simultaneous strong Schur transform with actual polynomial factors and both intertwining identities, not arbitrary labels on a decomposition (PDF pp.5-9,16). All basis phases are fields fixed before precision.
  • strongMatrix: Matrix of the fixed exact frame, with no input-dependent phase quotient (PDF pp.9-10).
  • tensorWordCode: Fixed positional input encoding in the one-qudit alphabet (PDF pp.9,16).
  • strongCode: A reversible serialization of a Young/GT label, not a purported amplitude-changing SSYT compression (PDF pp.6,9,16). T determines the shape and orders its cells; entries of S are then serialized in base d.
Definition code
import Mathlib
import Definitions.Def_QAlgorithms_Defs_SchurWeylDecomposition
import Definitions.Def_QAlgorithms_Defs_Complexity
import Definitions.Def_QAlgorithms_Papers_Independent_Renew46_P26

/-!
Paper-local interfaces for Krovi, arXiv:1804.00055v2.
All indices are zero-based. The three source-ambiguous claims inventoried in
HARD.md are intentionally absent. No theorem below certifies DualSchur's
missing computational multiplicity-space rotation.
-/

noncomputable section

open scoped Matrix ComplexConjugate

namespace QAlgorithms.Papers.Independent.Extend50.P24

attribute [local instance] Classical.propDecidable

open QAlgorithms.Papers.Independent.Renew46.P26 (boxContent)

/-- Actual standard tableaux: label-to-cell bijections, with increasing rows
and columns (PDF pp.4-5). Equivalence forces exactly n occupied cells. -/
def StandardTableau (n : ℕ) (lambda : YoungDiagram) :=
  {p : Fin n ≃ lambda.cells // ∀ i j : Fin n,
    (((p i).val.1 = (p j).val.1 → (p i).val.2 < (p j).val.2 → i < j) ∧
     ((p i).val.2 = (p j).val.2 → (p i).val.1 < (p j).val.1 → i < j))}

/-- Enumerate the subtype of bijections between the finite label and cell sets. -/
instance standardTableauFintype (n : ℕ) (lambda : YoungDiagram) :
    Fintype (StandardTableau n lambda) := by
  classical
  unfold StandardTableau
  infer_instance

/-- Every matrix entry of (2.5)-(2.8), including the positive square root,
same-row +1 and same-column -1 cases (PDF p.5). -/
def youngCoefficient {n : ℕ} {lambda : YoungDiagram}
    (i j : Fin n) (T U : StandardTableau n lambda) : ℂ :=
  let a := (T.val i).val
  let b := (T.val j).val
  let r : ℝ := ((boxContent b - boxContent a : ℤ) : ℝ)
  if a.1 = b.1 then (if U = T then 1 else 0)
  else if a.2 = b.2 then (if U = T then -1 else 0)
  else if U = T then (r⁻¹ : ℝ)
  else if U.val = (Equiv.swap i j).trans T.val then
    (Real.sqrt (1 - r⁻¹ ^ 2) : ℝ)
  else 0

/-- The named Young orthonormal representation, fixed independently of any
input or accuracy (PDF pp.3-5). The defining generator equations are complete;
no subgroup-average annihilation or multiplicity compression is assumed. -/
structure YoungModel (n : ℕ) (lambda : YoungDiagram) where
  rho : Equiv.Perm (Fin n) →*
    Matrix (StandardTableau n lambda) (StandardTableau n lambda) ℂ
  unitary : ∀ g, rho g ∈ Matrix.unitaryGroup (StandardTableau n lambda) ℂ
  generators : ∀ (i j : Fin n), j.val = i.val + 1 → ∀ T U,
    rho (Equiv.swap i j) U T = youngCoefficient i j T U

/-- Full symmetric-group Fourier labels, with irrep coordinate before
multiplicity coordinate; both are genuine SYTs (PDF p.10). -/
abbrev YoungFourierIndex (n : ℕ) :=
  (lambda : QAlgorithms.Schur.Partition n n) ×
    (StandardTableau n lambda.val × StandardTableau n lambda.val)

/-- A fixed Young realization of every shape, not a transform chosen after
an input vector or a requested precision (PDF pp.5,10). -/
abbrev SymmetricModels (n : ℕ) :=
  (lambda : QAlgorithms.Schur.Partition n n) → YoungModel n lambda.val

/-- The nonabelian QFT in those Young coordinates. Left multiplication acts
on the first tableau coordinate; this fixes all conjugation conventions
(PDF pp.3,10,14). -/
def symmetricFourier {n : ℕ} (Y : SymmetricModels n) :
    Matrix (YoungFourierIndex n) (Equiv.Perm (Fin n)) ℂ :=
  fun z g =>
    (Real.sqrt ((Fintype.card (StandardTableau n z.1.val) : ℝ) /
      (Fintype.card (Equiv.Perm (Fin n)) : ℝ)) : ℂ) *
      (Y z.1).rho g z.2.1 z.2.2

/-- Rectangular unitary/isometry equivalence in orthonormal coordinates.
No accidental entrywise matrix norm is used (PDF pp.3,10). -/
def IsUnitaryBetween {alpha beta : Type*} [Fintype alpha] [Fintype beta]
    [DecidableEq alpha] [DecidableEq beta] (M : Matrix beta alpha ℂ) : Prop :=
  Mᴴ * M = 1 ∧ M * Mᴴ = 1

/-- Rectangular action on L2 vectors (PDF p.10, (3.1)). -/
def applyMatrix {alpha beta : Type*} [Fintype alpha]
    (M : Matrix beta alpha ℂ) (v : EuclideanSpace ℂ alpha) : EuclideanSpace ℂ beta :=
  WithLp.toLp 2 (M.mulVec (WithLp.ofLp v))

/-- Serial circuits in the frozen finite universal gate set H,S,T,X,CNOT.
Each gate acts on named wires. There are no free oracle or group-operation
instructions (PDF pp.2,10). -/
structure CompiledCircuit where
  wires : ℕ
  gates : List (QAlgorithms.Complexity.Instr wires)

/-- Actual gate-by-gate circuit execution (PDF p.10). -/
def CompiledCircuit.run (C : CompiledCircuit)
    (v : EuclideanSpace ℂ (QAlgorithms.Qubits C.wires)) :
    EuclideanSpace ℂ (QAlgorithms.Qubits C.wires) :=
  WithLp.toLp 2 (C.gates.foldl (fun w g => g.apply w) (WithLp.ofLp v))

/-- Finite binary serialization, including wire count and every gate/wire.
The generating classical TM must output exactly this code (PDF pp.2,10). -/
def CompiledCircuit.code (C : CompiledCircuit) : List Bool :=
  QAlgorithms.Complexity.encNat C.wires ++
    QAlgorithms.Complexity.encStr (C.gates.map QAlgorithms.Complexity.encInstr)

/-- Execution length and serialized allocation/output cost, all tied to
actual syntax rather than an arbitrary declared runtime (PDF pp.2,10). -/
def CompiledCircuit.work (C : CompiledCircuit) : ℕ :=
  C.wires + C.gates.length + C.code.length

/-- Public requests: unary n and precision bits t, binary d with a unary
length prefix. Request length is O(n+t+1+log d) (PDF pp.2,10). -/
def requestCode (n d t : ℕ) : List Bool :=
  let b := List.ofFn (QAlgorithms.natToBits (Nat.clog 2 (d + 1)) d)
  QAlgorithms.Complexity.encNat n ++ QAlgorithms.Complexity.encNat t ++
    QAlgorithms.Complexity.encNat b.length ++ b

/-- A fixed numerical basis encoding, padded with zeroes to the circuit's
wire count. Injectivity at that width is required by Approximates (PDF p.10).
Leading zeroes include all input-independent clean ancillary wires. -/
def encodedVector {alpha : Type*} [Fintype alpha]
    (code : alpha → ℕ) (q : ℕ) (v : EuclideanSpace ℂ alpha) :
    EuclideanSpace ℂ (QAlgorithms.Qubits q) :=
  ∑ x, v x • QAlgorithms.ket (QAlgorithms.natToBits q (code x))

/-- Operator-norm error on the whole encoded input subspace, including
ancilla leakage. No input-dependent global phase is discarded (3.1, p.10).
The inequality includes every vector and is homogeneous, so zero is harmless. -/
def Approximates {alpha beta : Type*} [Fintype alpha] [Fintype beta]
    (inputCode : alpha → ℕ) (outputCode : beta → ℕ)
    (M : Matrix beta alpha ℂ) (C : CompiledCircuit) (epsilon : ℝ) : Prop :=
  Function.Injective (fun x => QAlgorithms.natToBits C.wires (inputCode x)) ∧
  Function.Injective (fun y => QAlgorithms.natToBits C.wires (outputCode y)) ∧
  ∀ v : EuclideanSpace ℂ alpha,
    ‖C.run (encodedVector inputCode C.wires v) -
      encodedVector outputCode C.wires (applyMatrix M v)‖ ≤ epsilon * ‖v‖

/-- Canonical base-(n+1) permutation encoding, retaining the numbered tensor
positions of the symmetric tower (PDF pp.5,10). -/
def permutationCode {n : ℕ} (g : Equiv.Perm (Fin n)) : ℕ :=
  ∑ i : Fin n, (g i).val * (n + 1) ^ i.val

/-- Canonical label-to-cell serialization. Occupied cells determine the
shape, so this code does not use an arbitrary enumeration of partitions
or an uncomputed change of tableau basis (PDF pp.4-5). -/
def tableauCode {n : ℕ} {lambda : YoungDiagram}
    (T : StandardTableau n lambda) : ℕ :=
  ∑ i : Fin n,
    ((T.val i).val.1 * (n + 1) + (T.val i).val.2 + 1) *
      ((n + 1) ^ 2 + 1) ^ i.val

/-- Both Fourier tableau labels are serialized without a basis rotation
(PDF p.10). Nat.pair is an explicit arithmetic pairing function. -/
def symmetricCode {n : ℕ} (z : YoungFourierIndex n) : ℕ :=
  Nat.pair (tableauCode z.2.1) (tableauCode z.2.2)

/-- A finite list of unitary irreps in fixed orthonormal coordinates
(PDF pp.3,10-11). Completeness is imposed on the explicit Fourier matrix,
not on an arbitrary block-diagonalizing map. -/
structure FourierData (G : Type*) [Group G] [Fintype G] where
  labels : ℕ
  dimension : Fin labels → ℕ
  positive : ∀ l, 0 < dimension l
  rho : (l : Fin labels) → G →* Matrix (Fin (dimension l)) (Fin (dimension l)) ℂ
  unitary : ∀ l g, rho l g ∈ Matrix.unitaryGroup (Fin (dimension l)) ℂ
  irreducible : ∀ l (W : Submodule ℂ (EuclideanSpace ℂ (Fin (dimension l)))),
    (∀ g v, v ∈ W → QAlgorithms.act (rho l g) v ∈ W) → W = ⊥ ∨ W = ⊤

/-- Irrep, irrep-space index, multiplicity index (PDF pp.3,11). -/
abbrev FourierIndex {G : Type*} [Group G] [Fintype G] (D : FourierData G) :=
  (l : Fin D.labels) × (Fin (D.dimension l) × Fin (D.dimension l))

/-- Explicit group Fourier matrix with orthonormal normalization (PDF p.14,
(3.7)-(3.9)). The chosen convention puts left action on the first index. -/
def groupFourier {G : Type*} [Group G] [Fintype G] (D : FourierData G) :
    Matrix (FourierIndex D) G ℂ :=
  fun z g => (Real.sqrt ((D.dimension z.1 : ℝ) / Fintype.card G) : ℂ) *
    D.rho z.1 g z.2.1 z.2.2

/-- Computed block action in the full padded Fourier space (PDF pp.3,11). -/
def fourierAction {G : Type*} [Group G] [Fintype G]
    (D : FourierData G) (g : G) (v : EuclideanSpace ℂ (FourierIndex D)) :
    EuclideanSpace ℂ (FourierIndex D) :=
  WithLp.toLp 2 fun z => ∑ i : Fin (D.dimension z.1),
    D.rho z.1 g z.2.1 i * v ⟨z.1, (i, z.2.2)⟩

/-- A fixed left-coset transversal and the actual implemented relabelling
(t,h) ↔ th, not an uncharged oracle (PDF pp.3,11). -/
structure LeftTransversal {G : Type*} [Group G] (H : Subgroup G)
    (C : Type*) where
  representative : C → G
  coordinates : (C × H) ≃ G
  product : ∀ t h, coordinates (t,h) = representative t * (h : G)

/-- The induced representation (2.2), gt=t' h, in transversal/irrep
coordinates (PDF p.3). This is computed from sigma and the transversal. -/
def inducedAction {G C : Type*} [Group G] [Fintype G] [Fintype C]
    (H : Subgroup G) [Fintype H] (T : LeftTransversal H C)
    (D : FourierData H) (sigma : Fin D.labels) (g : G) :
    Matrix (C × Fin (D.dimension sigma)) (C × Fin (D.dimension sigma)) ℂ :=
  fun x y =>
    let p := T.coordinates.symm (g * T.representative y.1)
    if x.1 = p.1 then D.rho sigma p.2 x.2 y.2 else 0

/-- Steps 1 and 2 of §3.3: insert the fixed multiplicity coordinate u,
apply F_H dagger, and perform the explicit relabelling |t,h>↦|th> (p.11).
No choice depends on the input irrep vector v. -/
def inducedEmbedding {G C : Type*} [Group G] [Fintype G] [Fintype C]
    (H : Subgroup G) [Fintype H] (T : LeftTransversal H C)
    (D : FourierData H) (sigma : Fin D.labels) (u : Fin (D.dimension sigma)) :
    Matrix G (C × Fin (D.dimension sigma)) ℂ :=
  fun g x =>
    let p := T.coordinates.symm g
    if p.1 = x.1 then star ((groupFourier D) ⟨sigma,(x.2,u)⟩ p.2) else 0

/-- Step 3: F_G after the padded embedding; no unsupported clean-register
compression is hidden in this definition (PDF p.11). -/
def inducedFourier {G C : Type*} [Group G] [Fintype G] [Fintype C]
    (H : Subgroup G) [Fintype H] (T : LeftTransversal H C)
    (DG : FourierData G) (DH : FourierData H) (sigma : Fin DH.labels)
    (u : Fin (DH.dimension sigma)) :
    Matrix (FourierIndex DG) (C × Fin (DH.dimension sigma)) ℂ :=
  groupFourier DG * inducedEmbedding H T DH sigma u

/-- A type represented by its uniquely sorted E0 word (PDF pp.9,11).
Its counts are the source's t_i; zero counts are permitted. -/
def PermutationType (n : ℕ) := {e : Fin n → Fin n // Monotone e}

/-- The permutation module's orthonormal word/coset coordinates (PDF pp.9,11).
Different permutations of E0 give the same index exactly for the same coset. -/
def ModuleWord {n : ℕ} (T : PermutationType n) :=
  {w : Fin n → Fin n // ∃ g : Equiv.Perm (Fin n), T.val ∘ g.symm = w}

/-- Enumerate exactly the orbit-word subtype of the finite word space. -/
instance moduleWordFintype {n : ℕ} (T : PermutationType n) :
    Fintype (ModuleWord T) := by
  classical
  unfold ModuleWord
  infer_instance

/-- Stabilizer Y_T of the sorted word, hence a product of symmetric groups
on consecutive label-position blocks (PDF pp.9,11). -/
def youngSubgroup {n : ℕ} (T : PermutationType n) : Finset (Equiv.Perm (Fin n)) :=
  Finset.univ.filter fun g => T.val ∘ g.symm = T.val

/-- Normalized coset-state embedding J_T; this includes the uniform subgroup
ancilla |Y_T|^(-1/2), not the unnormalized subgroup sum of Lemma 2 (p.11). -/
def cosetEmbedding {n : ℕ} (T : PermutationType n) :
    Matrix (Equiv.Perm (Fin n)) (ModuleWord T) ℂ :=
  fun g w => if T.val ∘ g.symm = w.val then
    ((Real.sqrt ((youngSubgroup T).card : ℝ))⁻¹ : ℂ) else 0

/-- Exact action of the QFTPermMod circuit on its promised coset input:
F_(S_n) J_T. Coherent right-Y_T GPE has the trivial label and leaves J_T
unchanged; its clean trivial ancilla is implicit (PDF pp.13-14). -/
def qftPermMod {n : ℕ} (Y : SymmetricModels n) (T : PermutationType n) :
    Matrix (YoungFourierIndex n) (ModuleWord T) ℂ :=
  symmetricFourier Y * cosetEmbedding T

/-- Actual permutation action on the module words (PDF pp.9,11). -/
def moduleAction {n : ℕ} (T : PermutationType n) (g : Equiv.Perm (Fin n)) :
    Matrix (ModuleWord T) (ModuleWord T) ℂ :=
  fun x y => if x.val = y.val ∘ g.symm then 1 else 0

/-- Left symmetric action in the padded Fourier register (PDF pp.10,13). -/
def youngFourierAction {n : ℕ} (Y : SymmetricModels n) (g : Equiv.Perm (Fin n))
    (v : EuclideanSpace ℂ (YoungFourierIndex n)) : EuclideanSpace ℂ (YoungFourierIndex n) :=
  WithLp.toLp 2 fun z => ∑ U : StandardTableau n z.1.val,
    (Y z.1).rho g z.2.1 U * v ⟨z.1,(U,z.2.2)⟩

/-- Explicit base-(n+1) word and type encoding (PDF pp.9,13). -/
def moduleWordCode {n : ℕ} (w : Fin n → Fin n) : ℕ :=
  ∑ i : Fin n, (w i).val * (n + 1) ^ i.val

/-- Request for a permutation module. Unary entries of E0 add O(n^2)
bits, so polynomial-time generation remains polynomial in n and t (p.13). -/
def moduleRequest {n : ℕ} (T : PermutationType n) (t : ℕ) : List Bool :=
  requestCode n 1 t ++ QAlgorithms.Complexity.encStr
    ((List.ofFn T.val).map fun i => QAlgorithms.Complexity.encNat i.val)

/-- Contiguous sets of numbered labels, including empty and singleton sets
(PDF p.15, Lemma 2). Source labels 1,...,n correspond to Fin n. -/
def IsConsecutive {n : ℕ} (A : Finset (Fin n)) : Prop :=
  ∀ i ∈ A, ∀ j ∈ A, ∀ k : Fin n, i ≤ k → k ≤ j → k ∈ A

/-- S_A fixes every label outside A, and otherwise permits all permutations
(PDF p.15). No arbitrary subgroup or subgroup invariance is assumed. -/
def permutationsOn {n : ℕ} (A : Finset (Fin n)) : Finset (Equiv.Perm (Fin n)) :=
  Finset.univ.filter fun g => ∀ i : Fin n, i ∉ A → g i = i

/-- Unnormalized group-algebra symmetrizer sum_(g in S_A) lambda(g),
exactly the Lemma 2 convention, not (3.2)'s average (PDF p.15). -/
def subgroupSum {n : ℕ} {lambda : YoungDiagram}
    (Y : YoungModel n lambda) (A : Finset (Fin n)) :
    Matrix (StandardTableau n lambda) (StandardTableau n lambda) ℂ :=
  ∑ g ∈ permutationsOn A, Y.rho g

/-- Bounded-alphabet SSYTs, using the accepted row/column predicate
(PDF pp.6-9). These fillings label physical U(d) factors. -/
def SemistandardTableau {d n : ℕ} (lambda : QAlgorithms.Schur.Partition d n) :=
  {S : lambda.val.cells → Fin d // QAlgorithms.Schur.IsSemistandardFilling lambda S}

/-- Enumerate bounded-alphabet fillings satisfying the semistandard predicate. -/
instance semistandardTableauFintype {d n : ℕ} (lambda : QAlgorithms.Schur.Partition d n) :
    Fintype (SemistandardTableau lambda) := by
  classical
  unfold SemistandardTableau
  infer_instance

/-- First k alphabet coordinates are the fixed U(k) minor; all other
coordinates are identity (PDF pp.5-8). k≤d is required by the caller. -/
def alphabetMinor {d k : ℕ} (U : Matrix (Fin k) (Fin k) ℂ) :
    Matrix (Fin d) (Fin d) ℂ :=
  fun i j => if hi : i.val < k then
    if hj : j.val < k then U ⟨i.val,hi⟩ ⟨j.val,hj⟩ else 0
  else if j.val < k then 0 else if i = j then 1 else 0

/-- The actual subdiagram of boxes carrying letters below k, expressed as
a finite set so no arbitrary GT path is substituted (PDF pp.5-8). -/
def gtPrefixCells {d n : ℕ} {lambda : QAlgorithms.Schur.Partition d n}
    (S : SemistandardTableau lambda) (k : ℕ) : Finset (ℕ × ℕ) :=
  lambda.val.cells.filter fun c => ∃ h : c ∈ lambda.val.cells, (S.val ⟨c,h⟩).val < k

/-- Physical GT tower adaptation, not just SSYT names or weight labels.
For every k, the named vector belongs to a copy of the actual polynomial
U(k) module of its prefix shape, with an injective isometric intertwiner
into the fixed physical Schur factor (PDF pp.5-9,17-19). Branching is
multiplicity-free, so all these prefix conditions specify the GT line. -/
def IsPhysicalGTBasis {d n : ℕ} (lambda : QAlgorithms.Schur.Partition d n)
    (B : OrthonormalBasis (SemistandardTableau lambda) ℂ (QAlgorithms.Schur.schurModule lambda)) : Prop :=
  ∀ (S : SemistandardTableau lambda) k, 0 < k → k ≤ d →
    ∃ m : ℕ, ∃ mu : QAlgorithms.Schur.Partition k m,
      mu.val.cells = gtPrefixCells S k ∧
      ∃ e : QAlgorithms.Schur.schurModule mu →ₗᵢ[ℂ] QAlgorithms.Schur.schurModule lambda,
        B S ∈ Set.range e ∧
        ∀ (U : Matrix.unitaryGroup (Fin k) ℂ) v,
          e (QAlgorithms.Schur.polynomialRepresentation mu U.val v) =
            QAlgorithms.Schur.polynomialRepresentation lambda
              (alphabetMinor (d := d) (k := k) U.val) (e v)

/-- Strong Schur output coordinates: shape, symmetric Young coordinate,
and physical unitary GT coordinate (PDF pp.9,16). -/
abbrev StrongIndex (n d : ℕ) :=
  (lambda : QAlgorithms.Schur.Partition d n) ×
    (StandardTableau n lambda.val × SemistandardTableau lambda)

/-- Exact simultaneous strong Schur transform with actual polynomial factors
and both intertwining identities, not arbitrary labels on a decomposition
(PDF pp.5-9,16). All basis phases are fields fixed before precision. -/
structure StrongSchurFrame (n d : ℕ) where
  young : (lambda : QAlgorithms.Schur.Partition d n) → YoungModel n lambda.val
  unitaryBasis : (lambda : QAlgorithms.Schur.Partition d n) →
    OrthonormalBasis (SemistandardTableau lambda) ℂ (QAlgorithms.Schur.schurModule lambda)
  gt : ∀ lambda, IsPhysicalGTBasis lambda (unitaryBasis lambda)
  transform : EuclideanSpace ℂ (Fin n → Fin d) ≃ₗᵢ[ℂ] EuclideanSpace ℂ (StrongIndex n d)
  symmetricIntertwining : ∀ (g : Equiv.Perm (Fin n)) v (z : StrongIndex n d),
    transform (QAlgorithms.act (QAlgorithms.Schur.tensorPermutation d n g) v) z =
      ∑ T : StandardTableau n z.1.val,
        (young z.1).rho g z.2.1 T * transform v ⟨z.1,(T,z.2.2)⟩
  unitaryIntertwining : ∀ (U : Matrix.unitaryGroup (Fin d) ℂ) v (z : StrongIndex n d),
    transform (QAlgorithms.act (QAlgorithms.piKron n (U : Matrix _ _ ℂ)) v) z =
      ∑ S : SemistandardTableau z.1,
        inner ℂ (unitaryBasis z.1 z.2.2)
          (QAlgorithms.Schur.polynomialRepresentation z.1 (U : Matrix _ _ ℂ)
            (unitaryBasis z.1 S)) * transform v ⟨z.1,(z.2.1,S)⟩

/-- Matrix of the fixed exact frame, with no input-dependent phase quotient
(PDF pp.9-10). -/
def strongMatrix {n d : ℕ} (F : StrongSchurFrame n d) :
    Matrix (StrongIndex n d) (Fin n → Fin d) ℂ :=
  fun z w => F.transform (QAlgorithms.ket w) z

/-- Fixed positional input encoding in the one-qudit alphabet (PDF pp.9,16). -/
def tensorWordCode {n d : ℕ} (w : Fin n → Fin d) : ℕ :=
  ∑ i : Fin n, (w i).val * d ^ i.val

/-- A reversible serialization of a Young/GT label, not a purported
amplitude-changing SSYT compression (PDF pp.6,9,16). T determines the shape
and orders its cells; entries of S are then serialized in base d. -/
def strongCode {n d : ℕ} (z : StrongIndex n d) : ℕ :=
  Nat.pair (tableauCode z.2.1)
    (∑ i : Fin n, (z.2.2.val (z.2.1.val i)).val * d ^ i.val)

/-- Definition sanity examples; result proofs are intentionally absent. -/

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

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

example {n : ℕ} {lambda : YoungDiagram} (i j : Fin n)
    (T U : StandardTableau n lambda) (h : (T.val i).val.1 = (T.val j).val.1) :
    youngCoefficient i j T U = (if U = T then 1 else 0) := by
  simp [youngCoefficient,h]

example (q : ℕ) (v : EuclideanSpace ℂ (QAlgorithms.Qubits q)) :
    (CompiledCircuit.mk q []).run v = v := rfl

example {n : ℕ} (A : Finset (Fin n)) : (1 : Equiv.Perm (Fin n)) ∈ permutationsOn A := by
  simp [permutationsOn]

example {n : ℕ} (T : PermutationType n) : (1 : Equiv.Perm (Fin n)) ∈ youngSubgroup T := by
  apply Finset.mem_filter.mpr
  exact ⟨Finset.mem_univ _, by funext i; rfl⟩

example {G C : Type*} [Group G] [Fintype G] [Fintype C]
    (H : Subgroup G) [Fintype H] (T : LeftTransversal H C)
    (DG : FourierData G) (DH : FourierData H) (sigma : Fin DH.labels)
    (u : Fin (DH.dimension sigma)) :
    inducedFourier H T DG DH sigma u =
      groupFourier DG * inducedEmbedding H T DH sigma u := rfl

example {n : ℕ} (Y : SymmetricModels n) (T : PermutationType n) :
    qftPermMod Y T = symmetricFourier Y * cosetEmbedding T := rfl

example {d n : ℕ} {lambda : QAlgorithms.Schur.Partition d n}
    (S : SemistandardTableau lambda) : gtPrefixCells S 0 = ∅ := by
  ext c
  simp [gtPrefixCells]

example (d : ℕ) :
    alphabetMinor (d := d) (k := 0) (1 : Matrix (Fin 0) (Fin 0) ℂ) = 1 := by
  ext i j
  simp [alphabetMinor, Matrix.one_apply]

example {n d : ℕ} (F : StrongSchurFrame n d)
    (v : EuclideanSpace ℂ (Fin n → Fin d)) : ‖F.transform v‖ = ‖v‖ :=
  F.transform.norm_map v

end QAlgorithms.Papers.Independent.Extend50.P24
Source
An efficient high dimensional quantum Schur transform, arXiv:1804.00055v2, https://arxiv.org/abs/1804.00055v2
Read-back

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

QAlgorithms.Papers.Independent.Extend50.P24.Approximates

For any types α,β\alpha,\betaα,β equipped with finite enumerations, functions cin:α→Nc_{\mathrm{in}}:\alpha\to\mathbb Ncin​:α→N and cout:β→Nc_{\mathrm{out}}:\beta\to\mathbb Ncout​:β→N, complex matrix MMM with rows indexed by β\betaβ and columns by α\alphaα, compiled circuit CCC on www wires, and real number ϵ\epsilonϵ, the approximation predicate means that both maps x↦Bw(cin(x))x\mapsto B_w(c_{\mathrm{in}}(x))x↦Bw​(cin​(x)) and y↦Bw(cout(y))y\mapsto B_w(c_{\mathrm{out}}(y))y↦Bw​(cout​(y)) are injective and that

∀v∈Cα,∥UC ⁣(∑x∈αvxeBw(cin(x)))−∑y∈β(∑x∈αMy,xvx)eBw(cout(y))∥2≤ϵ∥v∥2.\forall v\in\mathbb C^\alpha,\qquad \left\|U_C\!\left(\sum_{x\in\alpha}v_xe_{B_w(c_{\mathrm{in}}(x))}\right) -\sum_{y\in\beta}\left(\sum_{x\in\alpha}M_{y,x}v_x\right)e_{B_w(c_{\mathrm{out}}(y))}\right\|_2 \le \epsilon\|v\|_2.∀v∈Cα,​UC​(x∈α∑​vx​eBw​(cin​(x))​)−y∈β∑​(x∈α∑​My,x​vx​)eBw​(cout​(y))​​2​≤ϵ∥v∥2​.

Here Bw(k)B_w(k)Bw​(k) is the most-significant-bit-first representation of k mod 2wk\bmod 2^wkmod2w, eze_zez​ is the coordinate basis vector at zzz, and UCU_CUC​ applies the circuit’s gate list in order. Its allowed instructions apply the single-qubit matrices H=2−1/2(111−1)H=2^{-1/2}\begin{pmatrix}1&1\\1&-1\end{pmatrix}H=2−1/2(11​1−1​), S=diag⁡(1,i)S=\operatorname{diag}(1,i)S=diag(1,i), T=diag⁡(1,eiπ/4)T=\operatorname{diag}(1,e^{i\pi/4})T=diag(1,eiπ/4), and X=(0110)X=\begin{pmatrix}0&1\\1&0\end{pmatrix}X=(01​10​), or controlled-NOT on distinct control and target wires, leaving other wires unchanged; an empty list acts as the identity. The inequality covers every vector, including zero and unnormalized vectors. Empty index types and w=0w=0w=0 are allowed; when w=0w=0w=0, each injectivity requirement permits at most one element in its respective index type. No sign assumption on ϵ\epsilonϵ is part of the definition; if α\alphaα is nonempty and ϵ<0\epsilon<0ϵ<0, the inequality cannot hold for a nonzero vvv.

QAlgorithms.Papers.Independent.Extend50.P24.CompiledCircuit.code

For every circuit CCC with a natural number qqq of wires and an ordered list of LLL instructions, this defines a finite Boolean string as follows. Let E(k)E(k)E(k) be kkk copies of true\mathrm{true}true followed by one false\mathrm{false}false. An instruction Hi,Si,TiH_i,S_i,T_iHi​,Si​,Ti​, or XiX_iXi​ is encoded respectively as E(0)E(i)E(0)E(i)E(0)E(i), E(1)E(i)E(1)E(i)E(1)E(i), E(2)E(i)E(2)E(i)E(2)E(i), or E(3)E(i)E(3)E(i)E(3)E(i), and a controlled-NOT instruction with distinct control iii and target jjj is encoded as E(4)E(i)E(j)E(4)E(i)E(j)E(4)E(i)E(j); wire indices are their natural-number values. Juxtaposition denotes concatenation. The circuit code is E(q)E(L)E(q)E(L)E(q)E(L) followed by these instruction encodings in list order. The condition that controlled-NOT wires are distinct contributes no additional bits. An empty list gives E(q)E(0)E(q)E(0)E(q)E(0); for zero wires this is the two-bit string (false,false)(\mathrm{false},\mathrm{false})(false,false).

QAlgorithms.Papers.Independent.Extend50.P24.CompiledCircuit

This defines a structure consisting of a natural number qqq of wires and a finite ordered list of instructions on those wires. Each instruction is either an HHH, SSS, TTT, or XXX instruction with one specified wire in {0,…,q−1}\{0,\ldots,q-1\}{0,…,q−1}, or a controlled-NOT instruction with specified control and target wires in that set together with a requirement that the two wires be distinct. The list may be empty, instructions may reuse wires, and no depth or size bound is part of the structure. The value q=0q=0q=0 is allowed; in that case there are no available instructions, so the list must be empty.

QAlgorithms.Papers.Independent.Extend50.P24.CompiledCircuit.run

For every circuit CCC consisting of a natural number qqq of wires and an ordered list of H,S,T,XH,S,T,XH,S,T,X, and controlled-NOT instructions on those wires, and every complex vector vvv indexed by bit strings x:{0,…,q−1}→{false,true}x:\{0,\ldots,q-1\}\to\{\mathrm{false},\mathrm{true}\}x:{0,…,q−1}→{false,true}, this defines the resulting vector by applying the instructions successively in list order. A one-wire instruction on wire iii replaces the current amplitude function ψ\psiψ by

ψ′(x)=∑b∈{false,true}Gxi,b ψ(x[i←b]),\psi'(x)=\sum_{b\in\{\mathrm{false},\mathrm{true}\}} G_{x_i,b}\,\psi(x[i\leftarrow b]),ψ′(x)=b∈{false,true}∑​Gxi​,b​ψ(x[i←b]),

where, in the order false,true\mathrm{false},\mathrm{true}false,true,

H=12(111−1),S=(100i),T=(100eiπ/4),X=(0110).H=\frac1{\sqrt2}\begin{pmatrix}1&1\\1&-1\end{pmatrix}, \qquad S=\begin{pmatrix}1&0\\0&\mathrm i\end{pmatrix}, \qquad T=\begin{pmatrix}1&0\\0&e^{\mathrm i\pi/4}\end{pmatrix}, \qquad X=\begin{pmatrix}0&1\\1&0\end{pmatrix}.H=2​1​(11​1−1​),S=(10​0i​),T=(10​0eiπ/4​),X=(01​10​).

A controlled-NOT instruction with distinct control iii and target jjj replaces ψ\psiψ by ψ′(x)=ψ(x[j←xj⊕xi])\psi'(x)=\psi(x[j\leftarrow x_j\mathbin{\oplus}x_i])ψ′(x)=ψ(x[j←xj​⊕xi​]), where ⊕\oplus⊕ is Boolean exclusive-or. The resulting amplitude function is returned in the Euclidean-space representation. No normalization hypothesis is imposed on vvv. An empty instruction list returns vvv, including when q=0q=0q=0.

QAlgorithms.Papers.Independent.Extend50.P24.CompiledCircuit.work

For a compiled circuit CCC, consisting of a natural number www of wires and a finite ordered list of LLL gates, its work is the natural number

work⁡(C)=w+L+∣code⁡(C)∣.\operatorname{work}(C)=w+L+|\operatorname{code}(C)|.work(C)=w+L+∣code(C)∣.

Here the code is the concatenation 1w0 1L0 E(g1)⋯E(gL)1^w0\,1^L0\,E(g_1)\cdots E(g_L)1w01L0E(g1​)⋯E(gL​), where 1k01^k01k0 means kkk true bits followed by one false bit. The instruction encodings are E(Hi)=100 1i0E(H_i)=1^00\,1^i0E(Hi​)=1001i0, E(Si)=110 1i0E(S_i)=1^10\,1^i0E(Si​)=1101i0, E(Ti)=120 1i0E(T_i)=1^20\,1^i0E(Ti​)=1201i0, E(Xi)=130 1i0E(X_i)=1^30\,1^i0E(Xi​)=1301i0, and E(CNOTi,j)=140 1i0 1j0E(\mathrm{CNOT}_{i,j})=1^40\,1^i0\,1^j0E(CNOTi,j​)=1401i01j0; wire indices lie between 000 and w−1w-1w−1, and a controlled-NOT instruction requires i≠ji\ne ji=j. The definition includes w=0w=0w=0 and empty gate lists; in particular, with no wires and no gates the code has two bits and the work is 222.

QAlgorithms.Papers.Independent.Extend50.P24.FourierData

For a type GGG equipped with a group structure and a finite enumeration, Fourier data consist of a natural number LLL of labels, a natural-number dimension dℓd_\elldℓ​ for each 0≤ℓ<L0\le\ell<L0≤ℓ<L, proofs that every dℓ>0d_\ell>0dℓ​>0, and maps ρℓ:G→Mat⁡dℓ(C)\rho_\ell:G\to\operatorname{Mat}_{d_\ell}(\mathbb C)ρℓ​:G→Matdℓ​​(C) preserving multiplication and identity. Every matrix ρℓ(g)\rho_\ell(g)ρℓ​(g) must be unitary. For each label ℓ\ellℓ, every complex-linear subspace W⊆CdℓW\subseteq\mathbb C^{d_\ell}W⊆Cdℓ​ satisfying

∀g∈G  ∀v∈W,ρℓ(g)v∈W\forall g\in G\;\forall v\in W,\qquad \rho_\ell(g)v\in W∀g∈G∀v∈W,ρℓ​(g)v∈W

must be either the zero subspace or the whole space. The label count L=0L=0L=0 is permitted, in which case all requirements indexed by a label are vacuous; the record imposes no requirement that different labels give inequivalent representations or that every irreducible representation occur.

QAlgorithms.Papers.Independent.Extend50.P24.FourierIndex

For any type GGG equipped with a group structure and a finite enumeration, and Fourier data DDD consisting of LLL labels, positive dimensions dℓd_\elldℓ​, and multiplicative, identity-preserving unitary representations ρℓ\rho_\ellρℓ​ on Cdℓ\mathbb C^{d_\ell}Cdℓ​ whose invariant complex-linear subspaces are only zero and the whole space, the Fourier index type is the set of triples

{(ℓ,a,b):0≤ℓ<L, 0≤a<dℓ, 0≤b<dℓ}.\{(\ell,a,b):0\le\ell<L,\ 0\le a<d_\ell,\ 0\le b<d_\ell\}.{(ℓ,a,b):0≤ℓ<L, 0≤a<dℓ​, 0≤b<dℓ​}.

The two coordinate ranges depend on the selected label. If L=0L=0L=0, this index type is empty.

QAlgorithms.Papers.Independent.Extend50.P24.IsConsecutive

For every natural number nnn and every finite subset A⊆{0,…,n−1}A\subseteq\{0,\ldots,n-1\}A⊆{0,…,n−1}, this predicate means that for every i,j∈Ai,j\in Ai,j∈A and every k∈{0,…,n−1}k\in\{0,\ldots,n-1\}k∈{0,…,n−1}, if i≤k≤ji\le k\le ji≤k≤j, then k∈Ak\in Ak∈A. Thus every position between two elements of AAA belongs to AAA. The empty set and every singleton satisfy the predicate, including the empty set when n=0n=0n=0.

QAlgorithms.Papers.Independent.Extend50.P24.IsPhysicalGTBasis

For natural numbers d,nd,nd,n, including zero, let λ\lambdaλ be a Young diagram with nnn boxes and at most ddd rows, and let BBB be an orthonormal basis of the complex space HλH_\lambdaHλ​, indexed by fillings of λ\lambdaλ with entries in {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1} that increase weakly along rows and strictly down columns. Here HνH_\nuHν​, for any diagram ν\nuν with qqq boxes and at most aaa rows, is defined inside C{0,…,a−1}q\mathbb C^{\{0,\ldots,a-1\}^{q}}C{0,…,a−1}q as the range of

Yν=∑r∈Rν∑c∈Cνsgn⁡(c)Prc,(Pg)y,x={1y=x∘g−1,0otherwise,Y_\nu=\sum_{r\in R_\nu}\sum_{c\in C_\nu}\operatorname{sgn}(c)P_{rc}, \qquad (P_g)_{y,x}=\begin{cases}1&y=x\circ g^{-1},\\0&\text{otherwise},\end{cases}Yν​=r∈Rν​∑​c∈Cν​∑​sgn(c)Prc​,(Pg​)y,x​={10​y=x∘g−1,otherwise,​

where the definition chooses a fixed bijection between the boxes of ν\nuν and {0,…,q−1}\{0,\ldots,q-1\}{0,…,q−1}, and Rν,CνR_\nu,C_\nuRν​,Cν​ are the permutations preserving, respectively, each numbered box’s row and column. Write Cν(A)C_\nu(A)Cν​(A) for the operator on HνH_\nuHν​ obtained by applying the matrix with entries ∏j=0q−1Axj,yj\prod_{j=0}^{q-1}A_{x_j,y_j}∏j=0q−1​Axj​,yj​​ and then orthogonally projecting back onto HνH_\nuHν​. The property being defined says that for every indexing filling SSS and every natural number kkk with 0<k≤d0<k\le d0<k≤d, there exist a natural number mmm, a Young diagram μ\muμ with mmm boxes and at most kkk rows, and a complex linear isometric embedding e:Hμ→Hλe:H_\mu\to H_\lambdae:Hμ​→Hλ​, such that the boxes of μ\muμ are exactly the boxes of λ\lambdaλ whose SSS-entry is less than kkk, the basis vector BSB_SBS​ belongs to the image of eee, and

e(Cμ(U)v)=Cλ(U⊕Id−k)e(v)e\bigl(C_\mu(U)v\bigr)=C_\lambda\bigl(U\oplus I_{d-k}\bigr)e(v)e(Cμ​(U)v)=Cλ​(U⊕Id−k​)e(v)

for every unitary k×kk\times kk×k complex matrix UUU and every v∈Hμv\in H_\muv∈Hμ​. There is no condition at k=0k=0k=0; if d=0d=0d=0, the quantified condition on kkk is vacuous, and empty diagrams and empty products are permitted.

QAlgorithms.Papers.Independent.Extend50.P24.IsUnitaryBetween

For arbitrary finite types α\alphaα and β\betaβ, each equipped with a finite enumeration and decidable equality, and every complex matrix MMM with rows indexed by β\betaβ and columns indexed by α\alphaα, this defines the proposition

M∗M=IαandMM∗=Iβ,M^*M=I_\alpha \quad\text{and}\quad MM^*=I_\beta,M∗M=Iα​andMM∗=Iβ​,

where ∗*∗ denotes conjugate transpose and the identities have the indicated index sets. Empty index sets are allowed: if both are empty the equations hold, while if exactly one is empty they cannot both hold.

QAlgorithms.Papers.Independent.Extend50.P24.LeftTransversal

For any group GGG, subgroup H≤GH\le GH≤G, and type CCC, a left transversal consists of a function r:C→Gr:C\to Gr:C→G and a bijection θ:C×H→G\theta:C\times H\to Gθ:C×H→G such that θ(c,h)=r(c)h\theta(c,h)=r(c)hθ(c,h)=r(c)h for every c∈Cc\in Cc∈C and h∈Hh\in Hh∈H, where hhh is regarded as an element of GGG. Thus every element of GGG has a unique expression r(c)hr(c)hr(c)h. Neither finiteness nor any ordering of these types is required; the bijection forces CCC to be nonempty.

QAlgorithms.Papers.Independent.Extend50.P24.ModuleWord

For every natural number nnn and every nondecreasing function T:{0,…,n−1}→{0,…,n−1}T:\{0,\ldots,n-1\}\to\{0,\ldots,n-1\}T:{0,…,n−1}→{0,…,n−1}, a module word is a function w:{0,…,n−1}→{0,…,n−1}w:\{0,\ldots,n-1\}\to\{0,\ldots,n-1\}w:{0,…,n−1}→{0,…,n−1} for which there exists a permutation ggg of {0,…,n−1}\{0,\ldots,n-1\}{0,…,n−1} such that w(i)=T(g−1(i))w(i)=T(g^{-1}(i))w(i)=T(g−1(i)) for every iii. A module word records the function www together with this existence condition, without choosing a witnessing permutation. For n=0n=0n=0, there is exactly one module word, the empty function.

QAlgorithms.Papers.Independent.Extend50.P24.PermutationType

For every natural number nnn, a permutation type is a function e:{0,…,n−1}→{0,…,n−1}e:\{0,\ldots,n-1\}\to\{0,\ldots,n-1\}e:{0,…,n−1}→{0,…,n−1} satisfying e(i)≤e(j)e(i)\le e(j)e(i)≤e(j) whenever i≤ji\le ji≤j. No injectivity or surjectivity condition is imposed. The definition includes n=0n=0n=0, when the unique empty function satisfies this condition.

QAlgorithms.Papers.Independent.Extend50.P24.SemistandardTableau

For every pair of natural numbers d,nd,nd,n and every Young diagram λ\lambdaλ with exactly nnn cells and first-column length at most ddd, this definition is the type of functions SSS from the cells of λ\lambdaλ to {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1} satisfying both conditions for every pair of cells a,ba,ba,b: if a,ba,ba,b have the same row and the column of aaa is smaller, then S(a)≤S(b)S(a)\le S(b)S(a)≤S(b); if they have the same column and the row of aaa is smaller, then S(a)<S(b)S(a)<S(b)S(a)<S(b). Thus entries are weakly increasing along rows and strictly increasing down columns. For n=0n=0n=0, there is exactly one such filling, the empty function, including when d=0d=0d=0; for d=0d=0d=0 and n>0n>0n>0, no diagram satisfying the stated first-column bound exists.

QAlgorithms.Papers.Independent.Extend50.P24.StandardTableau

For every natural number nnn and Young diagram λ\lambdaλ, this defines the type of bijections p:{0,…,n−1}→λp:\{0,\ldots,n-1\}\to\lambdap:{0,…,n−1}→λ onto the cells of λ\lambdaλ satisfying the following conditions for all labels i,ji,ji,j: if p(i)p(i)p(i) and p(j)p(j)p(j) have the same row coordinate and the column coordinate of p(i)p(i)p(i) is smaller, then i<ji<ji<j; if they have the same column coordinate and the row coordinate of p(i)p(i)p(i) is smaller, then i<ji<ji<j. Thus labels increase along rows and columns in the directions of increasing coordinates. The type is empty unless λ\lambdaλ has exactly nnn cells. For n=0n=0n=0, it has one element when λ\lambdaλ is empty and no elements otherwise.

QAlgorithms.Papers.Independent.Extend50.P24.StrongIndex

For any natural numbers n,dn,dn,d, the index type consists of triples (λ,T,S)(\lambda,T,S)(λ,T,S), where λ\lambdaλ is a Young diagram with exactly nnn boxes and at most ddd rows; TTT is a bijection from {0,…,n−1}\{0,\ldots,n-1\}{0,…,n−1} to the boxes of λ\lambdaλ such that boxes in the same row occur in increasing label order from left to right and boxes in the same column occur in increasing label order from top to bottom; and SSS assigns an element of {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1} to each box, weakly increasing along rows and strictly increasing down columns. Thus TTT records the box occupied by each label, whereas SSS records an alphabet entry in each box. Zero values are allowed: for n=0n=0n=0 the empty diagram and the two empty tableaux give one index, including when d=0d=0d=0; for n>0,d=0n>0,d=0n>0,d=0, there are no indices.

QAlgorithms.Papers.Independent.Extend50.P24.StrongSchurFrame

For natural numbers n,dn,dn,d, a frame is the following collection of data and properties. Its indices are triples (λ,T,S)(\lambda,T,S)(λ,T,S), where λ\lambdaλ is an nnn-box Young diagram with at most ddd rows, TTT bijectively places labels 0,…,n−10,\ldots,n-10,…,n−1 in its boxes in increasing order along rows and down columns, and SSS fills its boxes with entries 0,…,d−10,\ldots,d-10,…,d−1, weakly increasing along rows and strictly increasing down columns. For each λ\lambdaλ, the frame supplies a group homomorphism ρλ\rho_\lambdaρλ​ from the permutations of {0,…,n−1}\{0,\ldots,n-1\}{0,…,n−1} to unitary complex matrices indexed by such standard tableaux. Its adjacent-transposition entries are prescribed as follows: for si=(i i+1)s_i=(i\ i+1)si​=(i i+1), standard tableaux T,QT,QT,Q, boxes a=T(i)a=T(i)a=T(i), b=T(i+1)b=T(i+1)b=T(i+1), and the real integer r=(bcolumn−brow)−(acolumn−arow)r=(b_{\mathrm{column}}-b_{\mathrm{row}})-(a_{\mathrm{column}}-a_{\mathrm{row}})r=(bcolumn​−brow​)−(acolumn​−arow​),

ρλ(si)Q,T={δQ,Ta,b have the same row,−δQ,Totherwise, if a,b have the same column,r−1otherwise, if Q=T,1−(r−1)2otherwise, if Q=T∘si,0otherwise.\rho_\lambda(s_i)_{Q,T}= \begin{cases} \delta_{Q,T}&a,b\text{ have the same row},\\ -\delta_{Q,T}&\text{otherwise, if }a,b\text{ have the same column},\\ r^{-1}&\text{otherwise, if }Q=T,\\ \sqrt{1-(r^{-1})^2}&\text{otherwise, if }Q=T\circ s_i,\\ 0&\text{otherwise}. \end{cases}ρλ​(si​)Q,T​=⎩⎨⎧​δQ,T​−δQ,T​r−11−(r−1)2​0​a,b have the same row,otherwise, if a,b have the same column,otherwise, if Q=T,otherwise, if Q=T∘si​,otherwise.​

The real entries in this formula are regarded as complex numbers; inverse and real square root are total, with 0−1=00^{-1}=00−1=0 and the square root of a negative real equal to zero. To describe the remaining data, for any diagram ν\nuν with qqq boxes and at most aaa rows, use the fixed box numbering chosen in the definition, let Rν,CνR_\nu,C_\nuRν​,Cν​ be the permutations preserving each numbered box’s row and column, and set Hν=range⁡(∑r∈Rν,c∈Cνsgn⁡(c)Prc)H_\nu=\operatorname{range}(\sum_{r\in R_\nu,c\in C_\nu}\operatorname{sgn}(c)P_{rc})Hν​=range(∑r∈Rν​,c∈Cν​​sgn(c)Prc​) inside C{0,…,a−1}q\mathbb C^{\{0,\ldots,a-1\}^{q}}C{0,…,a−1}q, where (Pg)y,x(P_g)_{y,x}(Pg​)y,x​ is 111 when y=x∘g−1y=x\circ g^{-1}y=x∘g−1 and 000 otherwise. Let Cν(A)C_\nu(A)Cν​(A) be the restriction to HνH_\nuHν​ of A⊗qA^{\otimes q}A⊗q followed by orthogonal projection onto HνH_\nuHν​, with (A⊗q)x,y=∏jAxj,yj(A^{\otimes q})_{x,y}=\prod_j A_{x_j,y_j}(A⊗q)x,y​=∏j​Axj​,yj​​. The frame supplies an orthonormal basis BλB^\lambdaBλ of HλH_\lambdaHλ​ indexed by the fillings SSS. For every such SSS and every natural kkk with 0<k≤d0<k\le d0<k≤d, it requires a natural mmm, an mmm-box diagram μ\muμ with at most kkk rows whose boxes are exactly those with SSS-entry less than kkk, and a complex linear isometric embedding e:Hμ→Hλe:H_\mu\to H_\lambdae:Hμ​→Hλ​ such that BSλ∈range⁡(e)B^\lambda_S\in\operatorname{range}(e)BSλ​∈range(e) and e(Cμ(U)v)=Cλ(U⊕Id−k)e(v)e(C_\mu(U)v)=C_\lambda(U\oplus I_{d-k})e(v)e(Cμ​(U)v)=Cλ​(U⊕Id−k​)e(v) for all unitary k×kk\times kk×k matrices UUU and all v∈Hμv\in H_\muv∈Hμ​. Finally, the frame supplies a surjective complex linear isometry

F:C{0,…,d−1}n⟶C{(λ,T,S)},F:\mathbb C^{\{0,\ldots,d-1\}^{n}}\longrightarrow \mathbb C^{\{(\lambda,T,S)\}},F:C{0,…,d−1}n⟶C{(λ,T,S)},

satisfying, for every permutation ggg, every input vector vvv, and every index (λ,T,S)(\lambda,T,S)(λ,T,S),

F(Pgv)λ,T,S=∑Qρλ(g)T,QF(v)λ,Q,S,F(P_gv)_{\lambda,T,S} =\sum_Q\rho_\lambda(g)_{T,Q}F(v)_{\lambda,Q,S},F(Pg​v)λ,T,S​=Q∑​ρλ​(g)T,Q​F(v)λ,Q,S​,

and, for every unitary d×dd\times dd×d matrix UUU, every vvv, and every such index,

F(U⊗nv)λ,T,S=∑R⟨BSλ,Cλ(U)BRλ⟩F(v)λ,T,R,F(U^{\otimes n}v)_{\lambda,T,S} =\sum_R \left\langle B^\lambda_S,C_\lambda(U)B^\lambda_R\right\rangle F(v)_{\lambda,T,R},F(U⊗nv)λ,T,S​=R∑​⟨BSλ​,Cλ​(U)BRλ​⟩F(v)λ,T,R​,

where QQQ runs over all standard tableaux and RRR over all the specified semistandard fillings of λ\lambdaλ, and the inner product is conjugate linear in its first argument. No positivity assumption on n,dn,dn,d is imposed; empty products equal the identity, adjacent-transposition conditions are vacuous for n<2n<2n<2, and the conditions involving kkk are vacuous for d=0d=0d=0.

QAlgorithms.Papers.Independent.Extend50.P24.SymmetricModels

For every natural number nnn, this abbreviates the type of assignments that choose, for each Young diagram λ\lambdaλ with nnn cells and first-column length at most nnn, an identity-preserving multiplicative map ρλ:Sn→Mat⁡Tλ×Tλ(C)\rho_\lambda:S_n\to\operatorname{Mat}_{\mathcal T_\lambda\times\mathcal T_\lambda}(\mathbb C)ρλ​:Sn​→MatTλ​×Tλ​​(C) together with the following requirements, where Tλ\mathcal T_\lambdaTλ​ consists of bijections from the labels 0,…,n−10,\ldots,n-10,…,n−1 onto λ\lambdaλ whose labels increase along rows and columns. Every ρλ(g)\rho_\lambda(g)ρλ​(g) is unitary. For adjacent labels j=i+1j=i+1j=i+1 and tableaux T,UT,UT,U, write a=T(i)a=T(i)a=T(i), b=T(j)b=T(j)b=T(j) and r=(b2−b1)−(a2−a1)∈Rr=(b_2-b_1)-(a_2-a_1)\in\mathbb Rr=(b2​−b1​)−(a2​−a1​)∈R, using integer coordinate differences. The entry ρλ((i j))U,T\rho_\lambda((i\,j))_{U,T}ρλ​((ij))U,T​ equals 1U=T\mathbf 1_{U=T}1U=T​ when the two cells share a row; otherwise −1U=T-\mathbf 1_{U=T}−1U=T​ when they share a column; otherwise r−1r^{-1}r−1 when U=TU=TU=T; otherwise 1−(r−1)2\sqrt{1-(r^{-1})^2}1−(r−1)2​ when U=T∘(i j)U=T\circ(i\,j)U=T∘(ij); and zero otherwise. The symbol 1P\mathbf 1_P1P​ denotes the indicator of PPP, inverse at zero is zero, and the real square root of a negative number is zero. These assignments have no additional compatibility requirement between different diagrams. The definition includes n=0n=0n=0, when the sole diagram is empty and there are no adjacent labels.

QAlgorithms.Papers.Independent.Extend50.P24.YoungFourierIndex

For every natural number nnn, this abbreviates the type of triples (λ,T,U)(\lambda,T,U)(λ,T,U), where λ\lambdaλ is a Young diagram with exactly nnn cells and with first-column length at most nnn, and T,UT,UT,U are independently chosen bijections from {0,…,n−1}\{0,\ldots,n-1\}{0,…,n−1} onto its cells whose labels increase along rows and columns. Both tableaux use the same diagram. For n=0n=0n=0, the diagram is empty and both bijections are the unique empty bijection, so this index type has one element.

QAlgorithms.Papers.Independent.Extend50.P24.YoungModel

For every natural number nnn and Young diagram λ\lambdaλ, let T\mathcal TT be the set of bijections from {0,…,n−1}\{0,\ldots,n-1\}{0,…,n−1} onto the cells of λ\lambdaλ whose labels increase along rows and columns. This defines a structure consisting of an identity-preserving multiplicative map ρ:Sn→Mat⁡T×T(C)\rho:S_n\to\operatorname{Mat}_{\mathcal T\times\mathcal T}(\mathbb C)ρ:Sn​→MatT×T​(C), a requirement that ρ(g)∗ρ(g)=ρ(g)ρ(g)∗=I\rho(g)^*\rho(g)=\rho(g)\rho(g)^*=Iρ(g)∗ρ(g)=ρ(g)ρ(g)∗=I for every permutation ggg, and the following prescribed entries for adjacent transpositions. For every i,ji,ji,j with j=i+1j=i+1j=i+1 and every T,U∈TT,U\in\mathcal TT,U∈T, set a=T(i)a=T(i)a=T(i), b=T(j)b=T(j)b=T(j), and r=(b2−b1)−(a2−a1)∈Rr=(b_2-b_1)-(a_2-a_1)\in\mathbb Rr=(b2​−b1​)−(a2​−a1​)∈R, where differences are computed in the integers. The entry ρ((i j))U,T\rho((i\,j))_{U,T}ρ((ij))U,T​ is 1U=T\mathbf 1_{U=T}1U=T​ if a,ba,ba,b share a row; otherwise it is −1U=T-\mathbf 1_{U=T}−1U=T​ if they share a column; otherwise it is r−1r^{-1}r−1 if U=TU=TU=T, 1−(r−1)2\sqrt{1-(r^{-1})^2}1−(r−1)2​ if U≠TU\ne TU=T and U=T∘(i j)U=T\circ(i\,j)U=T∘(ij), and zero otherwise. Here ∗*∗ is conjugate transpose, 1P\mathbf 1_P1P​ is 111 when PPP holds and 000 otherwise, inverse at zero is zero, and the real square root of a negative number is zero. No nonemptiness condition is imposed on T\mathcal TT: when it is empty, the matrices have zero rows and columns and the entry conditions are vacuous. For n=0n=0n=0 or n=1n=1n=1, there are no adjacent-transposition conditions.

QAlgorithms.Papers.Independent.Extend50.P24.alphabetMinor

For every pair of natural numbers d,kd,kd,k and every complex k×kk\times kk×k matrix UUU, this definition produces the complex d×dd\times dd×d matrix VVV whose entries, indexed by 0≤i,j<d0\le i,j<d0≤i,j<d, are

Vij={Uij,i<k and j<k,0,i<k≤j or j<k≤i,1,i,j≥k and i=j,0,i,j≥k and i≠j.V_{ij}= \begin{cases} U_{ij},&i<k\text{ and }j<k,\\ 0,&i<k\le j\text{ or }j<k\le i,\\ 1,&i,j\ge k\text{ and }i=j,\\ 0,&i,j\ge k\text{ and }i\ne j. \end{cases}Vij​=⎩⎨⎧​Uij​,0,1,0,​i<k and j<k,i<k≤j or j<k≤i,i,j≥k and i=j,i,j≥k and i=j.​

There is no assumption that k≤dk\le dk≤d or that UUU is unitary. If k≤dk\le dk≤d, the result is UUU followed by an identity block; if k>dk>dk>d, it is the restriction of UUU to its first ddd rows and columns. For k=0k=0k=0, it is the d×dd\times dd×d identity, and for d=0d=0d=0, it is the empty matrix.

QAlgorithms.Papers.Independent.Extend50.P24.applyMatrix

For arbitrary types α,β\alpha,\betaα,β, with a finite enumeration of α\alphaα, every complex matrix MMM with rows indexed by β\betaβ and columns indexed by α\alphaα, and every vector v∈Cαv\in\mathbb C^\alphav∈Cα equipped with the Euclidean-space representation, this defines the vector in the corresponding representation of Cβ\mathbb C^\betaCβ whose coordinate at b∈βb\in\betab∈β is

(Mv)b=∑a∈αMb,ava.(Mv)_b=\sum_{a\in\alpha}M_{b,a}v_a.(Mv)b​=a∈α∑​Mb,a​va​.

No finiteness or decidable-equality assumption is imposed on β\betaβ, and no normalization assumption is imposed on vvv. If α\alphaα is empty, every output coordinate is zero.

QAlgorithms.Papers.Independent.Extend50.P24.cosetEmbedding

For every natural number nnn and every nondecreasing function T:{0,…,n−1}→{0,…,n−1}T:\{0,\ldots,n-1\}\to\{0,\ldots,n-1\}T:{0,…,n−1}→{0,…,n−1}, let WTW_TWT​ be the set of functions w=T∘h−1w=T\circ h^{-1}w=T∘h−1 for some permutation h∈Snh\in S_nh∈Sn​, and let KT={h∈Sn:T∘h−1=T}K_T=\{h\in S_n:T\circ h^{-1}=T\}KT​={h∈Sn​:T∘h−1=T}. The definition gives a complex matrix ETE_TET​, with rows indexed by SnS_nSn​ and columns indexed by WTW_TWT​, whose entries are

(ET)g,w={(∣KT∣)−1,T∘g−1=w,0,T∘g−1≠w.(E_T)_{g,w} = \begin{cases} (\sqrt{|K_T|})^{-1},&T\circ g^{-1}=w,\\ 0,&T\circ g^{-1}\ne w. \end{cases}(ET​)g,w​={(∣KT​∣​)−1,0,​T∘g−1=w,T∘g−1=w.​

The nonzero value is a real number embedded in C\mathbb CC; its denominator is nonzero because the identity belongs to KTK_TKT​. For n=0n=0n=0, this is the one-by-one matrix with entry 111.

QAlgorithms.Papers.Independent.Extend50.P24.encodedVector

For any type α\alphaα equipped with a finite enumeration, any function c:α→Nc:\alpha\to\mathbb Nc:α→N, any natural number qqq, and any vector v∈Cαv\in\mathbb C^\alphav∈Cα with its Euclidean norm, the encoded vector in the Euclidean space indexed by qqq-bit strings is

Ec,q(v)=∑x∈αvx eBq(c(x)).E_{c,q}(v)=\sum_{x\in\alpha}v_x\,e_{B_q(c(x))}.Ec,q​(v)=x∈α∑​vx​eBq​(c(x))​.

Here eze_zez​ has coordinate 111 at the bit string zzz and 000 elsewhere, and Bq(k)B_q(k)Bq​(k) is the most-significant-bit-first qqq-bit representation of k mod 2qk\bmod 2^qkmod2q. No injectivity or size bound is imposed on ccc: terms whose encoded bit strings coincide contribute to the same coordinate and their amplitudes add. If α\alphaα is empty, the result is the zero vector. If q=0q=0q=0, there is one empty bit string, and its coordinate is ∑x∈αvx\sum_{x\in\alpha}v_x∑x∈α​vx​.

QAlgorithms.Papers.Independent.Extend50.P24.fourierAction

For any type GGG equipped with a group structure and a finite enumeration, let DDD consist of LLL labels, positive dimensions dℓd_\elldℓ​, and multiplicative, identity-preserving unitary representations ρℓ\rho_\ellρℓ​ on Cdℓ\mathbb C^{d_\ell}Cdℓ​, each having only zero and the whole space as invariant complex-linear subspaces. For any g∈Gg\in Gg∈G and any vector vvv in the complex Euclidean space indexed by triples (ℓ,a,b)(\ell,a,b)(ℓ,a,b) with 0≤ℓ<L0\le\ell<L0≤ℓ<L and 0≤a,b<dℓ0\le a,b<d_\ell0≤a,b<dℓ​, its Fourier action is the vector defined coordinatewise by

(AD(g)v)ℓ,a,b=∑i=0dℓ−1(ρℓ(g))a,i vℓ,i,b.(\mathcal A_D(g)v)_{\ell,a,b} =\sum_{i=0}^{d_\ell-1}(\rho_\ell(g))_{a,i}\,v_{\ell,i,b}.(AD​(g)v)ℓ,a,b​=i=0∑dℓ​−1​(ρℓ​(g))a,i​vℓ,i,b​.

Thus the representation matrix acts on the first matrix index while preserving the label and second matrix index. No normalization of vvv is required. If L=0L=0L=0, the coordinate set is empty and the result is the unique vector in the zero-dimensional space.

QAlgorithms.Papers.Independent.Extend50.P24.groupFourier

For any type GGG equipped with a group structure and a finite enumeration, let DDD consist of LLL labels, positive dimensions dℓd_\elldℓ​, and multiplicative, identity-preserving unitary representations ρℓ:G→Mat⁡dℓ(C)\rho_\ell:G\to\operatorname{Mat}_{d_\ell}(\mathbb C)ρℓ​:G→Matdℓ​​(C), each having only zero and the whole space as invariant complex-linear subspaces. The group Fourier matrix has columns indexed by g∈Gg\in Gg∈G and rows indexed by triples (ℓ,a,b)(\ell,a,b)(ℓ,a,b) with 0≤ℓ<L0\le\ell<L0≤ℓ<L and 0≤a,b<dℓ0\le a,b<d_\ell0≤a,b<dℓ​, and is defined by

FD((ℓ,a,b),g)=dℓ∣G∣  (ρℓ(g))a,b,F_D((\ell,a,b),g)= \sqrt{\frac{d_\ell}{|G|}}\;(\rho_\ell(g))_{a,b},FD​((ℓ,a,b),g)=∣G∣dℓ​​​(ρℓ​(g))a,b​,

with the real square root viewed as a complex scalar. A group is nonempty, so ∣G∣≥1|G|\ge1∣G∣≥1. If L=0L=0L=0, the matrix has no rows. This definition specifies the entries without asserting that the matrix is square or unitary.

QAlgorithms.Papers.Independent.Extend50.P24.gtPrefixCells

For every pair of natural numbers d,nd,nd,n, every Young diagram λ\lambdaλ with nnn cells and first-column length at most ddd, every filling SSS of its cells by {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1} that is weakly increasing along rows and strictly increasing down columns, and every natural number kkk, this definition gives the finite set

{c∈cells⁡(λ):S(c)<k},\{c\in\operatorname{cells}(\lambda):S(c)<k\},{c∈cells(λ):S(c)<k},

viewed as a set of pairs of natural-number row and column coordinates. There is no requirement that kkk be positive or at most ddd. For k=0k=0k=0, the set is empty; for k≥dk\ge dk≥d, it contains every cell of λ\lambdaλ; and for n=0n=0n=0, it is empty for every kkk.

QAlgorithms.Papers.Independent.Extend50.P24.inducedAction

Let GGG be a finite group, H≤GH\le GH≤G a subgroup equipped with a finite enumeration, and CCC a finite type. Let r:C→Gr:C\to Gr:C→G and θ:C×H→G\theta:C\times H\to Gθ:C×H→G be a bijection satisfying θ(c,h)=r(c)h\theta(c,h)=r(c)hθ(c,h)=r(c)h. Let DDD consist of a natural number LLL, positive dimensions dℓd_\elldℓ​ for 0≤ℓ<L0\le\ell<L0≤ℓ<L, and representations ρℓ:H→Mat⁡dℓ(C)\rho_\ell:H\to\operatorname{Mat}_{d_\ell}(\mathbb C)ρℓ​:H→Matdℓ​​(C) preserving identity and multiplication, whose matrices are unitary and for which every complex subspace invariant under all ρℓ(h)\rho_\ell(h)ρℓ​(h) is either zero or the whole space. For any label σ<L\sigma<Lσ<L and any g∈Gg\in Gg∈G, the definition gives a complex matrix AgA_gAg​ with rows and columns indexed by C×{0,…,dσ−1}C\times\{0,\ldots,d_\sigma-1\}C×{0,…,dσ​−1}: writing θ−1(g r(c′))=(cg,hg)\theta^{-1}(g\,r(c'))=(c_g,h_g)θ−1(gr(c′))=(cg​,hg​), its entries are

(Ag)(c,a),(c′,b)={ρσ(hg)a,b,c=cg,0,c≠cg.(A_g)_{(c,a),(c',b)} = \begin{cases} \rho_\sigma(h_g)_{a,b},&c=c_g,\\ 0,&c\ne c_g. \end{cases}(Ag​)(c,a),(c′,b)​={ρσ​(hg​)a,b​,0,​c=cg​,c=cg​.​

The choice of σ\sigmaσ requires L>0L>0L>0, and its dimension is positive.

QAlgorithms.Papers.Independent.Extend50.P24.inducedEmbedding

Let GGG be a finite group, H≤GH\le GH≤G a subgroup equipped with a finite enumeration, and CCC a finite type, with a function r:C→Gr:C\to Gr:C→G and a bijection θ:C×H→G\theta:C\times H\to Gθ:C×H→G satisfying θ(c,h)=r(c)h\theta(c,h)=r(c)hθ(c,h)=r(c)h. Let DDD specify finitely many labels ℓ<L\ell<Lℓ<L, positive dimensions dℓd_\elldℓ​, and identity- and multiplication-preserving representations ρℓ:H→Mat⁡dℓ(C)\rho_\ell:H\to\operatorname{Mat}_{d_\ell}(\mathbb C)ρℓ​:H→Matdℓ​​(C), all unitary, such that their only invariant complex subspaces are zero and the whole space. For a label σ<L\sigma<Lσ<L and an index u<dσu<d_\sigmau<dσ​, the definition gives a complex matrix EEE with rows indexed by GGG and columns indexed by C×{0,…,dσ−1}C\times\{0,\ldots,d_\sigma-1\}C×{0,…,dσ​−1}. If θ−1(g)=(cg,hg)\theta^{-1}(g)=(c_g,h_g)θ−1(g)=(cg​,hg​), then

Eg,(c,a)={dσ∣H∣ ρσ(hg)a,u‾,cg=c,0,cg≠c.E_{g,(c,a)} = \begin{cases} \displaystyle \overline{\sqrt{\frac{d_\sigma}{|H|}}\, \rho_\sigma(h_g)_{a,u}},&c_g=c,\\ 0,&c_g\ne c. \end{cases}Eg,(c,a)​=⎩⎨⎧​∣H∣dσ​​​ρσ​(hg​)a,u​​,0,​cg​=c,cg​=c.​

Here the square root is the real square root, embedded in C\mathbb CC, and the overline is complex conjugation.

QAlgorithms.Papers.Independent.Extend50.P24.inducedFourier

Let GGG be a finite group, H≤GH\le GH≤G a subgroup equipped with a finite enumeration, and CCC a finite type, with a function r:C→Gr:C\to Gr:C→G and a bijection θ:C×H→G\theta:C\times H\to Gθ:C×H→G satisfying θ(c,h)=r(c)h\theta(c,h)=r(c)hθ(c,h)=r(c)h. For each K∈{G,H}K\in\{G,H\}K∈{G,H}, let DKD_KDK​ specify a natural number LKL_KLK​, positive dimensions dℓKd^K_\elldℓK​, and identity- and multiplication-preserving representations ρℓK:K→Mat⁡dℓK(C)\rho^K_\ell:K\to\operatorname{Mat}_{d^K_\ell}(\mathbb C)ρℓK​:K→MatdℓK​​(C) that are unitary and have only zero and the whole space as invariant complex subspaces. For σ<LH\sigma<L_Hσ<LH​ and u<dσHu<d^H_\sigmau<dσH​, the definition gives the matrix MMM with rows indexed by triples (ℓ,a,b)(\ell,a,b)(ℓ,a,b), where ℓ<LG\ell<L_Gℓ<LG​ and a,b<dℓGa,b<d^G_\ella,b<dℓG​, and columns indexed by (c,i)(c,i)(c,i), where c∈Cc\in Cc∈C and i<dσHi<d^H_\sigmai<dσH​, whose entries are

M(ℓ,a,b),(c,i)=dℓG∣G∣ dσH∣H∣∑h∈HρℓG(r(c)h)a,b ρσH(h)i,u‾.M_{(\ell,a,b),(c,i)} = \sqrt{\frac{d^G_\ell}{|G|}}\, \sqrt{\frac{d^H_\sigma}{|H|}} \sum_{h\in H} \rho^G_\ell(r(c)h)_{a,b}\, \overline{\rho^H_\sigma(h)_{i,u}}.M(ℓ,a,b),(c,i)​=∣G∣dℓG​​​∣H∣dσH​​​h∈H∑​ρℓG​(r(c)h)a,b​ρσH​(h)i,u​​.

Equivalently, this is the product of the matrix with entries dℓG/∣G∣ ρℓG(g)a,b\sqrt{d^G_\ell/|G|}\,\rho^G_\ell(g)_{a,b}dℓG​/∣G∣​ρℓG​(g)a,b​ and the embedding whose entry at (g,(c,i))(g,(c,i))(g,(c,i)) is dσH/∣H∣ ρσH(h)i,u‾\sqrt{d^H_\sigma/|H|}\,\overline{\rho^H_\sigma(h)_{i,u}}dσH​/∣H∣​ρσH​(h)i,u​​ when θ−1(g)=(c,h)\theta^{-1}(g)=(c,h)θ−1(g)=(c,h), and zero otherwise.

QAlgorithms.Papers.Independent.Extend50.P24.moduleAction

For every natural number nnn, every nondecreasing function T:{0,…,n−1}→{0,…,n−1}T:\{0,\ldots,n-1\}\to\{0,\ldots,n-1\}T:{0,…,n−1}→{0,…,n−1}, and every permutation g∈Sng\in S_ng∈Sn​, let WTW_TWT​ be the functions w=T∘h−1w=T\circ h^{-1}w=T∘h−1 for some h∈Snh\in S_nh∈Sn​. The definition gives the complex matrix AT,gA_{T,g}AT,g​, with both rows and columns indexed by WTW_TWT​, whose entries are

(AT,g)x,y={1,x=y∘g−1,0,x≠y∘g−1.(A_{T,g})_{x,y} = \begin{cases} 1,&x=y\circ g^{-1},\\ 0,&x\ne y\circ g^{-1}. \end{cases}(AT,g​)x,y​={1,0,​x=y∘g−1,x=y∘g−1.​

Equality here means equality of the underlying functions at every position. For n=0n=0n=0, there is one word and one permutation, and the matrix has the single entry 111.

QAlgorithms.Papers.Independent.Extend50.P24.moduleRequest

For every natural number nnn, every nondecreasing function T:{0,…,n−1}→{0,…,n−1}T:\{0,\ldots,n-1\}\to\{0,\ldots,n-1\}T:{0,…,n−1}→{0,…,n−1}, and every natural number ttt, this definition produces a Boolean list. Write u(a)u(a)u(a) for aaa copies of true followed by one false, and write ∥\Vert∥ for list concatenation. The list is exactly

u(n)∥u(t)∥u(1)∥[true]∥u(n)∥u(T(0))∥⋯∥u(T(n−1)).u(n)\Vert u(t)\Vert u(1)\Vert[\mathrm{true}] \Vert u(n)\Vert u(T(0))\Vert\cdots\Vert u(T(n-1)).u(n)∥u(t)∥u(1)∥[true]∥u(n)∥u(T(0))∥⋯∥u(T(n−1)).

Indeed, the request prefix uses parameters n,1,tn,1,tn,1,t; its binary encoding of 111 has length one and consists of true. The remaining part records the number nnn of entries and then their unary encodings in index order. Neither nnn nor ttt is required to be positive; when n=0n=0n=0, the final sequence of entry encodings is empty.

QAlgorithms.Papers.Independent.Extend50.P24.moduleWordCode

For every natural number nnn and every function w:{0,…,n−1}→{0,…,n−1}w:\{0,\ldots,n-1\}\to\{0,\ldots,n-1\}w:{0,…,n−1}→{0,…,n−1}, the defined natural-number code is

code⁡(w)=∑i=0n−1w(i)(n+1)i.\operatorname{code}(w)=\sum_{i=0}^{n-1}w(i)(n+1)^i.code(w)=i=0∑n−1​w(i)(n+1)i.

No monotonicity or permutation condition is imposed on www. For n=0n=0n=0, the function is empty and its code is the empty sum, namely zero; for n=1n=1n=1, the only function also has code zero.

QAlgorithms.Papers.Independent.Extend50.P24.moduleWordFintype

For every natural number nnn and every nondecreasing function T:{0,…,n−1}→{0,…,n−1}T:\{0,\ldots,n-1\}\to\{0,\ldots,n-1\}T:{0,…,n−1}→{0,…,n−1}, this instance supplies a finite enumeration, containing every element exactly once, of the functions w:{0,…,n−1}→{0,…,n−1}w:\{0,\ldots,n-1\}\to\{0,\ldots,n-1\}w:{0,…,n−1}→{0,…,n−1} satisfying w=T∘g−1w=T\circ g^{-1}w=T∘g−1 for some permutation ggg of {0,…,n−1}\{0,\ldots,n-1\}{0,…,n−1}. For n=0n=0n=0, the enumerated type has the single empty function.

QAlgorithms.Papers.Independent.Extend50.P24.permutationCode

For every natural number nnn and every permutation ggg of {0,…,n−1}\{0,\ldots,n-1\}{0,…,n−1}, its code is the natural number

permutationCode⁡(g)=∑i=0n−1g(i)(n+1)i.\operatorname{permutationCode}(g)=\sum_{i=0}^{n-1}g(i)(n+1)^i.permutationCode(g)=i=0∑n−1​g(i)(n+1)i.

Thus the values of the permutation are used as base-(n+1)(n+1)(n+1) digits, with g(0)g(0)g(0) in the least significant position. For n=0n=0n=0, the sum is empty and equals 000.

QAlgorithms.Papers.Independent.Extend50.P24.permutationsOn

For every natural number nnn and every finite subset A⊆{0,…,n−1}A\subseteq\{0,\ldots,n-1\}A⊆{0,…,n−1}, the defined finite set is

{g∈Sn: for every i∉A, g(i)=i}.\{g\in S_n:\ \text{for every }i\notin A,\ g(i)=i\}.{g∈Sn​: for every i∈/A, g(i)=i}.

There is no requirement that AAA be consecutive. For A=∅A=\varnothingA=∅, this set contains only the identity permutation; for A={0,…,n−1}A=\{0,\ldots,n-1\}A={0,…,n−1}, it contains every permutation. These descriptions also apply when n=0n=0n=0, when there is a single empty permutation.

QAlgorithms.Papers.Independent.Extend50.P24.qftPermMod

For every natural number nnn, let Λn\Lambda_nΛn​ be the set of Young diagrams having nnn cells and at most nnn rows. For each λ∈Λn\lambda\in\Lambda_nλ∈Λn​, let Tλ\mathcal T_\lambdaTλ​ consist of bijections from {0,…,n−1}\{0,\ldots,n-1\}{0,…,n−1} to the cells of λ\lambdaλ such that labels increase strictly from left to right in a row and from top to bottom in a column, and write fλ=∣Tλ∣f_\lambda=|\mathcal T_\lambda|fλ​=∣Tλ​∣. The supplied family YYY assigns to each λ\lambdaλ an identity- and multiplication-preserving map ρλ:Sn→Mat⁡Tλ(C)\rho_\lambda:S_n\to\operatorname{Mat}_{\mathcal T_\lambda}(\mathbb C)ρλ​:Sn​→MatTλ​​(C) with unitary matrices and the following prescribed entries for every adjacent pair j=i+1j=i+1j=i+1: if A,B∈TλA,B\in\mathcal T_\lambdaA,B∈Tλ​, a=A(i)a=A(i)a=A(i), b=A(j)b=A(j)b=A(j), and r=(b2−b1)−(a2−a1)r=(b_2-b_1)-(a_2-a_1)r=(b2​−b1​)−(a2​−a1​), regarded as a real number, then ρλ((i j))B,A\rho_\lambda((i\,j))_{B,A}ρλ​((ij))B,A​ equals 111 when a,ba,ba,b share a row and B=AB=AB=A, equals −1-1−1 when they share a column and B=AB=AB=A, and is zero off the diagonal in either of those cases; when they share neither a row nor a column, it equals r−1r^{-1}r−1 if B=AB=AB=A, equals 1−(r−1)2\sqrt{1-(r^{-1})^2}1−(r−1)2​ if B=A∘(i j)B=A\circ(i\,j)B=A∘(ij), and equals zero otherwise. Given also a nondecreasing function T:{0,…,n−1}→{0,…,n−1}T:\{0,\ldots,n-1\}\to\{0,\ldots,n-1\}T:{0,…,n−1}→{0,…,n−1}, set WT={T∘h−1:h∈Sn}W_T=\{T\circ h^{-1}:h\in S_n\}WT​={T∘h−1:h∈Sn​} and KT={h∈Sn:T∘h−1=T}K_T=\{h\in S_n:T\circ h^{-1}=T\}KT​={h∈Sn​:T∘h−1=T}. The definition gives a complex matrix QQQ, with rows indexed by (λ,A,B)(\lambda,A,B)(λ,A,B) for λ∈Λn\lambda\in\Lambda_nλ∈Λn​ and A,B∈TλA,B\in\mathcal T_\lambdaA,B∈Tλ​, and columns indexed by w∈WTw\in W_Tw∈WT​, with entries

Q(λ,A,B),w=fλ∣Sn∣ (∣KT∣)−1∑g∈SnT∘g−1=wρλ(g)A,B.Q_{(\lambda,A,B),w} = \sqrt{\frac{f_\lambda}{|S_n|}}\, (\sqrt{|K_T|})^{-1} \sum_{\substack{g\in S_n\\T\circ g^{-1}=w}} \rho_\lambda(g)_{A,B}.Q(λ,A,B),w​=∣Sn​∣fλ​​​(∣KT​∣​)−1g∈Sn​T∘g−1=w​∑​ρλ​(g)A,B​.

Here the square roots and inverses are taken in R\mathbb RR and embedded in C\mathbb CC; KTK_TKT​ contains the identity. The definition includes n=0n=0n=0, with the empty diagram, empty tableaux, and empty word, giving a one-by-one matrix with entry 111.

QAlgorithms.Papers.Independent.Extend50.P24.requestCode

For any natural numbers n,d,tn,d,tn,d,t, let ℓ=⌈log⁡2(d+1)⌉\ell=\lceil\log_2(d+1)\rceilℓ=⌈log2​(d+1)⌉, equivalently the least natural number satisfying d+1≤2ℓd+1\le 2^\elld+1≤2ℓ, and let bbb be the length-ℓ\ellℓ binary representation of ddd, with the most significant bit first. The request code is the Boolean list

1n0 1t0 1ℓ0 b,1^n0\,1^t0\,1^\ell0\,b,1n01t01ℓ0b,

where 1k01^k01k0 denotes kkk true bits followed by one false bit, and juxtaposition denotes concatenation. More literally, bbb is the bit string corresponding to d mod 2ℓd\bmod 2^\elldmod2ℓ under the binary equivalence whose numerical value on bits b0,…,bℓ−1b_0,\ldots,b_{\ell-1}b0​,…,bℓ−1​ is ∑i=0ℓ−1bi2ℓ−1−i\sum_{i=0}^{\ell-1} b_i2^{\ell-1-i}∑i=0ℓ−1​bi​2ℓ−1−i; the chosen ℓ\ellℓ ensures that this residue is ddd. All three arguments may be zero; when d=0d=0d=0, ℓ=0\ell=0ℓ=0, bbb is empty, and the code ends with the single false bit encoding ℓ\ellℓ.

QAlgorithms.Papers.Independent.Extend50.P24.semistandardTableauFintype

For every pair of natural numbers d,nd,nd,n and every Young diagram λ\lambdaλ with nnn cells and first-column length at most ddd, this instance equips the collection of fillings of its cells by {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1} that are weakly increasing along rows and strictly increasing down columns with a finite enumeration containing every such filling exactly once. No positivity assumption on ddd or nnn is required. When n=0n=0n=0, this collection consists of the unique empty filling; when d=0<nd=0<nd=0<n, there is no diagram satisfying the required bound.

QAlgorithms.Papers.Independent.Extend50.P24.standardTableauFintype

For every natural number nnn and Young diagram λ\lambdaλ, this supplies a finite enumeration of the bijections from {0,…,n−1}\{0,\ldots,n-1\}{0,…,n−1} onto the cells of λ\lambdaλ whose labels increase along every row and column: a cell preceding another in the same row or column must have a smaller label. This includes an empty enumeration when no such bijection exists, in particular when λ\lambdaλ has a number of cells different from nnn. When n=0n=0n=0 and λ\lambdaλ is empty, the enumeration contains the unique empty bijection.

QAlgorithms.Papers.Independent.Extend50.P24.strongCode

For arbitrary natural numbers n,dn,dn,d and an index (λ,T,S)(\lambda,T,S)(λ,T,S), where λ\lambdaλ has nnn boxes and at most ddd rows, TTT bijectively places labels 0,…,n−10,\ldots,n-10,…,n−1 increasingly along rows and columns, and SSS fills the boxes with entries 0,…,d−10,\ldots,d-10,…,d−1, weakly increasing along rows and strictly increasing down columns, write T(i)=(ri,ci)T(i)=(r_i,c_i)T(i)=(ri​,ci​) using natural-number row and column coordinates. This definition assigns

pair⁡ ⁣(∑i=0n−1(ri(n+1)+ci+1)((n+1)2+1)i,  ∑i=0n−1S(T(i))di),\operatorname{pair}\!\left( \sum_{i=0}^{n-1}\bigl(r_i(n+1)+c_i+1\bigr)\bigl((n+1)^2+1\bigr)^i,\; \sum_{i=0}^{n-1}S(T(i))d^i \right),pair(i=0∑n−1​(ri​(n+1)+ci​+1)((n+1)2+1)i,i=0∑n−1​S(T(i))di),

where the natural-number pairing function is pair⁡(a,b)=b2+a\operatorname{pair}(a,b)=b^2+apair(a,b)=b2+a if a<ba<ba<b, and pair⁡(a,b)=a2+a+b\operatorname{pair}(a,b)=a^2+a+bpair(a,b)=a2+a+b otherwise. The first argument encodes the standard tableau’s box positions; the second uses the semistandard entry in the box occupied by each label. For n=0n=0n=0, both sums and the resulting code are zero; for n>0,d=0n>0,d=0n>0,d=0, no index exists.

QAlgorithms.Papers.Independent.Extend50.P24.strongMatrix

For natural numbers n,dn,dn,d and a frame FFF of the specified kind, this definition forms the complex matrix whose columns are indexed by words 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 whose rows are indexed by triples (λ,T,S)(\lambda,T,S)(λ,T,S): λ\lambdaλ has nnn boxes and at most ddd rows, TTT bijectively places labels 0,…,n−10,\ldots,n-10,…,n−1 increasingly along rows and columns, and SSS fills the boxes with entries 0,…,d−10,\ldots,d-10,…,d−1, weakly increasing along rows and strictly increasing down columns. The frame includes unitary permutation representations ρλ\rho_\lambdaρλ​ on the standard-tableau coordinates, orthonormal bases BλB^\lambdaBλ indexed by the semistandard fillings, and a surjective complex linear isometry FtrF_{\mathrm{tr}}Ftr​ from the word-coordinate space to the triple-coordinate space. Here the space HνH_\nuHν​ underlying each basis is the range of ∑r∈Rν,c∈Cνsgn⁡(c)Prc\sum_{r\in R_\nu,c\in C_\nu}\operatorname{sgn}(c)P_{rc}∑r∈Rν​,c∈Cν​​sgn(c)Prc​, using the definition’s fixed numbering of the boxes, row-preserving permutations RνR_\nuRν​, column-preserving permutations CνC_\nuCν​, and permutation matrices (Pg)y,x=1(P_g)_{y,x}=1(Pg​)y,x​=1 exactly when y=x∘g−1y=x\circ g^{-1}y=x∘g−1. If Cν(A)C_\nu(A)Cν​(A) denotes A⊗∣ν∣A^{\otimes|\nu|}A⊗∣ν∣ followed by orthogonal projection onto HνH_\nuHν​, restricted to HνH_\nuHν​, the frame requires each BSλB^\lambda_SBSλ​, for every 0<k≤d0<k\le d0<k≤d, to lie in an isometrically embedded HμH_\muHμ​, where μ\muμ consists exactly of boxes with SSS-entry below kkk, has some natural number mmm of boxes and at most kkk rows, and the embedding intertwines Cμ(U)C_\mu(U)Cμ​(U) with Cλ(U⊕Id−k)C_\lambda(U\oplus I_{d-k})Cλ​(U⊕Id−k​) for every unitary UUU and every vector in HμH_\muHμ​. The representations obey the following adjacent-transposition rule: for si=(i i+1)s_i=(i\ i+1)si​=(i i+1), the entry from TTT to QQQ is δQ,T\delta_{Q,T}δQ,T​ if the two boxes have the same row, otherwise −δQ,T-\delta_{Q,T}−δQ,T​ if they have the same column, otherwise r−1r^{-1}r−1 if Q=TQ=TQ=T, otherwise 1−(r−1)2\sqrt{1-(r^{-1})^2}1−(r−1)2​ if Q=T∘siQ=T\circ s_iQ=T∘si​, and otherwise zero, where rrr is the content of T(i+1)T(i+1)T(i+1) minus the content of T(i)T(i)T(i), and a box’s content is its column number minus its row number. The transform satisfies Ftr(Pgv)λ,T,S=∑Qρλ(g)T,QFtr(v)λ,Q,SF_{\mathrm{tr}}(P_gv)_{\lambda,T,S}=\sum_Q\rho_\lambda(g)_{T,Q}F_{\mathrm{tr}}(v)_{\lambda,Q,S}Ftr​(Pg​v)λ,T,S​=∑Q​ρλ​(g)T,Q​Ftr​(v)λ,Q,S​ and Ftr(U⊗nv)λ,T,S=∑R⟨BSλ,Cλ(U)BRλ⟩Ftr(v)λ,T,RF_{\mathrm{tr}}(U^{\otimes n}v)_{\lambda,T,S}=\sum_R\langle B^\lambda_S,C_\lambda(U)B^\lambda_R\rangle F_{\mathrm{tr}}(v)_{\lambda,T,R}Ftr​(U⊗nv)λ,T,S​=∑R​⟨BSλ​,Cλ​(U)BRλ​⟩Ftr​(v)λ,T,R​ for all permutations ggg, unitary UUU, vectors vvv, and output indices. The matrix being defined is precisely

M(λ,T,S),w=(Ftr(δw))λ,T,S,M_{(\lambda,T,S),w}=\bigl(F_{\mathrm{tr}}(\delta_w)\bigr)_{\lambda,T,S},M(λ,T,S),w​=(Ftr​(δw​))λ,T,S​,

where δw\delta_wδw​ has coordinate 111 at www and 000 elsewhere. Zero values of n,dn,dn,d are permitted: n=0n=0n=0 gives singleton input and output index sets, while n>0,d=0n>0,d=0n>0,d=0 gives empty input and output index sets.

QAlgorithms.Papers.Independent.Extend50.P24.subgroupSum

For every natural number nnn, every Young diagram λ\lambdaλ, every model YYY of shape λ\lambdaλ, and every finite subset A⊆{0,…,n−1}A\subseteq\{0,\ldots,n-1\}A⊆{0,…,n−1}, this definition gives the complex matrix

∑g∈Sng(i)=i for all i∉AρY(g),\sum_{\substack{g\in S_n\\g(i)=i\ \text{for all }i\notin A}}\rho_Y(g),g∈Sn​g(i)=i for all i∈/A​∑​ρY​(g),

indexed by standard tableaux of shape λ\lambdaλ, meaning bijections from labels 0,…,n−10,\ldots,n-10,…,n−1 to its cells with labels increasing strictly along rows and columns. Here ρY\rho_YρY​ is a group homomorphism into unitary matrices with the following adjacent-transposition coefficients: for adjacent labels in an input tableau, the matrix acts by +1+1+1 if their cells share a row and by −1-1−1 if they share a column; otherwise the coefficient at the original tableau is r−1r^{-1}r−1, the coefficient at the tableau with the two labels exchanged is 1−r−2\sqrt{1-r^{-2}}1−r−2​, and all other coefficients vanish, where rrr is the second cell's content minus the first cell's content and content is column minus row. No consecutiveness condition is imposed on AAA. If AAA is empty, the sum is the identity matrix; if λ\lambdaλ has no standard tableau on these nnn labels, the matrix has an empty index set.

QAlgorithms.Papers.Independent.Extend50.P24.symmetricCode

For every natural number nnn and index z=(λ,T,U)z=(\lambda,T,U)z=(λ,T,U), where λ\lambdaλ is a Young diagram with exactly nnn cells and first-column length at most nnn, and T,UT,UT,U are bijective labelings of its cells by 0,…,n−10,\ldots,n-10,…,n−1 increasing along rows and columns, define

a=∑i=0n−1(ri(n+1)+ci+1)((n+1)2+1)i,b=∑i=0n−1(ri′(n+1)+ci′+1)((n+1)2+1)i,a=\sum_{i=0}^{n-1}\bigl(r_i(n+1)+c_i+1\bigr)\bigl((n+1)^2+1\bigr)^i,\qquad b=\sum_{i=0}^{n-1}\bigl(r'_i(n+1)+c'_i+1\bigr)\bigl((n+1)^2+1\bigr)^i,a=i=0∑n−1​(ri​(n+1)+ci​+1)((n+1)2+1)i,b=i=0∑n−1​(ri′​(n+1)+ci′​+1)((n+1)2+1)i,

where T(i)=(ri,ci)T(i)=(r_i,c_i)T(i)=(ri​,ci​) and U(i)=(ri′,ci′)U(i)=(r'_i,c'_i)U(i)=(ri′​,ci′​). Then

symmetricCode⁡(z)={b2+a,a<b,a2+a+b,a≥b.\operatorname{symmetricCode}(z)= \begin{cases} b^2+a,&a<b,\\ a^2+a+b,&a\ge b. \end{cases}symmetricCode(z)={b2+a,a2+a+b,​a<b,a≥b.​

For n=0n=0n=0, the shape and tableaux are empty, both sums are 000, and the resulting code is 000.

QAlgorithms.Papers.Independent.Extend50.P24.symmetricFourier

For every natural number nnn, suppose YYY assigns a model ρλ\rho_\lambdaρλ​ to each Young diagram λ\lambdaλ with nnn cells and first-column length at most nnn. Here ρλ\rho_\lambdaρλ​ is an identity-preserving multiplicative map from SnS_nSn​ to unitary complex matrices indexed by the set Tλ\mathcal T_\lambdaTλ​ of bijections from labels 0,…,n−10,\ldots,n-10,…,n−1 onto λ\lambdaλ with increasing row and column labels. Its adjacent-transposition entries have the following rule: for j=i+1j=i+1j=i+1, a=T(i)a=T(i)a=T(i), b=T(j)b=T(j)b=T(j), and r=(b2−b1)−(a2−a1)∈Rr=(b_2-b_1)-(a_2-a_1)\in\mathbb Rr=(b2​−b1​)−(a2​−a1​)∈R, the entry in row UUU, column TTT is 1U=T\mathbf 1_{U=T}1U=T​ if a,ba,ba,b share a row, otherwise −1U=T-\mathbf 1_{U=T}−1U=T​ if they share a column, otherwise r−1r^{-1}r−1 if U=TU=TU=T, otherwise 1−(r−1)2\sqrt{1-(r^{-1})^2}1−(r−1)2​ if U=T∘(i j)U=T\circ(i\,j)U=T∘(ij), and zero otherwise; coordinate differences are integer differences, inverse at zero is zero, and a negative real radicand has square root zero. This definition constructs the complex matrix FYF_YFY​ with rows (λ,T,U)(\lambda,T,U)(λ,T,U), where T,U∈TλT,U\in\mathcal T_\lambdaT,U∈Tλ​, and columns g∈Sng\in S_ng∈Sn​, by

(FY)(λ,T,U),g=∣Tλ∣∣Sn∣ (ρλ(g))T,U.(F_Y)_{(\lambda,T,U),g} = \sqrt{\frac{|\mathcal T_\lambda|}{|S_n|}}\, \bigl(\rho_\lambda(g)\bigr)_{T,U}.(FY​)(λ,T,U),g​=∣Sn​∣∣Tλ​∣​​(ρλ​(g))T,U​.

The real square root is embedded into C\mathbb CC. The denominator ∣Sn∣=n!|S_n|=n!∣Sn​∣=n! is positive even for n=0n=0n=0; in that case this is the one-by-one matrix with entry 111.

QAlgorithms.Papers.Independent.Extend50.P24.tableauCode

For any natural number nnn, Young diagram λ\lambdaλ, and standard tableau TTT given by a bijection from {0,…,n−1}\{0,\ldots,n-1\}{0,…,n−1} to the cells of λ\lambdaλ, with labels increasing along each row from left to right and each column from top to bottom, write T(i)=(ri,ci)T(i)=(r_i,c_i)T(i)=(ri​,ci​), using natural-number row and column coordinates. Its code is

tableauCode⁡(T)=∑i=0n−1(ri(n+1)+ci+1)((n+1)2+1)i.\operatorname{tableauCode}(T)= \sum_{i=0}^{n-1}\bigl(r_i(n+1)+c_i+1\bigr)\bigl((n+1)^2+1\bigr)^i.tableauCode(T)=i=0∑n−1​(ri​(n+1)+ci​+1)((n+1)2+1)i.

The existence of TTT requires that λ\lambdaλ have exactly nnn cells. For n=0n=0n=0, such a tableau has empty shape and its code is 000.

QAlgorithms.Papers.Independent.Extend50.P24.tensorWordCode

For arbitrary natural numbers n,dn,dn,d and every 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 definition assigns the natural number

∑i=0n−1w(i)di.\sum_{i=0}^{n-1}w(i)d^i.i=0∑n−1​w(i)di.

Thus position 000 has coefficient d0=1d^0=1d0=1. For n=0n=0n=0 the empty sum is zero, including when d=0d=0d=0; for n>0,d=0n>0,d=0n>0,d=0 no such word exists, and for d=1d=1d=1 the unique word has code zero.

QAlgorithms.Papers.Independent.Extend50.P24.youngCoefficient

For every natural number nnn, Young diagram λ\lambdaλ, labels i,j∈{0,…,n−1}i,j\in\{0,\ldots,n-1\}i,j∈{0,…,n−1}, and bijections T,UT,UT,U from these labels onto λ\lambdaλ whose labels increase along rows and columns, this defines a complex number as follows. Write a=T(i)=(a1,a2)a=T(i)=(a_1,a_2)a=T(i)=(a1​,a2​) and b=T(j)=(b1,b2)b=T(j)=(b_1,b_2)b=T(j)=(b1​,b2​), using row and column coordinates, and put r=(b2−b1)−(a2−a1)∈Rr=(b_2-b_1)-(a_2-a_1)\in\mathbb Rr=(b2​−b1​)−(a2​−a1​)∈R, with the coordinate differences taken in the integers. Let sijs_{ij}sij​ exchange labels iii and jjj. The value is

{1a1=b1, U=T,0a1=b1, U≠T,−1a1≠b1, a2=b2, U=T,0a1≠b1, a2=b2, U≠T,r−1a1≠b1, a2≠b2, U=T,1−(r−1)2a1≠b1, a2≠b2, U≠T, U=T∘sij,0otherwise.\begin{cases} 1 & a_1=b_1,\ U=T,\\ 0 & a_1=b_1,\ U\ne T,\\ -1 & a_1\ne b_1,\ a_2=b_2,\ U=T,\\ 0 & a_1\ne b_1,\ a_2=b_2,\ U\ne T,\\ r^{-1} & a_1\ne b_1,\ a_2\ne b_2,\ U=T,\\ \sqrt{1-(r^{-1})^2} & a_1\ne b_1,\ a_2\ne b_2,\ U\ne T,\ U=T\circ s_{ij},\\ 0 & \text{otherwise}. \end{cases}⎩⎨⎧​10−10r−11−(r−1)2​0​a1​=b1​, U=T,a1​=b1​, U=T,a1​=b1​, a2​=b2​, U=T,a1​=b1​, a2​=b2​, U=T,a1​=b1​, a2​=b2​, U=T,a1​=b1​, a2​=b2​, U=T, U=T∘sij​,otherwise.​

All real values are regarded as complex numbers. There is no assumption that i,ji,ji,j are distinct or adjacent; when i=ji=ji=j, the same-row branch gives 111 for U=TU=TU=T and 000 otherwise. In the branches using r−1r^{-1}r−1, inverse at zero is defined to be zero, and the real square root of a negative number is zero.

QAlgorithms.Papers.Independent.Extend50.P24.youngFourierAction

For every natural number nnn, write SnS_nSn​ for the permutations of {0,…,n−1}\{0,\ldots,n-1\}{0,…,n−1}. A standard tableau of shape λ\lambdaλ is a bijection from these labels to the cells of λ\lambdaλ, with labels increasing strictly along each row and column. The coordinates here are triples (λ,P,Q)(\lambda,P,Q)(λ,P,Q), where λ\lambdaλ has nnn cells and at most nnn rows, and P,QP,QP,Q are standard tableaux of shape λ\lambdaλ. Let YYY assign to every such shape a group homomorphism ρλ\rho_\lambdaρλ​ from SnS_nSn​ to unitary matrices indexed by its standard tableaux. These homomorphisms have the prescribed adjacent-transposition entries: if j=i+1j=i+1j=i+1, the cells containing i,ji,ji,j in an input tableau PPP have contents ci,cjc_i,c_jci​,cj​, where content means column minus row, and r=cj−cir=c_j-c_ir=cj​−ci​, then the output coefficient at RRR is 1R=P\mathbf 1_{R=P}1R=P​ when the cells share a row, −1R=P-\mathbf 1_{R=P}−1R=P​ when they share a column, and otherwise is r−1r^{-1}r−1 at R=PR=PR=P, 1−r−2\sqrt{1-r^{-2}}1−r−2​ at the tableau obtained by exchanging i,ji,ji,j, and zero elsewhere. For every g∈Sng\in S_ng∈Sn​ and complex Euclidean vector vvv on the triples, the defined action is

(AY,gv)λ,P,Q=∑R standard of shape λρλ(g)P,R vλ,R,Q.\bigl(\mathcal A_{Y,g}v\bigr)_{\lambda,P,Q} =\sum_{R\text{ standard of shape }\lambda} \rho_\lambda(g)_{P,R}\,v_{\lambda,R,Q}.(AY,g​v)λ,P,Q​=R standard of shape λ∑​ρλ​(g)P,R​vλ,R,Q​.

Thus the sum changes the first tableau coordinate while retaining the shape and second tableau coordinate. The definition includes n=0n=0n=0, when the sole coordinate uses the empty shape and empty tableaux and the action is the identity.

QAlgorithms.Papers.Independent.Extend50.P24.youngSubgroup

For every natural number nnn and every nondecreasing function T:{0,…,n−1}→{0,…,n−1}T:\{0,\ldots,n-1\}\to\{0,\ldots,n-1\}T:{0,…,n−1}→{0,…,n−1}, the definition gives the finite set

KT={g∈Sn:T∘g−1=T},K_T=\{g\in S_n:T\circ g^{-1}=T\},KT​={g∈Sn​:T∘g−1=T},

where SnS_nSn​ is the group of all permutations of {0,…,n−1}\{0,\ldots,n-1\}{0,…,n−1}. Membership means equality at every input position. The identity permutation belongs to this set, so it is nonempty; for n=0n=0n=0, it consists of the unique permutation of the empty set.

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

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 29, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me