NLAlib.Ops.PWrites.ite
Library · theorem
Branch: if the test succeeds from every memory of the precondition, the failure bound of the branch is the larger of the two.
NLAlib.Ops.PWrites.ite {Op Tst K : Type} [Inhabited K] [MeasurableSpace K] {law : ℕ → Measure K}
{I : Ops.Interp Op Tst K} {ρ : Ops.Env} {F : Ops.Fp} {Pre Post : Ops.Mem K → Prop}
(hI : I.IsMeasurable) {q : Tst} {ds : List Ops.IExp} {ins : List Ops.Operand}
{t e : Ops.Stmt Op Tst} {φ₁ φ₂ : ℝ}
(htest : ∀ (m : Ops.Mem K), Pre m → ∃ b, I.testAt q ds ins ρ m = some b)
(ht : Ops.PWrites law I t ρ F (fun m ↦ Pre m ∧ I.testAt q ds ins ρ m = some true) Post φ₁)
(he : Ops.PWrites law I e ρ F (fun m ↦ Pre m ∧ I.testAt q ds ins ρ m = some false) Post φ₂) :
Ops.PWrites law I (Ops.Stmt.ite q ds ins t e) ρ F Pre Post (max φ₁ φ₂)Import NLAlib.Ops.Logic.Probabilistic.