NLAlib.ShiftedQR.finishActive_writes
Library · theorem
Finishing the popped first range uses the actual local block, writes every root with multiplicity, and advances the progress measure. No output for unfinished ranges is assumed. A step in the proof of processRange_writes.
NLAlib.ShiftedQR.finishActive_writes {O Q : Type} [Ops.Has ShiftedQR.EigenvalueKernelOp O] {θ : ℝ}
{K : ShiftedQR.KernelRoutines θ} {I : Ops.Interp O Q ℝ} (hK : ShiftedQR.IsEigenvalueKernels K I)
{tape : Ops.Tape ℝ} {μ : Ops.Mem ℝ} {n lo d j : ℕ} {a p stack out w r : ℕ × ℕ}
{H A : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ} {roots : Fin (n + 1) → ℂ} {τ ε : ℝ}
{rest done : List (ℕ × ℕ)} (hG : ShiftedQR.WorklistGeometry (n + 1) a p stack out w r μ)
(hInv : DeflationInv H ε ((lo, d) :: rest) done A roots) (hA : HoldsMatrix a A μ.store)
(hW : HoldsMatrix w (subBlock A (lo, d)) μ.store)
(hOut : ShiftedQR.FinishedHolds out done roots μ.store)
(hSt : ShiftedQR.StackHolds stack rest.reverse μ.store)
(hε : ε = ↑(((lo, d) :: rest ++ done).length - 1) * τ)
(hj : 2 * done.length + ((lo, d) :: rest).length = j + 1) :
Ops.Writes Ops.Mode.total I tape ShiftedQR.finishRange (Ops.Env.frame [n + 1, lo, d] [w, out])
(Ops.Store.inBlock out.1 (out.2 + 2 * lo) (2 * d))
(fun μ' ↦ μ'.pos = μ.pos ∧ ShiftedQR.WorklistInv H τ a stack out (j + 1) μ') μImport NLAlib.Eigensolvers.ShiftedQR.RangeFinish.