NLA-lib Explorer

NLAlib.ShiftedQR.shFind_writes

Library · theorem

Standard rounding

Find of Sh (NLAlib.ShiftedQR.findRounded_writes with the comparison values of NLAlib.ShiftedQR.comptauHalf_isHalfTau) reaches NLAlib.ShiftedQR.ShState2: from NLAlib.ShiftedQR.ShState1, for k = 2^m shifts at distance at least d > 0 from the spectrum and in \mathbb{D}(0, C\|\mathbf{H}\|_2), \mathbf{H} \ne 0 upper Hessenberg, \mathbf{H}\mathbf{V} = \mathbf{V}\operatorname{diag}(\mathbf{e}) with \kappa(\mathbf{V}) \le B, (n + 1)\boldsymbol{u} \le 1/2500, 30000(\lfloor k/2 \rfloor + 1)\boldsymbol{u} \le 1 and 300(n+1)^2\boldsymbol{u} \le (8004B)^{-1}(d/((2 + 2C)\|\mathbf{H}\|_2))^{\lfloor k/2 \rfloor}, the stored shift is (1.01B)^{4m/2^m}-promising. Shared by the trees of NLAlib.ShiftedQR.shqrSmallEigRoutine, on their scratch.

NLAlib.ShiftedQR.shFind_writes {n : ℕ} {O Q : Type} [Ops.Has Ops.ScalarOp O] [Ops.Has Ops.IndexOp O]
  [Ops.Has Ops.CmpTst Q] [Ops.Has Ops.IdxTst Q] {M : Ops.Machine ℝ} {I : Ops.Interp O Q ℝ} {u : ℝ}
  (hS : Ops.IsScalar M I) (hM : Ops.StdModel u id M) (hL : Ops.IsIndexLit M I) (hC : Ops.IsCmp id I)
  (hQ : Ops.IsToNat id I) (hNat : Ops.IsExactNatLit id M (n + 1)) {τ : Ops.Tape ℝ} {m : Ops.Mem ℝ}
  {L k q : ℕ} (hkq : k = 2 ^ q) (hkn : k ≤ n) {ε : ℝ} {a s wg wr ww wp g thr f : ℕ × ℕ}
  (hv : ShiftedQR.ShViews L n k ε a s wg wr ww wp g thr f)
  {H V : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ} {e : Fin (n + 1) → ℂ} {ss : List ℂ}
  {B C d cg cr cw cp tv : ℝ} (hH : IsUpperHessenberg H) (hH0 : H ≠ 0) (hV : IsUnit V)
  (hHV : H * V = V * diagonal e) (hκ : pseudoConditionNumber V ≤ B) (hC0 : 0 ≤ C) (hd : 0 < d)
  (hlen : ss.length = k) (hs : ∀ s ∈ ss, ‖s‖ ≤ C * specNorm H)
  (hdist : ∀ s ∈ ss, ∀ (i : Fin (n + 1)), d ≤ ‖e i - s‖) (hnu : (↑n + 1) * u ≤ 1 / 2500)
  (hu : 30000 * (↑(k / 2) + 1) * u ≤ 1)
  (hxu : 300 * (↑n + 1) ^ 2 * u ≤ (8004 * B)⁻¹ * (d / ((2 + 2 * C) * specNorm H)) ^ (k / 2))
  (hm : ShiftedQR.ShState1 u L k ε H ss cg cr cw cp tv a s wg wr ww wp g thr f m) :
  Ops.Writes Ops.Mode.total I τ (ShiftedQR.findRounded ShiftedQR.comptauHalf)
    (Ops.Env.frame [n + 1, q, k] [a, s, (L, 0)]) (Ops.Store.inBlock L 0 2)
    (ShiftedQR.ShState2 u L k ε H V e ss ((1.01 * B) ^ (4 * ↑q / 2 ^ q)) cg cr cw cp tv a s wg wr ww
      wp g thr f)
    m

Full source on GitHub

Import NLAlib.Eigensolvers.ShiftedQR.RoundedSh.