NLA-lib Explorer

Haar JL moments, asymptotic form

Library · Result group

Theorem (exists_forall_hasJLMoment_of_hasLaw_haarFrame). Haar JL moments, asymptotic form: O(\log(1/\delta)/\varepsilon^2) rows suffice for the Haar sketch \mathbf{S} = \sqrt{\lvert n \rvert / \lvert k \rvert}\,\mathbf{Q}^{\mathsf{H}}, \lvert k\rvert \le \lvert n\rvert, 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_haarFrame_of_jlMomentDim_le with C = 384, \varepsilon_0 = 1 and \delta \le 1/2. [Woodruff2014, Definition 12 and Theorem 13].

Headline (provisional) General form: sizes are index types

Lean statement and details
NLAlib.exists_forall_hasJLMoment_of_hasLaw_haarFrame :
  ∃ C ε₀,
    0 < C ∧
      0 < ε₀ ∧
        ∀ {Ω k n : Type} [inst : MeasurableSpace Ω] [inst_1 : Fintype k] [inst_2 : Fintype n]
          [inst_3 : DecidableEq k] (μ : Measure Ω) (Q : Ω → Matrix n k ℝ) (ε δ : ℝ),
          HasLaw Q (haarFrame n k) μ →
            Fintype.card k ≤ Fintype.card n →
              0 < ε →
                ε ≤ ε₀ →
                  0 < δ →
                    δ ≤ 1 / 2 →
                      C * (Real.log (1 / δ) / ε ^ 2) ≤ ↑(Fintype.card k) →
                        HasJLMoment (fun ω ↦ √(↑(Fintype.card n) / ↑(Fintype.card k)) • (Q ω)ᴴ) ε δ
                          (max 2 (Real.log (1 / δ))) μ

Full source on GitHub

Copy link

Other forms

Theorem (hasJLMoment_of_hasLaw_haarFrame_of_jlMomentDim_le). Haar JL moments, sample-size form: for \lvert k\rvert \le \lvert n\rvert, 0 < \varepsilon \le 1, \delta > 0 and at least <!-- value jlMomentDim \varepsilon \delta -->128\max(2, \log(1/\delta))/\varepsilon^2 rows (jlMomentDim ε δ), the Haar sketch \mathbf{S} = \sqrt{\lvert n \rvert / \lvert k \rvert}\,\mathbf{Q}^{\mathsf{H}} has the JL moment property with distortion \varepsilon, failure probability \delta and exponent \max(2, \log(1/\delta)) \,, with the Gaussian sketch's size (NLAlib.hasJLMoment_of_hasLaw_gaussianMatrix_of_jlMomentDim_le); approximate matrix multiplication with failure probability \delta follows (NLAlib.HasJLMoment.measureReal_frobNorm_conjTranspose_mul_sub_ge_le). [Woodruff2014, Definition 12 and Theorem 13], the property and AMM from it; the constants are this proof's. Asymptotic form: NLAlib.exists_forall_hasJLMoment_of_hasLaw_haarFrame.

General form: sizes are index types

Lean statement and details
NLAlib.hasJLMoment_of_hasLaw_haarFrame_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]
  [DecidableEq k] {Q : Ω → Matrix n k ℝ} {ε δ : ℝ} (hQ : HasLaw Q (haarFrame n k) μ)
  (hk : Fintype.card k ≤ Fintype.card n) (hε : 0 < ε) (hε1 : ε ≤ 1) (hδ : 0 < δ)
  (hk' : jlMomentDim ε δ ≤ ↑(Fintype.card k)) :
  HasJLMoment (fun ω ↦ √(↑(Fintype.card n) / ↑(Fintype.card k)) • (Q ω)ᴴ) ε δ
    (max 2 (Real.log (1 / δ))) μ

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.