NLA-lib Explorer

Randomized block Krylov iteration: gapped bounds

Library · Result group

Theorem (integral_specNorm_sub_rbki_sq_le_singularGapRatio_of_hasLaw_gaussianMatrix). The gapped bound for randomized block Krylov iteration, spectral norm: for a standard Gaussian n \times \ell test matrix \mathbf{X}, q \ge 1 blocks, a head of r = h + 1 singular values, a tail index t \ge r with t + 2 \le \ell, and \gamma = (\sigma_h - \sigma_t)/(\sigma_h + \sigma_t), \mathbb{E}\|\mathbf{A} - \mathsf{rbki}(\mathbf{A}, \mathbf{X}, q)\|_2^2 \le \sigma_r(\mathbf{A})^2 + 4e^{-8(q-1)\sqrt{\gamma}}\,\frac{t}{\ell - t - 1} \|\mathbf{A} - \llbracket\mathbf{A}\rrbracket_t\|_{\mathsf{F}}^2\,. No positivity hypothesis: when \sigma_t = 0 the error is zero almost surely. The proof's filter T_{q-1}(2\mathbf{x}/\sigma_t^2 - 1) is T_{2(q-1)}(\sigma_i/\sigma_t) at \mathbf{x} = \sigma_i^2, so the tail factor it gives is T_{2(q-1)}((1 + \gamma)/(1 - \gamma))^{-2} = \operatorname{sech}^2(4(q-1)\operatorname{artanh}\sqrt{\gamma}) \le \operatorname{sech}^2(4(q-1)\sqrt{\gamma}) = 4e^{-8(q-1)\sqrt{\gamma}}/(1 + e^{-8(q-1)\sqrt{\gamma}})^2; every RBKI bound of this file drops the factor (1 + e^{-8(q-1)\sqrt{\gamma}})^2 \le 4, which tends to 1 (docs/contributing/statements.md §2 rule 7). Asymptotic form: NLAlib.exists_forall_integral_specNorm_sub_rbki_sq_le_of_singularGapRatio_pos_of_hasLaw_gaussianMatrix. [TroppWebber2023, Theorem 9.2 (RBKI)], at p = \infty; there with m products and the exponent 4(m - 2)\sqrt{\gamma}, indices from 1 (\sigma_r, \sigma_s for our \sigma_h, \sigma_t), k \ge s + 1 for our t + 2 \le \ell; here m = 2q (odd m is not covered).

Headline General form: sizes are index types

Lean statement and details
NLAlib.integral_specNorm_sub_rbki_sq_le_singularGapRatio_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) μ) {h r t q : ℕ} (hr : h + 1 = r)
  (hrt : r ≤ t) (ht : t + 2 ≤ Fintype.card l) (hq : 1 ≤ q) :
  ∫ (ω : Ω), specNorm (A - rbki A (X ω) q) ^ 2 ∂μ ≤
    singularValues A r ^ 2 +
      4 * rexp (-8 * (↑q - 1) * √(singularGapRatio A h t)) * (↑t / (↑(Fintype.card l) - ↑t - 1)) *
        frobNorm (A - truncatedSVD A t) ^ 2

Full source on GitHub

Copy link

Other forms

Theorem (SymmetricGauge.integral_matrixNorm_conjTranspose_mul_self_sub_rbki_le_singularGapRatio_of_hasLaw_gaussianMatrix). The gapped bound for randomized block Krylov iteration, Gram form: for a standard Gaussian n \times \ell test matrix \mathbf{X}, q \ge 1 blocks, a head of r = h + 1 singular values, a tail index t \ge r with t + 2 \le \ell, and \gamma = (\sigma_h - \sigma_t)/(\sigma_h + \sigma_t), in every unitarily invariant norm \|\cdot\|_{\Phi}, \mathbb{E}\bigl\|\mathbf{E}^{\mathsf{H}}\mathbf{E}\bigr\|_{\Phi} \le \bigl\|(\mathbf{A} - \llbracket\mathbf{A}\rrbracket_r)^{\mathsf{H}} (\mathbf{A} - \llbracket\mathbf{A}\rrbracket_r)\bigr\|_{\Phi} + \Phi(\mathbf{e}_0)\,4e^{-8(q-1)\sqrt{\gamma}}\,\frac{t}{\ell - t - 1} \|\mathbf{A} - \llbracket\mathbf{A}\rrbracket_t\|_{\mathsf{F}}^2\,, with \mathbf{E} = \mathbf{A} - \mathsf{rbki}(\mathbf{A}, \mathbf{X}, q): every quadratic unitarily invariant norm, squared Schatten norms for p \ge 2 included (\Phi(\mathbf{e}_0) = 1). [TroppWebber2023, Theorem 9.2 (RBKI)]; there for Schatten 2 \le p \le \infty and m = 2q.

