NLA-lib Explorer

NLAlib.ShiftedQR.roundedLargeRest_terminates

Library · theorem

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

The rest of the large branch after the decoupling call keeps the core: from the geometry of the worklist in Schur mode, the threshold word, any failure word, some matrix stored, any matrix \mathbf{H}' of order d + 1 \ge k + 1 in the work matrix, a stack whose ranges after the popped (lo, d + 1) fit, the accumulator within its factor at round j, and a closed log at (lgb, 0) (a fresh buffer) whose entries are inside the block, NLAlib.ShiftedQR.roundedLargeRest runs to completion and reaches the core of round j + 1.

NLAlib.ShiftedQR.roundedLargeRest_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) {np : ℕ} {tape : Ops.Tape ℝ} {μ : Ops.Mem ℝ}
  {lo d j ℓ lgb : ℕ} {a t p uo f st wk ub r : ℕ × ℕ} {rs : List (ℕ × ℕ)}
  {A U : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ} {H' : Matrix (Fin (d + 1)) (Fin (d + 1)) ℂ}
  {x thr εL : ℝ} (hεL : P → 0 ≤ εL) {L : List (Option (List GivensEntry))}
  (hG : ShiftedQR.SchurGeometry (n + 1) np a t p uo f st wk ub r μ)
  (ht : μ.store.get t.1 t.2 = some thr) (hf : μ.store.get f.1 f.2 = some x)
  (hA : HoldsMatrix a A μ.store) (hW : HoldsMatrix wk H' μ.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 μ)
  (hlog : HoldsSlottedLog (lgb, 0) ns w L [] μ.store) (hlen : L.length = ns)
  (hpl : ∀ e ∈ slotEntries w L, e.1 + 1 < d + 1) (hlgb : lgb < List.length μ.store)
  (hlgv : ∀ v ∈ [a, t, p, uo, f, st, wk, ub, r], v.1 < lgb) :
  Ops.Writes Ops.Mode.total I tape ShiftedQR.roundedLargeRest
    { idx := (Ops.Env.frame [n + 1, k, np, F, T, ns, w, lo, d + 1] [a, t, p, st, uo, wk, r, f]).idx,
      buf :=
        (Ops.Env.frame [n + 1, k, np, F, T, ns, w, lo, d + 1] [a, t, p, st, uo, wk, r, f]).buf ++
          [lgb] }
    (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.