Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Definitions for RepLAB: a computational/numerical approach to representation theory

Definition
QAlgorithms_Papers_Independent_Extend50_P23

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

prove2quantum

The objects the formalized statements of RepLAB: a computational/numerical approach to representation theory (arXiv:1911.09154) are stated in. Each was checked against the paper by a blind read-back and a moderator.

  • IsUnitaryRepresentation: PDF p.3, Eq.(2) and footnote 8: a continuous complex unitary representation. The matrix homomorphism laws are included, even for zero-dimensional spaces.
  • Commutes: PDF p.3, Eq.(4): membership in the full complex commutant, without a Hermitian, positivity, or trace restriction.
  • representationHaarProjection: PDF p.4, Eq.(8): exact normalized-Haar averaging. Theorems supply the probability-Haar and continuity assumptions which make this integral genuine.
  • representationInvariant: PDF pp.3,5: invariance of a complex linear subspace.
  • IrreducibleOn: PDF pp.3,5: an irreducible subrepresentation is nonzero, invariant, and has no invariant subspace other than zero and itself.
  • rowCompression: PDF p.5, Eq.(10): representation in an orthonormal row basis B.
  • eigenSpace: PDF p.5: eigenspace in the original coordinates, with no simple-spectrum assumption on the full n by n matrix.
  • multiplicityBlock: PDF p.3, Eq.(7): the multiplicity block extracted from the actual matrix in an independently fixed Eq.(6) isotypic basis. The first irreducible coordinate exists because deg i is positive. The scalar-tensor identity is not assumed.
  • GaussianCoordinates: PDF p.4, §2.1: independent real Gaussian coordinates used to sample GUE.
  • gaussianCoordinatesLaw: PDF p.4, §2.1: independent standard normals, before any fixed basis is examined. Using the coordinate probability space avoids an implicit pushforward.
  • gueMatrix: PDF p.4, §2.1: GUE sample H=(Z+Z†)/2, where Z has independent N(0,1) real and imaginary entries. Diagonal variance is 1 and off-diagonal real and imaginary variances are 1/2. An overall positive scale is immaterial here.
  • NonzeroCertificate: PDF pp.5–6, Proposition 1: the full nonzero-block certificate, including similarity in the printed direction and a nonzero scalar making F unitary.
  • DetectionLaw: PDF pp.5–6, Proposition 1: zero detects inequivalence almost surely; nonzero gives an exact certificate for every draw. The probability law is concrete, and the bases are chosen before this law is quantified.
  • representationDirectSum: PDF p.6, §2.3: the constructed representation sigma ⊕ tau. The sum index is the canonical coordinate model for C^(n1+n2). Reuses the frozen matrix direct-sum constructor pointwise in g.
Definition code
import Mathlib
import Definitions.Def_QAlgorithms_Defs_Basic
import Definitions.Def_QAlgorithms_Papers_Independent_Support21_P09
import Definitions.Def_QAlgorithms_Papers_Independent_Dependency50_P05
import Definitions.Def_QAlgorithms_Papers_Independent_Dependency50_P35

/-!
Exact components of RepLAB, arXiv:1911.09154v1, PDF pp.3–6.
Paper-specific definitions are local; matching concepts reuse pinned accepted libraries. No floating point correctness,
unspecified stochastic limit, or numerical complexity guarantee is asserted.
-/

noncomputable section

namespace QAlgorithms.Papers.Independent.Extend50.P23

open MeasureTheory
open scoped ComplexConjugate BigOperators Matrix.Norms.Elementwise

open QAlgorithms.Papers.Independent.Support21.P09 (EquivalentModels)
open QAlgorithms.Papers.Independent.Dependency50.P05 (UnitaryBetween)

/-- PDF p.3, Eq.(2) and footnote 8: a continuous complex unitary representation.
The matrix homomorphism laws are included, even for zero-dimensional spaces. -/
def IsUnitaryRepresentation {G ι : Type*} [Group G] [TopologicalSpace G]
    [Fintype ι] [DecidableEq ι] (rho : G → Matrix ι ι ℂ) : Prop :=
  rho 1 = 1 ∧ (∀ g h, rho (g * h) = rho g * rho h) ∧
    (∀ g, rho g ∈ Matrix.unitaryGroup ι ℂ) ∧ Continuous rho