General form: sizes are index types

Lean statement and details
NLAlib.SymmetricGauge.integral_matrixNorm_conjTranspose_mul_self_sub_rbki_le_singularGapRatio_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 ℝ}
  (Φ : SymmetricGauge) (A : Matrix m n ℝ) (hX : HasLaw X (gaussianMatrix n l) μ) {h r t q : ℕ}
  (hr : h + 1 = r) (hrt : r ≤ t) (ht : t + 2 ≤ Fintype.card l) (hq : 1 ≤ q) :
  ∫ (ω : Ω), Φ.matrixNorm ((A - rbki A (X ω) q)ᴴ * (A - rbki A (X ω) q)) ∂μ ≤
    Φ.matrixNorm ((A - truncatedSVD A r)ᴴ * (A - truncatedSVD A r)) +
      Φ (Finsupp.single 0 1) * (4 * rexp (-8 * (↑q - 1) * √(singularGapRatio A h t))) *
          (↑t / (↑(Fintype.card l) - ↑t - 1)) *
        frobNorm (A - truncatedSVD A t) ^ 2

Full source on GitHub

Copy link

Theorem (exists_forall_integral_frobNorm_sub_rbki_sq_le_of_singularGapRatio_pos_of_hasLaw_gaussianMatrix). Depth O(\log(\lvert n \rvert/\varepsilon)/\sqrt{\gamma}) suffices for randomized block Krylov iteration with a gap, Frobenius norm: there are absolute constants C, \varepsilon_0 > 0 such that for a standard Gaussian n \times \ell test matrix \mathbf{X}, a head of r = h + 1 singular values, a tail index t \ge r with t + 2 \le \ell, a positive relative gap \gamma = (\sigma_h - \sigma_t)/(\sigma_h + \sigma_t), 0 < \varepsilon \le \varepsilon_0 and q \ge C\log(\lvert n \rvert/\varepsilon)/\sqrt{\gamma} blocks, \mathbb{E}\|\mathbf{A} - \mathsf{rbki}(\mathbf{A}, \mathbf{X}, q)\|_{\mathsf{F}}^2 \le (1 + \varepsilon)\,\|\mathbf{A} - \llbracket\mathbf{A}\rrbracket_r\|_{\mathsf{F}}^2\,. The asymptotic form of NLAlib.integral_frobNorm_sub_rbki_sq_le_singularGapRatio_of_hasLaw_gaussianMatrix, whose tail term is at most 4\lvert n \rvert e^{-8(q-1)\sqrt{\gamma}} \|\mathbf{A} - \llbracket\mathbf{A}\rrbracket_r\|_{\mathsf{F}}^2; the proof takes C = 3 and \varepsilon_0 = 1/2. [TroppWebber2023, Theorem 9.2 (RBKI)]; there in explicit form.

General form: sizes are index types

Lean statement and details
NLAlib.exists_forall_integral_frobNorm_sub_rbki_sq_le_of_singularGapRatio_pos_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 ℝ) (h r t q : ℕ) (ε : ℝ),
          HasLaw X (gaussianMatrix n l) μ →
            h + 1 = r →
              r ≤ t →
                t + 2 ≤ Fintype.card l →
                  0 < singularGapRatio A h t →
                    0 < ε →
                      ε ≤ ε₀ →
                        C * Real.log (↑(Fintype.card n) / ε) / √(singularGapRatio A h t) ≤ ↑q →
                          ∫ (ω : Ω), frobNorm (A - rbki A (X ω) q) ^ 2 ∂μ ≤
                            (1 + ε) * frobNorm (A - truncatedSVD A r) ^ 2

Full source on GitHub

Copy link

