Approximate matrix multiplication in the spectral norm by row sampling
Library · Result group
Theorem (measureReal_specNorm_conjTranspose_mul_sub_ge_le_of_hasLaw_samplingSketch).Approximate matrix multiplication in the spectral norm by row sampling: for k and r nonempty, weights p summing to 1 with \|\mathbf{A}_i\|^2 \le a p_i and \|\mathbf{B}_i\|^2 \le \mathbf{b} p_i for every row i, a, \mathbf{b} \ge 0, the row-sampling sketch \mathbf{S} with \lvert k\rvert i.i.d. rows drawn with probabilities p, and t \ge 0, \mathbb{P}\bigl[t \le \|\mathbf{A}^{\mathsf{H}}\mathbf{S}^{\mathsf{H}}\mathbf{S}\mathbf{B} - \mathbf{A}^{\mathsf{H}}\mathbf{B}\|_2\bigr] \le (\lvert q\rvert + \lvert r\rvert) \exp\Bigl(-\frac{\lvert k\rvert t^2/2}{\max(\mathbf{b}\|\mathbf{A}\|_2^2, a\|\mathbf{B}\|_2^2) + 2\sqrt{a\mathbf{b}}\,t/3}\Bigr)\,. Rectangular matrix Bernstein (NLAlib.measureReal_specNorm_sum_ge_le_bernstein) for the centred atoms. At p_i \propto \|\mathbf{A}_i\|^2 + \|\mathbf{B}_i\|^2 this is the stable-rank form. [MartinssonTropp2020, §7.3, Theorem 7.2]; [Tropp2015, §6.4] (locator of the corollary to check).
Headline (provisional)General form: sizes are index types
Lean statement and details
NLAlib.measureReal_specNorm_conjTranspose_mul_sub_ge_le_of_hasLaw_samplingSketch.{u_1, u_2, u_3,
u_4, u_5, u_6}
{Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {𝕜 : Type u_2} [RCLike 𝕜] {k : Type u_3}
{n : Type u_4} {q : Type u_5} {r : Type u_6} [Fintype k] [Fintype n] [Fintype q] [Fintype r]
[DecidableEq n] {S : Ω → Matrix k n 𝕜} {p : n → ℝ≥0} [Nonempty k] [Nonempty r]
(hS : HasLaw S (samplingSketch k p) μ) (hp : ∑ i, p i = 1) (A : Matrix n q 𝕜) (B : Matrix n r 𝕜)
{a b : ℝ} (ha : 0 ≤ a) (hb : 0 ≤ b) (hA : ∀ (i : n), ‖WithLp.toLp 2 (A i)‖ ^ 2 ≤ a * ↑(p i))
(hB : ∀ (i : n), ‖WithLp.toLp 2 (B i)‖ ^ 2 ≤ b * ↑(p i)) {t : ℝ} (ht : 0 ≤ t) :
μ.real {ω | t ≤ specNorm (Aᴴ * (S ω)ᴴ * S ω * B - Aᴴ * B)} ≤
(↑(Fintype.card q) + ↑(Fintype.card r)) *
rexp
(-(↑(Fintype.card k) * t ^ 2 / 2) /
(max (b * specNorm A ^ 2) (a * specNorm B ^ 2) + 2 * √(a * b) * t / 3))
Theorem (measureReal_specNorm_conjTranspose_mul_sub_ge_le_of_hasLaw_samplingSketchWithoutReplacement).Approximate matrix multiplication in the spectral norm by row sampling without replacement: for k and r nonempty, \|\mathbf{A}_i\|^2 \le a/\lvert n\rvert and \|\mathbf{B}_i\|^2 \le \mathbf{b}/\lvert n\rvert for every row i, a, \mathbf{b} \ge 0, the row-sampling sketch \mathbf{S} = \sqrt{\lvert n\rvert/\lvert k\rvert}\,\mathbf{P}^{\mathsf{H}} of \lvert k\rvert distinct uniformly sampled rows, and t \ge 0, \mathbb{P}\bigl[t \le \|\mathbf{A}^{\mathsf{H}}\mathbf{S}^{\mathsf{H}}\mathbf{S}\mathbf{B} - \mathbf{A}^{\mathsf{H}}\mathbf{B}\|_2\bigr] \le (\lvert q\rvert + \lvert r\rvert) \exp\Bigl(-\frac{\lvert k\rvert t^2/2}{\max(\mathbf{b}\|\mathbf{A}\|_2^2, a\|\mathbf{B}\|_2^2) + 2\sqrt{a\mathbf{b}}\,t/3}\Bigr)\,, the bound with replacement at uniform weights: matrix Bernstein without replacement (NLAlib.measureReal_specNorm_sum_ge_le_bernstein_of_hasLaw_uniformOn_injective) for the centred population (\lvert n\rvert/\lvert k\rvert)\mathbf{A}_i^{\mathsf{H}}\mathbf{B}_i - \mathbf{A}^{\mathsf{H}}\mathbf{B}/\lvert k\rvert. For \lvert n\rvert < \lvert k\rvert the law is 0. [MartinssonTropp2020, §7.3, Theorem 7.2] (with replacement); [GrossNesme2010, Section D] for the comparison.
General form: sizes are index types
Lean statement and details
NLAlib.measureReal_specNorm_conjTranspose_mul_sub_ge_le_of_hasLaw_samplingSketchWithoutReplacement.{u_1,
u_2, u_3, u_4, u_5, u_6}
{Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {𝕜 : Type u_2} [RCLike 𝕜] {k : Type u_3}
{n : Type u_4} {q : Type u_5} {r : Type u_6} [Fintype k] [Fintype n] [Fintype q] [Fintype r]
[DecidableEq n] {S : Ω → Matrix k n 𝕜} [Nonempty k] [Nonempty r]
(hS : HasLaw S (samplingSketchWithoutReplacement k n) μ) (A : Matrix n q 𝕜) (B : Matrix n r 𝕜)
{a b : ℝ} (ha : 0 ≤ a) (hb : 0 ≤ b)
(hA : ∀ (i : n), ‖WithLp.toLp 2 (A i)‖ ^ 2 ≤ a * (↑(Fintype.card n))⁻¹)
(hB : ∀ (i : n), ‖WithLp.toLp 2 (B i)‖ ^ 2 ≤ b * (↑(Fintype.card n))⁻¹) {t : ℝ} (ht : 0 ≤ t) :
μ.real {ω | t ≤ specNorm (Aᴴ * (S ω)ᴴ * S ω * B - Aᴴ * B)} ≤
(↑(Fintype.card q) + ↑(Fintype.card r)) *
rexp
(-(↑(Fintype.card k) * t ^ 2 / 2) /
(max (b * specNorm A ^ 2) (a * specNorm B ^ 2) + 2 * √(a * b) * t / 3))
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.