NLA-lib Explorer

NLAlib.BlockKrylov.measureReal_not_accepts_le_of_hasLaw_gaussianMatrix

Library · theorem

The gapped tail bound for the stored output with a Gaussian start block of any size. Let a program be certified for the block Golub–Kahan problem with a postcondition that implies the exact-run postcondition, let \mathbf{A} be the m \times n input matrix with singular values \sigma_0 \ge \sigma_1 \ge \dots, and let \mathbf{X} be a standard Gaussian n \times \mathbf{b} matrix (independent standard normal entries), \mathbf{b} \ge 1. For a head of r = h + 1 singular values, a tail index t \ge r, depth q \ge t, a gap \Delta > 0 with \sigma_{i+1}^2 \le (1 - \Delta)\sigma_i^2 for every i + 1 < t, \delta > 0 and \gamma = (\sigma_h - \sigma_t)/(\sigma_h + \sigma_t), with probability at least 1 - \delta the run on the tape of \mathbf{X} succeeds within every budget of the specification, satisfies its postcondition, and its stored product \widehat{\mathbf{A}} = \mathbf{U}\mathbf{S}^{\mathsf{H}}\mathbf{V}^{\mathsf{H}} satisfies \|\mathbf{A} - \widehat{\mathbf{A}}\|_2^2 \le \sigma_r^2 + 32e^{-8(q-t)\sqrt{\gamma}}\,\Delta^{-2(t-1)}\,\frac{t^3}{\delta^3}\, \|\mathbf{A} - \llbracket\mathbf{A}\rrbracket_t\|_{\mathsf{F}}^2\,. No success of the execution is assumed. [MeyerMuscoMusco2023, Theorem 6], there for one start vector, as a number of iterations in O(\cdot) form with unspecified constants.

NLAlib.BlockKrylov.measureReal_not_accepts_le_of_hasLaw_gaussianMatrix {Lo : Type}
  {L : Ops.AccessModel Lo Ops.CmpTst Krylov.GolubKahan.Band.Certification.problem}
  {S : Ops.Specification Lo Ops.CmpTst Krylov.GolubKahan.Band.Certification.problem}
  (alg : Ops.Algorithm L S) (stream : ℕ)
  (hgood :
    ∀ (d : Fin 4 → ℕ) (x : Krylov.GolubKahan.Band.Certification.problem.Input d) (τ : Ops.Tape ℝ)
      (c : Ops.Count (Lo ⊕ Ops.Bookkeeping) Ops.CmpTst) (μ : Ops.Mem ℝ),
      S.good d x τ c μ →
        Krylov.GolubKahan.Band.Certification.Good stream d
          (Krylov.GolubKahan.Band.Certification.matrix x) τ μ)
  {d : Fin 4 → ℕ} (hb : 0 < d 2) (input : Krylov.GolubKahan.Band.Certification.problem.Input d)
  (I : Ops.Interp Lo Ops.CmpTst ℝ) (hI : L.contracts d input I) {Ω' : Type} [MeasurableSpace Ω']
  (P : Measure Ω') (X : Ω' → Matrix (Fin (d 1)) (Fin (d 2)) ℝ)
  (hX : HasLaw X (gaussianMatrix (Fin (d 1)) (Fin (d 2))) P) {h r t : ℕ} (hr : h + 1 = r)
  (hrt : r ≤ t) (hq : t ≤ d 3) {Δ δ : ℝ} (hΔ : 0 < Δ) (hδ : 0 < δ)
  (hgap :
    ∀ (i : ℕ),
      i + 1 < t →
        singularValues (Krylov.GolubKahan.Band.Certification.matrix input) (i + 1) ^ 2 ≤
          (1 - Δ) * singularValues (Krylov.GolubKahan.Band.Certification.matrix input) i ^ 2) :
  P.real
      {ω |
        ¬S.Accepts alg.program I L.resources (BlockKrylov.packedSampleTape stream (X ω)) d input
            fun c μ ↦
            S.good d input (BlockKrylov.packedSampleTape stream (X ω)) c μ ∧
              specNorm
                    (Krylov.GolubKahan.Band.Certification.matrix input -
                      Krylov.GolubKahan.Band.Certification.storedProduct (d 0) (d 1) (d 2) (d 3)
                        μ) ^
                  2 ≤
                singularValues (Krylov.GolubKahan.Band.Certification.matrix input) r ^ 2 +
                  32 *
                          rexp
                            (-8 * (↑(d 3) - ↑t) *
                              √(singularGapRatio (Krylov.GolubKahan.Band.Certification.matrix input)
                                  h t)) *
                        Δ⁻¹ ^ (2 * (t - 1)) *
                      (↑t ^ 3 / δ ^ 3) *
                    frobNorm
                        (Krylov.GolubKahan.Band.Certification.matrix input -
                          truncatedSVD (Krylov.GolubKahan.Band.Certification.matrix input) t) ^
                      2} ≤
    δ

Full source on GitHub

Import NLAlib.LowRank.BlockKrylov.Probability.