NLA-lib Explorer

The random orthonormal sketching identity

Library · Result group

Theorem (integral_frobNorm_pinv_mul_mul_sq_of_hasLaw_haarFrame). The random orthonormal sketching identity: for an m \times p Haar frame \mathbf{Q}, p \le m, complementary frames \mathbf{V}_1 (r columns) and \mathbf{V}_2 (\mathbf{V}_1^{\mathsf{H}}\mathbf{V}_2 = \mathbf{0}, r + \lvert s\rvert = m), r + 2 \le p and every \mathbf{B}, \mathbb{E}\|(\mathbf{Q}^{\mathsf{H}}\mathbf{V}_1)^{+}\mathbf{Q}^{\mathsf{H}}\mathbf{V}_2\mathbf{B} \|_{\mathsf{F}}^2 = \frac{m-p}{m-r}\cdot\frac{r}{p-r-1}\,\|\mathbf{B}\|_{\mathsf{F}}^2\,, the Haar twin of NLAlib.integral_frobNorm_pinv_mul_mul_sq_of_hasLaw_gaussianMatrix, smaller than the Gaussian value r/(p-r-1) by the factor (m-p)/(m-r). Unlike the Gaussian case the frames must be complementary: the proof uses \mathbf{\Omega}_1^{\mathsf{H}}\mathbf{\Omega}_1 + \mathbf{\Omega}_2^{\mathsf{H}}\mathbf{\Omega}_2 = \mathbf{Q}^{\mathsf{H}}\mathbf{Q} = \mathbf{I} for the blocks \mathbf{\Omega}_i = \mathbf{V}_i^{\mathsf{H}}\mathbf{Q}. [EpperlyWebber2026, Proposition 5.7]; there an inequality for general \mathbf{R}, equality at \mathbf{R} = \mathbf{I}, over \mathbb{R} and \mathbb{C}; here the real case at \mathbf{R} = \mathbf{I}.

Headline General form: sizes are index types

Lean statement and details
NLAlib.integral_frobNorm_pinv_mul_mul_sq_of_hasLaw_haarFrame.{u_1, u_2, u_3, u_4, u_5, u_6}
  {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {m : Type u_2} {p : Type u_3}
  {r : Type u_4} {s : Type u_5} {a : Type u_6} [Fintype m] [Fintype p] [Fintype r] [Fintype s]
  [Fintype a] {Q : Ω → Matrix m p ℝ} [DecidableEq p] [DecidableEq r] [DecidableEq s]
  (hQ : HasLaw Q (haarFrame m p) μ) (hpm : Fintype.card p ≤ Fintype.card m) {V₁ : Matrix m r ℝ}
  {V₂ : Matrix m s ℝ} (hV₁ : HasOrthonormalCols V₁) (hV₂ : HasOrthonormalCols V₂)
  (h₁₂ : V₁ᴴ * V₂ = 0) (hrs : Fintype.card r + Fintype.card s = Fintype.card m)
  (hrp : Fintype.card r + 2 ≤ Fintype.card p) (B : Matrix s a ℝ) :
  ∫ (ω : Ω), frobNorm (pinv ((Q ω)ᴴ * V₁) * ((Q ω)ᴴ * V₂) * B) ^ 2 ∂μ =
    frobNorm B ^ 2 *
      ((↑(Fintype.card m) - ↑(Fintype.card p)) / (↑(Fintype.card m) - ↑(Fintype.card r)) *
        (↑(Fintype.card r) / (↑(Fintype.card p) - ↑(Fintype.card r) - 1)))

Full source on GitHub

Copy link

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.