NLA-lib Explorer

NLAlib.SmallEig.multiStepStable_writes_replicate_succ

Library · theorem

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

Standard rounding

One more rounded step with the shift \lambda (NLAlib.ShiftedQR.multiStepStable at degree 1) extends a stable chain of i steps with that shift to i + 1 steps. Shared by the trees of NLAlib.ShiftedQR.shqrSmallEigRoutine and NLAlib.SmallEig.smallEigRoutine, on their scratch.

NLAlib.SmallEig.multiStepStable_writes_replicate_succ {O Q : Type} [Ops.Has Ops.ScalarOp O]
  [Ops.Has Ops.IndexOp O] [Ops.Has Ops.CmpTst Q] {M : Ops.Machine ℝ} {I : Ops.Interp O Q ℝ} {u : ℝ}
  (hS : Ops.IsScalar M I) (hM : Ops.StdModel u id M) (hu : 0 ≤ u) (hC : Ops.IsCmp id I)
  (hL : Ops.IsIndexLit M I) {n i : ℕ} (hNat : Ops.IsExactNatLit id M (n + 1))
  (hnu : (↑n + 2) * u ≤ 1 / 2500) {H H' : Matrix (Fin (n + 2)) (Fin (n + 2)) ℂ} {ζ : ℂ}
  {Rs : List (Matrix (Fin (n + 2)) (Fin (n + 2)) ℂ)}
  (hc : IsStableQRChain (300 * (↑n + 2) ^ 2 * u) H (List.replicate i ζ) H' Rs)
  (hH' : IsUpperHessenberg H') {τ : Ops.Tape ℝ} {μ : Ops.Mem ℝ} {a s ds : ℕ × ℕ}
  (hl : μ.Live [a, s, ds]) (hA : HoldsMatrix a H' μ.store)
  (hs : μ.store.readBlock s.1 s.2 2 = some [ζ.re, ζ.im]) (hd : ds.2 + 2 ≤ μ.store.len ds.1)
  (has :
    Ops.Fp.Disj (Ops.Store.inBlock a.1 a.2 (2 * ((n + 2) * (n + 2)))) (Ops.Store.inBlock s.1 s.2 2))
  (had :
    Ops.Fp.Disj (Ops.Store.inBlock a.1 a.2 (2 * ((n + 2) * (n + 2))))
      (Ops.Store.inBlock ds.1 ds.2 2))
  (hsd : Ops.Fp.Disj (Ops.Store.inBlock s.1 s.2 2) (Ops.Store.inBlock ds.1 ds.2 2)) {ns w : ℕ}
  {lg : ℕ × ℕ} {LL : List (Option (List GivensEntry))}
  (hlog : HoldsSlottedLog lg ns w LL [] μ.store) (hj : LL.length < ns) (hw : n + 1 ≤ w)
  (hlgl : μ.Live [lg]) (hlgb : ∀ b ∈ [a, s, ds], b.1 ≠ lg.1) :
  Ops.Writes Ops.Mode.total I τ ShiftedQR.multiStepStable
    (Ops.Env.frame [n + 2, 1, w, LL.length] [a, s, a, ds, lg])
    (Ops.Store.inBlock a.1 a.2 (2 * ((n + 2) * (n + 2))) ⊔ Ops.Store.inBlock ds.1 ds.2 2 ⊔
      Ops.Store.inBlock lg.1 lg.2 (ns * (1 + 5 * w)))
    (fun μ' ↦
      ∃ H'' Rs',
        IsStableQRChain (300 * (↑n + 2) ^ 2 * u) H (List.replicate (i + 1) ζ) H'' Rs' ∧
          IsUpperHessenberg H'' ∧
            HoldsMatrix a H'' μ'.store ∧
              ∃ es, es.length = n + 1 ∧ HoldsSlottedLog lg ns w LL es μ'.store)
    μ

Full source on GitHub

Import NLAlib.Eigensolvers.SmallEig.Decouple.