Theorem (exists_forall_integral_frobNorm_sub_truncatedSVD_rbki_sq_le_of_singularGapRatio_pos_of_hasLaw_gaussianMatrix). Depth O(\log(\lvert n \rvert/\varepsilon)/\sqrt{\gamma}) suffices for truncated randomized block Krylov iteration with a gap, Frobenius norm: there are absolute constants C, \varepsilon_0 > 0 such that for a standard Gaussian n \times \ell test matrix \mathbf{X}, a head of r = h + 1 singular values, a tail index t \ge r with t + 2 \le \ell, a positive relative gap \gamma = (\sigma_h - \sigma_t)/(\sigma_h + \sigma_t), 0 < \varepsilon \le \varepsilon_0 and q \ge C\log(\lvert n \rvert/\varepsilon)/\sqrt{\gamma} blocks, \mathbb{E}\|\mathbf{A} - \llbracket\mathsf{rbki}(\mathbf{A}, \mathbf{X}, q)\rrbracket_r \|_{\mathsf{F}}^2 \le (1 + \varepsilon)\,\|\mathbf{A} - \llbracket\mathbf{A}\rrbracket_r \|_{\mathsf{F}}^2\,. The asymptotic form of NLAlib.integral_frobNorm_sub_truncatedSVD_rbki_sq_le_singularGapRatio_of_hasLaw_gaussianMatrix; the proof takes C = 3 and \varepsilon_0 = 1/2. [TroppWebber2023, §9.1, remark after Theorem 9.2]; there stated without a proof.

General form: sizes are index types

Lean statement and details
NLAlib.exists_forall_integral_frobNorm_sub_truncatedSVD_rbki_sq_le_of_singularGapRatio_pos_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 ℝ) (h r t q : ℕ) (ε : ℝ),
          HasLaw X (gaussianMatrix n l) μ →
            h + 1 = r →
              r ≤ t →
                t + 2 ≤ Fintype.card l →
                  0 < singularGapRatio A h t →
                    0 < ε →
                      ε ≤ ε₀ →
                        C * Real.log (↑(Fintype.card n) / ε) / √(singularGapRatio A h t) ≤ ↑q →
                          ∫ (ω : Ω), frobNorm (A - truncatedSVD (rbki A (X ω) q) r) ^ 2 ∂μ ≤
                            (1 + ε) * frobNorm (A - truncatedSVD A r) ^ 2

Full source on GitHub

Copy link

Theorem (exists_forall_integral_specNorm_sub_rbki_sq_le_of_singularGapRatio_pos_of_hasLaw_gaussianMatrix). Depth O(\log(\lvert n \rvert/\varepsilon)/\sqrt{\gamma}) suffices for randomized block Krylov iteration with a gap, spectral norm: there are absolute constants C, \varepsilon_0 > 0 such that for a standard Gaussian n \times \ell test matrix \mathbf{X}, a head of r = h + 1 singular values, a tail index t \ge r with t + 2 \le \ell, a positive relative gap \gamma = (\sigma_h - \sigma_t)/(\sigma_h + \sigma_t), 0 < \varepsilon \le \varepsilon_0 and q \ge C\log(\lvert n \rvert/\varepsilon)/\sqrt{\gamma} 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 NLAlib.integral_specNorm_sub_rbki_sq_le_singularGapRatio_of_hasLaw_gaussianMatrix, whose tail term is at most 4\lvert n \rvert^2e^{-8(q-1)\sqrt{\gamma}}\sigma_r(\mathbf{A})^2; the proof takes C = 3 and \varepsilon_0 = 1/2. [TroppWebber2023, Theorem 9.2 (RBKI)]; there in explicit form.

General form: sizes are index types

Lean statement and details
NLAlib.exists_forall_integral_specNorm_sub_rbki_sq_le_of_singularGapRatio_pos_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 ℝ) (h r t q : ℕ) (ε : ℝ),
          HasLaw X (gaussianMatrix n l) μ →
            h + 1 = r →
              r ≤ t →
                t + 2 ≤ Fintype.card l →
                  0 < singularGapRatio A h t →
                    0 < ε →
                      ε ≤ ε₀ →
                        C * Real.log (↑(Fintype.card n) / ε) / √(singularGapRatio A h t) ≤ ↑q →
                          ∫ (ω : Ω), specNorm (A - rbki A (X ω) q) ^ 2 ∂μ ≤
                            (1 + ε) * singularValues A r ^ 2

Full source on GitHub

Copy link

