NLAlib.Ops.BlockFn.apply_eq_some_iff
Library · theorem
The effect of a block function, unfolded.
NLAlib.Ops.BlockFn.apply_eq_some_iff {K : Type} {f : Ops.BlockFn K} {d : List ℕ}
{ins outs : List (ℕ × ℕ)} {τ : Ops.Tape K} {m m' : Ops.Mem K} :
f.apply d ins outs τ m = some m' ↔
d.length = f.nd ∧
m.Live (ins ++ outs) ∧
∃ xs ys,
m.readBlocks ins (f.inLens d) = some xs ∧
f.fn d (τ.window f.stream m.pos (f.win d)) xs = some ys ∧
List.map List.length ys = f.outLens d ∧
m.Room outs (f.outLens d) ∧ m' = (m.updBlocks outs ys).advance (f.win d)Import NLAlib.Ops.Blocks.