NLA-lib Explorer

NLAlib.exists_forall_hasJLMoment_of_hasLaw_gaussianMatrix

Library · theorem

Headline of jl-moment-gaussian (provisional) General form: sizes are index types

Gaussian JL moments, asymptotic form: O(\log(1/\delta)/\varepsilon^2) rows suffice for the Gaussian sketch \mathbf{S} = \lvert k\rvert^{-1/2}\mathbf{G} to have the JL moment property with distortion \varepsilon, failure probability \delta and exponent \max(2, \log(1/\delta)), for \varepsilon and \delta below absolute constants; the constants come before every dimension. Proved from NLAlib.hasJLMoment_of_hasLaw_gaussianMatrix_of_jlMomentDim_le with C = 384, \varepsilon_0 = 1 and \delta \le 1/2, where \max(2, \log(1/\delta)) \le 3\log(1/\delta). [Woodruff2014, Definition 12 and Theorem 13]. Asymptotic: NLAlib.hasJLMoment_of_hasLaw_gaussianMatrix_of_jlMomentDim_le Result: jl-moment-gaussian

NLAlib.exists_forall_hasJLMoment_of_hasLaw_gaussianMatrix :
  ∃ C ε₀,
    0 < C ∧
      0 < ε₀ ∧
        ∀ {Ω k n : Type} [inst : MeasurableSpace Ω] [inst_1 : Fintype k] [inst_2 : Fintype n]
          (μ : Measure Ω) (G : Ω → Matrix k n ℝ) (ε δ : ℝ),
          HasLaw G (gaussianMatrix k n) μ →
            0 < ε →
              ε ≤ ε₀ →
                0 < δ →
                  δ ≤ 1 / 2 →
                    C * (Real.log (1 / δ) / ε ^ 2) ≤ ↑(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.