NLAlib.SmallEig.distSpec_terminates
Library · theorem
This statement changed in the recorded rename: 2026-11-schur.
DistSpec terminates on every tape: on a scalar machine with exact comparisons, the literal 0 and natural literals up to n exact, from any matrix of order n + 1 at h, any shift pair and room for the word tau, for every degree m (zero included) and q, NLAlib.SmallEig.distSpec writes only that word, keeps the tape position and stores a word there.
NLAlib.SmallEig.distSpec_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)
(hL : Ops.IsIndexLit M I) (hzero : M.lit 0 = 0) (hCmp : Ops.IsCmp id I) {nmax : ℕ}
(hNat : Ops.IsExactNatLit id M nmax) {n m q : ℕ} (hn : n ≤ nmax)
{H : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ} {s : ℂ} {τ : Ops.Tape ℝ} {μ : Ops.Mem ℝ}
{h sp tau : ℕ × ℕ} (hl : μ.Live [h, sp, tau]) (hHs : HoldsMatrix h H μ.store)
(hsp : μ.store.readBlock sp.1 sp.2 2 = some [s.re, s.im]) (htau : tau.2 < μ.store.len tau.1) :
Ops.Writes Ops.Mode.total I τ SmallEig.distSpec (Ops.Env.frame [n + 1, m, q] [h, sp, tau])
(Ops.Store.inBlock tau.1 tau.2 1)
(fun μ' ↦ μ'.pos = μ.pos ∧ ∃ t, μ'.store.get tau.1 tau.2 = some t) μImport NLAlib.Eigensolvers.SmallEig.DistSpec.