NLA-lib Explorer

NLAlib.Ops.pos_of_run_of_straight

Library · theorem

A tree without tests and index binders advances the tape by its static window.

NLAlib.Ops.pos_of_run_of_straight {Op Tst K : Type} {I : Ops.Interp Op Tst K} {k : Op → List ℕ → ℕ}
  (hI : ∀ (o : Op), I.TapeLocal o (k o)) {τ : Ops.Tape K} {s : Ops.Stmt Op Tst} (hs : s.Straight)
  {ρ : Ops.Env} {m m' : Ops.Mem K} (h : Ops.eval I τ s ρ m = some m') :
  m'.pos = m.pos + Ops.staticWindow k s ρ.idx

Full source on GitHub

Import NLAlib.Ops.Tape.