Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.HaarMomentExpectation

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

Direct imports

  • Nonadditivity.HaarMomentTail
  • Mathlib.Analysis.Convex.Integral dependency
  • Mathlib.Analysis.Convex.Mul dependency
  • Mathlib.Analysis.Convex.SpecificFunctions.Pow dependency

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

8 project constants, including generated, internal and private declarations.

8 declarations

Full module

1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.HaarMomentTail7import Mathlib.Analysis.Convex.Integral8import Mathlib.Analysis.Convex.Mul9import Mathlib.Analysis.Convex.SpecificFunctions.Pow1011/-! # From probability moments to expected operator norms1213These are actual Bochner-integral inequalities. In particular, the power form14of Jensen's inequality permits Haar tensor replacement to be iterated before15taking a single root. No random-matrix estimate is assumed in this file.16-/1718noncomputable section1920namespace Nonadditivity.HaarMomentExpectation2122open MeasureTheory23open scoped Matrix Matrix.Norms.L2Operator Topology2425variable {Ω : Type*} [MeasurableSpace Ω] {μ : Measure Ω}26  [IsProbabilityMeasure μ]2728/-- Jensen for the natural power of a nonnegative random variable. -/29theorem integral_pow_le {f : Ω → ℝ} (p : ℕ)30    (hf0 : ∀ᵐ ω ∂μ, 0 ≤ f ω) (hf : Integrable f μ)31    (hfp : Integrable (fun ω => f ω ^ p) μ) :32    (∫ ω, f ω ∂μ) ^ p ≤ ∫ ω, f ω ^ p ∂μ := by33  exact (convexOn_pow p).map_integral_le (continuous_pow p).continuousOn34    isClosed_Ici hf0 hf hfp3536/-- A moment bound controls the first moment by its positive real root. -/37theorem integral_le_rpow_of_moment_le {f : Ω → ℝ} {p : ℕ} (hp : 0 < p)38    (hf0 : ∀ᵐ ω ∂μ, 0 ≤ f ω) (hf : Integrable f μ)39    (hfp : Integrable (fun ω => f ω ^ p) μ) {B : ℝ}40    (hB : (∫ ω, f ω ^ p ∂μ) ≤ B) :41    (∫ ω, f ω ∂μ) ≤ B ^ (1 / (p : ℝ)) := by42  have hi0 : 0 ≤ ∫ ω, f ω ∂μ := integral_nonneg_of_ae hf043  have hpow := (integral_pow_le p hf0 hf hfp).trans hB44  have hroot := Real.rpow_le_rpow (pow_nonneg hi0 p) hpow45    (show 0 ≤ (p : ℝ)⁻¹ by positivity)46  simpa only [one_div, Real.pow_rpow_inv_natCast hi0 hp.ne'] using hroot4748/-- Separate a deterministic norm factor from a moment multiplier. -/49theorem integral_le_mul_rpow_of_moment_le {f : Ω → ℝ} {p : ℕ} (hp : 0 < p)50    (hf0 : ∀ᵐ ω ∂μ, 0 ≤ f ω) (hf : Integrable f μ)51    (hfp : Integrable (fun ω => f ω ^ p) μ) {C R : ℝ}52    (hC : 0 ≤ C) (hR : 0 ≤ R)53    (hB : (∫ ω, f ω ^ p ∂μ) ≤ C * R ^ p) :54    (∫ ω, f ω ∂μ) ≤ R * C ^ (1 / (p : ℝ)) := by55  have h := integral_le_rpow_of_moment_le hp hf0 hf hfp hB56  rw [Real.mul_rpow hC (pow_nonneg hR p), one_div,57    Real.pow_rpow_inv_natCast hR hp.ne', mul_comm] at h58  simpa only [one_div] using h5960/-- The power form specialized to the norm of an arbitrary normed-space-valued61random variable; its first moment is the integral of the norm. -/62theorem integral_norm_pow_le {E : Type*} [NormedAddCommGroup E]63    {X : Ω → E} (p : ℕ) (hX : Integrable (fun ω => ‖X ω‖) μ)64    (hXp : Integrable (fun ω => ‖X ω‖ ^ p) μ) :65    (∫ ω, ‖X ω‖ ∂μ) ^ p ≤ ∫ ω, ‖X ω‖ ^ p ∂μ :=66  integral_pow_le p (Filter.Eventually.of_forall (fun ω => norm_nonneg (X ω))) hX hXp6768/-- Moment-to-expectation conversion for an actual operator or matrix norm. -/69theorem integral_norm_le_rpow_of_moment_le {E : Type*} [NormedAddCommGroup E]70    {X : Ω → E} {p : ℕ} (hp : 0 < p)71    (hX : Integrable (fun ω => ‖X ω‖) μ)72    (hXp : Integrable (fun ω => ‖X ω‖ ^ p) μ) {B : ℝ}73    (hB : (∫ ω, ‖X ω‖ ^ p ∂μ) ≤ B) :74    (∫ ω, ‖X ω‖ ∂μ) ≤ B ^ (1 / (p : ℝ)) :=75  integral_le_rpow_of_moment_le hp76    (Filter.Eventually.of_forall (fun ω => norm_nonneg (X ω))) hX hXp hB7778/-- Averaging a root only decreases it relative to the root of the average. -/79theorem integral_rpow_le {f : Ω → ℝ} {q : ℝ} (hq0 : 0 ≤ q) (hq1 : q ≤ 1)80    (hf0 : ∀ᵐ ω ∂μ, 0 ≤ f ω) (hf : Integrable f μ)81    (hfq : Integrable (fun ω => (f ω) ^ q) μ) :82    (∫ ω, (f ω) ^ q ∂μ) ≤ (∫ ω, f ω ∂μ) ^ q := by83  exact (Real.concaveOn_rpow hq0 hq1).le_map_integral84    (Real.continuous_rpow_const hq0).continuousOn isClosed_Ici hf0 hf hfq8586/-- A trace-moment estimate for genuine Hermitian matrices yields an expected87operator-norm estimate, including the actual finite matrix dimension. -/88theorem integral_norm_le_of_normalized_trace_moment_le89    {ι : Type*} [Fintype ι] [DecidableEq ι] [Nonempty ι]90    {X : Ω → Matrix ι ι ℂ} (hX : ∀ ω, (X ω).IsHermitian)91    {p : ℕ} (hp : 0 < p)92    (hXn : Integrable (fun ω => ‖X ω‖) μ)93    (hXp : Integrable (fun ω => ‖X ω‖ ^ (2 * p)) μ)94    (hXt : Integrable (fun ω => (X ω ^ (2 * p)).trace.re) μ)95    {B : ℝ}96    (hB : (∫ ω, (X ω ^ (2 * p)).trace.re / (Fintype.card ι : ℝ) ∂μ) ≤ B) :97    (∫ ω, ‖X ω‖ ∂μ) ≤ ((Fintype.card ι : ℝ) * B) ^ (1 / ((2 * p : ℕ) : ℝ)) := by98  have hc : 0 < (Fintype.card ι : ℝ) := by exact_mod_cast Fintype.card_pos99  have hm : (∫ ω, ‖X ω‖ ^ (2 * p) ∂μ) ≤100      ∫ ω, (X ω ^ (2 * p)).trace.re ∂μ := by101    exact integral_mono hXp hXt (fun ω =>102      HaarMomentTail.norm_pow_le_trace_even (X ω) (hX ω) p)103  have ht : (∫ ω, (X ω ^ (2 * p)).trace.re ∂μ) ≤104      (Fintype.card ι : ℝ) * B := by105    rw [integral_div] at hB106    exact (div_le_iff₀ hc).mp hB |>.trans_eq (mul_comm _ _)107  exact integral_norm_le_rpow_of_moment_le (by omega) hXn hXp (hm.trans ht)108109end Nonadditivity.HaarMomentExpectation