Definitions for An efficient high dimensional quantum Schur transform
DefinitionQAlgorithms_Papers_Independent_Extend50_P24The 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.
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
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
QAlgorithms.Papers.Independent.Extend50.P24.Approximates
For any types equipped with finite enumerations, functions and , complex matrix with rows indexed by and columns by , compiled circuit on wires, and real number , the approximation predicate means that both maps and are injective and that
Here is the most-significant-bit-first representation of , is the coordinate basis vector at , and applies the circuit’s gate list in order. Its allowed instructions apply the single-qubit matrices , , , and , 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 are allowed; when , each injectivity requirement permits at most one element in its respective index type. No sign assumption on is part of the definition; if is nonempty and , the inequality cannot hold for a nonzero .
QAlgorithms.Papers.Independent.Extend50.P24.CompiledCircuit.code
For every circuit with a natural number of wires and an ordered list of instructions, this defines a finite Boolean string as follows. Let be copies of followed by one . An instruction , or is encoded respectively as , , , or , and a controlled-NOT instruction with distinct control and target is encoded as ; wire indices are their natural-number values. Juxtaposition denotes concatenation. The circuit code is followed by these instruction encodings in list order. The condition that controlled-NOT wires are distinct contributes no additional bits. An empty list gives ; for zero wires this is the two-bit string .
QAlgorithms.Papers.Independent.Extend50.P24.CompiledCircuit
This defines a structure consisting of a natural number of wires and a finite ordered list of instructions on those wires. Each instruction is either an , , , or instruction with one specified wire in , 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 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 consisting of a natural number of wires and an ordered list of , and controlled-NOT instructions on those wires, and every complex vector indexed by bit strings , this defines the resulting vector by applying the instructions successively in list order. A one-wire instruction on wire replaces the current amplitude function by
where, in the order ,
A controlled-NOT instruction with distinct control and target replaces by , where is Boolean exclusive-or. The resulting amplitude function is returned in the Euclidean-space representation. No normalization hypothesis is imposed on . An empty instruction list returns , including when .
QAlgorithms.Papers.Independent.Extend50.P24.CompiledCircuit.work
For a compiled circuit , consisting of a natural number of wires and a finite ordered list of gates, its work is the natural number
Here the code is the concatenation , where means true bits followed by one false bit. The instruction encodings are , , , , and ; wire indices lie between and , and a controlled-NOT instruction requires . The definition includes and empty gate lists; in particular, with no wires and no gates the code has two bits and the work is .
QAlgorithms.Papers.Independent.Extend50.P24.FourierData
For a type equipped with a group structure and a finite enumeration, Fourier data consist of a natural number of labels, a natural-number dimension for each , proofs that every , and maps preserving multiplication and identity. Every matrix must be unitary. For each label , every complex-linear subspace satisfying
must be either the zero subspace or the whole space. The label count 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 equipped with a group structure and a finite enumeration, and Fourier data consisting of labels, positive dimensions , and multiplicative, identity-preserving unitary representations on whose invariant complex-linear subspaces are only zero and the whole space, the Fourier index type is the set of triples
The two coordinate ranges depend on the selected label. If , this index type is empty.
QAlgorithms.Papers.Independent.Extend50.P24.IsConsecutive
For every natural number and every finite subset , this predicate means that for every and every , if , then . Thus every position between two elements of belongs to . The empty set and every singleton satisfy the predicate, including the empty set when .
QAlgorithms.Papers.Independent.Extend50.P24.IsPhysicalGTBasis
For natural numbers , including zero, let be a Young diagram with boxes and at most rows, and let be an orthonormal basis of the complex space , indexed by fillings of with entries in that increase weakly along rows and strictly down columns. Here , for any diagram with boxes and at most rows, is defined inside as the range of
where the definition chooses a fixed bijection between the boxes of and , and are the permutations preserving, respectively, each numbered box’s row and column. Write for the operator on obtained by applying the matrix with entries and then orthogonally projecting back onto . The property being defined says that for every indexing filling and every natural number with , there exist a natural number , a Young diagram with boxes and at most rows, and a complex linear isometric embedding , such that the boxes of are exactly the boxes of whose -entry is less than , the basis vector belongs to the image of , and
for every unitary complex matrix and every . There is no condition at ; if , the quantified condition on is vacuous, and empty diagrams and empty products are permitted.
QAlgorithms.Papers.Independent.Extend50.P24.IsUnitaryBetween
For arbitrary finite types and , each equipped with a finite enumeration and decidable equality, and every complex matrix with rows indexed by and columns indexed by , this defines the proposition
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 , subgroup , and type , a left transversal consists of a function and a bijection such that for every and , where is regarded as an element of . Thus every element of has a unique expression . Neither finiteness nor any ordering of these types is required; the bijection forces to be nonempty.
QAlgorithms.Papers.Independent.Extend50.P24.ModuleWord
For every natural number and every nondecreasing function , a module word is a function for which there exists a permutation of such that for every . A module word records the function together with this existence condition, without choosing a witnessing permutation. For , there is exactly one module word, the empty function.
QAlgorithms.Papers.Independent.Extend50.P24.PermutationType
For every natural number , a permutation type is a function satisfying whenever . No injectivity or surjectivity condition is imposed. The definition includes , when the unique empty function satisfies this condition.
QAlgorithms.Papers.Independent.Extend50.P24.SemistandardTableau
For every pair of natural numbers and every Young diagram with exactly cells and first-column length at most , this definition is the type of functions from the cells of to satisfying both conditions for every pair of cells : if have the same row and the column of is smaller, then ; if they have the same column and the row of is smaller, then . Thus entries are weakly increasing along rows and strictly increasing down columns. For , there is exactly one such filling, the empty function, including when ; for and , no diagram satisfying the stated first-column bound exists.
QAlgorithms.Papers.Independent.Extend50.P24.StandardTableau
For every natural number and Young diagram , this defines the type of bijections onto the cells of satisfying the following conditions for all labels : if and have the same row coordinate and the column coordinate of is smaller, then ; if they have the same column coordinate and the row coordinate of is smaller, then . Thus labels increase along rows and columns in the directions of increasing coordinates. The type is empty unless has exactly cells. For , it has one element when is empty and no elements otherwise.
QAlgorithms.Papers.Independent.Extend50.P24.StrongIndex
For any natural numbers , the index type consists of triples , where is a Young diagram with exactly boxes and at most rows; is a bijection from to the boxes of 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 assigns an element of to each box, weakly increasing along rows and strictly increasing down columns. Thus records the box occupied by each label, whereas records an alphabet entry in each box. Zero values are allowed: for the empty diagram and the two empty tableaux give one index, including when ; for , there are no indices.
QAlgorithms.Papers.Independent.Extend50.P24.StrongSchurFrame
For natural numbers , a frame is the following collection of data and properties. Its indices are triples , where is an -box Young diagram with at most rows, bijectively places labels in its boxes in increasing order along rows and down columns, and fills its boxes with entries , weakly increasing along rows and strictly increasing down columns. For each , the frame supplies a group homomorphism from the permutations of to unitary complex matrices indexed by such standard tableaux. Its adjacent-transposition entries are prescribed as follows: for , standard tableaux , boxes , , and the real integer ,
The real entries in this formula are regarded as complex numbers; inverse and real square root are total, with and the square root of a negative real equal to zero. To describe the remaining data, for any diagram with boxes and at most rows, use the fixed box numbering chosen in the definition, let be the permutations preserving each numbered box’s row and column, and set inside , where is when and otherwise. Let be the restriction to of followed by orthogonal projection onto , with . The frame supplies an orthonormal basis of indexed by the fillings . For every such and every natural with , it requires a natural , an -box diagram with at most rows whose boxes are exactly those with -entry less than , and a complex linear isometric embedding such that and for all unitary matrices and all . Finally, the frame supplies a surjective complex linear isometry
satisfying, for every permutation , every input vector , and every index ,
and, for every unitary matrix , every , and every such index,
where runs over all standard tableaux and over all the specified semistandard fillings of , and the inner product is conjugate linear in its first argument. No positivity assumption on is imposed; empty products equal the identity, adjacent-transposition conditions are vacuous for , and the conditions involving are vacuous for .
QAlgorithms.Papers.Independent.Extend50.P24.SymmetricModels
For every natural number , this abbreviates the type of assignments that choose, for each Young diagram with cells and first-column length at most , an identity-preserving multiplicative map together with the following requirements, where consists of bijections from the labels onto whose labels increase along rows and columns. Every is unitary. For adjacent labels and tableaux , write , and , using integer coordinate differences. The entry equals when the two cells share a row; otherwise when they share a column; otherwise when ; otherwise when ; and zero otherwise. The symbol denotes the indicator of , 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 , when the sole diagram is empty and there are no adjacent labels.
QAlgorithms.Papers.Independent.Extend50.P24.YoungFourierIndex
For every natural number , this abbreviates the type of triples , where is a Young diagram with exactly cells and with first-column length at most , and are independently chosen bijections from onto its cells whose labels increase along rows and columns. Both tableaux use the same diagram. For , 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 and Young diagram , let be the set of bijections from onto the cells of whose labels increase along rows and columns. This defines a structure consisting of an identity-preserving multiplicative map , a requirement that for every permutation , and the following prescribed entries for adjacent transpositions. For every with and every , set , , and , where differences are computed in the integers. The entry is if share a row; otherwise it is if they share a column; otherwise it is if , if and , and zero otherwise. Here is conjugate transpose, is when holds and otherwise, inverse at zero is zero, and the real square root of a negative number is zero. No nonemptiness condition is imposed on : when it is empty, the matrices have zero rows and columns and the entry conditions are vacuous. For or , there are no adjacent-transposition conditions.
QAlgorithms.Papers.Independent.Extend50.P24.alphabetMinor
For every pair of natural numbers and every complex matrix , this definition produces the complex matrix whose entries, indexed by , are
There is no assumption that or that is unitary. If , the result is followed by an identity block; if , it is the restriction of to its first rows and columns. For , it is the identity, and for , it is the empty matrix.
QAlgorithms.Papers.Independent.Extend50.P24.applyMatrix
For arbitrary types , with a finite enumeration of , every complex matrix with rows indexed by and columns indexed by , and every vector equipped with the Euclidean-space representation, this defines the vector in the corresponding representation of whose coordinate at is
No finiteness or decidable-equality assumption is imposed on , and no normalization assumption is imposed on . If is empty, every output coordinate is zero.
QAlgorithms.Papers.Independent.Extend50.P24.cosetEmbedding
For every natural number and every nondecreasing function , let be the set of functions for some permutation , and let . The definition gives a complex matrix , with rows indexed by and columns indexed by , whose entries are
The nonzero value is a real number embedded in ; its denominator is nonzero because the identity belongs to . For , this is the one-by-one matrix with entry .
QAlgorithms.Papers.Independent.Extend50.P24.encodedVector
For any type equipped with a finite enumeration, any function , any natural number , and any vector with its Euclidean norm, the encoded vector in the Euclidean space indexed by -bit strings is
Here has coordinate at the bit string and elsewhere, and is the most-significant-bit-first -bit representation of . No injectivity or size bound is imposed on : terms whose encoded bit strings coincide contribute to the same coordinate and their amplitudes add. If is empty, the result is the zero vector. If , there is one empty bit string, and its coordinate is .
QAlgorithms.Papers.Independent.Extend50.P24.fourierAction
For any type equipped with a group structure and a finite enumeration, let consist of labels, positive dimensions , and multiplicative, identity-preserving unitary representations on , each having only zero and the whole space as invariant complex-linear subspaces. For any and any vector in the complex Euclidean space indexed by triples with and , its Fourier action is the vector defined coordinatewise by
Thus the representation matrix acts on the first matrix index while preserving the label and second matrix index. No normalization of is required. If , 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 equipped with a group structure and a finite enumeration, let consist of labels, positive dimensions , and multiplicative, identity-preserving unitary representations , each having only zero and the whole space as invariant complex-linear subspaces. The group Fourier matrix has columns indexed by and rows indexed by triples with and , and is defined by
with the real square root viewed as a complex scalar. A group is nonempty, so . If , 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 , every Young diagram with cells and first-column length at most , every filling of its cells by that is weakly increasing along rows and strictly increasing down columns, and every natural number , this definition gives the finite set
viewed as a set of pairs of natural-number row and column coordinates. There is no requirement that be positive or at most . For , the set is empty; for , it contains every cell of ; and for , it is empty for every .
QAlgorithms.Papers.Independent.Extend50.P24.inducedAction
Let be a finite group, a subgroup equipped with a finite enumeration, and a finite type. Let and be a bijection satisfying . Let consist of a natural number , positive dimensions for , and representations preserving identity and multiplication, whose matrices are unitary and for which every complex subspace invariant under all is either zero or the whole space. For any label and any , the definition gives a complex matrix with rows and columns indexed by : writing , its entries are
The choice of requires , and its dimension is positive.
QAlgorithms.Papers.Independent.Extend50.P24.inducedEmbedding
Let be a finite group, a subgroup equipped with a finite enumeration, and a finite type, with a function and a bijection satisfying . Let specify finitely many labels , positive dimensions , and identity- and multiplication-preserving representations , all unitary, such that their only invariant complex subspaces are zero and the whole space. For a label and an index , the definition gives a complex matrix with rows indexed by and columns indexed by . If , then
Here the square root is the real square root, embedded in , and the overline is complex conjugation.
QAlgorithms.Papers.Independent.Extend50.P24.inducedFourier
Let be a finite group, a subgroup equipped with a finite enumeration, and a finite type, with a function and a bijection satisfying . For each , let specify a natural number , positive dimensions , and identity- and multiplication-preserving representations that are unitary and have only zero and the whole space as invariant complex subspaces. For and , the definition gives the matrix with rows indexed by triples , where and , and columns indexed by , where and , whose entries are
Equivalently, this is the product of the matrix with entries and the embedding whose entry at is when , and zero otherwise.
QAlgorithms.Papers.Independent.Extend50.P24.moduleAction
For every natural number , every nondecreasing function , and every permutation , let be the functions for some . The definition gives the complex matrix , with both rows and columns indexed by , whose entries are
Equality here means equality of the underlying functions at every position. For , there is one word and one permutation, and the matrix has the single entry .
QAlgorithms.Papers.Independent.Extend50.P24.moduleRequest
For every natural number , every nondecreasing function , and every natural number , this definition produces a Boolean list. Write for copies of true followed by one false, and write for list concatenation. The list is exactly
Indeed, the request prefix uses parameters ; its binary encoding of has length one and consists of true. The remaining part records the number of entries and then their unary encodings in index order. Neither nor is required to be positive; when , the final sequence of entry encodings is empty.
QAlgorithms.Papers.Independent.Extend50.P24.moduleWordCode
For every natural number and every function , the defined natural-number code is
No monotonicity or permutation condition is imposed on . For , the function is empty and its code is the empty sum, namely zero; for , the only function also has code zero.
QAlgorithms.Papers.Independent.Extend50.P24.moduleWordFintype
For every natural number and every nondecreasing function , this instance supplies a finite enumeration, containing every element exactly once, of the functions satisfying for some permutation of . For , the enumerated type has the single empty function.
QAlgorithms.Papers.Independent.Extend50.P24.permutationCode
For every natural number and every permutation of , its code is the natural number
Thus the values of the permutation are used as base- digits, with in the least significant position. For , the sum is empty and equals .
QAlgorithms.Papers.Independent.Extend50.P24.permutationsOn
For every natural number and every finite subset , the defined finite set is
There is no requirement that be consecutive. For , this set contains only the identity permutation; for , it contains every permutation. These descriptions also apply when , when there is a single empty permutation.
QAlgorithms.Papers.Independent.Extend50.P24.qftPermMod
For every natural number , let be the set of Young diagrams having cells and at most rows. For each , let consist of bijections from to the cells of such that labels increase strictly from left to right in a row and from top to bottom in a column, and write . The supplied family assigns to each an identity- and multiplication-preserving map with unitary matrices and the following prescribed entries for every adjacent pair : if , , , and , regarded as a real number, then equals when share a row and , equals when they share a column and , and is zero off the diagonal in either of those cases; when they share neither a row nor a column, it equals if , equals if , and equals zero otherwise. Given also a nondecreasing function , set and . The definition gives a complex matrix , with rows indexed by for and , and columns indexed by , with entries
Here the square roots and inverses are taken in and embedded in ; contains the identity. The definition includes , with the empty diagram, empty tableaux, and empty word, giving a one-by-one matrix with entry .
QAlgorithms.Papers.Independent.Extend50.P24.requestCode
For any natural numbers , let , equivalently the least natural number satisfying , and let be the length- binary representation of , with the most significant bit first. The request code is the Boolean list
where denotes true bits followed by one false bit, and juxtaposition denotes concatenation. More literally, is the bit string corresponding to under the binary equivalence whose numerical value on bits is ; the chosen ensures that this residue is . All three arguments may be zero; when , , is empty, and the code ends with the single false bit encoding .
QAlgorithms.Papers.Independent.Extend50.P24.semistandardTableauFintype
For every pair of natural numbers and every Young diagram with cells and first-column length at most , this instance equips the collection of fillings of its cells by 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 or is required. When , this collection consists of the unique empty filling; when , there is no diagram satisfying the required bound.
QAlgorithms.Papers.Independent.Extend50.P24.standardTableauFintype
For every natural number and Young diagram , this supplies a finite enumeration of the bijections from onto the cells of 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 has a number of cells different from . When and is empty, the enumeration contains the unique empty bijection.
QAlgorithms.Papers.Independent.Extend50.P24.strongCode
For arbitrary natural numbers and an index , where has boxes and at most rows, bijectively places labels increasingly along rows and columns, and fills the boxes with entries , weakly increasing along rows and strictly increasing down columns, write using natural-number row and column coordinates. This definition assigns
where the natural-number pairing function is if , and 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 , both sums and the resulting code are zero; for , no index exists.
QAlgorithms.Papers.Independent.Extend50.P24.strongMatrix
For natural numbers and a frame of the specified kind, this definition forms the complex matrix whose columns are indexed by words and whose rows are indexed by triples : has boxes and at most rows, bijectively places labels increasingly along rows and columns, and fills the boxes with entries , weakly increasing along rows and strictly increasing down columns. The frame includes unitary permutation representations on the standard-tableau coordinates, orthonormal bases indexed by the semistandard fillings, and a surjective complex linear isometry from the word-coordinate space to the triple-coordinate space. Here the space underlying each basis is the range of , using the definition’s fixed numbering of the boxes, row-preserving permutations , column-preserving permutations , and permutation matrices exactly when . If denotes followed by orthogonal projection onto , restricted to , the frame requires each , for every , to lie in an isometrically embedded , where consists exactly of boxes with -entry below , has some natural number of boxes and at most rows, and the embedding intertwines with for every unitary and every vector in . The representations obey the following adjacent-transposition rule: for , the entry from to is if the two boxes have the same row, otherwise if they have the same column, otherwise if , otherwise if , and otherwise zero, where is the content of minus the content of , and a box’s content is its column number minus its row number. The transform satisfies and for all permutations , unitary , vectors , and output indices. The matrix being defined is precisely
where has coordinate at and elsewhere. Zero values of are permitted: gives singleton input and output index sets, while gives empty input and output index sets.
QAlgorithms.Papers.Independent.Extend50.P24.subgroupSum
For every natural number , every Young diagram , every model of shape , and every finite subset , this definition gives the complex matrix
indexed by standard tableaux of shape , meaning bijections from labels to its cells with labels increasing strictly along rows and columns. Here is a group homomorphism into unitary matrices with the following adjacent-transposition coefficients: for adjacent labels in an input tableau, the matrix acts by if their cells share a row and by if they share a column; otherwise the coefficient at the original tableau is , the coefficient at the tableau with the two labels exchanged is , and all other coefficients vanish, where is the second cell's content minus the first cell's content and content is column minus row. No consecutiveness condition is imposed on . If is empty, the sum is the identity matrix; if has no standard tableau on these labels, the matrix has an empty index set.
QAlgorithms.Papers.Independent.Extend50.P24.symmetricCode
For every natural number and index , where is a Young diagram with exactly cells and first-column length at most , and are bijective labelings of its cells by increasing along rows and columns, define
where and . Then
For , the shape and tableaux are empty, both sums are , and the resulting code is .
QAlgorithms.Papers.Independent.Extend50.P24.symmetricFourier
For every natural number , suppose assigns a model to each Young diagram with cells and first-column length at most . Here is an identity-preserving multiplicative map from to unitary complex matrices indexed by the set of bijections from labels onto with increasing row and column labels. Its adjacent-transposition entries have the following rule: for , , , and , the entry in row , column is if share a row, otherwise if they share a column, otherwise if , otherwise if , 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 with rows , where , and columns , by
The real square root is embedded into . The denominator is positive even for ; in that case this is the one-by-one matrix with entry .
QAlgorithms.Papers.Independent.Extend50.P24.tableauCode
For any natural number , Young diagram , and standard tableau given by a bijection from to the cells of , with labels increasing along each row from left to right and each column from top to bottom, write , using natural-number row and column coordinates. Its code is
The existence of requires that have exactly cells. For , such a tableau has empty shape and its code is .
QAlgorithms.Papers.Independent.Extend50.P24.tensorWordCode
For arbitrary natural numbers and every word , this definition assigns the natural number
Thus position has coefficient . For the empty sum is zero, including when ; for no such word exists, and for the unique word has code zero.
QAlgorithms.Papers.Independent.Extend50.P24.youngCoefficient
For every natural number , Young diagram , labels , and bijections from these labels onto whose labels increase along rows and columns, this defines a complex number as follows. Write and , using row and column coordinates, and put , with the coordinate differences taken in the integers. Let exchange labels and . The value is
All real values are regarded as complex numbers. There is no assumption that are distinct or adjacent; when , the same-row branch gives for and otherwise. In the branches using , 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 , write for the permutations of . A standard tableau of shape is a bijection from these labels to the cells of , with labels increasing strictly along each row and column. The coordinates here are triples , where has cells and at most rows, and are standard tableaux of shape . Let assign to every such shape a group homomorphism from to unitary matrices indexed by its standard tableaux. These homomorphisms have the prescribed adjacent-transposition entries: if , the cells containing in an input tableau have contents , where content means column minus row, and , then the output coefficient at is when the cells share a row, when they share a column, and otherwise is at , at the tableau obtained by exchanging , and zero elsewhere. For every and complex Euclidean vector on the triples, the defined action is
Thus the sum changes the first tableau coordinate while retaining the shape and second tableau coordinate. The definition includes , 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 and every nondecreasing function , the definition gives the finite set
where is the group of all permutations of . Membership means equality at every input position. The identity permutation belongs to this set, so it is nonempty; for , it consists of the unique permutation of the empty set.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.