NLA-lib Explorer

NLAlib.ShiftedQR.regularizeDecide_outcome

Library · theorem

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

Standard rounding

The deterministic tail of Regularize: from the context NLAlib.ShiftedQR.RegularizeCtx and k \ge 1 perturbed shifts at s as NLAlib.ShiftedQR.DrawsInv leaves them (within \beta + R + \delta_j of a listing of the eigenvalues of the trailing block, \eta - \delta_j from every eigenvalue), under the precision conditions of Optimal, of the rounded steps and of the scan, the decision of Regularize ends in NLAlib.ShiftedQR.RegularizeOutcome with d = \eta/2, the optimality parameter \theta = 1.01 \cdot 0.998^{-1/k}(2B^4)^{1/(2k)} and the backward error 2.1\|\mathbf{H}\|_2((1 + \mathbf{x})^k - 1), \mathbf{x} = 300(n+1)^2\boldsymbol{u}.

NLAlib.ShiftedQR.regularizeDecide_outcome {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) {n : ℕ}
  (hNat : Ops.IsExactNatLit id M (n + 1)) (hC : Ops.IsCmp id I) {τ : Ops.Tape ℝ} {m : Ops.Mem ℝ}
  {k L : ℕ} (hk0 : 0 < k) (hk : k ≤ n) {a rd c thr s f : ℕ × ℕ}
  (hv : ShiftedQR.RegularizeViews L n k a rd c thr s f) {H V : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ}
  {e : Fin (n + 1) → ℂ} {B S ω β R η tv : ℝ} (hH : IsUpperHessenberg H) (hV : IsUnit V)
  (hHV : H * V = V * diagonal e) (hκ : pseudoConditionNumber V ≤ B) (hBk : B ^ (2 / ↑k) ≤ 2)
  (hω : 0 < ω) (hψ : ω ≤ hessenbergPotential k H) (hSH : specNorm H ≤ S)
  (hgap : ∀ (i j : Fin (n + 1)), i ≠ j → 2 * ω ^ 2 / S ≤ ‖e i - e j‖) (hη : 0 < η)
  (hβ : β + R + 2 * u * (S + β + R) ≤ ω ^ 2 / (20 * 101 * S)) (hdη : 4 * u * (S + β + R) ≤ η)
  (hnu : (↑n + 1) * u ≤ 1 / 2500)
  (huo :
    30000 * ↑k * (↑(n + 1) * √↑(n + 1) * u) * ((2 + 2 * 1.1) * S) ^ k ≤
      (1.01 * 0.998 ^ (-(↑k)⁻¹) * (2 * B ^ 4) ^ (2 * ↑k)⁻¹ * ω) ^ k)
  (huo1 : 100000 * ↑(n + 1 + k) ^ 2 * u ≤ 1)
  (hxu : 300 * (↑n + 1) ^ 2 * u ≤ (16 * B)⁻¹ * (η / 2 / ((2 + 2 * 1.1) * S)) ^ k)
  (hbound :
    (66 + 2 * 1.1) * B * S * ((2 + 2 * 1.1) * S / (η / 2)) ^ k * √(↑n + 1) *
        (300 * (↑n + 1) ^ 2 * u) ≤
      ω / 2)
  (hthrω : (1 + u) ^ 2 * ω ^ 2 ≤ tv)
  (hctx :
    ShiftedQR.RegularizeCtx L k H R
      (0.999 * (1.01 * 0.998 ^ (-(↑k)⁻¹) * (2 * B ^ 4) ^ (2 * ↑k)⁻¹) ^ k) tv a rd c thr s f m)
  {ns w : ℕ} {lg : ℕ × ℕ} {LL : List (Option (List GivensEntry))} (hj : LL.length + k ≤ ns)
  (hw : k * n ≤ w) (hlog : HoldsSlottedLog lg ns w LL [] m.store) (hlgL : lg.1 < L)
  (hlgv : ∀ b ∈ [a, rd, c, thr, s, f], b.1 ≠ lg.1)
  (hinv :
    ShiftedQR.DrawsInv u β R η (fun lam ↦ IsEigenvalueListing (trailingBlock k H) lam) e rd
      (L + 1, 0) s k m) :
  Ops.Writes Ops.Mode.total I τ ShiftedQR.regularizeDecide
    (Ops.Env.frame [n + 1, k, w, LL.length]
      [a, s, c, thr, (L + 3, 0), (L + 4, 0), (L + 5, 0), (L + 6, 0), a, (L + 2, 0), f, lg])
    (Ops.Store.inBlock a.1 a.2 (2 * ((n + 1) * (n + 1))) ⊔ Ops.Store.inBlock (L + 2) 0 1 ⊔
          Ops.Store.inBlock f.1 f.2 1 ⊔
        (Ops.Store.inBlock (L + 3) 0 (2 * ((n + 1) * (n + 1))) ⊔
              Ops.Store.inBlock (L + 4) 0 (2 * k) ⊔
            Ops.Store.inBlock (L + 5) 0 (2 * k) ⊔
          Ops.Store.inBlock (L + 6) 0 5) ⊔
      Ops.Store.inBlock lg.1 lg.2 (ns * (1 + 5 * w)))
    (ShiftedQR.RegularizeOutcome k H e u (1.01 * 0.998 ^ (-(↑k)⁻¹) * (2 * B ^ 4) ^ (2 * ↑k)⁻¹)
      (η / 2) tv ((1 + 1.1) * specNorm H * ((1 + 300 * (↑n + 1) ^ 2 * u) ^ k - 1)) a s f lg ns w LL)
    m

Full source on GitHub

Import NLAlib.Eigensolvers.ShiftedQR.RoundedRegularize.