NLA-lib Explorer

NLAlib.Ops.Store.EqOff.readBlock_of_inBlock

Library · theorem

A readable block stays readable after a write to a readable part of it: if the block [o, o + n) of buffer b is readable in s, and s' agrees with s off the block [o', o' + n') of the same buffer, which is readable in s', then [o, o + n) is readable in s'.

NLAlib.Ops.Store.EqOff.readBlock_of_inBlock {K : Type} {s s' : Ops.Store K} {b o n o' n' : ℕ}
  (h : Ops.Store.EqOff (Ops.Store.inBlock b o' n') s s') (hr : ∃ ys, s.readBlock b o n = some ys)
  (hr' : ∃ ys, s'.readBlock b o' n' = some ys) : ∃ ys, s'.readBlock b o n = some ys

Full source on GitHub

Import NLAlib.Ops.Frame.