NLA-lib Explorer

NLAlib.exists_forall_isObliviousSubspaceEmbedding_of_hasLaw_countSketch

Library · theorem

CountSketch OSE, asymptotic form: O(d^2/(\delta \varepsilon^2)) rows suffice for a CountSketch to be an oblivious subspace embedding for dimension d with constants 1 \mp \varepsilon and failure probability \delta, for \varepsilon below an absolute constant; the constants come before every dimension. Proved from NLAlib.isObliviousSubspaceEmbedding_of_hasLaw_countSketch_of_countSketchEmbeddingDim_le with C = 2 and \varepsilon_0 = 1. [Woodruff2014, Theorem 9]. Asymptotic: NLAlib.isObliviousSubspaceEmbedding_of_hasLaw_countSketch_of_countSketchEmbeddingDim_le

NLAlib.exists_forall_isObliviousSubspaceEmbedding_of_hasLaw_countSketch :
  ∃ C ε₀,
    0 < C ∧
      0 < ε₀ ∧
        ∀ {Ω 𝕜 k n : Type} [inst : MeasurableSpace Ω] [inst_1 : RCLike 𝕜] [inst_2 : Fintype k]
          [inst_3 : Fintype n] [inst_4 : DecidableEq k] (μ : Measure Ω) (S : Ω → Matrix k n 𝕜)
          (d : ℕ) (ε δ : ℝ),
          HasLaw S (countSketch k n) μ →
            0 < ε →
              ε ≤ ε₀ →
                0 < δ →
                  C * (↑d ^ 2 / (δ * ε ^ 2)) ≤ ↑(Fintype.card k) →
                    IsObliviousSubspaceEmbedding S d (1 - ε) (1 + ε) δ μ

Full source on GitHub

Import NLAlib.Sketching.Sparse.CountSketchEmbedding.