Rounded Krylov methods can lose orthogonality and differ from their exact-arithmetic counterparts. These mathematical run models quantify local defects, backward interpretations, and their spectral or matrix-function consequences. They are not execution certificates: an implementation must separately establish that its returned data satisfy the selected model.
Results
Theorem (The forward bound for the factors returned by a rounded run of block Golub–Kahan
bidiagonalization, in the Frobenius norm).
Let \mathbf{U}, \mathbf{V}, \mathbf{S} be the stored bases and coefficients of a run of q steps with block width b, scheme parameters (\eta_0, \mu, \varepsilon) and product parameter \varepsilon_{\mathrm{mv}}, and \mathbf{P}_{\mathbf{U}} the orthogonal projector onto the range of \mathbf{U}. If \mu, \varepsilon, \varepsilon_{\mathrm{mv}} \ge 0 and \sqrt{3(q+1)b}\,\mu \le \eta_0 then \|\mathbf{A} - \mathbf{U}\mathbf{S}^{\mathsf{T}}\mathbf{V}^{\mathsf{T}}\|_{\mathsf{F}} \le \|(\mathbf{I} - \mathbf{P}_{\mathbf{U}})\mathbf{A}\|_{\mathsf{F}} + \Bigl(\sqrt{3qb}\,\mu + \sqrt{1 + \eta_0}\,\bigl(\varepsilon_{\mathrm{mv}} + \varepsilon(1 + \varepsilon_{\mathrm{mv}}) \bigr)\sqrt{qb(1 + \eta_0)}\Bigr)\|\mathbf{A}\|_2. No printed source.
Theorem (Orthogonality of the computed left basis on its nonzero columns).
Let \mathbf{U} (qb columns) be the left basis of a rounded run of block Golub–Kahan bidiagonalization with scheme parameters (\eta_0, \mu, \varepsilon), and let \mathbf{D} = \mathbf{U}^{\mathsf{T}}\mathbf{U} - \operatorname{diag}(\mathbf{s}) be its Gram defect on the support (s_c = 0 at a zero column, s_c = 1 otherwise). If \mu \ge 0 and \sqrt{3qb}\,\mu \le \eta_0 then \|\mathbf{D}\|_{\mathsf{F}} \le \sqrt{3qb}\,\mu\,. No printed source.
Theorem (The first residual relation of a rounded run of block Golub–Kahan bidiagonalization).
with scheme parameters (\eta_0, \mu, \varepsilon) and product parameter \varepsilon_{\mathrm{mv}}, q steps and block width b. With \mathbf{V}_{<q} the first q blocks of the right basis, \mathbf{U} the left basis and \mathbf{R} the stored coefficients: if \mu, \varepsilon, \varepsilon_{\mathrm{mv}} \ge 0 and \sqrt{3(q+1)b}\,\mu \le \eta_0 then \|\mathbf{A}\mathbf{V}_{<q} - \mathbf{U}\mathbf{R}\|_{\mathsf{F}} \le \bigl(\varepsilon_{\mathrm{mv}} + \varepsilon(1 + \varepsilon_{\mathrm{mv}})\bigr) \sqrt{qb(1 + \eta_0)}\,\|\mathbf{A}\|_2. No printed source.
Theorem (The a priori backward model of finite-precision CG).
for spectrum in [a, a'], a > 0, \kappa = a'/a, and (H) k^2\sqrt{k}\varepsilon\kappa^2 \le 10^{-5}, the bound is \|\tilde{\mathbf{H}} - \mathbf{I}_{k+1} \otimes \mathbf{A}\|_{\mathsf{F}} \le 6000k^2\sqrt{k}\,\varepsilon\,\kappa\,a' . No printed source. the module docstring compares it with the literature. For \varepsilon > 0 the validity range is k \le (10^{-5}/(\varepsilon\kappa^2))^{2/5}; the model distance is at most 0.06a.
Lean statement and details
NLAlib.CGRun.frobNorm_backwardH_sub_dilatedH_le {n k : ℕ} (C : CGRun n k) {a a' : ℝ} (ha : 0 < a)
(hs : spectrum ℝ C.A ⊆ Set.Icc a a') (hsmall : ↑k ^ 2 * √↑k * C.ε * (a' / a) ^ 2 ≤ 1 / 10 ^ 5) :
frobNorm (C.backwardH - C.dilatedH) ≤ cgBackwardFactor k * C.ε * (a' / a) * a'
Theorem (Finite-horizon Chebyshev bound for the computed residual).
for a k-step CG run, \operatorname{spec}(\mathbf A)\subseteq[a,a'], a>0, \kappa=a'/a and k^{5/2}\varepsilon\kappa^2\le10^{-5}, put \kappa_c=2\kappa+1. For j\le k, \|\mathbf{r}_j\|\le2\sqrt{\kappa_c} \Bigl(\frac{\sqrt{\kappa_c}-1}{\sqrt{\kappa_c}+1}\Bigr)^j\|\mathbf b\|\,. No printed source in this form; compare [MeurantStrakos2006, §5.2]. This bounds the residual envelope for j\le k; it does not assert stepwise monotonicity.
For a successful k-step CG run with spectrum in [a,a'], a>0, k^2\sqrt{k}\varepsilon(a'/a)^2\le10^{-5}, solution \mathbf{A}\mathbf{x}_\star=\mathbf{b} and j+d\le k, suppose the terminal energy is at most T. If the delayed decrement sum plus T and the input-only rounding allowance of 150d(j+d)\varepsilon(a'/a)\|\mathbf{b}\|^2/a is at most the requested tolerance, the physical energy at j is at most that tolerance. A small delayed sum alone is insufficient when the terminal tail or rounding allowance is large. No printed source.
Lean statement and details
NLAlib.CGRun.quadForm_sub_x_le_of_sum_add_le {n k : ℕ} (C : CGRun n k) {a a' : ℝ} (ha : 0 < a)
(hs : spectrum ℝ C.A ⊆ Set.Icc a a') (hsmall : ↑k ^ 2 * √↑k * C.ε * (a' / a) ^ 2 ≤ 1 / 10 ^ 5)
{xs : Fin n → ℝ} (hx : C.A *ᵥ xs = C.b) {j d : ℕ} (hjd : j + d ≤ k) {tail tolerance : ℝ}
(hterminal : quadForm C.A (xs - C.x (j + d)) ≤ tail)
(hstop :
∑ i ∈ Finset.Ico j (j + d), C.γ i * C.ρ i ^ 2 +
cgEnergyEstimatorFactor j d * C.ε * (a' / a) * (‖WithLp.toLp 2 C.b‖ ^ 2 / a) +
tail ≤
tolerance) :
quadForm C.A (xs - C.x j) ≤ tolerance
For a successful k-step real CG run with spectrum in [a,a'], a>0, \kappa=a'/a and k^2\sqrt{k}\varepsilon\kappa^2\le10^{-5}, let E_i=\|\mathbf{x}_\star-\mathbf{x}_i\|_{\mathbf{A}}^2 for a solution \mathbf{A}\mathbf{x}_\star=\mathbf{b}. For j+d\le k, the exactly evaluated computed decrement sum satisfies, with R_{j,d}=150d(j+d)\varepsilon\kappa\|\mathbf{b}\|^2/a, \Bigl\lvert E_j-E_{j+d}-\sum_{i=j}^{j+d-1}\gamma_i\|\mathbf{r}_i\|^2\Bigr\rvert \le R_{j,d} . [StrakosTichy2002, Theorem 10.1 and (10.6)-(10.9)]; adapted to this arithmetic model and proved input-only window. All quadratic errors are bounded explicitly, and no near-monotonicity hypothesis is used. Zero delay and zero precision have zero remainder.
Lean statement and details
NLAlib.CGRun.abs_quadForm_sub_x_sub_quadForm_sub_x_sub_sum_le {n k : ℕ} (C : CGRun n k) {a a' : ℝ}
(ha : 0 < a) (hs : spectrum ℝ C.A ⊆ Set.Icc a a')
(hsmall : ↑k ^ 2 * √↑k * C.ε * (a' / a) ^ 2 ≤ 1 / 10 ^ 5) {xs : Fin n → ℝ} (hx : C.A *ᵥ xs = C.b)
{j d : ℕ} (hjd : j + d ≤ k) :
|quadForm C.A (xs - C.x j) - quadForm C.A (xs - C.x (j + d)) -
∑ i ∈ Finset.Ico j (j + d), C.γ i * C.ρ i ^ 2| ≤
cgEnergyEstimatorFactor j d * C.ε * (a' / a) * (‖WithLp.toLp 2 C.b‖ ^ 2 / a)
for a CG run with spectrum in [a,a'], a>0, \kappa=a'/a, \varepsilon > 0, \mathbf{A}\mathbf{x}_\star =\mathbf{b}, k \ge k_\star = k_\star(\kappa, \varepsilon, 1) and the horizon condition at k_\star only, (k_\star)^2\sqrt{k_\star}\,\varepsilon\kappa^2 \le 10^{-5}, with \kappa' = 2\kappa + 1, \ell = \ln(\sqrt{\kappa'}/(4\varepsilon)) and M = \|\mathbf{x}_\star\| + \|\mathbf{x}_\star\|_{\mathbf{A}}/\sqrt{a}, \|\mathbf{b} - \mathbf{A}\mathbf{x}_{k_\star}\| \le \Bigl(\frac{11}{2}(\sqrt{\kappa'} + 1)\,\ell + 19\Bigr)\varepsilon\,a'M , an attainable relative residual of order \kappa\ln(1/\varepsilon)\,\varepsilon (one \sqrt{\kappa} from M \le (1 + \sqrt{\kappa})\|\mathbf{x}_\star\|, one from k_\star \propto \sqrt{\kappa}). NLAlib.cgKStar_cube_mul_le gives a stronger sufficient condition at k_\star from \kappa^{7/2}\varepsilon\ell^3 \le 7 \cdot 10^{-7}. No printed source.
Lean statement and details
NLAlib.CGRun.norm_sub_mulVec_x_cgKStar_le {n k : ℕ} (C : CGRun n k) {a a' : ℝ} (ha : 0 < a)
(hs : spectrum ℝ C.A ⊆ Set.Icc a a') (hε : 0 < C.ε) (hk : cgKStar (a' / a) C.ε 1 ≤ k)
(hsmall :
↑(cgKStar (a' / a) C.ε 1) ^ 2 * √↑(cgKStar (a' / a) C.ε 1) * C.ε * (a' / a) ^ 2 ≤ 1 / 10 ^ 5)
{xs : Fin n → ℝ} (hx : C.A *ᵥ xs = C.b) :
‖WithLp.toLp 2 (C.b - C.A *ᵥ C.x (cgKStar (a' / a) C.ε 1))‖ ≤
(11 / 2 * (√(2 * (a' / a) + 1) + 1) * Real.log (√(2 * (a' / a) + 1) / (4 * 1 * C.ε)) + 19) *
C.ε *
a' *
(‖WithLp.toLp 2 xs‖ + √(quadForm C.A xs) / √a)
Theorem (Direct energy convergence in finite precision).
For a successful k-step CG run with spectrum in [a,a'], a>0, \kappa=a'/a and k^2\sqrt{k}\varepsilon\kappa^2\le10^{-5}, a solution \mathbf{A}\mathbf{x}_\star=\mathbf{b} satisfies, for j\le k, \|\mathbf{x}_\star-\mathbf{x}_j\|_{\mathbf{A}}^2\le 4q^{2j}\|\mathbf{x}_\star\|_{\mathbf{A}}^2+\eta+R_j , where q=(\sqrt{2\kappa+1}-1)/(\sqrt{2\kappa+1}+1), and with c=6000k^2\sqrt{k}\varepsilon\kappa a', \eta=2\|\mathbf{b}\|^2c/a^2 and the rounding error is R_j=135j^2\varepsilon\kappa\|\mathbf{b}\|^2/a. This is a finite-horizon upper envelope for the energy of the computed iterates; both additive terms vanish at zero precision. No printed source. The exact-model Chebyshev estimate is [Saad2003, Theorem 6.29]; the transfer uses the computed decrements directly.
Lean statement and details
NLAlib.CGRun.quadForm_sub_x_le_four_mul_pow_add {n k : ℕ} (C : CGRun n k) {a a' : ℝ} (ha : 0 < a)
(hs : spectrum ℝ C.A ⊆ Set.Icc a a') (hsmall : ↑k ^ 2 * √↑k * C.ε * (a' / a) ^ 2 ≤ 1 / 10 ^ 5)
{xs : Fin n → ℝ} (hx : C.A *ᵥ xs = C.b) {j : ℕ} (hj : j ≤ k) :
quadForm C.A (xs - C.x j) ≤
4 * ((√(2 * (a' / a) + 1) - 1) / (√(2 * (a' / a) + 1) + 1)) ^ (2 * j) * quadForm C.A xs +
2 * ‖WithLp.toLp 2 C.b‖ ^ 2 * (cgBackwardFactor k * C.ε * (a' / a) * a') / a ^ 2 +
cgEnergyFactor j * C.ε * (a' / a) * (‖WithLp.toLp 2 C.b‖ ^ 2 / a)
Theorem (Physical energy and computed decrements).
For a successful k-step CG run with spectrum in [a,a'], a>0, \kappa=a'/a and k^2\sqrt{k}\varepsilon\kappa^2\le10^{-5}, a solution \mathbf{A}\mathbf{x}_\star=\mathbf{b} satisfies for j\le k, with error R_j=135j^2\varepsilon\kappa\|\mathbf{b}\|^2/a, \|\mathbf{x}_\star-\mathbf{x}_j\|_{\mathbf{A}}^2\le \|\mathbf{x}_\star\|_{\mathbf{A}}^2-\sum_{i<j}\gamma_i\|\mathbf{r}_i\|^2+R_j . The coefficient of the computed decrement sum is exactly one. No printed source.
Lean statement and details
NLAlib.CGRun.quadForm_sub_x_le_sub_sum_add {n k : ℕ} (C : CGRun n k) {a a' : ℝ} (ha : 0 < a)
(hs : spectrum ℝ C.A ⊆ Set.Icc a a') (hsmall : ↑k ^ 2 * √↑k * C.ε * (a' / a) ^ 2 ≤ 1 / 10 ^ 5)
{xs : Fin n → ℝ} (hx : C.A *ᵥ xs = C.b) {j : ℕ} (hj : j ≤ k) :
quadForm C.A (xs - C.x j) ≤
quadForm C.A xs - ∑ i ∈ Finset.range j, C.γ i * C.ρ i ^ 2 +
cgEnergyFactor j * C.ε * (a' / a) * (‖WithLp.toLp 2 C.b‖ ^ 2 / a)
Theorem (Physical CG energy as computed Gauss quadrature error).
For a successful k-step run with spectrum in [a,a'], a>0, \kappa=a'/a, k^2\sqrt{k}\varepsilon\kappa^2\le10^{-5} and solution \mathbf A\mathbf x_\star=\mathbf b, put \mathbf T_{j+1}=\mathsf{cgTridiagonal}(\gamma,\rho,j+1). For j+1\le k, the physical squared energy differs from \|\mathbf x_\star\|_{\mathbf A}^2-\|\mathbf b\|^2(\mathbf T_{j+1}^{-1})_{00} by at most \mathsf{cgEnergyEstimatorFactor}(0,j+1)\varepsilon\kappa\|\mathbf b\|^2/a. The factor is currently 150(j+1)(0+(j+1)). [MeurantStrakos2006, (3.17)]; the exact quadrature identity is applied to computed coefficients, with the existing absolute physical-energy remainder. No residual-to-energy norm conversion is used.
Theorem (Relative reliability of computed CG energy decrements).
For a successful k-step run with spectrum in [a,a'], a>0, \kappa=a'/a, k^2\sqrt{k}\varepsilon\kappa^2\le10^{-5} and solution \mathbf A\mathbf x_\star=\mathbf b, let E_i=\|\mathbf x_\star-\mathbf x_i\|_{\mathbf A}^2 and \nu_{j,d}=\sum_{i=j}^{j+d-1}\gamma_i\rho_i^2. For j+d\le k, the allowance is currently 60k. The additive coefficient is currently 36(j+d)+16: \lvert E_j-E_{j+d}-\nu_{j,d}\rvert\le60k\varepsilon\kappa\nu_{j,d} +(36(j+d)+16)d\varepsilon\kappa\|\mathbf b\|^2/a. [StrakosTichy2002, Theorem 10.1]; the arithmetic model and explicit input-only constants here retain the quadratic roundoff terms. Scalar summation is exact and physical energy need not decrease. Unlike the existing absolute delayed bound, this form retains dependence on the measured decrement and can be useful when that decrement is small.
Lean statement and details
NLAlib.CGRun.abs_quadForm_sub_x_sub_quadForm_sub_x_add_sub_sum_le {n k : ℕ} (C : CGRun n k)
{a a' : ℝ} (ha : 0 < a) (hs : spectrum ℝ C.A ⊆ Set.Icc a a')
(hsmall : ↑k ^ 2 * √↑k * C.ε * (a' / a) ^ 2 ≤ 1 / 10 ^ 5) {xs : Fin n → ℝ} (hx : C.A *ᵥ xs = C.b)
{j d : ℕ} (hjd : j + d ≤ k) :
|quadForm C.A (xs - C.x j) - quadForm C.A (xs - C.x (j + d)) -
∑ i ∈ Finset.Ico j (j + d), C.γ i * C.ρ i ^ 2| ≤
cgEnergyTrackingRelativeFactor k * C.ε * (a' / a) *
∑ i ∈ Finset.Ico j (j + d), C.γ i * C.ρ i ^ 2 +
cgEnergyTrackingUpdateFactor (j + d) * ↑d * C.ε * (a' / a) * (‖WithLp.toLp 2 C.b‖ ^ 2 / a)
Theorem (Past k_\star(\delta) the true residual is the gap).
up to \delta times the gap's level: for a k-step CG run with spectrum in [a,a'], a>0, \kappa=a'/a and k^2\sqrt{k}\varepsilon\kappa^2\le10^{-5}, for \varepsilon, \delta > 0 and k_\star(\kappa, \varepsilon, \delta) \le j \le k, \bigl\lvert\|\mathbf{b} - \mathbf{A}\mathbf{x}_j\| - \|\mathbf{b} - \mathbf{A}\mathbf{x}_j - \mathbf{r}_j\|\bigr\rvert \le 8\delta\varepsilon\|\mathbf{b}\| . No printed source.
Theorem (Computed residual convergence on tiny intervals).
For a successful k-step run, input spectrum in [a,a'], a>0, \kappa=a'/a and k^2\sqrt{k}\varepsilon\kappa^2\le10^{-5}, let S contain all closed radius-\delta intervals about the input eigenvalues, with Frobenius backward distance at most \delta. For j\le k, a real polynomial p of degree at most j, p(0)=1 and \lvert p\rvert\le\eta on S gives \|\mathbf{r}_j\|^2\le(a'+a/2)\eta^2 (\|\mathbf{x}_\star\|_{\mathbf{A}}^2+\Delta)\,. Here \mathbf{A}\mathbf{x}_\star=\mathbf{b}; the coefficient is c=6000k^2\sqrt{k}\varepsilon\kappa a' gives \Delta=2\|\mathbf{b}\|^2c/a^2. Exact \mathsf{cgIterate} on the full model reproduces the computed residual norms. [GreenbaumLiuChen2021, §1.3, (9)]; the polynomial set is retained and no residual gap is assumed.
Lean statement and details
NLAlib.CGRun.ρ_sq_le_mul_sq_mul_of_polynomial {n k : ℕ} (C : CGRun n k) {a a' δ η : ℝ} (ha : 0 < a)
(hs : spectrum ℝ C.A ⊆ Set.Icc a a') (hsmall : ↑k ^ 2 * √↑k * C.ε * (a' / a) ^ 2 ≤ 1 / 10 ^ 5)
(hgap : frobNorm (C.backwardH - C.dilatedH) ≤ δ) {S : Set ℝ}
(hS : ⋃ i ∈ Set.Iio n, Set.Icc (eigenvalue C.A i - δ) (eigenvalue C.A i + δ) ⊆ S) {xs : Fin n → ℝ}
(hx : C.A *ᵥ xs = C.b) {j : ℕ} (hj : j ≤ k) {p : Polynomial ℝ} (hp : p.degree ≤ ↑j)
(hp₀ : Polynomial.eval 0 p = 1) (hη : ∀ x ∈ S, |Polynomial.eval x p| ≤ η) :
C.ρ j ^ 2 ≤
(a' + a / 2) * η ^ 2 *
(quadForm C.A xs +
2 * ‖WithLp.toLp 2 C.b‖ ^ 2 * (cgBackwardFactor k * C.ε * (a' / a) * a') / a ^ 2)
Theorem (Tiny-interval minimax convergence of computed CG).
For a successful k-step run, input spectrum in [a,a'], a>0, \kappa=a'/a and k^2\sqrt{k}\varepsilon\kappa^2\le10^{-5}, let a compact set S contain all closed radius-\delta intervals about input eigenvalues, where the Frobenius backward distance is at most \delta. For j\le k and \mathbf{A}\mathbf{x}_\star=\mathbf{b}, \|\mathbf{x}_\star-\mathbf{x}_j\|_{\mathbf{A}}^2\le \mathsf{residualMinimax}(S,j)^2(\|\mathbf{x}_\star\|_{\mathbf{A}}^2+\Delta)+\Delta+R_j\,. With c=6000k^2\sqrt{k}\varepsilon\kappa a', put \Delta=2\|\mathbf{b}\|^2c/a^2. The term is R_j=135j^2\varepsilon\kappa\|\mathbf{b}\|^2/a. The error of exact \mathsf{cgIterate} on the full model supplies the minimax factor. [GreenbaumLiuChen2021, §1.3, (9)]; here squared physical energy with explicit additive errors.
Lean statement and details
NLAlib.CGRun.quadForm_sub_x_le_residualMinimax_sq_mul_add {n k : ℕ} (C : CGRun n k) {a a' δ : ℝ}
(ha : 0 < a) (hs : spectrum ℝ C.A ⊆ Set.Icc a a')
(hsmall : ↑k ^ 2 * √↑k * C.ε * (a' / a) ^ 2 ≤ 1 / 10 ^ 5)
(hgap : frobNorm (C.backwardH - C.dilatedH) ≤ δ) {S : Set ℝ} (hcompact : IsCompact S)
(hS : ⋃ i ∈ Set.Iio n, Set.Icc (eigenvalue C.A i - δ) (eigenvalue C.A i + δ) ⊆ S) {xs : Fin n → ℝ}
(hx : C.A *ᵥ xs = C.b) {j : ℕ} (hj : j ≤ k) :
quadForm C.A (xs - C.x j) ≤
residualMinimax S j ^ 2 *
(quadForm C.A xs +
2 * ‖WithLp.toLp 2 C.b‖ ^ 2 * (cgBackwardFactor k * C.ε * (a' / a) * a') / a ^ 2) +
2 * ‖WithLp.toLp 2 C.b‖ ^ 2 * (cgBackwardFactor k * C.ε * (a' / a) * a') / a ^ 2 +
cgEnergyFactor j * C.ε * (a' / a) * (‖WithLp.toLp 2 C.b‖ ^ 2 / a)
Theorem (Tiny-interval polynomial convergence of computed CG).
For a successful k-step run, input spectrum in [a,a'], a>0, \kappa=a'/a and k^2\sqrt{k}\varepsilon\kappa^2\le10^{-5}, let S contain all closed radius-\delta intervals about the input eigenvalues, where the Frobenius backward distance is at most \delta. For j\le k, every real polynomial p of degree at most j with p(0)=1 and \lvert p\rvert\le\eta on S gives \|\mathbf{x}_\star-\mathbf{x}_j\|_{\mathbf{A}}^2 \le\eta^2(\|\mathbf{x}_\star\|_{\mathbf{A}}^2+\Delta)+\Delta+R_j\,. Here \mathbf{A}\mathbf{x}_\star=\mathbf{b}. With the value c=6000k^2\sqrt{k}\varepsilon\kappa a', the initial comparison error is \Delta=2\|\mathbf{b}\|^2c/a^2. The term is R_j=135j^2\varepsilon\kappa\|\mathbf{b}\|^2/a. The model error is that of exact \mathsf{cgIterate} on the full backward model. [GreenbaumLiuChen2021, §1.3, (9)]; here a squared physical-energy statement with explicit additive errors, rather than the qualitative tiny-interval minimax discussion.
Lean statement and details
NLAlib.CGRun.quadForm_sub_x_le_sq_mul_add_of_polynomial {n k : ℕ} (C : CGRun n k) {a a' δ η : ℝ}
(ha : 0 < a) (hs : spectrum ℝ C.A ⊆ Set.Icc a a')
(hsmall : ↑k ^ 2 * √↑k * C.ε * (a' / a) ^ 2 ≤ 1 / 10 ^ 5)
(hgap : frobNorm (C.backwardH - C.dilatedH) ≤ δ) {S : Set ℝ}
(hS : ⋃ i ∈ Set.Iio n, Set.Icc (eigenvalue C.A i - δ) (eigenvalue C.A i + δ) ⊆ S) {xs : Fin n → ℝ}
(hx : C.A *ᵥ xs = C.b) {j : ℕ} (hj : j ≤ k) {p : Polynomial ℝ} (hp : p.degree ≤ ↑j)
(hp₀ : Polynomial.eval 0 p = 1) (hη : ∀ x ∈ S, |Polynomial.eval x p| ≤ η) :
quadForm C.A (xs - C.x j) ≤
η ^ 2 *
(quadForm C.A xs +
2 * ‖WithLp.toLp 2 C.b‖ ^ 2 * (cgBackwardFactor k * C.ε * (a' / a) * a') / a ^ 2) +
2 * ‖WithLp.toLp 2 C.b‖ ^ 2 * (cgBackwardFactor k * C.ε * (a' / a) * a') / a ^ 2 +
cgEnergyFactor j * C.ε * (a' / a) * (‖WithLp.toLp 2 C.b‖ ^ 2 / a)
Theorem (The Gram defect on the support bounds the distance to the range projector, Frobenius
norm).
for every matrix \mathbf{Q}, with zero columns allowed, \mathbf{Q}\mathbf{Q}^{\mathsf{H}} differs from the orthogonal projector \mathbf{P}_{\mathbf{Q}} onto the column space of \mathbf{Q} by at most the Gram defect on the support \mathbf{D} = \mathbf{Q}^{\mathsf{H}}\mathbf{Q} - \operatorname{diag}(\mathbf{s}) (s_j = 0 at a zero column, s_j = 1 otherwise), \|\mathbf{Q}\mathbf{Q}^{\mathsf{H}} - \mathbf{P}_{\mathbf{Q}}\|_{\mathsf{F}} \le \|\mathbf{D}\|_{\mathsf{F}}\,. No printed source.
Theorem (Greenbaum-type backward model for finite-precision Lanczos).
(assuming k\varepsilon \le 1/100): the symmetric backward model \tilde{\mathbf{H}} is close to \mathbf{I}_{k+1} \otimes \mathbf{H}, \|\tilde{\mathbf{H}} - \mathbf{I}_{k+1} \otimes \mathbf{H}\|_{\mathsf{F}} \le 400k^3\varepsilon\|\mathbf{H}\|_2 \,, and it satisfies the computed recurrence exactly with orthonormal vectors (NLAlib.LanczosRun.backwardH_mul_dilatedBasis), so exact Lanczos on it from the dilated starting vector computes \mathbf{T}_k and \beta_k (NLAlib.LanczosRun.lanczosTridiagonal_backwardH_dilatedStart). No printed source; the maintainer's draft, thm:greenbaum, states \|\mathbf{\Delta}\|_2 \lesssim_k \varepsilon\|\mathbf{A}\|_2 (its formalization: 480000k^6 in the spectral norm); the Frobenius norm here is at least the spectral norm. [Greenbaum1989, (7.10)] has a perturbation of order \varepsilon^{1/4}.
the backward error with coefficient growth retained as a finite geometric sum. Writing G_k=(1+\varepsilon)\sum_{i<k}(1+8\varepsilon)^{i+1}, the bound is 1000k^2\varepsilon(1+G_k)\|\mathbf H\|_2. Only local accuracy is assumed, and terminal breakdown is allowed. The geometric sum may be large; this theorem does not assert convergence as the number of steps increases. No printed source. It uses NLAlib.LanczosRun.β_le_geom_sum as a coefficient certificate.
Lean statement and details
NLAlib.LanczosRun.frobNorm_backwardH_sub_dilatedH_le_geom_sum {n k : ℕ} (L : LanczosRun n k) :
frobNorm (L.backwardH - L.dilatedH) ≤
lanczosSmallRoundoffBackwardFactor k * L.ε *
(1 + (1 + L.ε) * ∑ i ∈ Finset.range k, (1 + 8 * L.ε) ^ (i + 1)) *
specNorm L.H
Theorem (Quadratic backward error under small roundoff).
for a k-step finite-precision Lanczos run with k^2\varepsilon \le 10^{-3}, the same exact backward model satisfies the bound with factor \|\tilde{\mathbf{H}}-\mathbf{I}_{k+1}\otimes\mathbf{H}\|_{\mathsf{F}} \le 1000k^2\varepsilon\|\mathbf{H}\|_2 \,. No printed source. The exact model bounds its own coefficients; the additional smallness condition absorbs its perturbation into the right-hand side. Terminal breakdown is allowed.
(assuming k\varepsilon \le 1/100) (the exchange rule and the dilated residual): the orthonormal dilated vectors satisfy the computed recurrence with the computed coefficients up to \|\hat{\mathbf{E}}\|_{\mathsf{F}} = \|\hat{\mathbf{H}}\hat{\mathbf{V}}_k - \hat{\mathbf{V}}_{k+1}\underline{\mathbf{T}}_k\|_{\mathsf{F}} \le 280k^3\varepsilon\|\mathbf{H}\|_2 \,. No printed source; the maintainer's draft, lem:exchange and lem:dilated-recurrence, state \lesssim_k \varepsilon\|\mathbf{A}\|_2 (its formalization: 240000k^6 in the spectral norm).
Lean statement and details
NLAlib.LanczosRun.frobNorm_dilatedResidual_le {n k : ℕ} (L : LanczosRun n k)
(hsmall : ↑k * L.ε ≤ 1 / 100) :
frobNorm L.dilatedResidual ≤ lanczosDilatedResidualFactor k * L.ε * specNorm L.H
Theorem (Finite precision Lanczos for bounded functions).
Let the spectrum of a run's matrix lie in [a,a'], with a<a', and let p of degree below k approximate f to error \delta on [a-\rho,a'+\rho], where \lvert f\rvert\le M. If the backward perturbation fits in \rho, k\varepsilon\le1/100, and the explicit polynomial precision budget is at most \eta\le1, then \|f(\mathbf{H})\bar{\mathbf{v}}_1-\mathsf{functionApprox}(L,f)\| \le4k\delta+\eta M\,. The budget uses the degree factor 4k^2 and backward factor 400k^3, so sufficient precision has polynomial dependence on the step count. No continuity or Lipschitz assumption on f is required. The small matrix function and final multiplication are exact postprocessing. [MuscoMuscoSidford2018, Theorem 2.1 (published SODA version)] gives the same qualitative polynomial approximation and additive precision structure for a specified floating point implementation; the local run model, precision budget and constants here differ, and no runtime claim is made.
Lean statement and details
NLAlib.LanczosRun.norm_cfc_mulVec_sub_functionApprox_le_of_precision {n k : ℕ} (L : LanczosRun n k)
{a a' ρ M δ η : ℝ} {f : ℝ → ℝ} {p : Polynomial ℝ} (hab : a < a')
(hs : spectrum ℝ L.H ⊆ Set.Icc a a') (hsmall : ↑k * L.ε ≤ 1 / 100)
(hρ : lanczosBackwardFactor k * L.ε * specNorm L.H ≤ ρ) (hp : p.degree < ↑k)
(happ : Metric.IsUniformApproxOn (fun x ↦ Polynomial.eval x p) f (Set.Icc (a - ρ) (a' + ρ)) δ)
(hM : 0 ≤ M) (hf : ∀ x ∈ Set.Icc (a - ρ) (a' + ρ), |f x| ≤ M) (hη : η ≤ 1)
(hprecision :
√(↑k + 1) * polynomialDerivativeFactor k / (a' - a + 2 * ρ) *
(lanczosBackwardFactor k * L.ε * specNorm L.H) +
√↑k * L.ε ≤
η) :
‖WithLp.toLp 2 (cfc f L.H *ᵥ L.normalizedV 1 - L.functionApprox f)‖ ≤
lanczosFunctionApproxFactor k * δ + η * M
For original and backward spectra in [a,a'], a degree-below-k polynomial approximating f to error \delta there, with scalar Lipschitz coefficient \ell, gives \|f(\mathbf{H})\bar{\mathbf{v}}_1 - \mathsf{functionApprox}(L,f)\| \le (1+\sqrt{k+1})\delta + \sqrt{k+1}\ell \|\widetilde{\mathbf{H}}-\widehat{\mathbf{H}}\|_{\mathsf{F}} + \sqrt{k}\varepsilon M\,, where \lvert f\rvert\le M on the interval. This uses the physical computed basis, with exact small matrix functional calculus and final multiplication. No regularity of f is assumed. No printed source; the comparison with [MuscoMuscoSidford2018, Theorem 2.1 (published SODA version)] is at the level of polynomial approximation and a polynomial precision coefficient, not its implementation.
Lean statement and details
NLAlib.LanczosRun.norm_cfc_mulVec_sub_functionApprox_le_of_isUniformApproxOn {n k : ℕ}
(L : LanczosRun n k) {a a' M : ℝ} {f : ℝ → ℝ} {p : Polynomial ℝ} {δ : ℝ} {ℓ : ℝ≥0}
(hs : spectrum ℝ L.H ⊆ Set.Icc a a') (hback : spectrum ℝ L.backwardH ⊆ Set.Icc a a')
(hp : p.degree < ↑k) (hpoly : LipschitzOnWith ℓ (fun x ↦ Polynomial.eval x p) (Set.Icc a a'))
(happ : Metric.IsUniformApproxOn (fun x ↦ Polynomial.eval x p) f (Set.Icc a a') δ) (hM : 0 ≤ M)
(hf : ∀ x ∈ Set.Icc a a', |f x| ≤ M) :
‖WithLp.toLp 2 (cfc f L.H *ᵥ L.normalizedV 1 - L.functionApprox f)‖ ≤
(1 + √(↑k + 1)) * δ + √(↑k + 1) * ↑ℓ * frobNorm (L.backwardH - L.dilatedH) + √↑k * L.ε * M
A finite precision run with original and backward spectra in [a,a'], and a polynomial p of degree below k approximating f uniformly there to error \delta, satisfies \|f(\mathbf{H})\bar{\mathbf{v}}_1 - \mathsf{normalizedFunctionApprox}(L,f)\| \le (1+\sqrt{k+1})\delta + \sqrt{k+1}\ell \|\widetilde{\mathbf{H}}-\widehat{\mathbf{H}}\|_{\mathsf{F}}\,, where \ell is any Lipschitz coefficient of p on the interval. No regularity of f is assumed. The small matrix function and final multiplication are exact postprocessing. No printed source; compared with [MuscoMuscoSidford2018, Theorem 2.1 (published SODA version)], this exposes the polynomial stability term and uses the library's local recurrence model.
Lean statement and details
NLAlib.LanczosRun.norm_cfc_mulVec_sub_normalizedFunctionApprox_le_of_isUniformApproxOn {n k : ℕ}
(L : LanczosRun n k) {a a' : ℝ} {f : ℝ → ℝ} {p : Polynomial ℝ} {δ : ℝ} {ℓ : ℝ≥0}
(hs : spectrum ℝ L.H ⊆ Set.Icc a a') (hback : spectrum ℝ L.backwardH ⊆ Set.Icc a a')
(hp : p.degree < ↑k) (hpoly : LipschitzOnWith ℓ (fun x ↦ Polynomial.eval x p) (Set.Icc a a'))
(happ : Metric.IsUniformApproxOn (fun x ↦ Polynomial.eval x p) f (Set.Icc a a') δ) :
‖WithLp.toLp 2 (cfc f L.H *ᵥ L.normalizedV 1 - L.normalizedFunctionApprox f)‖ ≤
(1 + √(↑k + 1)) * δ + √(↑k + 1) * ↑ℓ * frobNorm (L.backwardH - L.dilatedH)
(assuming k\varepsilon \le 1/100): \|\mathbf{M}_k\|_2 \le 30k^2\varepsilon\|\mathbf{H}\|_2. No printed source; the maintainer's draft, cor:gram-commutator, states \|\mathbf{M}_k\| \lesssim_k \varepsilon\|\mathbf{A}\|_2 (its formalization: 3000k^3); here the strict upper part is bounded in the Frobenius norm by that of NLAlib.LanczosRun.gramCommutator_sub_transpose, and the diagonal entry by entry, which saves a factor k. [Paige1976, (22)]; [Paige1980, (2.17)–(2.18)].
Lean statement and details
NLAlib.LanczosRun.specNorm_gramCommutator_le {n k : ℕ} (L : LanczosRun n k)
(hsmall : ↑k * L.ε ≤ 1 / 100) :
specNorm L.gramCommutator ≤ lanczosGramCommutatorFactor k * L.ε * specNorm L.H
Theorem (Local error bound for finite-precision Lanczos).
(assuming k\varepsilon \le 1/100) (Paige): the computed vectors satisfy the three-term recurrence up to a small residual, for j < k, \|\mathbf{H}\mathbf{v}_{j+1} - \beta_j\mathbf{v}_j - \alpha_{j+1}\mathbf{v}_{j+1} - \beta_{j+1}\mathbf{v}_{j+2}\| \le 6(j + 1)\,\varepsilon\,\|\mathbf{H}\|_2 \,. No printed source; the maintainer's draft, thm:local-errors, states \|\mathbf{f}_j\| \lesssim_k \varepsilon\|\mathbf{A}\|_2 (its formalization: 700j); the constant here comes from the sharper coefficient bounds. [Paige1976, §2–3] has bounds of this kind, from floating-point arithmetic directly.
(continuous f, Lipschitz on the enlarged interval and k\varepsilon\le1/100): for \operatorname{spec}\mathbf{H} \subseteq [a, a'], c = 400k^3\varepsilon\|\mathbf{H}\|_2, I_c = [a - c, a' + c] and fL-Lipschitz on I_c, \bigl\lvert\bar{\mathbf{v}}_1^{\mathsf{T}}f(\mathbf{H})\bar{\mathbf{v}}_1 - (f(\mathbf{T}_k))_{00}\bigr\rvert \le 2E_{2k-1}(f; I_c) + 400k^3\varepsilon\|\mathbf{H}\|_2\,L ,E_{2k-1} the best uniform approximation error by polynomials of degree at most 2k - 1 (NLAlib.minimaxError), \bar{\mathbf{v}}_1 the normalised computed first vector. Compare Knizhnerman (1996): O(k)E_{2k-1}(f; I_\eta) + O(\mathrm{poly}(k)\varepsilon) \sup_{I_\eta}\lvert f\rvert with Paige's \eta (as summarised in Chen's thesis §8.4 and the handbook, Cor. 7.5). No printed source.
Lean statement and details
NLAlib.LanczosRun.abs_dotProduct_cfc_mulVec_sub_cfc_tridiagonal_le_of_continuousOn {n k : ℕ}
(L : LanczosRun n k) {a a' : ℝ} (hs : spectrum ℝ L.H ⊆ Set.Icc a a') (hsmall : ↑k * L.ε ≤ 1 / 100)
{f : ℝ → ℝ} {Lf : ℝ≥0}
(hf : LipschitzOnWith Lf f (Set.Icc (a - L.enlargement) (a' + L.enlargement))) :
|L.normalizedV 1 ⬝ᵥ cfc f L.H *ᵥ L.normalizedV 1 -
cfc f L.tridiagonal L.firstIndex L.firstIndex| ≤
2 * minimaxError f (Set.Icc (a - L.enlargement) (a' + L.enlargement)) (2 * k - 1) +
↑Lf * L.enlargement
under \eta_0 \le 1/100, the fixed-point condition \sqrt{3(k+1)}\,\mu \le \eta_0, \mu + \varepsilon + \varepsilon_2 \le 1/100 and \tau \le 1, with \mathbf{U} = NLAlib.polarFactor\mathbf{V}_{k+1} and \mathbf{U}_k its first k columns, some symmetric \mathbf{E} with \|\mathbf{E}\|_{\mathsf F} \leNLAlib.LanczosReorthRun.backwardRadius satisfies (\mathbf{H} + \mathbf{E})\mathbf{U}_k = \mathbf{U}_k\mathbf{T}_k + (\beta_k\mathbf{u}_{k+1})\mathbf{e}_{k-1}^{\mathsf{T}} exactly. [Paige1971, §6.1] (the backward form (\mathbf{A} + \delta\mathbf{P})\mathbf{V} = \mathbf{V}\mathbf{T} there); the completion is that of Kahan, Parlett and Jiang (1982).
Lean statement and details
NLAlib.LanczosReorthRun.exists_backward {n k : ℕ} (L : LanczosReorthRun n k) (hη : L.η₀ ≤ 1 / 100)
(hsmall : √(3 * (↑k + 1)) * L.orthLevel ≤ L.η₀) (hrec : L.recLevel ≤ 1 / 100) (hτ : L.τ ≤ 1) :
∃ E,
Eᵀ = E ∧
frobNorm E ≤ L.backwardRadius ∧
(L.H + E) * (polarFactor (LanczosReorthRun.basisOf L.v (k + 1))).submatrix id Fin.castSucc =
(polarFactor (LanczosReorthRun.basisOf L.v (k + 1))).submatrix id Fin.castSucc *
L.toLanczosData.tridiagonal +
vecMulVec
(L.β k • fun i ↦ polarFactor (LanczosReorthRun.basisOf L.v (k + 1)) i (Fin.last k))
(Pi.single L.toLanczosData.lastIndex 1)
Theorem (Transfer to \mathbf{b}^{\mathsf{T}}f(\mathbf{H})\mathbf{b}).
under \eta_0 \le 1/100, the fixed-point condition \sqrt{3(k+1)}\,\mu \le \eta_0, \mu + \varepsilon + \varepsilon_2 \le 1/100 and \tau \le 1, if \mathbf{b} \ne \mathbf{0} and \|\mathbf{b}/\|\mathbf{b}\| - \mathbf{v}_1\| \le \delta_b, some symmetric \mathbf{H}' with \|\mathbf{H}' - \mathbf{H}\|_{\mathsf F} \le e + 3\|\mathbf{H}\|_2(\delta_b + 2\sqrt{3(k+1)}\,\mu) (e = NLAlib.LanczosReorthRun.backwardRadius) has Lanczos tridiagonal \mathbf{T}_k from \mathbf{b} and, for every 1-Lipschitz f, \lvert\mathbf{b}^{\mathsf{T}}f(\mathbf{H}')\mathbf{b} - \mathbf{b}^{\mathsf{T}}f(\mathbf{H})\mathbf{b}\rvert \le \|\mathbf{b}\|^2\|\mathbf{H}' - \mathbf{H}\|_{\mathsf F}, so the exact quadrature error theory for (\mathbf{H}', \mathbf{b}) transfers with that additive term. [Kittaneh1985, abstract].
Theorem (Ritz values interlace from below up to e).
under \eta_0 \le 1/100, the fixed-point condition \sqrt{3(k+1)}\,\mu \le \eta_0, \mu + \varepsilon + \varepsilon_2 \le 1/100 and \tau \le 1, \lambda_{i + n - k}(\mathbf{H}) - e \le \theta_i for i < k (and k \le n by NLAlib.LanczosReorthRun.succ_le_card), with e = NLAlib.LanczosReorthRun.backwardRadius. [HornJohnson2013, Corollary 4.3.37] for the exact case.
Theorem (Kaniel–Paige–Saad for the backward model).
under \eta_0 \le 1/100, the fixed-point condition \sqrt{3(k+1)}\,\mu \le \eta_0, \mu + \varepsilon + \varepsilon_2 \le 1/100 and \tau \le 1, some symmetric \mathbf{E} with \|\mathbf{E}\|_{\mathsf F} \le e (NLAlib.LanczosReorthRun.backwardRadius) has \lvert\lambda_0(\mathbf{H} + \mathbf{E}) - \lambda_0(\mathbf{H})\rvert \le e, and the bound Matrix.IsHermitian.eigenvalue_sub_eigenvalue_conjTranspose_mul_mul_le holds for (\mathbf{H} + \mathbf{E}, \mathbf{u}_1), \mathbf{u}_1 the first column of the polar factor of \mathbf{V}_{k+1}, with \mathbf{T}_k in place of the compression. The tangent is that of \mathbf{H} + \mathbf{E}. [Saad2011, Theorem 6.4] for the exact bound.
Theorem (Orthogonality of the computed basis on the admissible prefix).
under the fixed-point condition \sqrt{3(k+1)}\,\mu \le \eta_0 \le 1/100, for every m \le k + 1, \|\mathbf{V}_m^{\mathsf{T}}\mathbf{V}_m - \mathbf{I}\|_{\mathsf F} \le \sqrt{3m}\,\mu. [Paige1971, §6.1, (6.9)] for Lanczos with reorthogonalization; [GiraudLangouRozloznikVandenEshof2005, Theorem 2] for the CGS2 kernel constants.
Theorem (The perturbed Lanczos relation of a reorthogonalized run).
under \eta_0 \le 1/100, the fixed-point condition \sqrt{3(k+1)}\,\mu \le \eta_0, \mu + \varepsilon + \varepsilon_2 \le 1/100 and \tau \le 1, with the discarded coefficients in the residual, \|\mathbf{F}_k\|_{\mathsf F} \le 30(k+1)\,(\mu + \varepsilon + \varepsilon_2)\,\|\mathbf{H}\|_2; the relation itself is NLAlib.LanczosData.mul_basis. [Paige1971, §6.1, (6.8)] for the reorthogonalized relation; [Paige1976, §2, (15)–(19)] for the rounding part.
Theorem (Converged Ritz values are not duplicated).
under \eta_0 \le 1/100, the fixed-point condition \sqrt{3(k+1)}\,\mu \le \eta_0, \mu + \varepsilon + \varepsilon_2 \le 1/100 and \tau \le 1, for r orthonormal eigenvectors \mathbf{y}_i of \mathbf{T}_k with eigenvalues \theta_i \in [a, b] and residuals \beta_k\lvert\mathbf{e}_{k-1}^{\mathsf{T}}\mathbf{y}_i\rvert < (g - 2e)/\sqrt r, g > 2e (e = NLAlib.LanczosReorthRun.backwardRadius), the matrix \mathbf{H} has at least r eigenvalues in (a - g, b + g). With [a, b] a window around a simple isolated eigenvalue this forbids two converged copies; the residual condition cannot be dropped (docs/design/Krylov-LanczosReorth.md §3.2, counterexample \operatorname{diag}(1,0,-1)). The phenomenon: [Paige1971, §9.2], [Parlett1998, Ch. 13]; this statement: no printed source.
Lean statement and details
NLAlib.LanczosReorthRun.card_le_card_eigenvalue_mem {n k : ℕ} (L : LanczosReorthRun n k)
(hη : L.η₀ ≤ 1 / 100) (hsmall : √(3 * (↑k + 1)) * L.orthLevel ≤ L.η₀)
(hrec : L.recLevel ≤ 1 / 100) (hτ : L.τ ≤ 1) {r : ℕ} {Y : Matrix (Fin k) (Fin r) ℝ}
(hY : HasOrthonormalCols Y) {θ : Fin r → ℝ}
(hTY : ∀ (i : Fin r), (L.toLanczosData.tridiagonal *ᵥ fun c ↦ Y c i) = θ i • fun c ↦ Y c i)
{a b g : ℝ} (hθ : ∀ (i : Fin r), θ i ∈ Set.Icc a b) (hg : 2 * L.backwardRadius < g)
(hres :
∀ (i : Fin r), L.β k * |Y L.toLanczosData.lastIndex i| < (g - 2 * L.backwardRadius) / √↑r) :
r ≤ {i ∈ Finset.range n | eigenvalue L.H i ∈ Set.Ioo (a - g) (b + g)}.card
Theorem (The Ritz residual bound for finite-precision Lanczos).
(assuming k\varepsilon \le 1/100): for a unit eigenpair \mathbf{T}_k\mathbf{y} = \theta\mathbf{y}, \|\mathbf{y}\| = 1, of the computed tridiagonal matrix, the Ritz vector \mathbf{x} = \mathbf{V}_k\mathbf{y} satisfies \|\mathbf{H}\mathbf{x} - \theta\mathbf{x}\| \le \sqrt{1 + \varepsilon}\,\beta_k\lvert y_{k-1}\rvert + 6k\sqrt{k}\,\varepsilon\|\mathbf{H}\|_2 \,. No printed source; the maintainer's draft, eq:ritz-residual-bound, with \|\mathbf{F}_k\| for the last term and both sides divided by \|\mathbf{x}\|.
Lean statement and details
NLAlib.LanczosRun.norm_mulVec_basis_mulVec_sub_smul_le {n k : ℕ} (L : LanczosRun n k)
(hsmall : ↑k * L.ε ≤ 1 / 100) {y : Fin k → ℝ} {θ : ℝ} (hy : L.tridiagonal *ᵥ y = θ • y)
(hy1 : ‖WithLp.toLp 2 y‖ = 1) :
‖WithLp.toLp 2 (L.H *ᵥ L.basis *ᵥ y - θ • L.basis *ᵥ y)‖ ≤
√(1 + L.ε) * L.β k * |y L.lastIndex| + lanczosResidualFactor k * L.ε * specNorm L.H
Theorem (The spectral measures are Wasserstein-close).
(assuming k\varepsilon \le 1/100): for every 1-Lipschitz f, \lvert\bar{\mathbf{v}}_1^{\mathsf{T}}f(\mathbf{H})\bar{\mathbf{v}}_1 - \tilde{\mathbf{v}}^{\mathsf{T}}f(\tilde{\mathbf{H}})\tilde{\mathbf{v}}\rvert \le 400k^3\varepsilon\|\mathbf{H}\|_2 \,, so the spectral measure of (\mathbf{H}, \bar{\mathbf{v}}_1) and that of the backward model (\tilde{\mathbf{H}}, \tilde{\mathbf{v}}), on which exact Lanczos computes \mathbf{T}_k, are within that distance in W_1. No printed source; the maintainer's draft, rem:wasserstein, bounds the difference by \sqrt{2k}\|\mathbf{\Delta}\| (through the rank of \mathbf{\Delta}); here directly by \|\mathbf{\Delta}\|_{\mathsf{F}}.
(assuming k\varepsilon \le 1/100): for a unit eigenpair \mathbf{T}_k\mathbf{y} = \theta\mathbf{y}, \|\mathbf{y}\| = 1, of the computed tridiagonal matrix, the Ritz vector \mathbf{x} = \mathbf{V}_k\mathbf{y} satisfies \lvert\mathbf{x}^{\mathsf{T}}(\beta_k\mathbf{v}_{k+1})\rvert\,\lvert y_{k-1}\rvert \le 30k^2\varepsilon\|\mathbf{H}\|_2 (y_{k-1} the last entry, indexed from 0): orthogonality to \mathbf{v}_{k+1} is lost only along Ritz vectors whose residual estimate \beta_k\lvert y_{k-1}\rvert is small. No printed source; the maintainer's draft, thm:paige, states \lvert\mathbf{x}^{\mathsf{T}}\mathbf{v}_{k+1}\rvert\beta_k\lvert\mathbf{e}_k^{\mathsf{T}} \mathbf{y}\rvert \lesssim_k \varepsilon\|\mathbf{A}\|_2 (its formalization: 3000k^3); [Paige1980, (3.11)–(3.13)].
Lean statement and details
NLAlib.LanczosRun.abs_basis_mulVec_dotProduct_mul_abs_le {n k : ℕ} (L : LanczosRun n k)
(hsmall : ↑k * L.ε ≤ 1 / 100) {y : Fin k → ℝ} {θ : ℝ} (hy : L.tridiagonal *ᵥ y = θ • y)
(hy1 : ‖WithLp.toLp 2 y‖ = 1) :
|L.basis *ᵥ y ⬝ᵥ L.β k • L.v (k + 1)| * |y L.lastIndex| ≤
lanczosGramCommutatorFactor k * L.ε * specNorm L.H
Theorem (Containment of the computed Ritz values, below).
(assuming k\varepsilon \le 1/100) (Paige): every eigenvalue \theta of the computed tridiagonal matrix satisfies \lambda_{\min}(\mathbf{H}) - \theta \le 400k^3\varepsilon\|\mathbf{H}\|_2, where \lambda_{\min}(\mathbf{H}) = \lambda_m(\mathbf{H}), m + 1 = n. No printed source; the maintainer's draft, thm:containment; [Paige1980, (3.48)].
Lean statement and details
NLAlib.LanczosRun.eigenvalue_last_sub_le_of_mulVec_eq_smul {n k : ℕ} (L : LanczosRun n k)
(hsmall : ↑k * L.ε ≤ 1 / 100) {y : Fin k → ℝ} {θ : ℝ} (hy : L.tridiagonal *ᵥ y = θ • y)
(hy1 : ‖WithLp.toLp 2 y‖ = 1) {m : ℕ} (hm : m + 1 = n) :
eigenvalue L.H m - θ ≤ lanczosBackwardFactor k * L.ε * specNorm L.H
(assuming k\varepsilon \le 1/100) (Paige): for a unit eigenpair \mathbf{T}_k\mathbf{y} = \theta\mathbf{y} of the computed tridiagonal matrix, some eigenvalue \lambda of \mathbf{H} satisfies \lvert\theta - \lambda\rvert \le \beta_k\lvert y_{k-1}\rvert + 400k^3\varepsilon\|\mathbf{H}\|_2 \,. At a terminal last step (\beta_k = 0) this holds for every Ritz value. No printed source; the maintainer's draft, thm:stabilized, states \lesssim_k \beta_k\lvert\mathbf{e}_k^{\mathsf{T}}\mathbf{y}\rvert + \varepsilon\|\mathbf{A}\|_2; [Paige1980, Theorem 3.1].
Lean statement and details
NLAlib.LanczosRun.exists_abs_sub_eigenvalue_le_of_mulVec_eq_smul {n k : ℕ} (L : LanczosRun n k)
(hsmall : ↑k * L.ε ≤ 1 / 100) {y : Fin k → ℝ} {θ : ℝ} (hy : L.tridiagonal *ᵥ y = θ • y)
(hy1 : ‖WithLp.toLp 2 y‖ = 1) :
∃ j < n,
|θ - eigenvalue L.H j| ≤ L.β k * |y L.lastIndex| + lanczosBackwardFactor k * L.ε * specNorm L.H