NLA-lib Explorer

Sign-sketch OSE

Library · Result group

Theorem (isObliviousSubspaceEmbedding_of_hasLaw_rademacherMatrix). Sign-sketch OSE: for \varepsilon \ge 0, \mathbf{S} = \lvert k \rvert^{-1/2} \, \mathbf{X} is an oblivious subspace embedding for dimension d with constants 1 \mp \varepsilon and failure probability 2 \cdot 21^d e^{-\lvert k \rvert (4\varepsilon^2/25 - 32\varepsilon^3/375)} \,: JL plus a net of radius 1/10 at 4\varepsilon/5 (NLAlib.HasJLProperty.isObliviousSubspaceEmbedding). [Woodruff2014, §2.1, Theorem 6], there with O(\varepsilon) and unspecified constants.

Headline (provisional) General form: sizes are index types

Lean statement and details
NLAlib.isObliviousSubspaceEmbedding_of_hasLaw_rademacherMatrix.{u_1, u_2, u_3} {Ω : Type u_1}
  {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {k : Type u_2} {n : Type u_3} [Fintype k] [Fintype n]
  {X : Ω → Matrix k n ℝ} {ε : ℝ} (hX : HasLaw X (rademacherMatrix k n) μ) (d : ℕ) (hε : 0 ≤ ε) :
  IsObliviousSubspaceEmbedding (fun ω ↦ (√↑(Fintype.card k))⁻¹ • X ω) d (1 - ε) (1 + ε)
    (2 * 21 ^ d * rexp (-(↑(Fintype.card k) * (4 * ε ^ 2 / 25 - 32 * ε ^ 3 / 375)))) μ

Full source on GitHub

Copy link

Other forms

Theorem (isObliviousSubspaceEmbedding_of_hasLaw_rademacherMatrix_of_jlDim_le). Sign-sketch OSE, sample-size form: for 0 < \varepsilon < 15/8, \delta > 0 and at least <!-- value jlDim (4\varepsilon/5) (\delta/21^d) --> \log(2/(\delta/21^d))/((4\varepsilon/5)^2/4 - (4\varepsilon/5)^3/6) rows (jlDim (4ε/5) (δ/21^d)), \mathbf{S} = \lvert k \rvert^{-1/2} \, \mathbf{X} is an oblivious subspace embedding for dimension d with constants 1 \mp \varepsilon and failure probability \delta. [Woodruff2014, Theorem 6] (Gaussian entries, \Theta((d + \log(1/\delta))\varepsilon^{-2}) rows, unspecified constants; sign entries by the same net argument, §2.1 after Theorem 6). Asymptotic form: NLAlib.exists_forall_isObliviousSubspaceEmbedding_of_hasLaw_rademacherMatrix.

General form: sizes are index types

Lean statement and details
NLAlib.isObliviousSubspaceEmbedding_of_hasLaw_rademacherMatrix_of_jlDim_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] {X : Ω → Matrix k n ℝ} {ε δ : ℝ} {d : ℕ} (hX : HasLaw X (rademacherMatrix k n) μ)
  (hε : 0 < ε) (hε3 : ε < 15 / 8) (hδ : 0 < δ)
  (hk : jlDim (4 * ε / 5) (δ / 21 ^ d) ≤ ↑(Fintype.card k)) :
  IsObliviousSubspaceEmbedding (fun ω ↦ (√↑(Fintype.card k))⁻¹ • X ω) d (1 - ε) (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.