NLA-lib Explorer

NLAlib.ShiftedQR.roundedDecoupleExit_writes_word

Library · theorem

The exit of the decoupling loop on any scan flag: on every tape, from any word at r[3] and room for the flag f, NLAlib.ShiftedQR.roundedDecoupleExit writes only the flag and stores a word there. Also in the tree of NLAlib.SmallEig.smallEigRoutine. Shared by the trees of NLAlib.ShiftedQR.roundedDecoupleLoopWith, NLAlib.SmallEig.decoupleLast.

NLAlib.ShiftedQR.roundedDecoupleExit_writes_word {O Q : Type} [Ops.Has Ops.IndexOp O]
  [Ops.Has Ops.CmpTst Q] {M : Ops.Machine ℝ} {I : Ops.Interp O Q ℝ} (hL : Ops.IsIndexLit M I)
  (hC : Ops.IsCmp id I) {τ : Ops.Tape ℝ} {μ : Ops.Mem ℝ} {r f : ℕ × ℕ} {x : ℝ}
  (hx : μ.store.get r.1 (r.2 + 3) = some x) (hf : f.2 < μ.store.len f.1) :
  Ops.Writes Ops.Mode.total I τ ShiftedQR.roundedDecoupleExit (Ops.Env.frame [] [r, f])
    (Ops.Store.inBlock f.1 f.2 1) (fun μ' ↦ ∃ x, μ'.store.get f.1 f.2 = some x) μ

Full source on GitHub

Import NLAlib.Eigensolvers.ShiftedQR.RoundedDecouple.