NLAlib.ShiftedQR.stepComptau_terminates
Library · theorem
This statement changed in the recorded rename: 2026-11-schur, 2026-11-smalleig.
comptau of a 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, NLAlib.ShiftedQR.stepComptau writes only the matrix, P and the log, keeps the tape position, leaves both stored and fills the pending slot j of the log with kn entries with planes below n. The matrix is disjoint from the shifts and from P; the log from all of them.
NLAlib.ShiftedQR.stepComptau_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 ℝ}
(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 : ℕ}
{H : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ} {xs : List ℝ} {a s p lg : ℕ × ℕ} (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, p, lg]) (hA : HoldsMatrix a H m.store)
(hss : m.store.readBlock s.1 s.2 (2 * k) = some xs) (hp : p.2 < m.store.len p.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)))
(hap :
Ops.Fp.Disj (Ops.Store.inBlock a.1 a.2 (2 * ((n + 1) * (n + 1)))) (Ops.Store.inBlock p.1 p.2 1))
(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 p.1 p.2 1)) :
Ops.Writes Ops.Mode.total I τ ShiftedQR.stepComptau
(Ops.Env.frame [n + 1, k, w, L.length] [a, s, a, p, lg])
(Ops.Store.inBlock a.1 a.2 (2 * ((n + 1) * (n + 1))) ⊔ Ops.Store.inBlock p.1 p.2 1 ⊔
Ops.Store.inBlock lg.1 lg.2 (ns * (1 + 5 * w)))
(fun m' ↦
m'.pos = m.pos ∧
(∃ H', HoldsMatrix a H' m'.store) ∧
(∃ t, m'.store.get p.1 p.2 = some t) ∧
∃ es,
es.length = k * n ∧
(∀ e ∈ es, e.1 + 1 < n + 1) ∧ HoldsSlottedLog lg ns w L es m'.store)
mImport NLAlib.Eigensolvers.ShiftedQR.RoundedFindTermination.