Sub-Gaussian rows suffice for a rank-d projection-cost-preserving sketch
Library · Result group
Theorem (exists_forall_hasProjectionCostPreserving_of_isSubgaussianVector).Sub-Gaussian rows suffice for a rank-d projection-cost-preserving sketch: O(c^2 (d+1)\log(1/\delta)/\varepsilon^2) independent isotropic rows, sub-Gaussian with proxy c, give one, with constants 1 \mp \varepsilon and failure probability \delta, for \varepsilon and \delta below absolute constants; the constants come before every dimension and the proxy. At c = 1 this covers Rademacher sketches. Proved from NLAlib.hasProjectionCostPreserving_of_isSubgaussianVector_of_subgaussianJLMomentDim_le with \varepsilon_0 = 1 and \delta \le 1/2; isotropy forces c \ge 1 once there is a column. [CohenElderMuscoMuscoPersu2015, proof of Theorem 12].
Headline (provisional)General form: sizes are index types
Lean statement and details
NLAlib.exists_forall_hasProjectionCostPreserving_of_isSubgaussianVector :
∃ C ε₀,
0 < C ∧
0 < ε₀ ∧
∀ {Ω k m n : Type} [inst : MeasurableSpace Ω] [inst_1 : Fintype k] [inst_2 : Fintype m]
[inst_3 : Fintype n] [inst_4 : DecidableEq n] [Nonempty k] (μ : Measure Ω)
(X : Ω → Matrix k n ℝ) (c : ℝ≥0) (A : Matrix m n ℝ) (d : ℕ) (ε δ : ℝ),
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 * (↑d + 1) * Real.log (1 / δ) / ε ^ 2) ≤ ↑(Fintype.card k) →
HasProjectionCostPreserving (fun ω ↦ (√↑(Fintype.card k))⁻¹ • X ω) A d
(1 - ε) (1 + ε) δ μ
Theorem (hasProjectionCostPreserving_of_isSubgaussianVector_of_le_card).A sub-Gaussian sketch is a projection-cost-preserving sketch, size form: for a sketch \mathbf{X} with independent isotropic rows, sub-Gaussian with proxy c, for k nonempty, 0 < \varepsilon \le 5c/2, \delta > 0, at least <!-- value subgaussianEmbeddingDim c d (\varepsilon/2) (\delta/2) --> 25 c^2 (d \log 21 + \log(2/(\delta/2)))/(16 C (\varepsilon/2)^2) rows (subgaussianEmbeddingDim c d (ε / 2) (δ / 2), with <!-- value subgaussianJLConstant -->C = 1/36 the constant subgaussianJLConstant) and at least <!-- value projectionCostTailDim {(16c^2 - 1)} d \varepsilon \delta --> 384 \cdot (16c^2 - 1) (d + 1)/(\varepsilon^2 \delta) rows (projectionCostTailDim (16 * c ^ 2 - 1) d ε δ), \mathbf{S} = \lvert k \rvert^{-1/2}\mathbf{X} 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. A Rademacher sketch is the case c = 1 (NLAlib.isSubgaussianVector_of_hasLaw_rademacherVector, NLAlib.isIsotropic_of_hasLaw_rademacherVector, ProbabilityTheory.HasLaw.iIndepFun_eval), CEMMP's family 1; its constants are looser than a Rademacher-specific route would give, which the asymptotic forms do not see. The route of [CohenElderMuscoMuscoPersu2015, proof of Theorem 12]; the sub-Gaussian instance is not stated there. Incomparable with its \log(1/\delta) twin NLAlib.hasProjectionCostPreserving_of_isSubgaussianVector_of_subgaussianJLMomentDim_le (rule 4): this one needs fewer rows at constant \delta, the twin for small \delta; the asymptotic form NLAlib.exists_forall_hasProjectionCostPreserving_of_isSubgaussianVector is proved from the twin.
General form: sizes are index types
Lean statement and details
NLAlib.hasProjectionCostPreserving_of_isSubgaussianVector_of_le_card.{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] {ε δ : ℝ} [DecidableEq n] {X : Ω → Matrix k n ℝ} {c : ℝ≥0} [Nonempty k]
(hind : iIndepFun (fun i ω ↦ X ω i) μ) (hsub : ∀ (i : k), IsSubgaussianVector (fun ω ↦ X ω i) c μ)
(hiso : ∀ (i : k), IsIsotropic (fun ω ↦ X ω i) μ) {m : Type u_4} [Fintype m] (A : Matrix m n ℝ)
(d : ℕ) (hε : 0 < ε) (hεc : ε ≤ 5 / 2 * ↑c) (hδ : 0 < δ)
(hk₁ : subgaussianEmbeddingDim (↑c) d (ε / 2) (δ / 2) ≤ ↑(Fintype.card k))
(hk₂ : projectionCostTailDim (16 * ↑c ^ 2 - 1) d ε δ ≤ ↑(Fintype.card k)) :
HasProjectionCostPreserving (fun ω ↦ (√↑(Fintype.card k))⁻¹ • X ω) A d (1 - ε) (1 + ε) δ μ
Theorem (hasProjectionCostPreserving_of_isSubgaussianVector_of_subgaussianJLMomentDim_le).A sub-Gaussian sketch is a projection-cost-preserving sketch, \log(1/\delta) size form: for a sketch \mathbf{X} with independent isotropic rows, sub-Gaussian with proxy c, for 0 < \varepsilon \le 5c/2, \delta > 0, at least <!-- value subgaussianEmbeddingDim c d (\varepsilon/2) (\delta/2) --> 25 c^2 (d \log 21 + \log(2/(\delta/2)))/(16 C (\varepsilon/2)^2) rows (subgaussianEmbeddingDim c d (ε / 2) (δ / 2)) and at least <!-- value subgaussianJLMomentDim c (\varepsilon/(8\sqrt{d+1})) (\delta/6) --> 16c^2\max(2, \log(1/(\delta/6)))/(C(\varepsilon/(8\sqrt{d+1}))^2) rows (subgaussianJLMomentDim c (ε / (8 * √(d + 1))) (δ / 6)), with <!-- value subgaussianJLConstant -->C = 1/36 the constant subgaussianJLConstant, \mathbf{S} = \lvert k \rvert^{-1/2}\mathbf{X} 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. Sign sketches are the case c = 1. The tail is the JL moment NLAlib.hasJLMoment_of_isSubgaussianVector_of_subgaussianJLMomentDim_le at \varepsilon/(8\sqrt{d+1}) \le c, failure \delta/6. Incomparable with NLAlib.hasProjectionCostPreserving_of_isSubgaussianVector_of_le_card (rule 4). The route of [CohenElderMuscoMuscoPersu2015, proof of Theorem 12]; the sub-Gaussian instance is not stated there. Asymptotic form: NLAlib.exists_forall_hasProjectionCostPreserving_of_isSubgaussianVector.
General form: sizes are index types
Lean statement and details
NLAlib.hasProjectionCostPreserving_of_isSubgaussianVector_of_subgaussianJLMomentDim_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] {ε δ : ℝ} [DecidableEq n] {X : Ω → Matrix k n ℝ} {c : ℝ≥0}
(hind : iIndepFun (fun i ω ↦ X ω i) μ) (hsub : ∀ (i : k), IsSubgaussianVector (fun ω ↦ X ω i) c μ)
(hiso : ∀ (i : k), IsIsotropic (fun ω ↦ X ω i) μ) {m : Type u_4} [Fintype m] (A : Matrix m n ℝ)
(d : ℕ) (hε : 0 < ε) (hεc : ε ≤ 5 / 2 * ↑c) (hδ : 0 < δ)
(hk₁ : subgaussianEmbeddingDim (↑c) d (ε / 2) (δ / 2) ≤ ↑(Fintype.card k))
(hk₂ : subgaussianJLMomentDim (↑c) (ε / (8 * √(↑d + 1))) (δ / 6) ≤ ↑(Fintype.card k)) :
HasProjectionCostPreserving (fun ω ↦ (√↑(Fintype.card k))⁻¹ • X ω) A d (1 - ε) (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.