Theorem (exists_forall_hasJLMoment_of_isSubgaussianVector).Sub-Gaussian JL moments, asymptotic form: O(c^2\log(1/\delta)/\varepsilon^2) rows suffice for the sketch with independent isotropic rows, sub-Gaussian with proxy c, 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 and the proxy. Proved from NLAlib.hasJLMoment_of_isSubgaussianVector_of_subgaussianJLMomentDim_le with C = 1728, \varepsilon_0 = 1 and \delta \le 1/2; isotropy forces c \ge 1 once there is a column. [Woodruff2014, Definition 12 and Theorem 13].
Headline (provisional)General form: sizes are index types
Lean statement and details
NLAlib.exists_forall_hasJLMoment_of_isSubgaussianVector :
∃ C ε₀,
0 < C ∧
0 < ε₀ ∧
∀ {Ω k n : Type} [inst : MeasurableSpace Ω] [inst_1 : Fintype k] [inst_2 : Fintype n]
[inst_3 : DecidableEq n] [Nonempty k] (μ : Measure Ω) (X : Ω → Matrix k n ℝ) (c : ℝ≥0)
(ε δ : ℝ),
iIndepFun (fun i ω ↦ X ω i) μ →
(∀ (i : k), IsSubgaussianVector (fun ω ↦ X ω i) c μ) →
(∀ (i : k), IsIsotropic (fun ω ↦ X ω i) μ) →
0 < ε →
ε ≤ ε₀ →
0 < δ →
δ ≤ 1 / 2 →
C * (↑c ^ 2 * Real.log (1 / δ) / ε ^ 2) ≤ ↑(Fintype.card k) →
HasJLMoment (fun ω ↦ (√↑(Fintype.card k))⁻¹ • X ω) ε δ
(max 2 (Real.log (1 / δ))) μ
Theorem (hasJLMoment_of_isSubgaussianVector_of_subgaussianJLMomentDim_le).Sub-Gaussian JL moments, sample-size form: for a random \mathbf{X} with independent, isotropic, sub-Gaussian rows with proxy c, 0 < \varepsilon \le c, \delta > 0 and at least <!-- value subgaussianJLMomentDim c \varepsilon \delta --> 16c^2\max(2, \log(1/\delta))/(C\varepsilon^2) rows (subgaussianJLMomentDim c ε δ, with <!-- value subgaussianJLConstant -->C = 1/36 the constant subgaussianJLConstant), the sketch \mathbf{S} = \lvert k \rvert^{-1/2} \, \mathbf{X} has the JL moment property with distortion \varepsilon, failure probability \delta and exponent \max(2, \log(1/\delta)) \,; approximate matrix multiplication with failure probability \delta follows (NLAlib.HasJLMoment.measureReal_frobNorm_conjTranspose_mul_sub_ge_le). Sign sketches are the case c = 1. [Woodruff2014, Definition 12 and Theorem 13], the property and AMM from it; the size O(\log(1/\delta)/\varepsilon^2) is Kane and Nelson's (2014; locator to check), the constants are this proof's. Asymptotic form: NLAlib.exists_forall_hasJLMoment_of_isSubgaussianVector.
General form: sizes are index types
Lean statement and details
NLAlib.hasJLMoment_of_isSubgaussianVector_of_subgaussianJLMomentDim_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 ℝ} {c : ℝ≥0} {ε δ : ℝ} [DecidableEq n]
(hind : iIndepFun (fun i ω ↦ X ω i) μ) (hsub : ∀ (i : k), IsSubgaussianVector (fun ω ↦ X ω i) c μ)
(hiso : ∀ (i : k), IsIsotropic (fun ω ↦ X ω i) μ) (hε : 0 < ε) (hεc : ε ≤ ↑c) (hδ : 0 < δ)
(hk : subgaussianJLMomentDim (↑c) ε δ ≤ ↑(Fintype.card k)) :
HasJLMoment (fun ω ↦ (√↑(Fintype.card k))⁻¹ • X ω) ε δ (max 2 (Real.log (1 / δ))) μ
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.