NLAlib.ShiftedQR.multiStepStable_terminates
Library · theorem
This statement changed in the recorded rename: 2026-11-schur.
The degree k rounded step terminates on any matrix: on a scalar machine with exact comparisons and the literal 0 exact, from any matrix of order n + 1 at a and any 2k shift words at s, multiStepStable writes only the matrix, the 2k diagonal words ds and the log, leaves both stored, and fills the pending slot j of the log with kn entries with planes below n. The matrix, the shifts, the diagonal words and the log are pairwise disjoint views.
NLAlib.ShiftedQR.multiStepStable_terminates {Op Tst : Type} [Ops.Has Ops.ScalarOp Op]
[Ops.Has Ops.CmpTst Tst] [Ops.Has Ops.IndexOp Op] {M : Ops.Machine ℝ} {I : Ops.Interp Op Tst ℝ}
(hS : Ops.IsScalar M I) (hzero : M.lit 0 = 0) (hCmp : Ops.IsCmp id I) (hL : Ops.IsIndexLit M I)
{nmax : ℕ} (hNat : Ops.IsExactNatLit id M nmax) {τ : Ops.Tape ℝ} {m : Ops.Mem ℝ} {n k : ℕ}
{a s ds lg : ℕ × ℕ} {H : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ} {xs : List ℝ} (hn : n ≤ nmax)
{ns w : ℕ} {L : List (Option (List GivensEntry))} (hlog : HoldsSlottedLog lg ns w L [] m.store)
(hj : L.length < ns) (hw : k * n ≤ w) (hl : m.Live [a, s, ds, lg]) (hA : HoldsMatrix a H m.store)
(hs : m.store.readBlock s.1 s.2 (2 * k) = some xs) (hd : ds.2 + 2 * k ≤ m.store.len ds.1)
(has :
Ops.Fp.Disj (Ops.Store.inBlock a.1 a.2 (2 * ((n + 1) * (n + 1))))
(Ops.Store.inBlock s.1 s.2 (2 * k)))
(had :
Ops.Fp.Disj (Ops.Store.inBlock a.1 a.2 (2 * ((n + 1) * (n + 1))))
(Ops.Store.inBlock ds.1 ds.2 (2 * k)))
(hsd : Ops.Fp.Disj (Ops.Store.inBlock s.1 s.2 (2 * k)) (Ops.Store.inBlock ds.1 ds.2 (2 * k)))
(hlgd :
Ops.Fp.Disj (Ops.Store.inBlock lg.1 lg.2 (ns * (1 + 5 * w)))
(Ops.Store.inBlock a.1 a.2 (2 * ((n + 1) * (n + 1))) ⊔ Ops.Store.inBlock s.1 s.2 (2 * k) ⊔
Ops.Store.inBlock ds.1 ds.2 (2 * k))) :
Ops.Writes Ops.Mode.total I τ ShiftedQR.multiStepStable
(Ops.Env.frame [n + 1, k, w, L.length] [a, s, a, ds, lg])
(Ops.Store.inBlock a.1 a.2 (2 * ((n + 1) * (n + 1))) ⊔ Ops.Store.inBlock ds.1 ds.2 (2 * k) ⊔
Ops.Store.inBlock lg.1 lg.2 (ns * (1 + 5 * w)))
(fun m' ↦
m'.pos = m.pos ∧
(∃ H', HoldsMatrix a H' m'.store) ∧
(∃ ys, m'.store.readBlock ds.1 ds.2 (2 * k) = some ys) ∧
∃ es,
es.length = k * n ∧
(∀ e ∈ es, e.1 + 1 < n + 1) ∧ HoldsSlottedLog lg ns w L es m'.store)
mImport NLAlib.Eigensolvers.ShiftedQR.StableStepTermination.