NLA-lib Explorer

NLAlib.isObliviousSubspaceInjection_of_hasLaw_haarFrame

Library · theorem

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

The Haar OSI: the Haar sketch is an oblivious subspace injection for dimension d with constant \frac{(1 - (\sqrt{d} + t)/\sqrt{\lvert k \rvert})^2} {(1 + (\sqrt{\lvert k \rvert} + s)/\sqrt{\lvert n \rvert})^2} and failure probability e^{-t^2/2} + e^{-s^2/2}, for k nonempty and 0 \le t \le \sqrt{\lvert k \rvert} - \sqrt{d} and s \ge 0. Result: haar-sketch-osi

NLAlib.isObliviousSubspaceInjection_of_hasLaw_haarFrame.{u_1, u_2, u_3} {Ω : Type u_1}
  {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {k : Type u_2} {n : Type u_3} [Fintype k] [Fintype n]
  [DecidableEq k] {Q : Ω → Matrix n k ℝ} {t s : ℝ} [DecidableEq n] [Nonempty k]
  (hQ : HasLaw Q (haarFrame n k) μ) (hk : Fintype.card k ≤ Fintype.card n) (d : ℕ) (ht : 0 ≤ t)
  (htd : t ≤ √↑(Fintype.card k) - √↑d) (hs : 0 ≤ s) :
  IsObliviousSubspaceInjection (fun ω ↦ √(↑(Fintype.card n) / ↑(Fintype.card k)) • (Q ω)ᴴ) d
    ((1 - (√↑d + t) / √↑(Fintype.card k)) ^ 2 /
      (1 + (√↑(Fintype.card k) + s) / √↑(Fintype.card n)) ^ 2)
    (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.