NLA-lib Explorer

NLAlib.Ops.Store.EqOff.peel

Library · theorem

Peeling a block off a footprint: a store that agrees with s off F and a block, and holds xs in the block, agrees with s.updBlock b off xs off F. Applied once per block that a run writes, it turns a frame and the blocks read back into an equation (NLAlib.Ops.Store.EqOff.eq_of_empty).

NLAlib.Ops.Store.EqOff.peel {K : Type} {F : ℕ → ℕ → Prop} {s s' : Ops.Store K} {b off n : ℕ}
  {xs : List K} (h : Ops.Store.EqOff (F ⊔ Ops.Store.inBlock b off n) s s')
  (hr : s'.readBlock b off n = some xs) : Ops.Store.EqOff F (s.updBlock b off xs) s'

Full source on GitHub

Import NLAlib.Ops.Frame.