/-- PDF p.3, Eq.(4): membership in the full complex commutant, without a
Hermitian, positivity, or trace restriction. -/
def Commutes {G ι : Type*} [Fintype ι]
    (rho : G → Matrix ι ι ℂ) (X : Matrix ι ι ℂ) : Prop :=
  ∀ g, rho g * X = X * rho g

/-- PDF p.4, Eq.(8): exact normalized-Haar averaging. Theorems supply the
probability-Haar and continuity assumptions which make this integral genuine. -/
def representationHaarProjection {G ι : Type*} [MeasurableSpace G] [Fintype ι]
    (rho : G → Matrix ι ι ℂ) (mu : Measure G) (X : Matrix ι ι ℂ) : Matrix ι ι ℂ :=
  ∫ g, rho g * X * (rho g).conjTranspose ∂mu

/-- PDF pp.3,5: invariance of a complex linear subspace. -/
def representationInvariant {G ι : Type*} [Fintype ι] (rho : G → Matrix ι ι ℂ)
    (S : Submodule ℂ (ι → ℂ)) : Prop :=
  ∀ g v, v ∈ S → (rho g).mulVec v ∈ S

/-- PDF pp.3,5: an irreducible subrepresentation is nonzero, invariant, and has
no invariant subspace other than zero and itself. -/
def IrreducibleOn {G ι : Type*} [Fintype ι] (rho : G → Matrix ι ι ℂ)
    (S : Submodule ℂ (ι → ℂ)) : Prop :=
  S ≠ ⊥ ∧ representationInvariant rho S ∧
    ∀ T : Submodule ℂ (ι → ℂ), T ≤ S → representationInvariant rho T → T = ⊥ ∨ T = S

/-- PDF p.5, Eq.(10): representation in an orthonormal row basis B. -/
def rowCompression {G ι κ : Type*} [Fintype ι]
    (rho : G → Matrix ι ι ℂ) (B : Matrix κ ι ℂ) : G → Matrix κ κ ℂ :=
  fun g => B * rho g * B.conjTranspose

