Theorem (hasSubspaceEmbedding_of_hasLaw_samplingSketch).Row sampling under leverage domination: if \ell_i(\mathbf{U}) \le L p_i for every row, the row-sampling sketch with k samples is a subspace embedding for \operatorname{range}\mathbf{U} with constants 1 \mp \varepsilon outside probability 2 \operatorname{rank}\mathbf{U} \cdot e^{-\varepsilon^2 k / (3L)} \,, for 0 \le \varepsilon \le 1 and any \mathbf{U}. [Woodruff2014, Theorem 17], there \mathbf{U} with orthonormal columns, p a \beta-approximation of the leverage-score distribution and s > 144 d \log(2d/\delta) / (\beta \varepsilon^2) samples through a Bernstein bound (Fact 1); here matrix Chernoff, L = d/\beta, any shape and rank; [MartinssonTropp2020, §9.6.3]; [Tropp2015, Theorem 5.1.1].
Headline (provisional)General form: sizes are index types
Lean statement and details
NLAlib.hasSubspaceEmbedding_of_hasLaw_samplingSketch.{u_1, u_2, u_3, u_4, u_6} {Ω : Type u_1}
{mΩ : MeasurableSpace Ω} {μ : Measure Ω} {𝕜 : Type u_2} [RCLike 𝕜] {k : Type u_3} {n : Type u_4}
{r : Type u_6} [Fintype k] [Fintype n] [Fintype r] [DecidableEq n] {S : Ω → Matrix k n 𝕜}
{U : Matrix n r 𝕜} {p : n → ℝ≥0} {L ε : ℝ} (hS : HasLaw S (samplingSketch k p) μ)
(hp : ∑ i, p i = 1) (hdom : ∀ (i : n), leverageScore U i ≤ L * ↑(p i)) (hε : 0 ≤ ε)
(hε1 : ε ≤ 1) :
HasSubspaceEmbedding S U (1 - ε) (1 + ε)
(2 * ↑U.rank * rexp (-ε ^ 2 * ↑(Fintype.card k) / (3 * L))) μ
Theorem (hasSubspaceEmbedding_of_hasLaw_samplingSketch_leverageScoreDistribution).Exact leverage-score sampling: sampling rows by the leverage-score distribution of \mathbf{U} gives a subspace embedding with constants 1 \mp \varepsilon outside probability 2 d \, e^{-\varepsilon^2 k / (3 d)} \,,d = \operatorname{rank}\mathbf{U}, for 0 \le \varepsilon \le 1; the domination constant is L = d. No normalisation hypothesis: for \mathbf{U} = \mathbf{0} the bound is 0 and every embedding event is full. [MartinssonTropp2020, §9.6.3]; [Woodruff2014, Theorem 17], there \beta = 1.
General form: sizes are index types
Lean statement and details
NLAlib.hasSubspaceEmbedding_of_hasLaw_samplingSketch_leverageScoreDistribution.{u_1, u_2, u_3, u_4,
u_6}
{Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {𝕜 : Type u_2} [RCLike 𝕜] {k : Type u_3}
{n : Type u_4} {r : Type u_6} [Fintype k] [Fintype n] [Fintype r] [DecidableEq n]
{S : Ω → Matrix k n 𝕜} {U : Matrix n r 𝕜} {ε : ℝ}
(hS : HasLaw S (samplingSketch k (leverageScoreDistribution U)) μ) (hε : 0 ≤ ε) (hε1 : ε ≤ 1) :
HasSubspaceEmbedding S U (1 - ε) (1 + ε)
(2 * ↑U.rank * rexp (-ε ^ 2 * ↑(Fintype.card k) / (3 * ↑U.rank))) μ
Theorem (hasSubspaceEmbedding_of_hasLaw_samplingSketch_of_samplingEmbeddingDim_le).Row sampling, sample-size form: row sampling under leverage domination \ell_i(\mathbf{U}) \le L p_i is a subspace embedding for \operatorname{range}\mathbf{U} with constants 1 \mp \varepsilon and failure probability \delta, for 0 < \varepsilon \le 1, \delta > 0 and <!-- value samplingEmbeddingDim \operatorname{rank}\mathbf{U} L \varepsilon \delta --> \lvert k \rvert \ge 3 L \log(2\operatorname{rank}\mathbf{U}/\delta)/\varepsilon^2 samples (NLAlib.samplingEmbeddingDim U.rank L ε δ). [Woodruff2014, Theorem 17], constant 144/\beta there, 3 here at L = d/\beta; [MartinssonTropp2020, §9.6.3]. Asymptotic form: NLAlib.exists_forall_hasSubspaceEmbedding_of_hasLaw_samplingSketch.
General form: sizes are index types
Lean statement and details
NLAlib.hasSubspaceEmbedding_of_hasLaw_samplingSketch_of_samplingEmbeddingDim_le.{u_1, u_2, u_3, u_4,
u_6}
{Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {𝕜 : Type u_2} [RCLike 𝕜] {k : Type u_3}
{n : Type u_4} {r : Type u_6} [Fintype k] [Fintype n] [Fintype r] [DecidableEq n]
{S : Ω → Matrix k n 𝕜} {U : Matrix n r 𝕜} {p : n → ℝ≥0} {L ε δ : ℝ}
(hS : HasLaw S (samplingSketch k p) μ) (hp : ∑ i, p i = 1)
(hdom : ∀ (i : n), leverageScore U i ≤ L * ↑(p i)) (hε : 0 < ε) (hε1 : ε ≤ 1) (hδ : 0 < δ)
(hk : samplingEmbeddingDim U.rank L ε δ ≤ ↑(Fintype.card k)) :
HasSubspaceEmbedding S U (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.