NLA-lib Explorer

NLAlib.Ops.Store.getElem?_upd

Library · theorem

NLAlib.Ops.Store.getElem?_upd {K : Type} (s : Ops.Store K) (b i : ℕ) (v : K) (b' : ℕ) :
  (s.upd b i v)[b']? =
    if b = b' then Option.map (fun buf ↦ List.set buf i (some v)) s[b']? else s[b']?

Full source on GitHub

Import NLAlib.Ops.Store.