NLA-lib Explorer

NLAlib.SmallEig.smallEigProg_terminatingLeafRoutineIf

Library · theorem

The small-eigenvalue program in Schur mode completes, with its accumulator near a unitary if P ([BanksGarzaVargasSrivastava2025, Theorem 1.1], every loop capped): the common form of NLAlib.SmallEig.smallEigProg_completes (P false, no rounding model) and NLAlib.SmallEig.smallEigProg_terminates (P true, the standard model at \boldsymbol{u} \le 1/100).

NLAlib.SmallEig.smallEigProg_terminatingLeafRoutineIf {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 ℝ} {u : ℝ}
  (hS : Ops.IsScalar M I) {P : Prop} (hP : P → Ops.StdModel u id M ∧ u ≤ 1 / 100)
  (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.TerminatingLeafRoutineIf P
    ((1 + 24 * u) ^ (kmax * kmax + 2 * (kmax + 1) * ((T + kmax) * kmax + 6)) - 1) kmax qs T
    (SmallEig.smallEigProg sG) I

Full source on GitHub

Import NLAlib.Eigensolvers.SmallEig.Program.