NLAlib.ShiftedQR.findRitzLevels_writes
Library · theorem
Exact arithmetic
The actual level loop reaches the mathematical selected index while retaining the source blocks. Every runtime natural-index bound follows from the power-of-two window. [BanksGarzaVargasSrivastava2021, §4.3]. A fragment: its tree runs only inside the tree of NLAlib.ShiftedQR.findRitzSearchWithScratch. A fragment of the tree NLAlib.ShiftedQR.findRitzSearchWithScratch.
NLAlib.ShiftedQR.findRitzLevels_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 levels k : ℕ} {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) (hlen : shifts.length = k) (hk : k = 2 ^ levels)
(hwords : ShiftedQR.SearchWords r 0 (k / 2) 1 m.store)
(hdet : ∀ shift ∈ shifts, (H - shift • 1).det ≠ 0) (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.findRitzLevels
(Ops.Env.frame [n + 1, levels, 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.searchStart H shifts levels levels)
(ShiftedQR.searchHalfLength levels levels) (2 ^ levels) m'.store)
mImport NLAlib.Eigensolvers.ShiftedQR.FindRitzLoop.