An integrable random variable bounded above by one and of mean one equals one almost surely
ProvedKyprianou.Ch01.aeEqOneOfIntegrableLeOneMeanOneV1almost-sureintegralkyprianou-ch01probabilityzero-boundary-repair
For a real integrable random variable on a probability space bounded above by one almost everywhere, expectation equal to one forces the variable to equal one almost surely. Subtract from the constant-one function, apply integrable subtraction, integral of the constant one, and Mathlib integral_eq_zero_iff_of_nonneg_ae to the nonnegative deficit.
Preamble
import Mathlib open MeasureTheory Filter open scoped NNReal ENNReal set_option autoImplicit false
Formal statement
theorem Kyprianou.Ch01.aeEqOneOfIntegrableLeOneMeanOneV1
{Ω : Type*} [MeasurableSpace Ω]
(P : Measure Ω) [IsProbabilityMeasure P]
(f : Ω → ℝ)
(hf : Integrable f P)
(hfLe : ∀ᵐ ω ∂P, f ω ≤ 1)
(hMean : (∫ ω, f ω ∂P) = 1) :
∀ᵐ ω ∂P, f ω = 1 := by sorrySource
Nonnegative integrable deficit criterion and probability normalisation.