NLAlib.SmallEig.smallEigProg_completes
Library · theorem
The small-eigenvalue program in Schur mode completes on every tape, on any machine ([BanksGarzaVargasSrivastava2025, Theorem 1.1], every loop capped): for blocks of order at most k_{\max}, the words qs with valid cap words for the cap T (NLAlib.SmallEig.SmallEigCaps), on a scalar machine (no rounding model) with index literals and exact natural literals up to k_{\max}, exact comparisons and conversion, draws that store the tape entry and an exact polar sampler, NLAlib.SmallEig.smallEigProg is a completing Schur leaf (NLAlib.ShiftedQR.CompletingLeafRoutine): the run is total, writes only the block and the accumulator, and leaves both stored. The accumulator bound under the standard model is NLAlib.SmallEig.smallEigProg_terminates.
NLAlib.SmallEig.smallEigProg_completes {O Q : Type} [Ops.Has Ops.ScalarOp O] [Ops.Has Ops.IndexOp O]
[Ops.Has Ops.SampleOp O] [Ops.Has ShiftedQR.DiskSampleOp O] [Ops.Has Ops.CmpTst Q]
[Ops.Has Ops.IdxTst Q] {M : Ops.Machine ℝ} {I : Ops.Interp O Q ℝ} (hS : Ops.IsScalar M I)
(hL : Ops.IsIndexLit M I) {kmax : ℕ} (hNat : Ops.IsExactNatLit id M kmax) (hC : Ops.IsCmp id I)
(hQ : Ops.IsToNat id I) (hSmp : Ops.IsSample I) {sU sG : ℕ}
(hDisk : ShiftedQR.IsPolarDiskSampler sU I) {T : ℕ} {qs : List ℝ}
(hqs : SmallEig.SmallEigCaps T qs) (hlen : 12 ≤ qs.length) :
ShiftedQR.CompletingLeafRoutine kmax qs T (SmallEig.smallEigProg sG) IImport NLAlib.Eigensolvers.SmallEig.Program.