NLAlib.ShiftedQR.bottomScan_terminates
Library · theorem
The rounded bottom-k scan terminates on any matrix: on a machine whose natural literals up to n + 1 are exact, for any (n+1) \times (n+1) matrix stored at a, k \le n and any threshold word, bottomScan writes only its five registers and leaves the flag 1 with a subdiagonal index i < n, or the flag 0 with an index word (NLAlib.ShiftedQR.BottomScanStored).
NLAlib.ShiftedQR.bottomScan_terminates {O Q : Type} [Ops.Has Ops.ScalarOp O] [Ops.Has Ops.IndexOp O]
[Ops.Has Ops.CmpTst Q] {M : Ops.Machine ℝ} {I : Ops.Interp O Q ℝ} {n : ℕ} (hS : Ops.IsScalar M I)
(hL : Ops.IsIndexLit M I) (hNat : Ops.IsExactNatLit id M (n + 1)) (hC : Ops.IsCmp id I)
{τ : Ops.Tape ℝ} {m : Ops.Mem ℝ} {k : ℕ} (hk : k ≤ n) {a t r : ℕ × ℕ}
{H : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ} {thr : ℝ} (hH : HoldsMatrix a H m.store)
(ht : m.store.get t.1 t.2 = some thr) (hl : m.Live [a, t, r]) (hroom : r.2 + 5 ≤ m.store.len r.1)
(hA :
Ops.Fp.Disj (Ops.Store.inBlock r.1 r.2 5) (Ops.Store.inBlock a.1 a.2 (2 * ((n + 1) * (n + 1)))))
(hT : Ops.Fp.Disj (Ops.Store.inBlock r.1 r.2 5) (Ops.Store.inBlock t.1 t.2 1)) :
Ops.Writes Ops.Mode.total I τ ShiftedQR.bottomScan (Ops.Env.frame [n + 1, k] [a, t, r])
(Ops.Store.inBlock r.1 r.2 5)
(fun m' ↦ m'.pos = m.pos ∧ ShiftedQR.BottomScanStored n r m'.store) mImport NLAlib.Eigensolvers.ShiftedQR.RoundedSolveTermination.