NLA-lib Explorer

NLAlib.Ops.writes_ite_holds

Library · theorem

Branch, in the form of a liberal proof: the test is evaluated under md.Holds (a liberal proof does not have to show that it succeeds).

NLAlib.Ops.writes_ite_holds {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} {F : Ops.Fp} {P : Ops.Mem K → Prop}
  (h :
    md.Holds (I.testAt q ds ins ρ m) fun c ↦
      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.