NLAlib.CGS2.zeroCol_writes
Library · theorem
The loop that sets column c of the new block to the zero literal writes that column only. A fragment of NLAlib.CGS2.cgs2ExtendRoutine.
NLAlib.CGS2.zeroCol_writes {K Op Tst : Type} [Ops.Has Ops.ScalarOp Op] {M : Ops.Machine K}
{I : Ops.Interp Op Tst K} (hS : Ops.IsScalar M I) {τ' : Ops.Tape K} {n k b c : ℕ} {Q W C : ℕ × ℕ}
{hb tb : ℕ} {m : Ops.Mem K} (hQ : Q.1 < List.length m.store)
(hroom : Q.2 + k * n + c * n + n ≤ m.store.len Q.1) :
Ops.Writes Ops.Mode.total I τ'
(Ops.Stmt.loop (Ops.IExp.var 0)
(Ops.Stmt.call (Ops.Has.inj (Ops.ScalarOp.lit 0)) [] []
[{ buf := 2, off := Ops.IExp.var 5 + Ops.IExp.var 8 * Ops.IExp.var 0 + Ops.IExp.var 9 }]))
(CGS2.colEnv n k b c Q W C hb tb) (Ops.Store.inBlock Q.1 (Q.2 + k * n + c * n) n)
(fun m' ↦ (m'.store.HoldsVec Q.1 (Q.2 + k * n + c * n) n fun x ↦ M.lit 0) ∧ m'.pos = m.pos) mImport NLAlib.Krylov.Orthogonalization.CGS2.ExtendColumn.