NLA-lib Explorer

NLAlib.Ops.BlockFn.readBlocks_cell_cons

Library · theorem

Reading a list of cells: a cell after the others.

NLAlib.Ops.BlockFn.readBlocks_cell_cons {K : Type} (m : Ops.Mem K) (x : ℕ × ℕ) (as : List (ℕ × ℕ))
  (ns : List ℕ) :
  m.readBlocks (x :: as) (1 :: ns) =
    (m.store.get x.1 x.2).bind fun a ↦ Option.map (fun xs ↦ [a] :: xs) (m.readBlocks as ns)

Full source on GitHub

Import NLAlib.Ops.Blocks.