NLA-lib Explorer

NLAlib.Ops.fillMap_writes

Library · theorem

The fill writes the value of its operation to every entry: for an operation with the constant value v, from room for the n entries at y, on every tape, the fill writes only those entries, stores v in each and keeps the tape position. A step in the proof of NLAlib.Ops.fillRoutine_meets, with the entries stated as a stored vector.

NLAlib.Ops.fillMap_writes {K Op Tst : Type} {o : Op} {v : K} {I : Ops.Interp Op Tst K}
  (hI : I.IsFn Ops.Mode.total o (Ops.BlockFn.const v) Ops.AnyOperands) {τ : Ops.Tape K}
  {m : Ops.Mem K} {n : ℕ} {y : ℕ × ℕ} (hy : y.2 + n ≤ m.store.len y.1) :
  Ops.Writes Ops.Mode.total I τ (Ops.fillMap o) (Ops.Env.frame [n] [y])
    (Ops.Store.inBlock y.1 y.2 n)
    (fun m' ↦ (m'.store.HoldsVec y.1 y.2 n fun x ↦ v) ∧ m'.pos = m.pos) m

Full source on GitHub

Import NLAlib.Ops.Blas.Fill.