NLAlib.ShiftedQR.findRitzLevel_writes
Library · theorem
Exact arithmetic
Bounded toNat queries read the actual stored start, half length and exponent before the same numerical window transition. Every query's runtime bound is proved explicitly. [BanksGarzaVargasSrivastava2021, §4.3]. A fragment: its tree runs only inside the tree of NLAlib.ShiftedQR.findRitzLevels. A fragment of the tree NLAlib.ShiftedQR.findRitzLevels.
NLAlib.ShiftedQR.findRitzLevel_writes {Op Tst : Type} [Ops.Has Ops.ScalarOp Op]
[Ops.Has Ops.IndexOp Op] [Ops.Has Ops.CmpTst Tst] [Ops.Has Ops.IdxTst Tst] {M : Ops.Machine ℝ}
{I : Ops.Interp Op Tst ℝ} (hS : Ops.IsScalar M I) (hE : Ops.ExactModel id M)
(hL : Ops.IsIndexLit M I) (hCmp : Ops.IsCmp id I) (hToNat : Ops.IsToNat id I) {τ : Ops.Tape ℝ}
{m : Ops.Mem ℝ} {n k a h e : ℕ} {b ss r : ℕ × ℕ} {H : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ}
{shifts : List ℂ} (hH : IsUpperHessenberg H) (hB : HoldsMatrix b H m.store)
(hSS : ShiftedQR.HoldsShifts ss shifts m.store) (hwords : ShiftedQR.SearchWords r a h e m.store)
(hdet : ∀ shift ∈ shifts, (H - shift • 1).det ≠ 0) (hak : a + 2 * h ≤ k)
(hal : a + 2 * h ≤ shifts.length) (ha : a ≤ k) (hh : h ≤ k) (he : e ≤ k) (hra : r.1 ≠ b.1)
(hrs : r.1 ≠ ss.1) (hl : m.Live [b, ss, r, r]) (hr : r.2 + 6 ≤ m.store.len r.1) :
Ops.Writes Ops.Mode.total I τ ShiftedQR.findRitzLevel (Ops.Env.frame [n + 1, k] [b, ss, r, r])
(Ops.Store.inBlock r.1 r.2 6)
(fun m' ↦
m'.pos = m.pos ∧
HoldsMatrix b H m'.store ∧
ShiftedQR.HoldsShifts ss shifts m'.store ∧
ShiftedQR.SearchWords r (ShiftedQR.searchNext H shifts a h e) (h / 2) (2 * e) m'.store)
mImport NLAlib.Eigensolvers.ShiftedQR.FindRitzLevel.