NLA-lib Explorer

Distributional Johnson–Lindenstrauss for a Gaussian sketch

Library · Result group

Theorem (hasJLProperty_of_hasLaw_gaussianMatrix). Distributional Johnson–Lindenstrauss for a Gaussian sketch: for every unit \mathbf{x} and every \varepsilon \ge 0, \mathbb{P}\bigl[\varepsilon \le \lvert \|\mathbf{S}\mathbf{x}\|^2 - 1 \rvert\bigr] \le 2 e^{-\lvert k \rvert (\varepsilon^2/4 - \varepsilon^3/6)} \,; \|\mathbf{S}\mathbf{x}\|^2 = \|\mathbf{G}\mathbf{x}\|^2/\lvert k \rvert is \chi^2_{\lvert k \rvert} / \lvert k \rvert (NLAlib.measureReal_abs_norm_sq_div_card_sub_one_ge_le_of_hasLaw_gaussianVector). [Woodruff2014, Lemma 18] (there \varepsilon^2 \lvert k \rvert / 16); [MartinssonTropp2020, §8.6]; the exponent of Dasgupta and Gupta. No \varepsilon < 1: the bound is at least 2 for \varepsilon \ge 3/2.

Headline (provisional) General form: sizes are index types

Lean statement and details
NLAlib.hasJLProperty_of_hasLaw_gaussianMatrix.{u_1, u_2, u_3} {Ω : Type u_1}
  {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {k : Type u_2} {n : Type u_3} [Fintype k] [Fintype n]
  {G : Ω → Matrix k n ℝ} {ε : ℝ} (hG : HasLaw G (gaussianMatrix k n) μ) (hε : 0 ≤ ε) :
  HasJLProperty (fun ω ↦ (√↑(Fintype.card k))⁻¹ • G ω) ε
    (2 * rexp (-(↑(Fintype.card k) * (ε ^ 2 / 4 - ε ^ 3 / 6)))) μ

Full source on GitHub

Copy link

Other forms

Theorem (hasJLProperty_of_hasLaw_gaussianMatrix_of_jlDim_le). Gaussian distributional JL, sample-size form: at least <!-- value jlDim \varepsilon \delta -->\log(2/\delta)/(\varepsilon^2/4 - \varepsilon^3/6) rows (jlDim ε δ) give the JL property with distortion \varepsilon and failure probability \delta, for 0 < \varepsilon < 3/2 and \delta > 0. [Woodruff2014, Theorem 4] (there \Omega(\varepsilon^{-2} \log(f/\delta)) rows for f points, unspecified constant, proved in Lemma 18; here f = 1 with Dasgupta and Gupta's exponent). Asymptotic form: NLAlib.exists_forall_hasJLProperty_of_hasLaw_gaussianMatrix.

General form: sizes are index types

Lean statement and details
NLAlib.hasJLProperty_of_hasLaw_gaussianMatrix_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]
  {G : Ω → Matrix k n ℝ} {ε δ : ℝ} (hG : HasLaw G (gaussianMatrix k n) μ) (hε : 0 < ε)
  (hε1 : ε < 3 / 2) (hδ : 0 < δ) (hk : jlDim ε δ ≤ ↑(Fintype.card k)) :
  HasJLProperty (fun ω ↦ (√↑(Fintype.card k))⁻¹ • G ω) ε δ μ

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.