NLA-lib Explorer

NLAlib.Ops.writes_ite

Library · theorem

Branch, on the Boolean of the test.

NLAlib.Ops.writes_ite {Op Tst K : Type} {md : Ops.Mode} {I : Ops.Interp Op Tst K} {τ : Ops.Tape K}
  {ρ : Ops.Env} {m : Ops.Mem K} {q : Tst} {ds : List Ops.IExp} {ins : List Ops.Operand}
  {t e : Ops.Stmt Op Tst} {d : List ℕ} {a : List (ℕ × ℕ)} {c : Bool} {F : Ops.Fp}
  {P : Ops.Mem K → Prop} (hd : Ops.IExp.evalList ρ.idx ds = some d)
  (ha : Ops.Operand.evalList ρ ins = some a) (hc : I.test q d a m = some c)
  (h : Ops.Writes md I τ (if c = true then t else e) ρ F P m) :
  Ops.Writes md I τ (Ops.Stmt.ite q ds ins t e) ρ F P m

Full source on GitHub

Import NLAlib.Ops.Logic.Writes.