NLA-lib Explorer

NLAlib.ShiftedQR.roundedDecoupleWith_terminatingDecouplerRoutine_at

Library · theorem

This statement changed in the recorded rename: 2026-11-schur.

The rounded decoupling loop with a terminating small-eigenvalue routine terminates, with the parameter words NLAlib.ShiftedQR.roundedDecoupleParams followed by the routine's words qs (none, or 12) and the routine meeting NLAlib.ShiftedQR.TerminatingSmallEigAt with the word count 12: NLAlib.ShiftedQR.roundedDecoupleWith_terminatingDecouplerRoutine_at for NLAlib.ShiftedQR.roundedDecoupleWith. The rounded decoupling loop terminates on every tape and every matrix ([BanksGarzaVargasSrivastava2022, Lemma 6.4], termination only): on a scalar machine with exact comparisons, index literals, index conversion and exact natural literals up to n_{\max} + 1, a SmallEig kernel meeting NLAlib.ShiftedQR.IsRandomSmallEig and an exact polar sampler, NLAlib.ShiftedQR.roundedDecoupleWith with the parameter words NLAlib.ShiftedQR.roundedDecoupleParams and k = 2^q is a NLAlib.ShiftedQR.TerminatingDecouplerRoutine for orders up to n_{\max} + 1, with any iteration cap F. No numerical hypothesis is needed: the loop is capped, every operation succeeds on stored operands, and the two index words q \le k and \lvert\mathrm{net}\rvert \le n_p are exact.

NLAlib.ShiftedQR.roundedDecoupleWith_terminatingDecouplerRoutine_at {O Q : Type}
  [Ops.Has Ops.ScalarOp O] [Ops.Has Ops.IndexOp 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) {nmax : ℕ}
  (hNat : Ops.IsExactNatLit id M (nmax + 1)) (hC : Ops.IsCmp id I) (hQ : Ops.IsToNat id I) {s₀ : ℕ}
  (hD : ShiftedQR.IsPolarDiskSampler s₀ I) {k q F : ℕ} (hkq : k = 2 ^ q) (tL R tv γ B α ε : ℝ)
  {T : ℕ} {qs : List ℝ} {SE : Ops.Stmt O Q} (hSE : ShiftedQR.TerminatingSmallEigAt k 12 T qs SE I)
  (hq12 : qs = [] ∨ qs.length = 12) {ps : List ℝ}
  (hps : ps = ShiftedQR.roundedDecoupleParams tL R tv γ B α ε k q ++ qs) {ns ws : ℕ}
  (hns : F * (k + 1 + (ShiftedQR.excNet ε).length) ≤ ns) (hws : k * nmax ≤ ws) :
  ShiftedQR.TerminatingDecouplerRoutine nmax k F T ps ns ws (ShiftedQR.roundedDecoupleWith SE) I

Full source on GitHub

Import NLAlib.Eigensolvers.ShiftedQR.RoundedDecoupleTermination.