NLA-lib Explorer

NLAlib.Ops.Store.HoldsVec.update_of_eqOff

Library · theorem

A run changing only one vector cell, and writing its new word there, performs exactly the corresponding mathematical Function.update on the represented vector.

NLAlib.Ops.Store.HoldsVec.update_of_eqOff {K : Type} {s s' : Ops.Store K} {b off len i : ℕ}
  {v : ℕ → K} {w : K} (h : s.HoldsVec b off len v)
  (hfr : Ops.Store.EqOff (Ops.Store.inBlock b (off + i) 1) s s')
  (hw : s'.get b (off + i) = some w) : s'.HoldsVec b off len (Function.update v i w)

Full source on GitHub

Import NLAlib.Ops.Logic.VectorUpdate.