NLA-lib Explorer

NLAlib.Ops.Store.readBlock_append_left

Library · theorem

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

NLAlib.Ops.Store.readBlock_append_left {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 = some xs

Full source on GitHub

Import NLAlib.Ops.Store.