Exact Lean source
Nonadditivity.Probability
Download original .lean · View on GitHub · Jump to source
Direct imports
Mathlib.MeasureTheory.Integral.Bochner.BasicdependencyMathlib.Tactic.Linarithdependency
Imported by project modules
3 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
Full module
1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Mathlib.MeasureTheory.Integral.Bochner.Basic7import Mathlib.Tactic.Linarith89/-!10# Extracting a realization from the expectation estimate1112The random-matrix expectation estimate is an explicit hypothesis. The13existence and positive probability of a favorable realization are proved14using the actual measure-theoretic integral on a probability space.15-/1617noncomputable section1819namespace Nonadditivity.Probability2021open MeasureTheory Filter2223variable {Ω : Type*} [MeasurableSpace Ω] {μ : Measure Ω} [IsProbabilityMeasure μ]2425theorem positive_measure_sublevel {f : Ω → ℝ} (hf : Integrable f μ) {c : ℝ}26(hmean : (∫ ω, f ω ∂μ) < c) : 0 < μ {ω | f ω ≤ c} := by27apply pos_iff_ne_zero.mpr28intro hzero29have hae : ∀ᵐ ω ∂μ, c ≤ f ω := by30have hnot : ∀ᵐ ω ∂μ, ¬ f ω ≤ c := by31rw [ae_iff]32simpa using hzero33filter_upwards [hnot] with ω hω34exact (lt_of_not_ge hω).le35have h := integral_mono_ae (integrable_const c) hf hae36have hconst : (∫ _ : Ω, c ∂μ) = c := by simp37rw [hconst] at h38exact (not_le_of_gt hmean) h3940/-- The existence step following (En-bound). It does not postulate a good41sample, and does not need an a priori finite sample space. -/42theorem favorable_realization {f : Ω → ℝ} (hf : Integrable f μ)43{ε ρ : ℝ} (hε : 0 < ε) (hρ : 0 < ρ)44(hmean : (∫ ω, f ω ∂μ) ≤ (1 + ε / 2) * ρ) :45∃ ω, f ω ≤ (1 + ε) * ρ := by46have hlt : (∫ ω, f ω ∂μ) < (1 + ε) * ρ := by nlinarith47have hmeasure := positive_measure_sublevel hf hlt48have hnonempty : ({ω | f ω ≤ (1 + ε) * ρ} : Set Ω).Nonempty := by49by_contra hempty50have hz : ({ω | f ω ≤ (1 + ε) * ρ} : Set Ω) = ∅ :=51Set.not_nonempty_iff_eq_empty.mp hempty52rw [hz, measure_empty] at hmeasure53exact (lt_irrefl _) hmeasure54exact hnonempty5556end Nonadditivity.Probability