NLAlib.Ops.PStep.bind_test
Library · theorem
Branch on a measurable test that succeeds from every memory of the precondition: the failure bound is the larger of the two.
NLAlib.Ops.PStep.bind_test {K : Type} [Inhabited K] [MeasurableSpace K] {law : ℕ → Measure K}
{Pre : Ops.Mem K → Prop} {Q : Ops.Mem K → Ops.Mem K → Prop} {T : Ops.Mem K → Option Bool}
(hT₁ : Measurable fun m ↦ (T m).isSome) (hT₂ : Measurable fun m ↦ (T m).getD false)
{F : Bool → Ops.Tape K → Ops.Mem K → Option (Ops.Mem K)} {φ : Bool → ℝ}
(htest : ∀ (m : Ops.Mem K), Pre m → ∃ b, T m = some b)
(hF : ∀ (b : Bool), Ops.PStep law (F b) (fun m ↦ Pre m ∧ T m = some b) Q (φ b)) :
Ops.PStep law (fun τ m ↦ (T m).bind fun b ↦ F b τ m) Pre Q (max (φ true) (φ false))Import NLAlib.Ops.Logic.Probabilistic.