NLA-lib Explorer

Sub-Gaussian JL for independent entries

Library · Result group

Theorem (hasJLProperty_of_iIndepFun_entry). Sub-Gaussian JL for independent entries: for a random \mathbf{X} with independent entries \mathbf{X}_{i,j}, each sub-Gaussian with proxy c and with \mathbb{E}[\mathbf{X}_{i,j}^2] = 1, \mathbf{S} = \lvert k \rvert^{-1/2} \, \mathbf{X} has the JL property with failure probability <!-- value subgaussianJLConstant --> 2 e^{-(1/36) \lvert k \rvert \min(\varepsilon^2/c^2, \varepsilon/c)}, the constant being subgaussianJLConstant. The mean is 0 by HasSubgaussianMGF.integral_eq_zero, so the second moment is the variance. The rows hypotheses follow by NLAlib.iIndepFun_row_of_iIndepFun_entry, IsSubgaussianVector.of_iIndepFun and IsIsotropic.of_iIndepFun; the other rows theorems apply to entries through the same three steps. [Vershynin2018, Exercise 5.3.3].

Headline (provisional) General form: sizes are index types

Lean statement and details
NLAlib.hasJLProperty_of_iIndepFun_entry.{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 ℝ}
  {c : ℝ≥0} {ε : ℝ} (hind : iIndepFun (fun p ω ↦ X ω p.1 p.2) μ)
  (hsub : ∀ (i : k) (j : n), HasSubgaussianMGF (fun ω ↦ X ω i j) c μ)
  (hvar : ∀ (i : k) (j : n), ∫ (ω : Ω), X ω i j ^ 2 ∂μ = 1) :
  HasJLProperty (fun ω ↦ (√↑(Fintype.card k))⁻¹ • X ω) ε
    (2 * rexp (-(subgaussianJLConstant * ↑(Fintype.card k) * min (ε ^ 2 / ↑c ^ 2) (ε / ↑c)))) μ

Full source on GitHub

Copy link

Other forms

Theorem (hasJLProperty_of_isSubgaussianVector). Sub-Gaussian distributional JL: for a random \mathbf{X} with independent, isotropic, sub-Gaussian rows with proxy c, the sketch \mathbf{S} = \lvert k \rvert^{-1/2} \, \mathbf{X} has the JL property at every \varepsilon: for every unit \mathbf{x}, <!-- value subgaussianJLConstant --> \mathbb{P}\bigl[\varepsilon \le \lvert \|\mathbf{S}\mathbf{x}\|^2 - 1 \rvert\bigr] \le 2 e^{-\frac{1}{36} \lvert k \rvert \min(\varepsilon^2/c^2, \, \varepsilon/c)} \,, the constant being subgaussianJLConstant. [Vershynin2018, Exercise 5.3.3], there with an unspecified constant. For proxy 1 and fourth directional moments at most 3, NLAlib.hasJLProperty_of_isSubgaussianVector_of_integral_pow_four_le is better for \varepsilon \lesssim 1.43 and this one beyond.

General form: sizes are index types

Lean statement and details
NLAlib.hasJLProperty_of_isSubgaussianVector.{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 ℝ}
  {c : ℝ≥0} {ε : ℝ} [DecidableEq n] (hind : iIndepFun (fun i ω ↦ X ω i) μ)
  (hsub : ∀ (i : k), IsSubgaussianVector (fun ω ↦ X ω i) c μ)
  (hiso : ∀ (i : k), IsIsotropic (fun ω ↦ X ω i) μ) :
  HasJLProperty (fun ω ↦ (√↑(Fintype.card k))⁻¹ • X ω) ε
    (2 * rexp (-(subgaussianJLConstant * ↑(Fintype.card k) * min (ε ^ 2 / ↑c ^ 2) (ε / ↑c)))) μ

Full source on GitHub

Copy link

