NLA-lib Explorer

NLAlib.ShiftedQR.roundedLarge_terminates

Library · theorem

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

The large branch keeps the core: on a scalar machine with the standard model at \boldsymbol{u} \le 1/100, exact natural literals up to n + 1, exact toNat and comparisons, and a terminating decoupling routine (NLAlib.ShiftedQR.TerminatingDecouplerRoutine) of bottom width k \le d and log shape (ns slots of w entries, n_s w \le m), from the geometry of the worklist in Schur mode with the threshold and parameter words stored, a matrix \mathbf{A} whose block on (lo, d + 1) is in the work matrix, a stack whose ranges after (lo, d + 1) fit, and the accumulator within its factor at round j, NLAlib.ShiftedQR.roundedProcessLargeWith reaches the core of round j + 1.

NLAlib.ShiftedQR.roundedLarge_terminates {O Q : Type} [Ops.Has Ops.ScalarOp O]
  [Ops.Has Ops.IndexOp O] [Ops.Has Ops.CmpTst Q] [Ops.Has Ops.IdxTst Q] {Mch : Ops.Machine ℝ}
  {I : Ops.Interp O Q ℝ} {u : ℝ} (hS : Ops.IsScalar Mch I) {P : Prop}
  (hP : P → Ops.StdModel u id Mch ∧ u ≤ 1 / 100) (hL : Ops.IsIndexLit Mch I) {n : ℕ}
  (hNat : Ops.IsExactNatLit id Mch (n + 1)) (hQ : Ops.IsToNat id I) (hC : Ops.IsCmp id I)
  {k F T ns w m : ℕ} (hm : ns * w ≤ m) {ps : List ℝ} (D : Ops.Stmt O Q)
  (hD : ShiftedQR.TerminatingDecouplerRoutine n k F T ps ns w D I) {tape : Ops.Tape ℝ}
  {μ : Ops.Mem ℝ} {lo d j ℓ : ℕ} {a t p uo f st wk ub r : ℕ × ℕ} {rs : List (ℕ × ℕ)}
  {A U : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ} {thr εL : ℝ} (hεL : P → 0 ≤ εL)
  (hG : ShiftedQR.SchurGeometry (n + 1) ps.length a t p uo f st wk ub r μ)
  (ht : μ.store.get t.1 t.2 = some thr) (hp : μ.store.readBlock p.1 p.2 ps.length = some ps)
  (hA : HoldsMatrix a A μ.store) (hW : HoldsMatrix wk (subBlock A (lo, d + 1)) μ.store)
  (hSt : ShiftedQR.StackHolds st rs μ.store)
  (hfit : ShiftedQR.RangesFit (n + 1) ((lo, d + 1) :: rs))
  (hℓ : ℓ + (d + 1) + (List.map Prod.snd rs).sum ≤ n + 1) (hk : k ≤ d)
  (hacc : ShiftedQR.AccumIf P U ((1 + 24 * u) ^ (j * m) * (1 + εL) ^ ℓ) uo μ) :
  Ops.Writes Ops.Mode.total I tape (ShiftedQR.roundedProcessLargeWith D)
    (Ops.Env.frame [n + 1, k, ps.length, F, T, ns, w, lo, d + 1] [a, t, p, st, uo, wk, r, f])
    (ShiftedQR.schurRoundFp (n + 1) a uo f st wk ub r)
    (ShiftedQR.SchurStoredCore n P U u εL m a uo f st (j + 1)) μ

Full source on GitHub

Import NLAlib.Eigensolvers.ShiftedQR.RoundedWorklistTermination.