NLA-lib Explorer

Sign-sketch distributional JL

Library · Result group

Theorem (hasJLProperty_of_hasLaw_rademacherMatrix). Sign-sketch distributional JL with Gaussian constants: 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)} \,, the bound of NLAlib.hasJLProperty_of_hasLaw_gaussianMatrix. From NLAlib.hasJLProperty_of_isSubgaussianVector_of_integral_pow_four_le, with \mathbb{E} \langle \boldsymbol{\xi}, \mathbf{x} \rangle^4 = \operatorname{Var}(\langle \boldsymbol{\xi}, \mathbf{x} \rangle^2) + \|\mathbf{x}\|^4 = 3 \|\mathbf{x}\|^4 - 2 \sum_j \mathbf{x}_j^4 (NLAlib.variance_quadForm_of_hasLaw_rademacherVector at vecMulVec x x). [Woodruff2014, §2.1, after Theorem 6]; constants of [Achlioptas2003, Theorem 1.1], locator to confirm. For \varepsilon \gtrsim 1.43, NLAlib.hasJLProperty_of_isSubgaussianVector at c = 1 is better.

Headline (provisional) General form: sizes are index types

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

Full source on GitHub

Copy link

Other forms

Theorem (hasJLProperty_of_hasLaw_rademacherMatrix_of_jlDim_le). Sign-sketch JL, sample-size form: for 0 < \varepsilon < 3/2, \delta > 0 and at least <!-- value jlDim \varepsilon \delta -->\log(2/\delta)/(\varepsilon^2/4 - \varepsilon^3/6) rows (jlDim ε δ), the JL property holds with distortion \varepsilon and failure probability \delta; the Gaussian sketch's size (NLAlib.hasJLProperty_of_hasLaw_gaussianMatrix_of_jlDim_le). [Woodruff2014, §2.1, after Theorem 6] (Achlioptas's sign entries in Theorem 4, there \Omega(\varepsilon^{-2} \log(f/\delta)) rows for f points, unspecified constant). Asymptotic form: NLAlib.exists_forall_hasJLProperty_of_hasLaw_rademacherMatrix.

General form: sizes are index types

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

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.