NLA-lib Explorer

NLAlib.Ops.Store.isSome_readBlock_iff

Library · theorem

A block is readable exactly when its cells are.

NLAlib.Ops.Store.isSome_readBlock_iff {K : Type} {s : Ops.Store K} {b off n : ℕ} :
  (s.readBlock b off n).isSome = true ↔ ∀ j < n, (s.get b (off + j)).isSome = true

Full source on GitHub

Import NLAlib.Ops.Frame.