NLAlib.integral_frobNorm_conjTranspose_mul_sub_sq_of_hasLaw_samplingSketch
Library · theorem
General form: sizes are index types
Approximate matrix multiplication by sampling, exact second moment: \mathbb{E} \|\mathbf{A}^{\mathsf{H}} \mathbf{S}^{\mathsf{H}} \mathbf{S} \mathbf{B} - \mathbf{A}^{\mathsf{H}} \mathbf{B}\|_{\mathsf{F}}^2 = \frac{1}{\lvert k \rvert} \Bigl( \sum_i \frac{\|\mathbf{A}_i\|^2 \|\mathbf{B}_i\|^2}{p_i} - \|\mathbf{A}^{\mathsf{H}} \mathbf{B}\|_{\mathsf{F}}^2 \Bigr) for k nonempty, when every zero weight sits on a row where \mathbf{A} or \mathbf{B} vanishes (there the term is 0/0 = 0). [MartinssonTropp2020, §7.1] (the estimator); Drineas, Kannan and Mahoney 2006, Lemma 4 (the identity, citation to confirm). Result: amm-sampling
NLAlib.integral_frobNorm_conjTranspose_mul_sub_sq_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} {A : Matrix n q 𝕜} {B : Matrix n r 𝕜}
[Nonempty k] (hS : HasLaw S (samplingSketch k p) μ) (hp : ∑ i, p i = 1)
(hsupport : ∀ (i : n), p i = 0 → A i = 0 ∨ B i = 0) :
∫ (ω : Ω), frobNorm (Aᴴ * (S ω)ᴴ * S ω * B - Aᴴ * B) ^ 2 ∂μ =
(∑ i, ‖WithLp.toLp 2 (A i)‖ ^ 2 * ‖WithLp.toLp 2 (B i)‖ ^ 2 / ↑(p i) - frobNorm (Aᴴ * B) ^ 2) /
↑(Fintype.card k)Import NLAlib.Sketching.Sampling.MatrixMultiplication.
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.