NLA-lib Explorer

NLAlib.Ops.Store.le_len_of_readBlock

Library · theorem

A block that was read lies inside its buffer, unless it is empty.

NLAlib.Ops.Store.le_len_of_readBlock {K : Type} {s : Ops.Store K} {b off n : ℕ} {xs : List K}
  (h : s.readBlock b off n = some xs) (hn : 0 < n) : off + n ≤ s.len b

Full source on GitHub

Import NLAlib.Ops.Store.