NLAlib.ShiftedQR.worklistLoop_writes
Library · theorem
A total local range-processing proof composes into a stopped worklist. The invariant's partition and progress measure exclude active work at the cap, rather than assuming success or assuming that the loop has stopped. Shared by the trees of NLAlib.ShiftedQR.deflationRoutine, NLAlib.ShiftedQR.shiftedStepRoutine, NLAlib.ShiftedQR.shqrSmallEigRoutine and NLAlib.SmallEig.smallEigRoutine, on their scratch.
NLAlib.ShiftedQR.worklistLoop_writes {O Q : Type} [Ops.Has Ops.CmpTst Q] (round : Ops.Stmt O Q)
{I : Ops.Interp O Q ℝ} (hC : Ops.IsCmp id I) {tape : Ops.Tape ℝ} {μ : Ops.Mem ℝ} {n m k F M : ℕ}
{a p stack out w r : ℕ × ℕ} {H : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ} {τ : ℝ}
(hl : μ.Live [a, p, stack, out, w, r]) (hInv : ShiftedQR.WorklistInv H τ a stack out 0 μ)
(hround :
∀ j < 2 * (n + 1),
∀ (μ' : Ops.Mem ℝ),
Ops.Store.EqOff (ShiftedQR.worklistFp (n + 1) a stack out w r) μ.store μ'.store →
ShiftedQR.WorklistInv H τ a stack out j μ' →
∀ (count : ℕ),
μ'.store.get stack.1 stack.2 = some ↑count →
0 < count →
Ops.Writes Ops.Mode.total I tape round
(Ops.Env.frame [n + 1, m, k, F, M] [a, p, stack, out, w, r])
(ShiftedQR.worklistFp (n + 1) a stack out w r)
(fun μ'' ↦ μ''.pos = μ'.pos ∧ ShiftedQR.WorklistInv H τ a stack out (j + 1) μ'')
μ') :
Ops.Writes Ops.Mode.total I tape (ShiftedQR.worklistLoop round)
(Ops.Env.frame [n + 1, m, k, F, M] [a, p, stack, out, w, r])
(ShiftedQR.worklistFp (n + 1) a stack out w r)
(fun μ' ↦
μ'.pos = μ.pos ∧
∃ j, ShiftedQR.WorklistInv H τ a stack out j μ' ∧ μ'.store.get stack.1 stack.2 = some 0)
μImport NLAlib.Eigensolvers.ShiftedQR.WorklistLoop.