Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.ProbabilityQuantitative

Download original .lean · View on GitHub · Jump to source

Catalog entries: Explicit favorable-realization probability

Direct imports

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

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 + ε) * ρ} := by25  let c := (1 + ε) * ρ26  have hc : 0 < c := by dsimp [c]; positivity27  have hm := mul_meas_ge_le_integral_of_nonneg hnonneg hf c28  have hsub : μ.real {ω | c < f ω} ≤ μ.real {ω | c ≤ f ω} :=29    measureReal_mono (fun _ h => (show c < f _ from h).le)30  have ht : NullMeasurableSet {ω | c < f ω} μ :=31    hf.aemeasurable.nullMeasurable measurableSet_Ioi32  have hcomp := measureReal_compl₀ ht33  have hcomp' : μ.real {ω | f ω ≤ c} = 1 - μ.real {ω | c < f ω} := by34    simpa only [Set.compl_setOf, not_lt, probReal_univ] using hcomp35  change ε / (2 * (1 + ε)) ≤ μ.real {ω | f ω ≤ c}36  rw [hcomp']37  have hbad : c * μ.real {ω | c < f ω} ≤ (1 + ε / 2) * ρ :=38    (mul_le_mul_of_nonneg_left hsub hc.le).trans (hm.trans hmean)39  apply (div_le_iff₀ (by positivity : 0 < 2 * (1 + ε))).240  dsimp [c] at hbad41  nlinarith4243end Nonadditivity.Probability