Theorem (exists_forall_integral_specNorm_sub_truncatedSVD_rbki_sq_le_of_singularGapRatio_pos_of_hasLaw_gaussianMatrix). Depth O(\log(\lvert n \rvert/\varepsilon)/\sqrt{\gamma}) suffices for truncated randomized block Krylov iteration with a gap, spectral norm: there are absolute constants C, \varepsilon_0 > 0 such that for a standard Gaussian n \times \ell test matrix \mathbf{X}, a head of r = h + 1 singular values, a tail index t \ge r with t + 2 \le \ell, a positive relative gap \gamma = (\sigma_h - \sigma_t)/(\sigma_h + \sigma_t), 0 < \varepsilon \le \varepsilon_0 and q \ge C\log(\lvert n \rvert/\varepsilon)/\sqrt{\gamma} 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_singularGapRatio_of_hasLaw_gaussianMatrix; the proof takes C = 3 and \varepsilon_0 = 1/2. [TroppWebber2023, §9.1, remark after Theorem 9.2]; there stated without a proof.

General form: sizes are index types

Lean statement and details
NLAlib.exists_forall_integral_specNorm_sub_truncatedSVD_rbki_sq_le_of_singularGapRatio_pos_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 ℝ) (h r t q : ℕ) (ε : ℝ),
          HasLaw X (gaussianMatrix n l) μ →
            h + 1 = r →
              r ≤ t →
                t + 2 ≤ Fintype.card l →
                  0 < singularGapRatio A h t →
                    0 < ε →
                      ε ≤ ε₀ →
                        C * Real.log (↑(Fintype.card n) / ε) / √(singularGapRatio A h t) ≤ ↑q →
                          ∫ (ω : Ω), specNorm (A - truncatedSVD (rbki A (X ω) q) r) ^ 2 ∂μ ≤
                            (1 + ε) * singularValues A r ^ 2

Full source on GitHub

Copy link

Theorem (integral_frobNorm_sub_rbki_sq_le_singularGapRatio_of_hasLaw_gaussianMatrix). The gapped bound for randomized block Krylov iteration, Frobenius norm: for a standard Gaussian n \times \ell test matrix \mathbf{X}, q \ge 1 blocks, a head of r = h + 1 singular values, a tail index t \ge r with t + 2 \le \ell, and \gamma = (\sigma_h - \sigma_t)/(\sigma_h + \sigma_t), \mathbb{E}\|\mathbf{A} - \mathsf{rbki}(\mathbf{A}, \mathbf{X}, q)\|_{\mathsf{F}}^2 \le \|\mathbf{A} - \llbracket\mathbf{A}\rrbracket_r\|_{\mathsf{F}}^2 + 4e^{-8(q-1)\sqrt{\gamma}}\,\frac{t}{\ell - t - 1} \|\mathbf{A} - \llbracket\mathbf{A}\rrbracket_t\|_{\mathsf{F}}^2\,. The spectral form is NLAlib.integral_specNorm_sub_rbki_sq_le_singularGapRatio_of_hasLaw_gaussianMatrix. Asymptotic form: NLAlib.exists_forall_integral_frobNorm_sub_rbki_sq_le_of_singularGapRatio_pos_of_hasLaw_gaussianMatrix. [TroppWebber2023, Theorem 9.2 (RBKI)], at p = 2; there with m = 2q products.

General form: sizes are index types

Lean statement and details
NLAlib.integral_frobNorm_sub_rbki_sq_le_singularGapRatio_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) μ) {h r t q : ℕ} (hr : h + 1 = r)
  (hrt : r ≤ t) (ht : t + 2 ≤ Fintype.card l) (hq : 1 ≤ q) :
  ∫ (ω : Ω), frobNorm (A - rbki A (X ω) q) ^ 2 ∂μ ≤
    frobNorm (A - truncatedSVD A r) ^ 2 +
      4 * rexp (-8 * (↑q - 1) * √(singularGapRatio A h t)) * (↑t / (↑(Fintype.card l) - ↑t - 1)) *
        frobNorm (A - truncatedSVD A t) ^ 2

Full source on GitHub

Copy link

