NLA-lib Explorer

NLAlib.Ops.Store.get_upd

Library · theorem

The cells after a write of one cell: the written cell holds the value if it lies inside its buffer; nothing else changes.

NLAlib.Ops.Store.get_upd {K : Type} (s : Ops.Store K) (b i : ℕ) (v : K) (b' i' : ℕ) :
  (s.upd b i v).get b' i' = if b' = b ∧ i' = i ∧ i < s.len b then some v else s.get b' i'

Full source on GitHub

Import NLAlib.Ops.RunMeasurable.