NLA-lib Explorer

NLAlib.Ops.Store.readView_eq_some_iff

Library · theorem

A view is read cell by cell.

NLAlib.Ops.Store.readView_eq_some_iff {K : Type} {s : Ops.Store K} {b off : ℕ} {v : Ops.View}
  {xs : List K} :
  s.readView b off v = some xs ↔
    xs.length = v.cells ∧ ∀ j < v.cells, s.get b (off + v.offset j) = xs[j]?

Full source on GitHub

Import NLAlib.Ops.Logic.View.