NLAlib.ShiftedQR.stackInit_writes_of_isExactNatLit
Library · theorem
The initial stack is built from literal words, with no initialized stack premise. Only the literals written need to be exact. Shared by the trees of NLAlib.ShiftedQR.deflationRoutine, NLAlib.ShiftedQR.shqrSmallEigRoutine and NLAlib.SmallEig.smallEigRoutine, on their scratch.
NLAlib.ShiftedQR.stackInit_writes_of_isExactNatLit {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) {B : ℕ} (hN : Ops.IsExactNatLit id M B) {τ : Ops.Tape ℝ} {m : Ops.Mem ℝ}
{capacity lo size : ℕ} {b : ℕ × ℕ} (hlo : lo ≤ B) (hsize : size ≤ B) (hcB : capacity ≤ 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) mImport NLAlib.Eigensolvers.ShiftedQR.Worklist.