NLA-lib Explorer

NLAlib.ShiftedQR.stackInit_writes

Library · theorem

Exact arithmetic

The initial stack is built from literal words, with no initialized stack premise. Shared by the trees of NLAlib.ShiftedQR.deflationRoutine, NLAlib.ShiftedQR.shqrSmallEigRoutine and NLAlib.SmallEig.smallEigRoutine, on their scratch.

NLAlib.ShiftedQR.stackInit_writes {Op Tst : Type} [Ops.Has Ops.IndexOp Op] [Ops.Has Ops.IdxTst Tst]
  {M : Ops.Machine ℝ} {I : Ops.Interp Op Tst ℝ} (hL : Ops.IsIndexLit M I) (hQ : Ops.IsToNat id I)
  (hE : Ops.ExactModel id M) {τ : Ops.Tape ℝ} {m : Ops.Mem ℝ} {capacity lo size : ℕ} {b : ℕ × ℕ}
  (hcap : 0 < capacity) (hroom : b.2 + 1 + 2 * capacity ≤ m.store.len b.1) :
  Ops.Writes Ops.Mode.total I τ ShiftedQR.stackInit (Ops.Env.frame [capacity, lo, size] [b])
    (Ops.Store.inBlock b.1 b.2 (1 + 2 * capacity))
    (fun m' ↦ m'.pos = m.pos ∧ ShiftedQR.StackHolds b [(lo, size)] m'.store) m

Full source on GitHub

Import NLAlib.Eigensolvers.ShiftedQR.Worklist.