NLA-lib Explorer

NLAlib.Ops.Mem.eq_updBlocks_of_eqOff

Library · theorem

The equation of a contract in operand form, from a frame and the blocks read back, for any number of output blocks (when two overlap, both read back the same cells, so the order of the writes does not matter). Generalises Store.EqOff.eq_updBlock₂; used once in NLAlib.Ops.Impl.satisfies_of_writes, so a certificate never rebuilds the equation by hand.

NLAlib.Ops.Mem.eq_updBlocks_of_eqOff {K : Type} {m m' : Ops.Mem K} {zs : List (ℕ × ℕ)} {ls : List ℕ}
  {ys : List (List K)} (h : Ops.Store.EqOff (Ops.Fp.blocks zs ls) m.store m'.store)
  (hr : m'.readBlocks zs ls = some ys) (hpos : m'.pos = m.pos) : m' = m.updBlocks zs ys

Full source on GitHub

Import NLAlib.Ops.Logic.Footprint.