NLA-lib Explorer

NLAlib.Ops.Store.HoldsVec.update_of_frame

Library · theorem

A vector-cell write may reuse disjoint scratch while still representing exactly one mathematical update. The scratch need not preserve its previous contents.

NLAlib.Ops.Store.HoldsVec.update_of_frame {K : Type} {s s' : Ops.Store K} {b off len i : ℕ}
  {v : ℕ → K} {w : K} {scratch : Ops.Fp} (h : s.HoldsVec b off len v)
  (hfr : Ops.Store.EqOff (Ops.Store.inBlock b (off + i) 1 ⊔ scratch) s s')
  (hScratch : scratch.Disj (Ops.Store.inBlock b off len)) (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.