NLA-lib Explorer

NLAlib.Ops.BlockFn.apply_draw_eq_some_iff

Library · theorem

A draw, on cells: the cell receives the tape entry at the position, which advances.

NLAlib.Ops.BlockFn.apply_draw_eq_some_iff {K : Type} {s : ℕ} {z : ℕ × ℕ} {τ : Ops.Tape K}
  {m m' : Ops.Mem K} :
  (Ops.BlockFn.draw s).apply [] [] [z] τ m = some m' ↔
    z.2 < m.store.len z.1 ∧ m' = (m.upd z (τ m.pos s)).advance 1

Full source on GitHub

Import NLAlib.Ops.Blocks.