NLAlib.SmallEig.rhess_terminates
Library · theorem
This statement changed in the recorded rename: 2026-11-schur.
NLAlib.SmallEig.rhess terminates on every tape and every stored matrix.
NLAlib.SmallEig.rhess_terminates {O Q : Type} [Ops.Has Ops.ScalarOp O] [Ops.Has Ops.IndexOp O]
[Ops.Has Ops.SampleOp O] [Ops.Has Ops.CmpTst Q] {M : Ops.Machine ℝ} {I : Ops.Interp O Q ℝ}
(hS : Ops.IsScalar M I) (hC : Ops.IsCmp id I) (hSmp : Ops.IsSample I) {sG N : ℕ} {τ : Ops.Tape ℝ}
{μ : Ops.Mem ℝ} {a : ℕ × ℕ} {A : Matrix (Fin N) (Fin N) ℂ} (hl : μ.Live [a])
(hA : HoldsMatrix a A μ.store) (hL : Ops.IsIndexLit M I) {nmax : ℕ}
(hNat : Ops.IsExactNatLit id M nmax) (h1 : 1 ≤ nmax) (h2 : 2 ≤ N) (hN : N ≤ nmax + 1) {ns w : ℕ}
{lg : ℕ × ℕ} {LL : List (Option (List GivensEntry))}
(hlog : HoldsSlottedLog lg ns w LL [] μ.store) (hj : LL.length + (N - 1) ≤ ns) (hw : N - 1 ≤ w)
(hlgl : μ.Live [lg]) (hlga : lg.1 ≠ a.1) :
Ops.Writes Ops.Mode.total I τ (SmallEig.rhess sG) (Ops.Env.frame [N, w, LL.length] [a, a, lg])
(Ops.Store.inBlock a.1 a.2 (2 * (N * N)) ⊔ Ops.Store.inBlock lg.1 lg.2 (ns * (1 + 5 * w)))
(fun μ' ↦
∃ H,
HoldsMatrix a H μ'.store ∧
∃ Ls,
Ls.length = N - 1 ∧
(∀ x ∈ slotEntries w Ls, x.1 + 1 < N) ∧
HoldsSlottedLog lg ns w (LL ++ Ls) [] μ'.store)
μImport NLAlib.Eigensolvers.SmallEig.RandomHessenberg.