Theorem (IsUpperHessenberg.isOptimalRitzValues_or_exists_mem_det_eq_zero_or_le). The dichotomy for forward-approximate Ritz values: let \mathbf{H} be upper Hessenberg with \mathbf{H}\mathbf{V} = \mathbf{V}\operatorname{diag}(\mathbf{d}), \mathbf{V} invertible, \kappa = \|\mathbf{V}\|_2\|\mathbf{V}^{-1}\|_2, eigenvalues separated by \Gamma; let 1 \le k \le n, \mathbf{x} = (2\kappa^4)^{1/(2k)} < \theta, c = \tfrac12(\theta/\mathbf{x} - 1), 0 < \beta < c\Gamma, and let rs be within \beta of the Ritz values of order k, entry by entry. Then rs is a set of \theta-optimal Ritz values, or some r in rs is an eigenvalue, or \tfrac25\,\psi_k(\mathbf{H})\Bigl(1 - \frac \mathbf{x}\theta\Bigr) \le \kappa^{2/k}(\|\mathbf{H}\|_2 + \beta)\,\beta\,\|\mathbf{e}_n^{\mathsf{H}}(\mathbf{H} - r\mathbf{I})^{-k}\|^{1/k} for some r in rs. [BanksGarzaVargasSrivastava2022, Theorem 4.1], there with \tfrac12 for \tfrac25 (a factor k^{-1/(2k)}/2 \ge 2/5 is lost in its last display; gap G10) and \beta \le c\Gamma (which can let two eigenvalues share a Ritz value).
Headline
Lean statement and details
NLAlib.IsUpperHessenberg.isOptimalRitzValues_or_exists_mem_det_eq_zero_or_le {n : ℕ}
{H V : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ} (hH : IsUpperHessenberg H) {d : Fin (n + 1) → ℂ}
(hV : IsUnit V) (hHV : H * V = V * diagonal d) {k : ℕ} (hk : 0 < k) (hkn : k ≤ n) {Γ θ β : ℝ}
(hgap : ∀ (i j : Fin (n + 1)), i ≠ j → Γ ≤ ‖d i - d j‖)
(hθ : (2 * pseudoConditionNumber V ^ 4) ^ (2 * ↑k)⁻¹ < θ) (hβ : 0 < β)
(hβΓ : β < (θ / (2 * pseudoConditionNumber V ^ 4) ^ (2 * ↑k)⁻¹ - 1) / 2 * Γ) {rs : List ℂ}
(hclose : List.Forall₂ (fun ρ r ↦ ‖ρ - r‖ ≤ β) (ritzValues k H) rs) :
IsOptimalRitzValues θ H rs ∨
∃ r ∈ rs,
(H - r • 1).det = 0 ∨
2 / 5 * hessenbergPotential k H * (1 - (2 * pseudoConditionNumber V ^ 4) ^ (2 * ↑k)⁻¹ / θ) ≤
pseudoConditionNumber V ^ (2 / ↑k) * (specNorm H + β) * β *
‖WithLp.toLp 2 (((H - r • 1)⁻¹ ^ k) (Fin.last n))‖ ^ (↑k)⁻¹