NLA-lib Explorer

NLAlib.Ops.Store.EqOff.isSome_readBlock

Library · theorem

A readable block stays readable in a store that agrees with s off a footprint, if the cells of the footprint in the block are readable in the new store. For an output block that a program writes only in part (the upper triangle of a factor).

NLAlib.Ops.Store.EqOff.isSome_readBlock {K : Type} {F : ℕ → ℕ → Prop} {s s' : Ops.Store K}
  (h : Ops.Store.EqOff F s s') {b off n : ℕ} (hr : (s.readBlock b off n).isSome = true)
  (hF : ∀ j < n, F b (off + j) → (s'.get b (off + j)).isSome = true) :
  (s'.readBlock b off n).isSome = true

Full source on GitHub

Import NLAlib.Ops.Frame.