lemmafinite_failure_product_le_exp (p : ℕ→ℝ) (hp1 : ∀ n, p n ≤1) (N : ℕ) :
(∏ n∈Finset.range N, ENNReal.ofReal (1-p n)) ≤ENNReal.ofReal (Real.exp (-(∑ n∈Finset.range N, p n))) :=by
proof · 7
lines
rw [←ENNReal.ofReal_prod_of_nonneg (fun n _ => sub_nonneg.mpr (hp1 n))]
apply ENNReal.ofReal_le_ofReal
calc
_ ≤∏ n∈Finset.range N, Real.exp (-p n) :=Finset.prod_le_prod₀ (fun n _ => sub_nonneg.mpr (hp1 n))
(fun n _ =>Real.one_sub_le_exp_neg (p n))
_ = _ :=by rw [←Real.exp_sum,Finset.sum_neg_distrib]
theoremadapted_successes_failure_exp_bound
{Ω : Type*} [mΩ : MeasurableSpace Ω] (P : Measure Ω) [IsProbabilityMeasureP]
(F : Filtrationℕ mΩ) (success : ℕ→Set Ω)
(hmeas : ∀ n, MeasurableSet[F (n+1)] (success n))
(p : ℕ→ℝ) (hp0 : ∀ n, 0≤ p n) (hp1 : ∀ n, p n ≤1)
(hstep : ∀ n (A : Set Ω), MeasurableSet[F n] A→ENNReal.ofReal (p n)*PA≤P (A∩success n))
(N : ℕ) :
P (⋂ n∈Finset.range N, (success n)ᶜ) ≤ENNReal.ofReal (Real.exp (-(∑ n∈Finset.range N, p n))) :=by
proof · 6
lines
have h := adapted_failures_product_bound PF (fun n => (success n)ᶜ)
(fun n => (hmeas n).compl) (fun n =>ENNReal.ofReal (1-p n))
(fun n A hA => complement_inter_bound_of_success_lower P
(F.le (n+1) _ (hmeas n)) (hp0 n) (hp1 n) (hstep n A hA)) N
rw [measure_univ,mul_one] at h
exact h.trans (finite_failure_product_le_exp p hp1 N)