NLAlib.ShiftedQR.findRitzDecision_writes
Library · theorem
Exact arithmetic
The comparison and actual natural-literal operations advance the start, half length and exponent exactly. [BanksGarzaVargasSrivastava2021, §4.3]. Shared by the trees of NLAlib.ShiftedQR.scalarDecouple and NLAlib.ShiftedQR.shqrSmallEigRoutine, on their scratch.
NLAlib.ShiftedQR.findRitzDecision_writes {Op Tst : Type} [Ops.Has Ops.IndexOp Op]
[Ops.Has Ops.CmpTst Tst] {M : Ops.Machine ℝ} {I : Ops.Interp Op Tst ℝ} (hL : Ops.IsIndexLit M I)
(hE : Ops.ExactModel id M) (hCmp : Ops.IsCmp id I) {τ : Ops.Tape ℝ} {m : Ops.Mem ℝ} {a h e : ℕ}
{r : ℕ × ℕ} {left right : ℝ} (hwords : ShiftedQR.SearchWords r a h e m.store)
(hl : m.store.get r.1 (r.2 + 3) = some left) (hr : m.store.get r.1 (r.2 + 4) = some right)
(hcap : r.2 + 3 ≤ m.store.len r.1) :
Ops.Writes Ops.Mode.total I τ ShiftedQR.findRitzDecision (Ops.Env.frame [a, h, e] [r, r])
(Ops.Store.inBlock r.1 r.2 3)
(fun m' ↦
m'.pos = m.pos ∧
ShiftedQR.SearchWords r (if right ≤ left then a else a + h) (h / 2) (2 * e) m'.store)
mImport NLAlib.Eigensolvers.ShiftedQR.FindRitzDecision.