NLA-lib Explorer

NLAlib.ShiftedQR.roundedDecoupleScan_terminates

Library · theorem

The scan of the decoupling loop on any matrix keeps the loop's operands and stores the scan flag.

NLAlib.ShiftedQR.roundedDecoupleScan_terminates {O Q : Type} [Ops.Has Ops.ScalarOp O]
  [Ops.Has Ops.IndexOp O] [Ops.Has Ops.CmpTst Q] {n : ℕ} {M : Ops.Machine ℝ} {I : Ops.Interp O Q ℝ}
  (hS : Ops.IsScalar M I) (hL : Ops.IsIndexLit M I) (hNat : Ops.IsExactNatLit id M (n + 1))
  (hC : Ops.IsCmp id I) {τ : Ops.Tape ℝ} {μ : Ops.Mem ℝ} {k L : ℕ} (hk : k ≤ n) {w q f : ℕ × ℕ}
  {ps : List ℝ} (hps0 : 0 < ps.length) (hctx : ShiftedQR.DecoupleLoopCtx n L w q f ps μ)
  (hW : ∃ H, HoldsMatrix w H μ.store) :
  Ops.Writes Ops.Mode.total I τ ShiftedQR.bottomScan (Ops.Env.frame [n + 1, k] [w, q, (L, 0)])
    (Ops.Store.inBlock L 0 5)
    (fun μ' ↦
      ShiftedQR.DecoupleLoopCtx n L w q f ps μ' ∧
        (∃ H', HoldsMatrix w H' μ'.store) ∧ ∃ x, μ'.store.get L 3 = some x)
    μ

Full source on GitHub

Import NLAlib.Eigensolvers.ShiftedQR.RoundedDecoupleTermination.