NLA-lib Explorer

NLAlib.Ops.Store.readBlock_append_right

Library · theorem

The tail of a stored list of words: if xs ++ ys is stored at offset off, then ys is stored at offset off + xs.length.

NLAlib.Ops.Store.readBlock_append_right {K : Type} {s : Ops.Store K} {b off : ℕ} {xs ys : List K}
  (h : s.readBlock b off (xs ++ ys).length = some (xs ++ ys)) :
  s.readBlock b (off + xs.length) ys.length = some ys

Full source on GitHub

Import NLAlib.Ops.Store.