NLA-lib Explorer

NLAlib.HasOrthonormalCols.hasSubspaceEmbedding_of_hasLaw_haarFrame

Library · theorem

Headline of haar-sketch-ose (provisional) General form: sizes are index types

Haar subspace embedding, deterministic upper half: for \mathbf{U} with orthonormal columns and \lvert k \rvert \le \lvert n \rvert, the Haar sketch is a subspace embedding for \operatorname{range} \mathbf{U} with constants a_{\mathrm{H}} = \frac{(1 - (\sqrt{\lvert p \rvert} + t)/\sqrt{\lvert k \rvert})^2} {(1 + (\sqrt{\lvert k \rvert} + s)/\sqrt{\lvert n \rvert})^2}, \qquad \mathbf{b} = \frac{\lvert n \rvert}{\lvert k \rvert} outside probability e^{-t^2/2} + e^{-s^2/2}, for 0 \le t \le \sqrt{\lvert k \rvert} - \sqrt{\lvert p \rvert} and s \ge 0; no condition on s and \lvert k \rvert < \lvert n \rvert not needed. The lower constant is that of NLAlib.HasOrthonormalCols.hasSubspaceInjection_of_hasLaw_haarFrame. The upper half is NLAlib.ae_conjTranspose_mul_self_mul_le_smul_of_hasLaw_haarFrame. Its upper constant is exact at \lvert k \rvert = \lvert n \rvert and incomparable with the \mathbf{b}_{\mathrm{H}} of NLAlib.HasOrthonormalCols.hasSubspaceEmbedding_of_hasLaw_haarFrame_of_lt_sqrt_sub_sqrt, which is better for \lvert k \rvert small against \lvert n \rvert (rule 4). Result: haar-sketch-ose

NLAlib.HasOrthonormalCols.hasSubspaceEmbedding_of_hasLaw_haarFrame.{u_1, u_2, u_3, u_4}
  {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {k : Type u_2} {n : Type u_3}
  {p : Type u_4} [Fintype k] [Fintype n] [Fintype p] [DecidableEq k] {Q : Ω → Matrix n k ℝ}
  {U : Matrix n p ℝ} {t s : ℝ} [DecidableEq p] (hU : HasOrthonormalCols U)
  (hQ : HasLaw Q (haarFrame n k) μ) (hk : Fintype.card k ≤ Fintype.card n) (ht : 0 ≤ t)
  (htk : t ≤ √↑(Fintype.card k) - √↑(Fintype.card p)) (hs : 0 ≤ s) :
  HasSubspaceEmbedding (fun ω ↦ √(↑(Fintype.card n) / ↑(Fintype.card k)) • (Q ω)ᴴ) U
    ((1 - (√↑(Fintype.card p) + t) / √↑(Fintype.card k)) ^ 2 /
      (1 + (√↑(Fintype.card k) + s) / √↑(Fintype.card n)) ^ 2)
    (↑(Fintype.card n) / ↑(Fintype.card k)) (rexp (-t ^ 2 / 2) + rexp (-s ^ 2 / 2)) μ

Full source on GitHub

Import NLAlib.Sketching.Gaussian.HaarEmbedding.

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.