NLA-lib Explorer

NLAlib.Ops.Store.readView_of_readBlock

Library · theorem

A view inside a block that is read: its block is the entries of the block at the cells of the view.

NLAlib.Ops.Store.readView_of_readBlock {K : Type} {s : Ops.Store K} {b off N : ℕ} {xs : List K}
  (h : s.readBlock b off N = some xs) {r : ℕ} {v : Ops.View} {ys : List K}
  (hlen : ys.length = v.cells)
  (hys : ∀ k < v.cells, r + v.offset k < N ∧ ys[k]? = xs[r + v.offset k]?) :
  s.readView b (off + r) v = some ys

Full source on GitHub

Import NLAlib.Ops.Logic.View.