Theorem (integral_specNorm_sub_rbki_sq_le_mul_exp_of_hasLaw_gaussianMatrix).Tropp and Webber's gapless bound for randomized block Krylov iteration: for a standard Gaussian n \times \ell test matrix \mathbf{X}, q \ge 2 blocks, a target rank r with r + 2 \le \ell and \sigma_r(\mathbf{A}) > 0, the bound <!-- value rangeFinderTailRatio \mathbf{A} r \ell --> \mathbb{E}\|\mathbf{A} - \mathsf{rbki}(\mathbf{A}, \mathbf{X}, q)\|_2^2 \le \sigma_r(\mathbf{A})^2\exp\biggl(\frac{1}{16(q-1)^2}\log^2\biggl(4\Bigl(1 + \frac{r}{\ell - r - 1}\, \frac{\|\mathbf{A} - \llbracket\mathbf{A}\rrbracket_r\|_{\mathsf{F}}^2}{\sigma_r(\mathbf{A})^2} \Bigr)\biggr)\biggr)\,, the argument of the logarithm being four times the range-finder tail ratio NLAlib.rangeFinderTailRatio. The hypothesis q \ge 2 is needed: at q = 1 the right side is \sigma_r(\mathbf{A})^2, below the error of the randomized SVD. The hypothesis \sigma_r(\mathbf{A}) > 0 normalises the ratio; the bound would hold without it. Incomparable with the (1 + \varepsilon) form (NLAlib.integral_specNorm_sub_rbki_sq_le_one_add_sq_mul_of_hasLaw_gaussianMatrix): this one tends to \sigma_r(\mathbf{A})^2 as q \to \infty. Asymptotic form: NLAlib.exists_forall_integral_specNorm_sub_rbki_sq_le_of_hasLaw_gaussianMatrix. [TroppWebber2023, Theorem 9.1 (RBKI)]; there in logarithmic form with m products and the rate 1/(4(m-2)^2), indices from 1; here m = 2q (odd m is not covered).
HeadlineGeneral form: sizes are index types
Lean statement and details
NLAlib.integral_specNorm_sub_rbki_sq_le_mul_exp_of_hasLaw_gaussianMatrix.{u_1, u_2, u_3, u_4}
{Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {m : Type u_2} {n : Type u_3}
{l : Type u_4} [Fintype m] [Fintype n] [Fintype l] [DecidableEq n] {X : Ω → Matrix n l ℝ}
(A : Matrix m n ℝ) (hX : HasLaw X (gaussianMatrix n l) μ) {r q : ℕ} (hr : r + 2 ≤ Fintype.card l)
(hq : 2 ≤ q) (hσ : 0 < singularValues A r) :
∫ (ω : Ω), specNorm (A - rbki A (X ω) q) ^ 2 ∂μ ≤
singularValues A r ^ 2 *
rexp (Real.log (4 * rangeFinderTailRatio A r (Fintype.card l)) ^ 2 / (16 * (↑q - 1) ^ 2))
Theorem (exists_forall_integral_specNorm_sub_rbki_sq_le_of_hasLaw_gaussianMatrix).Depth O(\log(\lvert n \rvert + 1)/\sqrt{\varepsilon}) suffices for randomized block Krylov iteration, spectral norm, no gap: there are absolute constants C, \varepsilon_0 > 0 such that for a standard Gaussian n \times \ell test matrix \mathbf{X}, a target rank r with r + 2 \le \ell, 0 < \varepsilon \le \varepsilon_0 and q \ge C\log(\lvert n \rvert + 1)/\sqrt{\varepsilon} blocks, \mathbb{E}\|\mathbf{A} - \mathsf{rbki}(\mathbf{A}, \mathbf{X}, q)\|_2^2 \le (1 + \varepsilon)\,\sigma_r(\mathbf{A})^2\,. The asymptotic form of Tropp and Webber's gapless bound NLAlib.integral_specNorm_sub_rbki_sq_le_mul_exp_of_hasLaw_gaussianMatrix, with the tail ratio at most 1 + \lvert n \rvert^2 (NLAlib.rangeFinderTailRatio_le_one_add_card_sq); no factor \log(1/\varepsilon) enters. When \sigma_r(\mathbf{A}) = 0 the (1 + \varepsilon) form (NLAlib.integral_specNorm_sub_rbki_sq_le_one_add_sq_mul_of_hasLaw_gaussianMatrix) gives error 0, so no positivity hypothesis is needed. The proof takes C = 4 and \varepsilon_0 = 1. [TroppWebber2023, Theorem 9.1 (RBKI)]; there in logarithmic form with m = 2q products.
General form: sizes are index types
Lean statement and details
NLAlib.exists_forall_integral_specNorm_sub_rbki_sq_le_of_hasLaw_gaussianMatrix :
∃ C ε₀,
0 < C ∧
0 < ε₀ ∧
∀ {Ω m n l : Type} [inst : MeasurableSpace Ω] [inst_1 : Fintype m] [inst_2 : Fintype n]
[inst_3 : DecidableEq n] [inst_4 : Fintype l] (μ : Measure Ω) (A : Matrix m n ℝ)
(X : Ω → Matrix n l ℝ) (r q : ℕ) (ε : ℝ),
HasLaw X (gaussianMatrix n l) μ →
r + 2 ≤ Fintype.card l →
0 < ε →
ε ≤ ε₀ →
C * Real.log (↑(Fintype.card n) + 1) / √ε ≤ ↑q →
∫ (ω : Ω), specNorm (A - rbki A (X ω) q) ^ 2 ∂μ ≤
(1 + ε) * singularValues A r ^ 2
Theorem (exists_forall_integral_specNorm_sub_truncatedSVD_rbki_sq_le_of_hasLaw_gaussianMatrix).Depth O(\log(\lvert n \rvert/\varepsilon)/\sqrt{\varepsilon}) suffices for randomized block Krylov iteration, spectral norm, truncated output: there are absolute constants C, \varepsilon_0 > 0 such that for a standard Gaussian n \times \ell test matrix \mathbf{X}, a target rank r with r + 2 \le \ell, 0 < \varepsilon \le \varepsilon_0 and q \ge C\log(\lvert n \rvert/\varepsilon)/\sqrt{\varepsilon} blocks, \mathbb{E}\|\mathbf{A} - \llbracket\mathsf{rbki}(\mathbf{A}, \mathbf{X}, q)\rrbracket_r\|_2^2 \le (1 + \varepsilon)\,\sigma_r(\mathbf{A})^2\,. The asymptotic form of NLAlib.integral_specNorm_sub_truncatedSVD_rbki_sq_le_one_add_sq_mul_of_hasLaw_gaussianMatrix, at \varepsilon/3, with \|\mathbf{A} - \llbracket\mathbf{A}\rrbracket_r\|_{\mathsf{F}}^2 \le \lvert n \rvert\,\sigma_r(\mathbf{A})^2 and r/(\ell - r - 1) \le \lvert n \rvert when r < \lvert n \rvert (for r \ge \lvert n \rvert the tail term vanishes); the proof takes C = 6 and \varepsilon_0 = 1/2. At \lvert n \rvert = 0 every depth is allowed (Lean's \log 0 = 0), harmlessly, since then \mathbf{A} = \mathbf{0}. [MuscoMusco2015, Theorem 10]; [MartinssonTropp2020, Theorem 11.11]; there with probability 99/100 and q = \Theta(\log(d/\varepsilon)/\sqrt{\varepsilon}) (MM), or stated without proof (MT).
General form: sizes are index types
Lean statement and details
NLAlib.exists_forall_integral_specNorm_sub_truncatedSVD_rbki_sq_le_of_hasLaw_gaussianMatrix :
∃ C ε₀,
0 < C ∧
0 < ε₀ ∧
∀ {Ω m n l : Type} [inst : MeasurableSpace Ω] [inst_1 : Fintype m] [inst_2 : Fintype n]
[inst_3 : DecidableEq n] [inst_4 : Fintype l] (μ : Measure Ω) (A : Matrix m n ℝ)
(X : Ω → Matrix n l ℝ) (r q : ℕ) (ε : ℝ),
HasLaw X (gaussianMatrix n l) μ →
r + 2 ≤ Fintype.card l →
0 < ε →
ε ≤ ε₀ →
C * Real.log (↑(Fintype.card n) / ε) / √ε ≤ ↑q →
∫ (ω : Ω), specNorm (A - truncatedSVD (rbki A (X ω) q) r) ^ 2 ∂μ ≤
(1 + ε) * singularValues A r ^ 2
Theorem (integral_specNorm_sub_rbki_sq_le_one_add_sq_mul_of_hasLaw_gaussianMatrix).The gapless bound for randomized block Krylov iteration, (1 + \varepsilon) form: for a standard Gaussian n \times \ell test matrix \mathbf{X}, q \ge 1 blocks, a target rank r with r + 2 \le \ell, and every \varepsilon > 0, \mathbb{E}\|\mathbf{A} - \mathsf{rbki}(\mathbf{A}, \mathbf{X}, q)\|_2^2 \le (1 + \varepsilon)^2\sigma_r(\mathbf{A})^2 + 4e^{-8(q-1)\sqrt{\varepsilon/(2 + \varepsilon)}}\,\frac{r}{\ell - r - 1} \|\mathbf{A} - \llbracket\mathbf{A}\rrbracket_r\|_{\mathsf{F}}^2\,. The same bound as the truncated form (NLAlib.integral_specNorm_sub_truncatedSVD_rbki_sq_le_one_add_sq_mul_of_hasLaw_gaussianMatrix). [MuscoMusco2015, Theorem 10 (proof)]; [TroppWebber2023, Theorem 9.2]; constants composed here.
General form: sizes are index types
Lean statement and details
NLAlib.integral_specNorm_sub_rbki_sq_le_one_add_sq_mul_of_hasLaw_gaussianMatrix.{u_1, u_2, u_3, u_4}
{Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {m : Type u_2} {n : Type u_3}
{l : Type u_4} [Fintype m] [Fintype n] [Fintype l] [DecidableEq n] {X : Ω → Matrix n l ℝ}
(A : Matrix m n ℝ) (hX : HasLaw X (gaussianMatrix n l) μ) {r q : ℕ} (hr : r + 2 ≤ Fintype.card l)
(hq : 1 ≤ q) {ε : ℝ} (hε : 0 < ε) :
∫ (ω : Ω), specNorm (A - rbki A (X ω) q) ^ 2 ∂μ ≤
(1 + ε) ^ 2 * singularValues A r ^ 2 +
4 * rexp (-8 * (↑q - 1) * √(ε / (2 + ε))) * (↑r / (↑(Fintype.card l) - ↑r - 1)) *
frobNorm (A - truncatedSVD A r) ^ 2
Theorem (integral_specNorm_sub_truncatedSVD_rbki_sq_le_one_add_sq_mul_of_hasLaw_gaussianMatrix).The gapless bound for truncated randomized block Krylov iteration, (1 + \varepsilon) form: for a standard Gaussian n \times \ell test matrix \mathbf{X}, q \ge 1 blocks, a target rank r with r + 2 \le \ell, and every \varepsilon > 0, \mathbb{E}\|\mathbf{A} - \llbracket\mathsf{rbki}(\mathbf{A}, \mathbf{X}, q)\rrbracket_r\|_2^2 \le (1 + \varepsilon)^2\sigma_r(\mathbf{A})^2 + 4e^{-8(q-1)\sqrt{\varepsilon/(2 + \varepsilon)}}\,\frac{r}{\ell - r - 1} \|\mathbf{A} - \llbracket\mathbf{A}\rrbracket_r\|_{\mathsf{F}}^2\,. No gap is assumed: with h the number of singular values at least (1 + \varepsilon)\sigma_r(\mathbf{A}), either h = 0 and the error is at most \|\mathbf{A}\|_2 < (1 + \varepsilon)\sigma_r, or the gapped bound at head h and tail index r applies with gap at least \varepsilon/(2 + \varepsilon). The constants are composed here, not printed in either source: 4 and 8 from TW Theorem 9.2 at m = 2q, the gap from MM's case split with 1 + \varepsilon in place of their 1 + \varepsilon/2. Better than Tropp and Webber's gapless form (NLAlib.integral_specNorm_sub_rbki_sq_le_mul_exp_of_hasLaw_gaussianMatrix) for a fixed relative accuracy \varepsilon; that one is better as q \to \infty at fixed \mathbf{A}. Asymptotic form: NLAlib.exists_forall_integral_specNorm_sub_truncatedSVD_rbki_sq_le_of_hasLaw_gaussianMatrix. [MuscoMusco2015, Theorem 10 (proof)]; [TroppWebber2023, Theorem 9.2]; there with probability 99/100 (MM) or untruncated and gapped (TW); here in expectation.
General form: sizes are index types
Lean statement and details
NLAlib.integral_specNorm_sub_truncatedSVD_rbki_sq_le_one_add_sq_mul_of_hasLaw_gaussianMatrix.{u_1,
u_2, u_3, u_4}
{Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {m : Type u_2} {n : Type u_3}
{l : Type u_4} [Fintype m] [Fintype n] [Fintype l] [DecidableEq n] {X : Ω → Matrix n l ℝ}
(A : Matrix m n ℝ) (hX : HasLaw X (gaussianMatrix n l) μ) {r q : ℕ} (hr : r + 2 ≤ Fintype.card l)
(hq : 1 ≤ q) {ε : ℝ} (hε : 0 < ε) :
∫ (ω : Ω), specNorm (A - truncatedSVD (rbki A (X ω) q) r) ^ 2 ∂μ ≤
(1 + ε) ^ 2 * singularValues A r ^ 2 +
4 * rexp (-8 * (↑q - 1) * √(ε / (2 + ε))) * (↑r / (↑(Fintype.card l) - ↑r - 1)) *
frobNorm (A - truncatedSVD A r) ^ 2
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.