Theorem (integral_frobNorm_sub_truncatedSVD_rbki_sq_le_singularGapRatio_of_hasLaw_gaussianMatrix). The gapped bound for truncated randomized block Krylov iteration, Frobenius norm: for a standard Gaussian n \times \ell test matrix \mathbf{X}, q \ge 1 blocks, a head of r = h + 1 singular values, a tail index t \ge r with t + 2 \le \ell, and \gamma = (\sigma_h - \sigma_t)/(\sigma_h + \sigma_t), the rank-r truncation keeps the right side of the untruncated form (NLAlib.integral_frobNorm_sub_rbki_sq_le_singularGapRatio_of_hasLaw_gaussianMatrix), \mathbb{E}\|\mathbf{A} - \llbracket\mathsf{rbki}(\mathbf{A}, \mathbf{X}, q)\rrbracket_r \|_{\mathsf{F}}^2 \le \|\mathbf{A} - \llbracket\mathbf{A}\rrbracket_r\|_{\mathsf{F}}^2 + 4e^{-8(q-1)\sqrt{\gamma}}\,\frac{t}{\ell - t - 1} \|\mathbf{A} - \llbracket\mathbf{A}\rrbracket_t\|_{\mathsf{F}}^2\,, by Gu's projected form (NLAlib.frobNorm_sub_truncatedSVD_rsvd_sq_le_frobNorm_sub_truncatedSVD_sq_add) and head capture in expectation. [TroppWebber2023, §9.1, remark after Theorem 9.2]; there stated without a proof. Asymptotic form: NLAlib.exists_forall_integral_frobNorm_sub_truncatedSVD_rbki_sq_le_of_singularGapRatio_pos_of_hasLaw_gaussianMatrix.

General form: sizes are index types

Lean statement and details
NLAlib.integral_frobNorm_sub_truncatedSVD_rbki_sq_le_singularGapRatio_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) μ) {h r t q : ℕ} (hr : h + 1 = r)
  (hrt : r ≤ t) (ht : t + 2 ≤ Fintype.card l) (hq : 1 ≤ q) :
  ∫ (ω : Ω), frobNorm (A - truncatedSVD (rbki A (X ω) q) r) ^ 2 ∂μ ≤
    frobNorm (A - truncatedSVD A r) ^ 2 +
      4 * rexp (-8 * (↑q - 1) * √(singularGapRatio A h t)) * (↑t / (↑(Fintype.card l) - ↑t - 1)) *
        frobNorm (A - truncatedSVD A t) ^ 2

Full source on GitHub

Copy link

Theorem (integral_specNorm_sub_truncatedSVD_rbki_sq_le_singularGapRatio_of_hasLaw_gaussianMatrix). The gapped bound for truncated randomized block Krylov iteration, spectral norm: for a standard Gaussian n \times \ell test matrix \mathbf{X}, q \ge 1 blocks, a head of r = h + 1 singular values, a tail index t \ge r with t + 2 \le \ell, and \gamma = (\sigma_h - \sigma_t)/(\sigma_h + \sigma_t), the rank-r truncation keeps the right side of the untruncated form (NLAlib.integral_specNorm_sub_rbki_sq_le_singularGapRatio_of_hasLaw_gaussianMatrix), \mathbb{E}\|\mathbf{A} - \llbracket\mathsf{rbki}(\mathbf{A}, \mathbf{X}, q)\rrbracket_r\|_2^2 \le \sigma_r(\mathbf{A})^2 + 4e^{-8(q-1)\sqrt{\gamma}}\,\frac{t}{\ell - t - 1} \|\mathbf{A} - \llbracket\mathbf{A}\rrbracket_t\|_{\mathsf{F}}^2\,, by reverse Eckart–Young (NLAlib.IsBestRankApprox.specNorm_sub_sq_add_frobNorm_sub_truncatedSVD_sq_le) and Gu's projected form. [TroppWebber2023, §9.1, remark after Theorem 9.2]; [Gu2015, Theorem 3.4]; there stated without a proof. Asymptotic form: NLAlib.exists_forall_integral_specNorm_sub_truncatedSVD_rbki_sq_le_of_singularGapRatio_pos_of_hasLaw_gaussianMatrix.

General form: sizes are index types

Lean statement and details
NLAlib.integral_specNorm_sub_truncatedSVD_rbki_sq_le_singularGapRatio_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) μ) {h r t q : ℕ} (hr : h + 1 = r)
  (hrt : r ≤ t) (ht : t + 2 ≤ Fintype.card l) (hq : 1 ≤ q) :
  ∫ (ω : Ω), specNorm (A - truncatedSVD (rbki A (X ω) q) r) ^ 2 ∂μ ≤
    singularValues A r ^ 2 +
      4 * rexp (-8 * (↑q - 1) * √(singularGapRatio A h t)) * (↑t / (↑(Fintype.card l) - ↑t - 1)) *
        frobNorm (A - truncatedSVD A t) ^ 2

Full source on GitHub

Copy link

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.