Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.Probability

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

Direct imports

  • Mathlib.MeasureTheory.Integral.Bochner.Basic dependency
  • Mathlib.Tactic.Linarith dependency

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} := by27  apply pos_iff_ne_zero.mpr28  intro hzero29  have hae : ∀ᵐ ω ∂μ, c ≤ f ω := by30    have hnot : ∀ᵐ ω ∂μ, ¬ f ω ≤ c := by31      rw [ae_iff]32      simpa using hzero33    filter_upwards [hnot] with ω hω34    exact (lt_of_not_ge hω).le35  have h := integral_mono_ae (integrable_const c) hf hae36  have hconst : (∫ _ : Ω, c ∂μ) = c := by simp37  rw [hconst] at h38  exact (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 + ε) * ρ := by46  have hlt : (∫ ω, f ω ∂μ) < (1 + ε) * ρ := by nlinarith47  have hmeasure := positive_measure_sublevel hf hlt48  have hnonempty : ({ω | f ω ≤ (1 + ε) * ρ} : Set Ω).Nonempty := by49    by_contra hempty50    have hz : ({ω | f ω ≤ (1 + ε) * ρ} : Set Ω) = ∅ :=51      Set.not_nonempty_iff_eq_empty.mp hempty52    rw [hz, measure_empty] at hmeasure53    exact (lt_irrefl _) hmeasure54  exact hnonempty5556end Nonadditivity.Probability