Sub-Gaussian sketches
Library · Source module
Sub-Gaussian sketches
The sub-Gaussian sketch is \mathbf{S} = \lvert k \rvert^{-1/2} \, \mathbf{X} for a random X : Matrix k n ℝ (\lvert k \rvert rows) whose rows \mathbf{X}_i are independent, isotropic and sub-Gaussian with proxy c (the three hypotheses of NLAlib/RandomMatrix/SubGaussian/ExtremeSingularValues.lean, suffix _of_isSubgaussianVector, always in the order hind, hsub, hiso). It is written out in each statement, fun ω => (√(Fintype.card k : ℝ))⁻¹ • X ω; there is no named sketch law. Its isotropy is NLAlib.isIsotropicSketch_smul_of_isIsotropic (no independence needed), so it gets no isotropy statement here.
It has the distributional Johnson–Lindenstrauss property with Vershynin's two-regime tail <!-- value subgaussianJLConstant --> 2 e^{-(1/36) \lvert k \rvert \min(\varepsilon^2/c^2, \varepsilon/c)}, the constant being subgaussianJLConstant (Bernstein's inequality on the centred squares \langle \mathbf{X}_i, \mathbf{x} \rangle^2 - 1), and, for rows with proxy 1 and fourth directional moments at most 3, the tail 2 e^{-\lvert k \rvert (\varepsilon^2/4 - \varepsilon^3/6)} of Dasgupta and Gupta (Achlioptas's argument; incomparable, docs/contributing/statements.md §2 rule 4). It has the JL moment property at p = 2 and, from the sub-exponential tail, at every p > 0, so O(c^2\log(1/\delta)/\varepsilon^2) rows give it at p = \max(2, \log(1/\delta)); sign sketches are the case c = 1 (NLAlib.isSubgaussianVector_of_hasLaw_rademacherVector, NLAlib.isIsotropic_of_hasLaw_rademacherVector, ProbabilityTheory.HasLaw.iIndepFun_eval), with no separate statement. It is an oblivious subspace embedding and injection through JL plus a net (NLAlib.HasJLProperty.isObliviousSubspaceEmbedding at 4\varepsilon/5); that route dominates the rows theorem's Gram sandwich in every regime. Matrices with independent sub-Gaussian entries of unit variance reach the rows hypotheses through NLAlib.iIndepFun_row_of_iIndepFun_entry; only their JL tail is stated. The sample sizes are named quantities with nonnegativity, monotonicity and an explicit comparison.
Degenerate cases: for empty k, \mathbf{S} = \mathbf{0}, the JL bounds are 2 and the OSE bounds 2 \cdot 21^d, all true, but \mathbf{S} is not isotropic, hence [Nonempty k] on the OSI and the moment. With rows and columns present the hypotheses force c \ge 1; for c = 0, \varepsilon/0 = 0 and the bound is 2. No \varepsilon \ge 0 on the Bernstein tails: for \varepsilon < 0 the bound exceeds 2. For \varepsilon = 1 the lower JL event is \{\mathbf{S}\mathbf{x} = \mathbf{0}\}, which need not be null (for signs, probability 2^{-\lvert k \rvert} at \mathbf{x} = (\mathbf{e}_1 + \mathbf{e}_2)/\sqrt{2}); for \varepsilon > 1 it is empty, and the lower OSE constant 1 - \varepsilon \le 0 is vacuous (NLAlib.isSubspaceInjection_of_nonpos).
Main definitions
* NLAlib.subgaussianJLConstant: the constant of the sub-Gaussian JL tail, <!-- value subgaussianJLConstant -->C = 1/36. * NLAlib.subgaussianJLDim, NLAlib.subgaussianEmbeddingDim, NLAlib.subgaussianJLMomentDim: the sample sizes for JL <!-- value subgaussianJLDim c \varepsilon \delta -->c^2 \log(2/\delta)/(C \varepsilon^2), for the OSE <!-- value subgaussianEmbeddingDim c d \varepsilon \delta --> 25 c^2 (d \log 21 + \log(2/\delta))/(16 C \varepsilon^2) and for the JL moment <!-- value subgaussianJLMomentDim c \varepsilon \delta --> 16c^2\max(2, \log(1/\delta))/(C\varepsilon^2).
Main results
* NLAlib.hasJLProperty_of_isSubgaussianVector: sub-Gaussian distributional JL. * NLAlib.hasJLProperty_of_isSubgaussianVector_of_integral_pow_four_le: the Dasgupta–Gupta tail for proxy 1 and Gaussian fourth moments. * NLAlib.hasJLMoment_of_isSubgaussianVector: the JL moment property at p = 2. * NLAlib.hasJLMoment_subexponentialMomentBound_of_isSubgaussianVector: at every p > 0, and its size form NLAlib.hasJLMoment_of_isSubgaussianVector_of_subgaussianJLMomentDim_le. * NLAlib.isObliviousSubspaceEmbedding_of_isSubgaussianVector, NLAlib.isObliviousSubspaceInjection_of_isSubgaussianVector. * NLAlib.hasJLProperty_of_iIndepFun_entry: JL for independent sub-Gaussian entries. * NLAlib.exists_forall_hasJLProperty_of_isSubgaussianVector, NLAlib.exists_forall_isObliviousSubspaceEmbedding_of_isSubgaussianVector, NLAlib.exists_forall_hasJLMoment_of_isSubgaussianVector: the asymptotic forms, O(c^2 \log(1/\delta)/\varepsilon^2) and O(c^2 (d + \log(1/\delta))/\varepsilon^2) rows. The projection-cost-preserving forms are in NLAlib.Sketching.Gaussian.ProjectionCost.
Declarations
- NLAlib.exists_forall_hasJLMoment_of_isSubgaussianVector
- NLAlib.exists_forall_hasJLProperty_of_isSubgaussianVector
- NLAlib.exists_forall_isObliviousSubspaceEmbedding_of_isSubgaussianVector
- NLAlib.hasJLMoment_of_isSubgaussianVector
- NLAlib.hasJLMoment_of_isSubgaussianVector_of_subgaussianJLMomentDim_le
- NLAlib.hasJLMoment_subexponentialMomentBound_of_isSubgaussianVector
- NLAlib.hasJLProperty_of_iIndepFun_entry
- NLAlib.hasJLProperty_of_isSubgaussianVector
- NLAlib.hasJLProperty_of_isSubgaussianVector_of_integral_pow_four_le
- NLAlib.hasJLProperty_of_isSubgaussianVector_of_subgaussianJLDim_le
- NLAlib.isObliviousSubspaceEmbedding_of_isSubgaussianVector
- NLAlib.isObliviousSubspaceEmbedding_of_isSubgaussianVector_of_subgaussianEmbeddingDim_le
- NLAlib.isObliviousSubspaceInjection_of_isSubgaussianVector
- NLAlib.isObliviousSubspaceInjection_of_isSubgaussianVector_of_subgaussianEmbeddingDim_le
- NLAlib.le_subgaussianJLConstant
- NLAlib.subgaussianEmbeddingDim
- NLAlib.subgaussianEmbeddingDim_def
- NLAlib.subgaussianEmbeddingDim_le
- NLAlib.subgaussianEmbeddingDim_mono
- NLAlib.subgaussianEmbeddingDim_nonneg
- NLAlib.subgaussianJLConstant
- NLAlib.subgaussianJLConstant_def
- NLAlib.subgaussianJLConstant_pos
- NLAlib.subgaussianJLDim
- NLAlib.subgaussianJLDim_def
- NLAlib.subgaussianJLDim_le
- NLAlib.subgaussianJLDim_mono
- NLAlib.subgaussianJLDim_nonneg
- NLAlib.subgaussianJLMomentDim
- NLAlib.subgaussianJLMomentDim_def
- NLAlib.subgaussianJLMomentDim_le
- NLAlib.subgaussianJLMomentDim_mono
- NLAlib.subgaussianJLMomentDim_nonneg