/-- PDF p.5: eigenspace in the original coordinates, with no simple-spectrum
assumption on the full n by n matrix. -/
def eigenSpace {ι : Type*} [Fintype ι] [DecidableEq ι]
    (X : Matrix ι ι ℂ) (z : ℂ) : Submodule ℂ (ι → ℂ) :=
  LinearMap.ker (Matrix.toLin' X - z • LinearMap.id)

/-- PDF p.3, Eq.(7): the multiplicity block extracted from the actual matrix
in an independently fixed Eq.(6) isotypic basis. The first irreducible coordinate
exists because deg i is positive. The scalar-tensor identity is not assumed. -/
def multiplicityBlock {k n : ℕ} (deg mult : Fin k → ℕ)
    (hdeg : ∀ i, 0 < deg i)
    (U : Matrix (QAlgorithms.Papers.Independent.Support21.P09.BlockIndex mult deg) (Fin n) ℂ)
    (X : Matrix (Fin n) (Fin n) ℂ) (i : Fin k) :
    Matrix (Fin (mult i)) (Fin (mult i)) ℂ :=
  fun a b => (U * X * U.conjTranspose)
    ⟨i, (a, ⟨0, hdeg i⟩)⟩ ⟨i, (b, ⟨0, hdeg i⟩)⟩

/-- PDF p.4, §2.1: independent real Gaussian coordinates used to sample GUE. -/
abbrev GaussianCoordinates (ι : Type*) := (ι × ι × Bool) → ℝ

/-- PDF p.4, §2.1: independent standard normals, before any fixed basis is
examined. Using the coordinate probability space avoids an implicit pushforward. -/
def gaussianCoordinatesLaw (ι : Type*) [Fintype ι] : Measure (GaussianCoordinates ι) :=
  Measure.pi (fun _ : ι × ι × Bool => ProbabilityTheory.gaussianReal 0 1)

/-- PDF p.4, §2.1: GUE sample H=(Z+Z†)/2, where Z has independent N(0,1)
real and imaginary entries. Diagonal variance is 1 and off-diagonal real and
imaginary variances are 1/2. An overall positive scale is immaterial here. -/
def gueMatrix {ι : Type*} (x : GaussianCoordinates ι) : Matrix ι ι ℂ :=
  fun a b => (((x (a, b, false) : ℂ) + Complex.I * (x (a, b, true) : ℂ)) +
    conj ((x (b, a, false) : ℂ) + Complex.I * (x (b, a, true) : ℂ))) / 2

/-- PDF pp.5–6, Proposition 1: the full nonzero-block certificate, including
similarity in the printed direction and a nonzero scalar making F unitary. -/
def NonzeroCertificate {G : Type*} {ι κ : Type} [Fintype ι] [Fintype κ]
    [DecidableEq ι] [DecidableEq κ]
    (sigma : G → Matrix ι ι ℂ) (tau : G → Matrix κ κ ℂ) (F : Matrix ι κ ℂ) : Prop :=
  EquivalentModels sigma tau ∧
    (∃ B : Matrix κ ι ℂ, F * B = 1 ∧ B * F = 1 ∧
      ∀ g, sigma g = F * tau g * B) ∧
    ∃ alpha : ℂ, alpha ≠ 0 ∧ UnitaryBetween (alpha • F)

/-- PDF pp.5–6, Proposition 1: zero detects inequivalence almost surely;
nonzero gives an exact certificate for every draw. The probability law is
concrete, and the bases are chosen before this law is quantified. -/
def DetectionLaw {G Ω : Type*} {ι κ : Type} [MeasurableSpace Ω] [Fintype ι] [Fintype κ]
    [DecidableEq ι] [DecidableEq κ]
    (sigma : G → Matrix ι ι ℂ) (tau : G → Matrix κ κ ℂ)
    (sample : Ω → Matrix ι κ ℂ) (nu : Measure Ω) : Prop :=
  (∀ᵐ x ∂nu, sample x = 0 ↔ ¬ EquivalentModels sigma tau) ∧
    ∀ x, sample x ≠ 0 → NonzeroCertificate sigma tau (sample x)

/-- PDF p.6, §2.3: the constructed representation sigma ⊕ tau.
The sum index is the canonical coordinate model for C^(n1+n2).
Reuses the frozen matrix direct-sum constructor pointwise in g. -/
def representationDirectSum {G : Type*} {ι κ : Type}
    (sigma : G → Matrix ι ι ℂ) (tau : G → Matrix κ κ ℂ) :
    G → Matrix (ι ⊕ κ) (ι ⊕ κ) ℂ :=
  fun g => QAlgorithms.Papers.Independent.Dependency50.P35.directSum (sigma g) (tau g)

/-- Sanity: the commutant includes the identity. -/
example {G ι : Type*} [Fintype ι] [DecidableEq ι] (rho : G → Matrix ι ι ℂ) :
    Commutes rho 1 := by
  intro g
  simp

/-- Sanity: Haar averaging never creates a vector from the zero matrix. -/
example {G ι : Type*} [MeasurableSpace G] [Fintype ι]
    (rho : G → Matrix ι ι ℂ) (mu : Measure G) : representationHaarProjection rho mu 0 = 0 := by
  simp [representationHaarProjection]

/-- Sanity: the extracted multiplicity block is precisely the stated coordinate
slice of U X U†, with no diagonalization premise. -/
example {k n : ℕ} (deg mult : Fin k → ℕ) (hdeg : ∀ i, 0 < deg i)
    (U : Matrix (QAlgorithms.Papers.Independent.Support21.P09.BlockIndex mult deg) (Fin n) ℂ)
    (X : Matrix (Fin n) (Fin n) ℂ) (i : Fin k) (a b : Fin (mult i)) :
    multiplicityBlock deg mult hdeg U X i a b =
      (U * X * U.conjTranspose) ⟨i, (a, ⟨0, hdeg i⟩)⟩ ⟨i, (b, ⟨0, hdeg i⟩)⟩ := rfl

/-- Sanity: the GUE sample is zero on zero Gaussian coordinates. -/
example {ι : Type*} : gueMatrix (0 : GaussianCoordinates ι) = 0 := by
  ext a b
  simp [gueMatrix]

/-- Sanity: irreducibility excludes the zero representation space. -/
example {G ι : Type*} [Fintype ι] (rho : G → Matrix ι ι ℂ)
    (h : QAlgorithms.Papers.Independent.Support21.P09.Irreducible rho) : Nonempty ι := h.1

/-- Sanity: the constructed direct sum has zero off-diagonal blocks. -/
example {G : Type*} {ι κ : Type} (sigma : G → Matrix ι ι ℂ) (tau : G → Matrix κ κ ℂ)
    (g : G) (i : ι) (j : κ) : representationDirectSum sigma tau g (Sum.inl i) (Sum.inr j) = 0 := rfl

end QAlgorithms.Papers.Independent.Extend50.P23
Source
RepLAB: a computational/numerical approach to representation theory, arXiv:1911.09154v1, https://arxiv.org/abs/1911.09154v1
Read-back

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

QAlgorithms.Papers.Independent.Extend50.P23.Commutes

For arbitrary types GGG and finite ι\iotaι, a function ρ:G→Cι×ι\rho:G\to\mathbb C^{\iota\times\iota}ρ:G→Cι×ι, and a matrix X∈Cι×ιX\in\mathbb C^{\iota\times\iota}X∈Cι×ι, this predicate means that ρ(g)X=Xρ(g)\rho(g)X=X\rho(g)ρ(g)X=Xρ(g) for every g∈Gg\in Gg∈G. Neither a group structure on GGG nor any representation or unitarity property of ρ\rhoρ is required. If GGG is empty, the condition is vacuous; if ι\iotaι is empty, the matrix equality always holds.

QAlgorithms.Papers.Independent.Extend50.P23.CopyIndex

For a natural number MMM and a family of natural numbers did_idi​, indexed by 0≤i<M0\le i<M0≤i<M, this abbreviates the type of pairs (i,a)(i,a)(i,a) with 0≤i<M0\le i<M0≤i<M and 0≤a<di0\le a<d_i0≤a<di​. Thus the second coordinate has a range depending on the first, and the type has ∑i=0M−1di\sum_{i=0}^{M-1}d_i∑i=0M−1​di​ elements. It is empty when M=0M=0M=0, and an index with di=0d_i=0di​=0 contributes no elements.

QAlgorithms.Papers.Independent.Extend50.P23.DetectionLaw

Let GGG be any type, let Ω\OmegaΩ be a measurable space with any measure ν\nuν, let ι,κ\iota,\kappaι,κ be finite types equipped with decidable equality, and let σ:G→Cι×ι\sigma:G\to\mathbb C^{\iota\times\iota}σ:G→Cι×ι, τ:G→Cκ×κ\tau:G\to\mathbb C^{\kappa\times\kappa}τ:G→Cκ×κ, and S:Ω→Cι×κS:\Omega\to\mathbb C^{\iota\times\kappa}S:Ω→Cι×κ be arbitrary. Say that the two families are equivalent if there exist A∈Cι×κA\in\mathbb C^{\iota\times\kappa}A∈Cι×κ and C∈Cκ×ιC\in\mathbb C^{\kappa\times\iota}C∈Cκ×ι with AC=IιAC=I_\iotaAC=Iι​, CA=IκCA=I_\kappaCA=Iκ​, and σ(g)A=Aτ(g)\sigma(g)A=A\tau(g)σ(g)A=Aτ(g) for every ggg. This predicate says that, for ν\nuν-almost every xxx, S(x)=0S(x)=0S(x)=0 if and only if the families are not equivalent; moreover, for every x∈Ωx\in\Omegax∈Ω, including points in exceptional null sets, S(x)≠0S(x)\ne0S(x)=0 implies that the families are equivalent, that there exists BBB with S(x)B=IιS(x)B=I_\iotaS(x)B=Iι​, BS(x)=IκBS(x)=I_\kappaBS(x)=Iκ​, and σ(g)=S(x)τ(g)B\sigma(g)=S(x)\tau(g)Bσ(g)=S(x)τ(g)B for every ggg, and that some α∈C∖{0}\alpha\in\mathbb C\setminus\{0\}α∈C∖{0} satisfies (αS(x))∗(αS(x))=Iκ(\alpha S(x))^*(\alpha S(x))=I_\kappa(αS(x))∗(αS(x))=Iκ​ and (αS(x))(αS(x))∗=Iι(\alpha S(x))(\alpha S(x))^*=I_\iota(αS(x))(αS(x))∗=Iι​. Neither measurability of SSS nor a probability-measure assumption on ν\nuν is required. In particular, for the zero measure the almost-everywhere clause is vacuous, while the condition at every nonzero sample remains required; empty index types are also permitted.

QAlgorithms.Papers.Independent.Extend50.P23.GaussianCoordinates

For an arbitrary type ι\iotaι, this abbreviates the type of all real-valued functions on ι×ι×{false,true}\iota\times\iota\times\{\mathrm{false},\mathrm{true}\}ι×ι×{false,true}. An element therefore assigns a real number xa,b,βx_{a,b,\beta}xa,b,β​ to each a,b∈ιa,b\in\iotaa,b∈ι and Boolean value β\betaβ. No finiteness or probabilistic assumption is part of this abbreviation. If ι\iotaι is empty, there is exactly one such function.

QAlgorithms.Papers.Independent.Extend50.P23.IrreducibleOn

For arbitrary types GGG and finite ι\iotaι, a function ρ:G→Cι×ι\rho:G\to\mathbb C^{\iota\times\iota}ρ:G→Cι×ι, and a complex linear subspace S⊆CιS\subseteq\mathbb C^\iotaS⊆Cι, this predicate means that S≠{0}S\ne\{0\}S={0}, that ρ(g)v∈S\rho(g)v\in Sρ(g)v∈S for every g∈Gg\in Gg∈G and v∈Sv\in Sv∈S, and that every complex linear subspace T⊆ST\subseteq ST⊆S satisfying ρ(g)v∈T\rho(g)v\in Tρ(g)v∈T for every g∈Gg\in Gg∈G and v∈Tv\in Tv∈T is either {0}\{0\}{0} or SSS. No group, representation, or unitarity assumptions are imposed on ρ\rhoρ. If ι\iotaι is empty, the required nonzero subspace cannot exist; if GGG is empty, the invariance conditions are vacuous, so the predicate requires SSS to be one-dimensional.

QAlgorithms.Papers.Independent.Extend50.P23.IsUnitaryRepresentation

For a group GGG equipped with a topology, a finite index type ι\iotaι with decidable equality, and a function ρ:G→Cι×ι\rho:G\to\mathbb C^{\iota\times\iota}ρ:G→Cι×ι, this predicate means that ρ(1G)=I\rho(1_G)=Iρ(1G​)=I, that ρ(gh)=ρ(g)ρ(h)\rho(gh)=\rho(g)\rho(h)ρ(gh)=ρ(g)ρ(h) for every g,h∈Gg,h\in Gg,h∈G, that every ρ(g)\rho(g)ρ(g) is unitary, and that ρ\rhoρ is continuous into the usual topology on complex matrices. No compatibility between the topology and the group operations is assumed. The index type ι\iotaι may be empty; in that case all these conditions hold for its unique matrix-valued function.

QAlgorithms.Papers.Independent.Extend50.P23.NonzeroCertificate

Let GGG be any type, let ι,κ\iota,\kappaι,κ be finite types equipped with decidable equality, and let σ:G→Cι×ι\sigma:G\to\mathbb C^{\iota\times\iota}σ:G→Cι×ι, τ:G→Cκ×κ\tau:G\to\mathbb C^{\kappa\times\kappa}τ:G→Cκ×κ, and F∈Cι×κF\in\mathbb C^{\iota\times\kappa}F∈Cι×κ be arbitrary. This predicate requires all three of the following: there exist matrices A∈Cι×κA\in\mathbb C^{\iota\times\kappa}A∈Cι×κ and C∈Cκ×ιC\in\mathbb C^{\kappa\times\iota}C∈Cκ×ι such that AC=IιAC=I_\iotaAC=Iι​, CA=IκCA=I_\kappaCA=Iκ​, and σ(g)A=Aτ(g)\sigma(g)A=A\tau(g)σ(g)A=Aτ(g) for every g∈Gg\in Gg∈G; there exists B∈Cκ×ιB\in\mathbb C^{\kappa\times\iota}B∈Cκ×ι such that FB=IιFB=I_\iotaFB=Iι​, BF=IκBF=I_\kappaBF=Iκ​, and σ(g)=Fτ(g)B\sigma(g)=F\tau(g)Bσ(g)=Fτ(g)B for every g∈Gg\in Gg∈G; and there exists a complex scalar α≠0\alpha\ne0α=0 such that

(αF)∗(αF)=Iκ,(αF)(αF)∗=Iι,(\alpha F)^*(\alpha F)=I_\kappa, \qquad (\alpha F)(\alpha F)^*=I_\iota,(αF)∗(αF)=Iκ​,(αF)(αF)∗=Iι​,

where ∗^*∗ denotes conjugate transpose. No group, representation, or unitarity assumptions are imposed on the families σ,τ\sigma,\tauσ,τ. The predicate does not separately require F≠0F\ne0F=0; when both index types are empty, their unique matrix is zero and satisfies the predicate.

QAlgorithms.Papers.Independent.Extend50.P23.copyAction

For an arbitrary type GGG, a natural number MMM, natural numbers did_idi​ for 0≤i<M0\le i<M0≤i<M, functions σi:G→Cdi×di\sigma_i:G\to\mathbb C^{d_i\times d_i}σi​:G→Cdi​×di​, and an element g∈Gg\in Gg∈G, this defines a matrix indexed by pairs (i,a)(i,a)(i,a) with 0≤i<M0\le i<M0≤i<M and 0≤a<di0\le a<d_i0≤a<di​. Its entry at row (i,a)(i,a)(i,a) and column (j,b)(j,b)(j,b) is σi(g)ab\sigma_i(g)_{ab}σi​(g)ab​ when i=ji=ji=j, identifying the coordinate ranges through that equality, and is zero when i≠ji\ne ji=j. No group, representation, or unitarity assumptions are required. Zero values of did_idi​ give empty blocks, and M=0M=0M=0 gives an empty matrix.

QAlgorithms.Papers.Independent.Extend50.P23.copyRows

For natural numbers M,nM,nM,n, natural numbers did_idi​ indexed by 0≤i<M0\le i<M0≤i<M, a matrix UUU whose rows are indexed by pairs (j,a)(j,a)(j,a) with 0≤j<M0\le j<M0≤j<M and 0≤a<dj0\le a<d_j0≤a<dj​ and whose columns are indexed by 0≤b<n0\le b<n0≤b<n, and a chosen index i<Mi<Mi<M, this defines the di×nd_i\times ndi​×n matrix with entry U(i,a),bU_{(i,a),b}U(i,a),b​ at (a,b)(a,b)(a,b). No property of UUU is assumed. The result has no rows if di=0d_i=0di​=0 and no columns if n=0n=0n=0; when M=0M=0M=0, there is no possible chosen index iii.

QAlgorithms.Papers.Independent.Extend50.P23.eigenSpace

For a finite index type ι\iotaι with decidable equality, a matrix X∈Cι×ιX\in\mathbb C^{\iota\times\iota}X∈Cι×ι, and an arbitrary complex number zzz, this defines the complex linear subspace {v∈Cι:Xv=zv}\{v\in\mathbb C^\iota:Xv=zv\}{v∈Cι:Xv=zv}, namely the kernel of the linear map X−zIX-zIX−zI. No Hermitian assumption on XXX or eigenvalue assumption on zzz is required; the subspace may be {0}\{0\}{0} and always contains the zero vector. If ι\iotaι is empty, it is the zero-dimensional space.

QAlgorithms.Papers.Independent.Extend50.P23.gaussianCoordinatesLaw

For a finite type ι\iotaι, this defines the product measure on the space of real coordinate arrays (xa,b,β)a,b∈ι, β∈{false,true}(x_{a,b,\beta})_{a,b\in\iota,\ \beta\in\{\mathrm{false},\mathrm{true}\}}(xa,b,β​)a,b∈ι, β∈{false,true}​, with a Gaussian distribution of mean zero and variance one on each coordinate. Thus all 2∣ι∣22|\iota|^22∣ι∣2 coordinates are independent standard real Gaussian variables. No nonemptiness or decidable-equality assumption on ι\iotaι is required. If ι\iotaι is empty, the product measure is the probability measure concentrated on the unique empty coordinate array.

QAlgorithms.Papers.Independent.Extend50.P23.gueMatrix

For any type ι\iotaι, with no finiteness or nonemptiness assumption, and any real coordinate array x:ι×ι×{false,true}→Rx:\iota\times\iota\times\{\mathrm{false},\mathrm{true}\}\to\mathbb Rx:ι×ι×{false,true}→R, this defines the complex matrix H(x)H(x)H(x) indexed by ι\iotaι by

H(x)ab=xab,false+ixab,true+xba,false+ixba,true‾2=xab,false+xba,false2+i2(xab,true−xba,true).H(x)_{ab} =\frac{x_{ab,\mathrm{false}}+\mathrm{i}x_{ab,\mathrm{true}} +\overline{x_{ba,\mathrm{false}}+\mathrm{i}x_{ba,\mathrm{true}}}}{2} =\frac{x_{ab,\mathrm{false}}+x_{ba,\mathrm{false}}}{2} +\frac{\mathrm{i}}{2}\bigl(x_{ab,\mathrm{true}}-x_{ba,\mathrm{true}}\bigr).H(x)ab​=2xab,false​+ixab,true​+xba,false​+ixba,true​​​=2xab,false​+xba,false​​+2i​(xab,true​−xba,true​).

In particular, its diagonal entry at aaa is xaa,falsex_{aa,\mathrm{false}}xaa,false​. The argument xxx is arbitrary; the definition itself imposes no probability distribution on its coordinates. If ι\iotaι is empty, it defines the unique empty matrix.

QAlgorithms.Papers.Independent.Extend50.P23.multiplicityBlock

For natural numbers k,nk,nk,n, functions deg⁡,mult:{0,…,k−1}→N\deg,\mathrm{mult}:\{0,\ldots,k-1\}\to\mathbb Ndeg,mult:{0,…,k−1}→N, proofs that deg⁡(i)>0\deg(i)>0deg(i)>0 for every iii, an arbitrary complex matrix UUU whose rows are indexed by triples (i,a,r)(i,a,r)(i,a,r) with a<mult(i)a<\mathrm{mult}(i)a<mult(i) and r<deg⁡(i)r<\deg(i)r<deg(i) and whose columns are indexed by {0,…,n−1}\{0,\ldots,n-1\}{0,…,n−1}, an arbitrary complex n×nn\times nn×n matrix XXX, and an index i<ki<ki<k, this defines the complex mult(i)×mult(i)\mathrm{mult}(i)\times\mathrm{mult}(i)mult(i)×mult(i) matrix CiC_iCi​ by

(Ci)ab=(UXU∗)(i,a,0),(i,b,0)=∑x,y=0n−1U(i,a,0),xXxyU(i,b,0),y‾.(C_i)_{ab}=(UXU^*)_{(i,a,0),(i,b,0)} =\sum_{x,y=0}^{n-1}U_{(i,a,0),x}X_{xy}\overline{U_{(i,b,0),y}}.(Ci​)ab​=(UXU∗)(i,a,0),(i,b,0)​=x,y=0∑n−1​U(i,a,0),x​Xxy​U(i,b,0),y​​.

Here U∗U^*U∗ is the conjugate transpose; the positivity of deg⁡(i)\deg(i)deg(i) makes the coordinate 000 available. No unitarity, Hermiticity, or commutation condition is imposed. Multiplicities may be zero, producing an empty matrix; n=0n=0n=0 is allowed, in which case the displayed sums are zero. When k=0k=0k=0, there is no index iii to supply.

QAlgorithms.Papers.Independent.Extend50.P23.representationDirectSum

For arbitrary types G,ι,κG,\iota,\kappaG,ι,κ and arbitrary matrix families σ:G→Cι×ι\sigma:G\to\mathbb C^{\iota\times\iota}σ:G→Cι×ι and τ:G→Cκ×κ\tau:G\to\mathbb C^{\kappa\times\kappa}τ:G→Cκ×κ, this defines a family on the disjoint union ι⊔κ\iota\sqcup\kappaι⊔κ by the block-diagonal formula

(σ⊕τ)(g)=(σ(g)00τ(g)).(\sigma\oplus\tau)(g)= \begin{pmatrix} \sigma(g)&0\\ 0&\tau(g) \end{pmatrix}.(σ⊕τ)(g)=(σ(g)0​0τ(g)​).

Explicitly, entries whose row and column both lie in ι\iotaι are the corresponding entries of σ(g)\sigma(g)σ(g), entries whose row and column both lie in κ\kappaκ are those of τ(g)\tau(g)τ(g), and both cross blocks are zero. No finiteness, group, continuity, or representation assumptions are imposed, and either index type may be empty.

QAlgorithms.Papers.Independent.Extend50.P23.representationHaarProjection

For a measurable type GGG, a finite index type ι\iotaι, an arbitrary function ρ:G→Cι×ι\rho:G\to\mathbb C^{\iota\times\iota}ρ:G→Cι×ι, a measure μ\muμ on GGG, and a matrix X∈Cι×ιX\in\mathbb C^{\iota\times\iota}X∈Cι×ι, this defines the matrix ∫Gρ(g)Xρ(g)† dμ(g)\int_G\rho(g)X\rho(g)^\dagger\,d\mu(g)∫G​ρ(g)Xρ(g)†dμ(g), where †\dagger† denotes conjugate transpose and the integral is the Bochner integral. No group structure, Haar property or normalization of μ\muμ, representation property of ρ\rhoρ, or measurability or integrability hypothesis is imposed. The integral uses the total convention that a nonintegrable integrand has integral zero. Empty ι\iotaι is permitted.

QAlgorithms.Papers.Independent.Extend50.P23.representationInvariant

For arbitrary types GGG and finite ι\iotaι, a function ρ:G→Cι×ι\rho:G\to\mathbb C^{\iota\times\iota}ρ:G→Cι×ι, and a complex linear subspace S⊆CιS\subseteq\mathbb C^\iotaS⊆Cι, this predicate means that for every g∈Gg\in Gg∈G and every v∈Sv\in Sv∈S, the vector with coordinates (ρ(g)v)i=∑j∈ιρ(g)ijvj(\rho(g)v)_i=\sum_{j\in\iota}\rho(g)_{ij}v_j(ρ(g)v)i​=∑j∈ι​ρ(g)ij​vj​ also belongs to SSS. No group or representation assumptions are required. If GGG is empty, every subspace satisfies the condition; the zero subspace always satisfies it.

QAlgorithms.Papers.Independent.Extend50.P23.rowCompression

For arbitrary types G,ι,κG,\iota,\kappaG,ι,κ with ι\iotaι finite, a function ρ:G→Cι×ι\rho:G\to\mathbb C^{\iota\times\iota}ρ:G→Cι×ι, and a matrix B∈Cκ×ιB\in\mathbb C^{\kappa\times\iota}B∈Cκ×ι, this defines the function g↦Bρ(g)B†g\mapsto B\rho(g)B^\daggerg↦Bρ(g)B† with values in Cκ×κ\mathbb C^{\kappa\times\kappa}Cκ×κ. Its (a,b)(a,b)(a,b) entry is ∑i,j∈ιBaiρ(g)ijBbj‾\sum_{i,j\in\iota}B_{ai}\rho(g)_{ij}\overline{B_{bj}}∑i,j∈ι​Bai​ρ(g)ij​Bbj​​. There is no finiteness assumption on GGG or κ\kappaκ, and no representation or normalization assumption on ρ\rhoρ or BBB. If ι\iotaι is empty, the result is the zero matrix for every ggg.

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