Theorem (hasJLProperty_of_isSubgaussianVector_of_integral_pow_four_le). Dasgupta–Gupta tail for rows with Gaussian fourth moments: for a random \mathbf{X} with independent, isotropic rows \mathbf{X}_i, sub-Gaussian with proxy 1, with \mathbb{E} \langle \mathbf{x}, \mathbf{X}_i \rangle^4 \le 3 \|\mathbf{x}\|^4 for every \mathbf{x}, and \varepsilon \ge 0, the sketch \mathbf{S} = \lvert k \rvert^{-1/2} \, \mathbf{X} has the JL property with failure probability 2 e^{-\lvert k \rvert (\varepsilon^2/4 - \varepsilon^3/6)} \,, the Gaussian sketch's (NLAlib.hasJLProperty_of_hasLaw_gaussianMatrix). From NLAlib.measureReal_abs_sum_sq_div_card_sub_one_ge_le_of_iIndepFun at Y_i = \langle \mathbf{X}_i, \mathbf{x} \rangle. [Woodruff2014, §2.1, after Theorem 6] attributes this to Achlioptas for signs. Incomparable with NLAlib.hasJLProperty_of_isSubgaussianVector at c = 1 (docs/contributing/statements.md §2 rule 4): this one is better for \varepsilon \lesssim 1.43 (sixteen times the exponent at small \varepsilon), that one beyond, and needs no fourth-moment hypothesis.

General form: sizes are index types

Lean statement and details
NLAlib.hasJLProperty_of_isSubgaussianVector_of_integral_pow_four_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 ℝ} {ε : ℝ} [DecidableEq n] (hind : iIndepFun (fun i ω ↦ X ω i) μ)
  (hsub : ∀ (i : k), IsSubgaussianVector (fun ω ↦ X ω i) 1 μ)
  (hiso : ∀ (i : k), IsIsotropic (fun ω ↦ X ω i) μ)
  (h4 : ∀ (i : k) (x : n → ℝ), ∫ (ω : Ω), (x ⬝ᵥ X ω i) ^ 4 ∂μ ≤ 3 * ‖WithLp.toLp 2 x‖ ^ 4)
  (hε : 0 ≤ ε) :
  HasJLProperty (fun ω ↦ (√↑(Fintype.card k))⁻¹ • X ω) ε
    (2 * rexp (-(↑(Fintype.card k) * (ε ^ 2 / 4 - ε ^ 3 / 6)))) μ

Full source on GitHub

Copy link

Theorem (hasJLProperty_of_isSubgaussianVector_of_subgaussianJLDim_le). Sub-Gaussian JL, sample-size form: for a random \mathbf{X} with independent, isotropic, sub-Gaussian rows with proxy c, 0 < \varepsilon \le c, \delta > 0 and at least <!-- value subgaussianJLDim c \varepsilon \delta -->c^2 \log(2/\delta)/(C \varepsilon^2) rows (subgaussianJLDim c ε δ, with <!-- value subgaussianJLConstant -->C = 1/36 the constant subgaussianJLConstant), the sketch \mathbf{S} = \lvert k \rvert^{-1/2} \, \mathbf{X} has the JL property with distortion \varepsilon and failure probability \delta (for \varepsilon \le c the \min of the tail is its quadratic part). [Vershynin2018, Exercise 5.3.3]. Asymptotic form: NLAlib.exists_forall_hasJLProperty_of_isSubgaussianVector.

General form: sizes are index types

Lean statement and details
NLAlib.hasJLProperty_of_isSubgaussianVector_of_subgaussianJLDim_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 ℝ} {c : ℝ≥0} {ε δ : ℝ} [DecidableEq n] (hind : iIndepFun (fun i ω ↦ X ω i) μ)
  (hsub : ∀ (i : k), IsSubgaussianVector (fun ω ↦ X ω i) c μ)
  (hiso : ∀ (i : k), IsIsotropic (fun ω ↦ X ω i) μ) (hε : 0 < ε) (hεc : ε ≤ ↑c) (hδ : 0 < δ)
  (hk : subgaussianJLDim (↑c) ε δ ≤ ↑(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.