NLA-lib Explorer

NLAlib.ShiftedQR.shExcTrials_writes

Library · theorem

This statement changed in the recorded rename: 2026-11-schur.

Standard rounding

The trials of the exceptional branch: on a scalar machine with the standard model at (n + 1)\boldsymbol{u} \le 1/2500 and 10^5k\boldsymbol{u} \le 1, exact comparisons, index literals and exact natural literals up to n + 1, for 2 \le k = 2^q \le n, \mathbf{H} upper Hessenberg with 0 < \omega \le \psi_k(\mathbf{H}), \gamma < 1, the threshold word t \ge (1 + \boldsymbol{u})^2\omega^2, c_p = 1.0015(1 - \gamma), \mathbf{H}\mathbf{V} = \mathbf{V}\operatorname{diag}(\mathbf{e}) with \kappa(\mathbf{V}) \le B, \|\mathbf{H}\|_2 \le \Sigma and the forward-error conditions \omega > 0, C \ge 0, d > 0, \mathbf{x} = 300(n+1)^2\boldsymbol{u} \le (16B)^{-1}(d/((2 + 2C)\Sigma))^k and (66 + 2C)B\Sigma((2 + 2C)\Sigma/d)^k\sqrt{n + 1}\,\mathbf{x} \le 0.001\,\omega, from the state NLAlib.ShiftedQR.ShExcMid2 the trials end in NLAlib.ShiftedQR.ShOutcome with the backward error (1 + C)\|\mathbf{H}\|_2((1 + \mathbf{x})^k - 1), \mathbf{x} = 300(n+1)^2\boldsymbol{u}. A step in the proof of NLAlib.ShiftedQR.shExc_pwrites.

NLAlib.ShiftedQR.shExcTrials_writes {n : ℕ} {O Q : Type} [Ops.Has Ops.ScalarOp O]
  [Ops.Has Ops.IndexOp O] [Ops.Has Ops.CmpTst Q] {M : Ops.Machine ℝ} {I : Ops.Interp O Q ℝ} {u : ℝ}
  (hS : Ops.IsScalar M I) (hM : Ops.StdModel u id M) (hu1 : u ≤ 1) (hL : Ops.IsIndexLit M I)
  (hNat : Ops.IsExactNatLit id M (n + 1)) (hC : Ops.IsCmp id I) {τ : Ops.Tape ℝ} {m : Ops.Mem ℝ}
  {L k q : ℕ} (hk2 : 2 ≤ k) (hkn : k ≤ n) (hkq : k = 2 ^ q) (hku : 100000 * ↑k * u ≤ 1) {ε : ℝ}
  {a s wg wr ww wp g thr f : ℕ × ℕ} (hv : ShiftedQR.ShViews L n k ε a s wg wr ww wp g thr f)
  {B S ω γ d C cg cr cw cp tv : ℝ} {H V : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ}
  {e : Fin (n + 1) → ℂ} {ss : List ℂ} (hH : IsUpperHessenberg H) (hV : IsUnit V)
  (hHV : H * V = V * diagonal e) (hκ : pseudoConditionNumber V ≤ B) (hSH : specNorm H ≤ S)
  (hnu : (↑n + 1) * u ≤ 1 / 2500) (hC0 : 0 ≤ C) (hd : 0 < d) (hω : 0 < ω)
  (hψ : ω ≤ hessenbergPotential k H) (hγ1 : γ < 1)
  (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 * ω)
  (hthrω : (1 + u) ^ 2 * ω ^ 2 ≤ tv) (hcp : cp = 1.0015 * (1 - γ))
  (hm : ShiftedQR.ShExcMid2 M u L k ε H e ss γ cg cr cw cp tv d C a s wg wr ww wp g thr f m)
  {ns w : ℕ} {lg : ℕ × ℕ} {LL : List (Option (List GivensEntry))}
  (hlog : HoldsSlottedLog lg ns w LL [] m.store) (hj : LL.length + (ShiftedQR.excNet ε).length ≤ ns)
  (hw : k * n ≤ w) (hlgL : lg.1 < L) (hlgv : ∀ b ∈ [a, s, wg, wr, ww, wp, g, thr, f], b.1 ≠ lg.1) :
  Ops.Writes Ops.Mode.total I τ ShiftedQR.shTrials
    (Ops.Env.frame [n + 1, k, q, (ShiftedQR.excNet ε).length, w, LL.length]
      [a, (L + 10, 0), thr, (L + 2, 0), (L + 5, 0), (L + 6, 0), (L + 7, 0), (L + 8, 0), (L + 9, 0),
        a, (L + 11, 0), f, lg])
    (Ops.Store.inBlock a.1 a.2 (2 * ((n + 1) * (n + 1))) ⊔ Ops.Store.inBlock (L + 11) 0 1 ⊔
          Ops.Store.inBlock f.1 f.2 1 ⊔
        (Ops.Store.inBlock (L + 5) 0 (2 * ((n + 1) * (n + 1))) ⊔
                Ops.Store.inBlock (L + 6) 0 (2 * k) ⊔
              Ops.Store.inBlock (L + 7) 0 (2 * k) ⊔
            Ops.Store.inBlock (L + 8) 0 5 ⊔
          Ops.Store.inBlock (L + 9) 0 1) ⊔
      Ops.Store.inBlock lg.1 lg.2 (ns * (1 + 5 * w)))
    (ShiftedQR.ShOutcome u k H γ tv ((1 + C) * specNorm H * ((1 + 300 * (↑n + 1) ^ 2 * u) ^ k - 1))
      a f lg ns w LL (ShiftedQR.excNet ε).length)
    m

Full source on GitHub

Import NLAlib.Eigensolvers.ShiftedQR.RoundedShExcTrials.