NLA-lib Explorer

The Haar OSI

Library · Result group

Theorem (isObliviousSubspaceInjection_of_hasLaw_haarFrame). 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.

Headline (provisional) General form: sizes are index types

Lean statement and details
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

Copy link

Other forms

Theorem (isObliviousSubspaceInjection_of_hasLaw_haarFrame_of_jlDim_le). The Haar OSI by JL and a net, sample-size form: for k nonempty, \lvert k\rvert \le \lvert n\rvert, 0 < \varepsilon < 15/8, \delta > 0 and at least <!-- value jlDim (4\varepsilon/5) (\delta/21^d) --> \log(2/(\delta/21^d))/((4\varepsilon/5)^2/4 - (4\varepsilon/5)^3/6) rows (jlDim (4ε/5) (δ/21^d)), the Haar sketch \mathbf{S} = \sqrt{\lvert n\rvert/\lvert k\rvert}\,\mathbf{Q}^{\mathsf{H}} is an oblivious subspace injection for dimension d with constant 1 - \varepsilon and failure probability \delta: the embedding NLAlib.isObliviousSubspaceEmbedding_of_hasLaw_haarFrame_of_jlDim_le with the sketch's isotropy. [CamanoEpperlyMeyerTropp2025, Definition 1.2] for the notion. Asymptotic form: NLAlib.exists_forall_isObliviousSubspaceInjection_of_hasLaw_haarFrame.

General form: sizes are index types

Lean statement and details
NLAlib.isObliviousSubspaceInjection_of_hasLaw_haarFrame_of_jlDim_le.{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 ℝ} {ε δ : ℝ} [DecidableEq n] [Nonempty k]
  (hQ : HasLaw Q (haarFrame n k) μ) (hk : Fintype.card k ≤ Fintype.card n) {d : ℕ} (hε : 0 < ε)
  (hε3 : ε < 15 / 8) (hδ : 0 < δ) (hk' : jlDim (4 * ε / 5) (δ / 21 ^ d) ≤ ↑(Fintype.card k)) :
  IsObliviousSubspaceInjection (fun ω ↦ √(↑(Fintype.card n) / ↑(Fintype.card k)) • (Q ω)ᴴ) d (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.