NLA-lib Explorer

NLAlib.ShiftedQR.shAccept_decoupled_or_contract

Library · theorem

Standard rounding

The accepted branch of the comptau test decouples or contracts ([BanksGarzaVargasSrivastava2022, proof of Lemma 5.4]): let \widehat{\mathbf{H}} be computed from \mathbf{H} by a backward-stable chain of k steps with the shift r, relative error \mathbf{x} = 300(n+1)^2\boldsymbol{u}; let \mathbf{H} \ne 0 of order n + 1 be upper Hessenberg, \mathbf{H}\mathbf{V} = \mathbf{V}\operatorname{diag}(\mathbf{e}) with \kappa(\mathbf{V}) \le B, \|\mathbf{H}\|_2 \le S, \lvert r \rvert \le C\|\mathbf{H}\|_2 (C \ge 0) at distance at least d > 0 from every e_i, \omega > 0, \mathbf{x} \le (16B)^{-1}(d/((2 + 2C)S))^k and (66 + 2C)BS((2 + 2C)S/d)^k\sqrt{n + 1}\,\mathbf{x} \le 0.001\,\omega; let 2 \le k \le n, 10^5k\boldsymbol{u} \le 1, \gamma \le 1, a threshold word t \ge (1 + \boldsymbol{u})^2\omega^2, a computed t_c within 0.001, relatively, of \|\mathbf{e}_n^{\mathsf{T}}(\mathbf{H} - r)^{-k}\|^{-1} and below the rounded threshold NLAlib.ShiftedQR.optimalThresholdWord with the word (1 - \gamma)^k, the computed step \widehat{\mathbf{H}} has a bottom subdiagonal entry passing the scan, or \psi_k(\widehat{\mathbf{H}}) \le 1.002(1 - \gamma)\psi_k(\mathbf{H}).

NLAlib.ShiftedQR.shAccept_decoupled_or_contract {n : ℕ} {M : Ops.Machine ℝ}
  {u C B S d ω γ tv tc : ℝ} (hM : Ops.StdModel u id M) {k : ℕ}
  {H H' V : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ} {e : Fin (n + 1) → ℂ} {r : ℂ}
  {Rs : List (Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ)}
  (hch : IsStableQRChain (300 * (↑n + 1) ^ 2 * u) H (List.replicate k r) H' Rs) (hk : 2 ≤ k)
  (hkn : k ≤ n) (hku : 100000 * ↑k * u ≤ 1) (hC : 0 ≤ C) (hd : 0 < d) (hω : 0 < ω) (hH0 : H ≠ 0)
  (hH : IsUpperHessenberg H) (hV : IsUnit V) (hHV : H * V = V * diagonal e)
  (hκ : pseudoConditionNumber V ≤ B) (hS : specNorm H ≤ S) (hr : ‖r‖ ≤ C * specNorm H)
  (hdist : ∀ (i : Fin (n + 1)), d ≤ ‖e i - r‖)
  (hxu : 300 * (↑n + 1) ^ 2 * u ≤ (16 * B)⁻¹ * (d / ((2 + 2 * C) * S)) ^ k)
  (hbound :
    (66 + 2 * C) * B * S * ((2 + 2 * C) * S / d) ^ k * √(↑n + 1) * (300 * (↑n + 1) ^ 2 * u) ≤
      1e-3 * ω)
  (hγ1 : γ ≤ 1) (hthrω : (1 + u) ^ 2 * ω ^ 2 ≤ tv)
  (htc :
    |tc -
          ‖WithLp.toLp 2
                (((Polynomial.aeval H) (shiftPoly (List.replicate k r)))⁻¹ (Fin.last n))‖⁻¹| ≤
      1e-3 *
        ‖WithLp.toLp 2 (((Polynomial.aeval H) (shiftPoly (List.replicate k r)))⁻¹ (Fin.last n))‖⁻¹)
  (hlt : tc < ShiftedQR.optimalThresholdWord M H k ((1 - γ) ^ k)) :
  (∃ i, n ≤ ↑i + k ∧ (1 - u) ^ 2 * ‖H' i.succ i.castSucc‖ ^ 2 ≤ tv) ∨
    hessenbergPotential k H' ≤ 1.002 * (1 - γ) * hessenbergPotential k H

Full source on GitHub

Import NLAlib.Eigensolvers.ShiftedQR.RoundedSh.