NLA-lib Explorer

NLAlib.SmallEig.bottomScan_terminates_decoupleLastCtx

Library · theorem

The scan of NLAlib.SmallEig.decoupleLast on any matrix, from the operands of its loop (NLAlib.SmallEig.DecoupleLastCtx), stores a word in the scan flag.

NLAlib.SmallEig.bottomScan_terminates_decoupleLastCtx {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 ℝ} {n : ℕ}
  (hS : Ops.IsScalar M I) (hL : Ops.IsIndexLit M I) (hNat : Ops.IsExactNatLit id M (n + 2))
  (hC : Ops.IsCmp id I) {τ : Ops.Tape ℝ} {μ : Ops.Mem ℝ} {L : ℕ} {h lam qw f : ℕ × ℕ} {ζ : ℂ}
  {t : ℝ} {H : Matrix (Fin (n + 2)) (Fin (n + 2)) ℂ}
  (hc : SmallEig.DecoupleLastCtx n L h lam qw f ζ t μ.store) (hW : HoldsMatrix h H μ.store) :
  Ops.Writes Ops.Mode.total I τ ShiftedQR.bottomScan
    (Ops.Env.frame [n + 2, 1] [h, (qw.1, qw.2 + 7), (L, 0)]) (Ops.Store.inBlock L 0 5)
    (fun μ' ↦ ∃ x, μ'.store.get L 3 = some x) μ

Full source on GitHub

Import NLAlib.Eigensolvers.SmallEig.Decouple.