NLA-lib Explorer

NLAlib.integral_frobNorm_sub_mul_sketchAndSolve_sq_of_hasLaw_haarFrame

Library · theorem

General form: sizes are index types

Exact mean squared residual of sketch-and-solve with a random orthonormal sketch: for an m \times p Haar frame \mathbf{Q} with p \le m, the sketch \mathbf{Q}^{\mathsf{H}} and r = \operatorname{rank}\mathbf{A} with r + 2 \le p, <!-- value haarProjectionFactor m p r --> \mathbb{E}\|\mathbf{B} - \mathbf{A}\,\mathsf{sketchAndSolve}(\mathbf{A}, \mathbf{Q}^{\mathsf{H}}, \mathbf{B})\|_{\mathsf{F}}^2 = \Bigl(1 + \frac{m - p}{m - r}\cdot\frac{r}{p - r - 1}\Bigr) \min_{\mathbf{Y}}\|\mathbf{B}-\mathbf{A}\mathbf{Y}\|_{\mathsf{F}}^2\,, the minimum being \|(\mathbf{I}-\mathbf{P}_{\mathbf{A}})\mathbf{B}\|_{\mathsf{F}}^2 and the factor haarProjectionFactor m p r. Its integrand is that of NLAlib.integral_frobNorm_one_sub_obliqueProjector_mul_sq_of_hasLaw_haarFrame at \mathbf{X} = \mathbf{A} (NLAlib.mul_sketchAndSolve), whose integrability companion applies. [EpperlyWebber2026, Theorem 2.1 (random orthonormal)]; real case, \alpha_{\mathbb{R}} = 1. Result: sketch-and-solve-expected-error

NLAlib.integral_frobNorm_sub_mul_sketchAndSolve_sq_of_hasLaw_haarFrame.{u_1, u_2, u_3, u_4, u_5}
  {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {m : Type u_2} {n : Type u_3}
  {p : Type u_4} {r : Type u_5} [Fintype m] [Fintype n] [Fintype p] [Fintype r] [DecidableEq m]
  {Q : Ω → Matrix m p ℝ} [DecidableEq p] (hQ : HasLaw Q (haarFrame m p) μ)
  (hpm : Fintype.card p ≤ Fintype.card m) {A : Matrix m n ℝ} (hA : A.rank + 2 ≤ Fintype.card p)
  (B : Matrix m r ℝ) :
  ∫ (ω : Ω), frobNorm (B - A * sketchAndSolve A (Q ω)ᴴ B) ^ 2 ∂μ =
    haarProjectionFactor (Fintype.card m) (Fintype.card p) A.rank *
      frobNorm ((1 - rangeProjector A) * B) ^ 2

Full source on GitHub

Import NLAlib.Regression.SketchAndSolve.

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.