NLA-lib Explorer

NLAlib.hasJLMoment_of_hasLaw_gaussianMatrix_of_jlMomentDim_le

Library · theorem

General form: sizes are index types

Gaussian JL moments, sample-size form: for 0 < \varepsilon \le 1, \delta > 0 and at least <!-- value jlMomentDim \varepsilon \delta -->128\max(2, \log(1/\delta))/\varepsilon^2 rows (jlMomentDim ε δ), \mathbf{S} = \lvert k\rvert^{-1/2}\mathbf{G} with \mathbf{G} standard Gaussian has the JL moment property with distortion \varepsilon, failure probability \delta and exponent \max(2, \log(1/\delta)) \,: the moment bound NLAlib.hasJLMoment_subexponentialMomentBound_of_hasLaw_gaussianMatrix is at most \varepsilon^p e^{-p} \le \varepsilon^p \delta there. Approximate matrix multiplication with failure probability \delta follows (NLAlib.HasJLMoment.measureReal_frobNorm_conjTranspose_mul_sub_ge_le, whose side condition 2 \le p is le_max_left). [Woodruff2014, Definition 12 and Theorem 13], the property and AMM from it; the size O(\log(1/\delta)/\varepsilon^2) is Kane and Nelson's (2014; locator to check), the constants are this proof's. Asymptotic form: NLAlib.exists_forall_hasJLMoment_of_hasLaw_gaussianMatrix. Result: jl-moment-gaussian

NLAlib.hasJLMoment_of_hasLaw_gaussianMatrix_of_jlMomentDim_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 : ε ≤ 1)
  (hδ : 0 < δ) (hk : jlMomentDim ε δ ≤ ↑(Fintype.card k)) :
  HasJLMoment (fun ω ↦ (√↑(Fintype.card k))⁻¹ • G ω) ε δ (max 2 (Real.log (1 / δ))) μ

Full source on GitHub

Import NLAlib.Sketching.Gaussian.Gaussian.

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.