NLA-lib Explorer

NLAlib.Ops.BlockFn.apply_of_read

Library · theorem

A call from the blocks that were read.

NLAlib.Ops.BlockFn.apply_of_read {K : Type} {f : Ops.BlockFn K} {d : List ℕ}
  {ins outs : List (ℕ × ℕ)} {τ : Ops.Tape K} {m : Ops.Mem K} {xs ys : List (List K)}
  (hnd : d.length = f.nd) (hl : m.Live (ins ++ outs))
  (hread : m.readBlocks ins (f.inLens d) = some xs)
  (hfn : f.fn d (τ.window f.stream m.pos (f.win d)) xs = some ys)
  (hlen : List.map List.length ys = f.outLens d) (hz : m.Room outs (f.outLens d)) :
  f.apply d ins outs τ m = some ((m.updBlocks outs ys).advance (f.win d))

Full source on GitHub

Import NLAlib.Ops.Blocks.