NLAlib.ShiftedQR.roundedShQRSmallEig_terminates
Library · theorem
This statement changed in the recorded rename: 2026-11-schur.
The algorithm with the small-eigenvalue program terminates on every tape: on a scalar machine with index literals, exact natural literals up to n + 1, exact toNat and comparisons, draws that store the tape entry and an exact polar disk sampler, for any (n + 1) \times (n + 1) matrix \mathbf{H} (no structure assumed), any B, \Gamma, \Sigma, \delta, \varphi, k the degree of (eqn:setk) at 4B and any tail records, the run of NLAlib.ShiftedQR.roundedShQRSmallEig from NLAlib.ShiftedQR.ShQRSmallEigInput succeeds on every tape and writes only the matrix, the output and the failure word. No rounding model, unit roundoff, class or random-matrix hypothesis is needed: the stored cap words are valid, and the small-eigenvalue program completes on every machine (NLAlib.SmallEig.smallEigProg_completes).
NLAlib.ShiftedQR.roundedShQRSmallEig_terminates {O Q : Type} [Ops.Has Ops.ScalarOp O]
[Ops.Has Ops.IndexOp O] [Ops.Has ShiftedQR.DiskSampleOp O] [Ops.Has Ops.SampleOp O]
[Ops.Has Ops.CmpTst Q] [Ops.Has Ops.IdxTst Q] {Mch : Ops.Machine ℝ} {I : Ops.Interp O Q ℝ} {n : ℕ}
(hS : Ops.IsScalar Mch I) (hL : Ops.IsIndexLit Mch I) (hNat : Ops.IsExactNatLit id Mch (n + 1))
(hQ : Ops.IsToNat id I) (hC : Ops.IsCmp id I) (hSmp : Ops.IsSample I) {sU sG : ℕ}
(hDisk : ShiftedQR.IsPolarDiskSampler sU I) {c₁ c₂ : PolyLogTail}
{H : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ} {k : ℕ} {B Γ S δ φ : ℝ}
(hk : k = ShiftedQR.shqrDegree (4 * B)) {a t p out f : ℕ × ℕ} {μ : Ops.Mem ℝ}
(hin : ShiftedQR.ShQRSmallEigInput k B Γ S δ φ c₁ c₂ a t p out f H μ) (τ : Ops.Tape ℝ) :
Ops.Writes Ops.Mode.total I τ (ShiftedQR.roundedShQRSmallEig sG)
(Ops.Env.frame (ShiftedQR.shqrSmallEigDims n k B Γ S δ φ c₁ c₂) [a, t, p, out, a, out, f])
(ShiftedQR.shqrFp n a out f) (fun x ↦ True) μImport NLAlib.Eigensolvers.ShiftedQR.RoundedSmallEig.