Theorem (integral_conjTranspose_mul_mul_of_hasLaw_haarFrame).The compression of a fixed matrix by a Haar frame: \mathbb{E}[\mathbf{Q}^{\mathsf{H}}\mathbf{A}\mathbf{Q}] = \frac{\operatorname{tr} \mathbf{A}}{\lvert n \rvert}\,\mathbf{I}\,, for an n \times k Haar frame \mathbf{Q}, \lvert k \rvert \le \lvert n \rvert. [Meckes2019, Ch. 2], there entrywise; here in matrix form.
Headline (provisional)General form: sizes are index types
Lean statement and details
NLAlib.integral_conjTranspose_mul_mul_of_hasLaw_haarFrame.{u_1, u_2, u_3} {Ω : Type u_1}
{mΩ : MeasurableSpace Ω} {μ : Measure Ω} {n : Type u_2} {k : Type u_3} [Fintype n] [Fintype k]
{X : Ω → Matrix n k ℝ} [DecidableEq k] (hX : HasLaw X (haarFrame n k) μ)
(hk : Fintype.card k ≤ Fintype.card n) (A : Matrix n n ℝ) :
∫ (ω : Ω), (X ω)ᴴ * A * X ω ∂μ = (A.trace / ↑(Fintype.card n)) • 1
Theorem (integral_mul_mul_conjTranspose_of_hasLaw_haarFrame).The second moment of a Haar frame: \mathbb{E}[\mathbf{Q}\mathbf{B}\mathbf{Q}^{\mathsf{H}}] = \frac{\operatorname{tr} \mathbf{B}}{\lvert n \rvert}\,\mathbf{I}\,, for an n \times k Haar frame \mathbf{Q}, \lvert k \rvert \le \lvert n \rvert. [Meckes2019, Ch. 2], there entrywise for the orthogonal group; here for frames, in matrix form.
General form: sizes are index types
Lean statement and details
NLAlib.integral_mul_mul_conjTranspose_of_hasLaw_haarFrame.{u_1, u_2, u_3} {Ω : Type u_1}
{mΩ : MeasurableSpace Ω} {μ : Measure Ω} {n : Type u_2} {k : Type u_3} [Fintype n] [Fintype k]
{X : Ω → Matrix n k ℝ} [DecidableEq n] [DecidableEq k] (hX : HasLaw X (haarFrame n k) μ)
(hk : Fintype.card k ≤ Fintype.card n) (B : Matrix k k ℝ) :
∫ (ω : Ω), X ω * B * (X ω)ᴴ ∂μ = (B.trace / ↑(Fintype.card n)) • 1
General form: sizes are index types. A size is carried by a finite index type: |k| is the number of elements of the index type k, and "k nonempty" means k ≥ 1.