MindFormal v1.0.0One Mind

MindFormal.Chapters.Ch12.ReportMeans

theorem MindFormal.report_mean_bounds {Ω : Type u_1} [MeasurableSpace Ω] (μ : MeasureTheory.Measure Ω) [MeasureTheory.IsProbabilityMeasure μ] (Q : Ω → ℝ) (hQi : MeasureTheory.Integrable Q μ) (hQ : ∀ (ω : Ω), Q ω ∈ Set.Icc 0 1) (good : Set Ω) (hm : MeasurableSet good) {ε low high : ℝ} (hmass : 1 - ε ≤ μ.real good) (hL : 0 ≤ low) (hU : high ≤ 1) (hgood : ∀ ω ∈ good, Q ω ∈ Set.Icc low high) :
(1 - ε) * low ≤ ∫ (ω : Ω), Q ω ∂μ ∧ ∫ (ω : Ω), Q ω ∂μ ≤ (1 - ε) * high + ε

Integrate the lower indicator, retaining bounded recordings on failure. The upper bound uses the complementary recording 1-Q on the same event.