Documentation

CslibFrontier.Probability.PMF.TotalProbability

Total probability with two cases #

Split the outcomes of a random first stage p by a set pre. If the continuation kernel reaches event with probability at most a₁ from the supported outcomes in pre and at most a₂ from the other supported outcomes, then p.bind kernel reaches event with probability at most P(pre) * a₁ + P(preᶜ) * a₂. This refines toOuterMeasure_bind_failure_le, which bounds the second case by 1 and drops the factor P(pre). It is the step of an induction on a budget in which an outcome outside pre does not end the run but uses more of the budget, as when a search repeats a failed attempt.

Main results #

theorem Cslib.Probability.PMF.toOuterMeasure_bind_le_mul_add_mul {α : Type u_1} {β : Type u_2} (p : PMF α) (kernel : α → PMF β) (pre : Set α) (event : Set β) {a₁ a₂ : ENNReal} (hpre : ∀ a ∈ p.support, a ∈ pre → (kernel a).toOuterMeasure event ≤ a₁) (hnot : ∀ a ∈ p.support, a ∉ pre → (kernel a).toOuterMeasure event ≤ a₂) :
(p.bind kernel).toOuterMeasure event ≤ p.toOuterMeasure pre * a₁ + p.toOuterMeasure preᶜ * a₂

Total probability with two cases. If the continuation reaches event with probability at most a₁ after a supported outcome in pre and at most a₂ after any other supported outcome, then the bind reaches event with probability at most P(pre) * a₁ + P(preᶜ) * a₂.

theorem Cslib.Probability.PMF.toOuterMeasure_bind_toReal_le_mul_add_mul {α : Type u_1} {β : Type u_2} (p : PMF α) (kernel : α → PMF β) (pre : Set α) (event : Set β) {a₁ a₂ : ℝ} (h₁ : 0 ≤ a₁) (h₂ : 0 ≤ a₂) (hpre : ∀ a ∈ p.support, a ∈ pre → ((kernel a).toOuterMeasure event).toReal ≤ a₁) (hnot : ∀ a ∈ p.support, a ∉ pre → ((kernel a).toOuterMeasure event).toReal ≤ a₂) :
((p.bind kernel).toOuterMeasure event).toReal ≤ (p.toOuterMeasure pre).toReal * a₁ + (p.toOuterMeasure preᶜ).toReal * a₂

Total probability with two cases, in ℝ: if the continuation reaches event with probability at most a₁ ≥ 0 after a supported outcome in pre and at most a₂ ≥ 0 after any other supported outcome, then the bind reaches event with probability at most P(pre) * a₁ + P(preᶜ) * a₂.