NLA-lib Explorer

NLAlib.hasProjectionCostPreserving_of_hasLaw_gaussianMatrix_of_jlMomentDim_le

Library · theorem

General form: sizes are index types

A Gaussian sketch is a projection-cost-preserving sketch, \log(1/\delta) size form: for 0 < \varepsilon \le 2, \delta > 0, at least <!-- value gaussianEmbeddingDim d (\varepsilon/2) (\delta/2) --> 9 (\sqrt{d} + \sqrt{2 \log(2/(\delta/2))})^2/(\varepsilon/2)^2 rows (gaussianEmbeddingDim d (ε / 2) (δ / 2)) and at least <!-- value jlMomentDim (\varepsilon/(8\sqrt{d+1})) (\delta/6) --> 128\max(2, \log(1/(\delta/6)))/(\varepsilon/(8\sqrt{d+1}))^2 rows (jlMomentDim (ε / (8 * √(d + 1))) (δ / 6)), \mathbf{S} = \lvert k \rvert^{-1/2}\mathbf{G} with \mathbf{G} standard Gaussian makes \mathbf{A}\mathbf{S}^{\mathsf{H}} a rank-d projection-cost-preserving sketch of \mathbf{A} with constants 1 \mp \varepsilon, for every \mathbf{A}, except with probability \delta. The head is the OSE size form at (\varepsilon/2, \delta/2), the tail the JL moment NLAlib.hasJLMoment_of_hasLaw_gaussianMatrix_of_jlMomentDim_le at \varepsilon/(8\sqrt{d+1}) with failure \delta/6, at exponent \max(2, \log(6/\delta)). Incomparable with NLAlib.hasProjectionCostPreserving_of_hasLaw_gaussianMatrix_of_le_card (rule 4): the second size is O((d+1)\log(1/\delta)/\varepsilon^2) in place of O((d+1)/(\varepsilon^2\delta)). [CohenElderMuscoMuscoPersu2015, Theorem 12, Lemma 11 family 1]; there sign matrices and O((k + \log(1/\delta))/\varepsilon^2) rows through stable-rank spectral approximate multiplication; here the product form that JL moments give. Asymptotic form: NLAlib.exists_forall_hasProjectionCostPreserving_of_hasLaw_gaussianMatrix. Result: gaussian-pcp

NLAlib.hasProjectionCostPreserving_of_hasLaw_gaussianMatrix_of_jlMomentDim_le.{u_1, u_2, u_3, u_4}
  {Ω : 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) μ) {m : Type u_4}
  [Fintype m] (A : Matrix m n ℝ) (d : ℕ) (hε : 0 < ε) (hε2 : ε ≤ 2) (hδ : 0 < δ)
  (hk₁ : gaussianEmbeddingDim d (ε / 2) (δ / 2) ≤ ↑(Fintype.card k))
  (hk₂ : jlMomentDim (ε / (8 * √(↑d + 1))) (δ / 6) ≤ ↑(Fintype.card k)) :
  HasProjectionCostPreserving (fun ω ↦ (√↑(Fintype.card k))⁻¹ • G ω) A d (1 - ε) (1 + ε) δ μ

Full source on GitHub

Import NLAlib.Sketching.Gaussian.ProjectionCost.

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.