NLA-lib Explorer

CountSketch JL moment

Library · Result group

Theorem (hasJLMoment_of_hasLaw_countSketch). CountSketch JL moment at p = 2 with \delta = 2/(\lvert k \rvert \varepsilon^2) \,, any field: \mathbb{E}(\|\mathbf{S}\mathbf{x}\|^2 - 1)^2 \le 2/\lvert k \rvert for unit \mathbf{x}, the AMM bound at a one-column matrix. [Woodruff2014, Theorem 14] (after Thorup and Zhang, not in hand; over \mathbb{R}, there in size form).

Headline General form: sizes are index types

Lean statement and details
NLAlib.hasJLMoment_of_hasLaw_countSketch.{u_1, u_2, u_3, u_4} {Ω : Type u_1}
  {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {𝕜 : Type u_2} [RCLike 𝕜] {k : Type u_3} {n : Type u_4}
  [Fintype k] [Fintype n] [DecidableEq k] {S : Ω → Matrix k n 𝕜} {ε : ℝ}
  (hS : HasLaw S (countSketch k n) μ) (hε : 0 < ε) :
  HasJLMoment S ε (2 / (↑(Fintype.card k) * ε ^ 2)) 2 μ

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.