NLA-lib Explorer

NLAlib.Ops.BackwardStep.ite

Library · theorem

The branch: if the test succeeds on the memories of S with an outcome c described by T c, and each arm is a backward step with error ε from S and the outcome of its arm, the branch is one.

NLAlib.Ops.BackwardStep.ite.{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} {ε : ℝ} {q : Tst} {ds : List Ops.IExp} {ins : List Ops.Operand}
  {t e : Ops.Stmt Op Tst} (T : Bool → α → Ops.Mem K → Prop)
  (htest : ∀ (a : α) (m : Ops.Mem K), S a m → md.Holds (I.testAt q ds ins ρ m) fun c ↦ T c a m)
  (ht : Ops.BackwardStep md I τ t ρ F R (fun a m ↦ S a m ∧ T true a m) S' ε)
  (he : Ops.BackwardStep md I τ e ρ F R (fun a m ↦ S a m ∧ T false a m) S' ε) :
  Ops.BackwardStep md I τ (Ops.Stmt.ite q ds ins t e) ρ F R S S' ε

Full source on GitHub

Import NLAlib.Ops.Logic.Backward.