Exact Lean source
Nonadditivity.ProbabilityQuantitative
Download original .lean · View on GitHub · Jump to source
Catalog entries: Explicit favorable-realization probability
Direct imports
Nonadditivity.ProbabilityMathlib.MeasureTheory.Measure.RealdependencyMathlib.Tactic.FieldSimpdependency
Imported by project modules
2 direct reverse imports
Relationships above come from literal import commands. The declarations below link to types and references extracted from Lean’s environment. Source text is complete and unchanged.
Declarations in this module
2 project constants, including generated, internal and private declarations.
2 declarations
Nonadditivity.Probability.favorable_realization_probabilityNonadditivity.Probability.favorable_realization_probability._simp_1_2internal/detail/private
Full module
1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.Probability7import Mathlib.MeasureTheory.Measure.Real8import Mathlib.Tactic.FieldSimp910/-! # The explicit probability of a favorable realization -/1112noncomputable section13namespace Nonadditivity.Probability14open MeasureTheory Filter1516variable {Ω : Type*} [MeasurableSpace Ω] {μ : Measure Ω} [IsProbabilityMeasure μ]1718/-- The exact probability fraction used after the manuscript's expectation19bound. Nonnegativity is satisfied by the actual random operator norm. -/20theorem favorable_realization_probability {f : Ω → ℝ}21(hf : Integrable f μ) (hnonneg : 0 ≤ᵐ[μ] f)22{ε ρ : ℝ} (hε : 0 < ε) (hρ : 0 < ρ)23(hmean : (∫ ω, f ω ∂μ) ≤ (1 + ε / 2) * ρ) :24ε / (2 * (1 + ε)) ≤ μ.real {ω | f ω ≤ (1 + ε) * ρ} := by25let c := (1 + ε) * ρ26have hc : 0 < c := by dsimp [c]; positivity27have hm := mul_meas_ge_le_integral_of_nonneg hnonneg hf c28have hsub : μ.real {ω | c < f ω} ≤ μ.real {ω | c ≤ f ω} :=29measureReal_mono (fun _ h => (show c < f _ from h).le)30have ht : NullMeasurableSet {ω | c < f ω} μ :=31hf.aemeasurable.nullMeasurable measurableSet_Ioi32have hcomp := measureReal_compl₀ ht33have hcomp' : μ.real {ω | f ω ≤ c} = 1 - μ.real {ω | c < f ω} := by34simpa only [Set.compl_setOf, not_lt, probReal_univ] using hcomp35change ε / (2 * (1 + ε)) ≤ μ.real {ω | f ω ≤ c}36rw [hcomp']37have hbad : c * μ.real {ω | c < f ω} ≤ (1 + ε / 2) * ρ :=38(mul_le_mul_of_nonneg_left hsub hc.le).trans (hm.trans hmean)39apply (div_le_iff₀ (by positivity : 0 < 2 * (1 + ε))).240dsimp [c] at hbad41nlinarith4243end Nonadditivity.Probability