NLAlib.ShiftedQR.comptauHalf_terminates
Library · theorem
This statement changed in the recorded rename: 2026-11-schur.
comptauHalf terminates on any matrix and any shift words: on a scalar machine with exact comparisons, the literal 0 and natural literals up to n exact (the planes of its scratch log), for every half length h and exponent e (zero included), from any matrix of order n + 1 at A and any 2h words at S, on every tape, NLAlib.ShiftedQR.comptauHalf writes only the word P, keeps the tape position and leaves the word stored.
NLAlib.ShiftedQR.comptauHalf_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) {n h e : ℕ} (hn : n ≤ nmax) {τ : Ops.Tape ℝ}
{μ : Ops.Mem ℝ} {A S P : ℕ × ℕ} {H : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ} {xs : List ℝ}
(hl : μ.Live [A, S, P]) (hA : HoldsMatrix A H μ.store)
(hSh : μ.store.readBlock S.1 S.2 (2 * h) = some xs) (hP : P.2 < μ.store.len P.1) :
Ops.Writes Ops.Mode.total I τ ShiftedQR.comptauHalf (Ops.Env.frame [n + 1, h, e] [A, S, P])
(Ops.Store.inBlock P.1 P.2 1) (fun μ' ↦ μ'.pos = μ.pos ∧ ∃ t, μ'.store.get P.1 P.2 = some t) μImport NLAlib.Eigensolvers.ShiftedQR.RoundedFindTermination.