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)
:
Integrate the lower indicator, retaining bounded recordings on failure. The upper bound uses the complementary recording 1-Q on the same event.