NLA-lib Explorer

NLAlib.Ops.Store.readBlock_succ

Library · theorem

NLAlib.Ops.Store.readBlock_succ {K : Type} (s : Ops.Store K) (b off n : ℕ) :
  s.readBlock b off (n + 1) =
    (s.get b off).bind fun x ↦ Option.map (fun xs ↦ x :: xs) (s.readBlock b (off + 1) n)

Full source on GitHub

Import NLAlib.Ops.Store.