NLA-lib Explorer

NLAlib.Ops.BackwardStep.in_frame

Library · theorem

A backward step through a frame: if the body is a backward step in the frame environment of the evaluated dimensions d and views a, and every memory of the precondition has the views a live, the framed call is the same backward step in the caller's environment.

NLAlib.Ops.BackwardStep.in_frame.{u_1} {Op Tst K : Type} {α : Type u_1} {md : Ops.Mode}
  {I : Ops.Interp Op Tst K} {τ : Ops.Tape K} {ρ : Ops.Env} {F : Ops.Fp} {R : ℝ → α → α → Prop}
  {S S' : α → Ops.Mem K → Prop} {ε : ℝ} {ds : List Ops.IExp} {args : List Ops.Operand}
  {body : Ops.Stmt Op Tst} {d : List ℕ} {a : List (ℕ × ℕ)}
  (h : Ops.BackwardStep md I τ body (Ops.Env.frame d a) F R S S' ε)
  (hd : Ops.IExp.evalList ρ.idx ds = some d) (ha : Ops.Operand.evalList ρ args = some a)
  (hl : ∀ (x : α) (m : Ops.Mem K), S x m → m.Live a) :
  Ops.BackwardStep md I τ (Ops.Stmt.frame ds args body) ρ F R S S' ε

Full source on GitHub

Import NLAlib.Ops.Logic.BackwardFrame.