Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.HaarMomentTail

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

Direct imports

  • Nonadditivity.HaarModel
  • Mathlib.MeasureTheory.Integral.Lebesgue.Markov dependency
  • Mathlib.Analysis.CStarAlgebra.Spectrum dependency

Imported by project modules

6 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

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

15 declarations

Full module

1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.HaarModel7import Mathlib.MeasureTheory.Integral.Lebesgue.Markov8import Mathlib.Analysis.CStarAlgebra.Spectrum910/-! # Actual trace moments control operator-norm upper tails1112The matrix norm throughout is the Euclidean operator norm. The moment is13the literal (unnormalized) matrix trace. These results prove the elementary14last step of the high-moment method; they do not supply the Haar high-moment15estimate, which remains the random-matrix input.16-/1718noncomputable section1920namespace Nonadditivity.HaarMomentTail2122open MeasureTheory Filter23open scoped Matrix Matrix.Norms.L2Operator Topology ENNReal2425set_option backward.isDefEq.respectTransparency false2627variable {ι : Type*} [Fintype ι] [DecidableEq ι]2829/-- The trace of any power, computed using the actual Hermitian spectral theorem. -/30theorem trace_pow_re_eq_sum (A : Matrix ι ι ℂ) (hA : A.IsHermitian) (q : ℕ) :31    (A ^ q).trace.re = ∑ i, hA.eigenvalues i ^ q := by32  let U := hA.eigenvectorUnitary33  let D := Matrix.diagonal (fun i => (hA.eigenvalues i : ℂ))34  have hs : A = Unitary.conjStarAlgAut ℂ _ U D := hA.spectral_theorem35  have ht : (A ^ q).trace = (D ^ q).trace := by36    rw [hs, ← map_pow, Unitary.conjStarAlgAut_apply, Matrix.trace_mul_cycle,37      Unitary.coe_star_mul_self, Matrix.one_mul]38  rw [ht]39  simp [D, Matrix.diagonal_pow, Matrix.trace_diagonal, ← Complex.ofReal_pow]4041/-- An even trace moment dominates the corresponding power of the actual42operator norm, without a dimension factor for the unnormalized trace. -/43theorem norm_pow_le_trace_even [Nonempty ι] (A : Matrix ι ι ℂ)44    (hA : A.IsHermitian) (p : ℕ) :45    ‖A‖ ^ (2 * p) ≤ (A ^ (2 * p)).trace.re := by46  classical47  letI : CStarAlgebra (Matrix ι ι ℂ) := { }48  let f : ι → ℂ := fun i => (hA.eigenvalues i : ℂ)49  have hn : ‖A‖ = ‖f‖ := by50    conv_lhs => rw [hA.spectral_theorem]51    rw [StarAlgEquiv.norm_map, Matrix.l2_opNorm_diagonal]52    rfl53  obtain ⟨i, _, hi⟩ := Finset.exists_max_image Finset.univ (fun i => ‖f i‖)54    Finset.univ_nonempty55  have hm : ‖f‖ = ‖f i‖ := le_antisymm56    ((pi_norm_le_iff_of_nonneg (norm_nonneg _)).mpr (fun j => hi j (Finset.mem_univ _)))57    (norm_le_pi_norm f i)58  rw [hn, hm, trace_pow_re_eq_sum A hA]59  have he : ‖f i‖ ^ (2 * p) = hA.eigenvalues i ^ (2 * p) := by60    simp only [f, Complex.norm_real, Real.norm_eq_abs, pow_mul, sq_abs]61  rw [he]62  exact Finset.single_le_sum (f := fun j => hA.eigenvalues j ^ (2 * p))63    (fun j _ => by dsimp; rw [pow_mul]; positivity) (Finset.mem_univ i)6465/-- Pointwise trace moments are nonnegative for every Hermitian matrix. -/66theorem trace_even_nonneg (A : Matrix ι ι ℂ) (hA : A.IsHermitian) (p : ℕ) :67    0 ≤ (A ^ (2 * p)).trace.re := by68  rw [trace_pow_re_eq_sum A hA]69  exact Finset.sum_nonneg fun i _ => by rw [pow_mul]; positivity7071/-- Markov's inequality with the true matrix trace moment. The probability72law is arbitrary, so this applies in particular to the canonical Haar law. -/73theorem measure_norm_ge_le_trace_moment [Nonempty ι]74    {Ω : Type*} [MeasurableSpace Ω] (μ : Measure Ω)75    (X : Ω → Matrix ι ι ℂ) (hX : ∀ ω, (X ω).IsHermitian)76    (hmeas : Measurable (fun ω => ‖X ω‖)) (p : ℕ) {t : ℝ} (ht : 0 < t) :77    μ {ω | t ≤ ‖X ω‖} ≤78      (∫⁻ ω, ENNReal.ofReal ((X ω ^ (2 * p)).trace.re) ∂μ) /79        ENNReal.ofReal t ^ (2 * p) := by80  have hsubset : {ω | t ≤ ‖X ω‖} ⊆81      {ω | ENNReal.ofReal t ^ (2 * p) ≤ ENNReal.ofReal ‖X ω‖ ^ (2 * p)} := by82    intro ω hω83    exact pow_le_pow_left' (ENNReal.ofReal_le_ofReal hω) _84  calc85    μ {ω | t ≤ ‖X ω‖} ≤86        μ {ω | ENNReal.ofReal t ^ (2 * p) ≤ ENNReal.ofReal ‖X ω‖ ^ (2 * p)} :=87      measure_mono hsubset88    _ ≤ (∫⁻ ω, ENNReal.ofReal ‖X ω‖ ^ (2 * p) ∂μ) /89        ENNReal.ofReal t ^ (2 * p) :=90      meas_ge_le_lintegral_div (hmeas.ennreal_ofReal.pow_const _).aemeasurable91        (pow_ne_zero _ (ne_of_gt (ENNReal.ofReal_pos.mpr ht)))92        (ENNReal.pow_ne_top ENNReal.ofReal_ne_top)93    _ ≤ _ := by94      gcongr with ω95      rw [← ENNReal.ofReal_pow (norm_nonneg _)]96      exact ENNReal.ofReal_le_ofReal (norm_pow_le_trace_even (X ω) (hX ω) p)9798/-- Normalized trace version, displaying the dimension cost in the high99moment method. This is the actual cardinality of the matrix index type. -/100theorem measure_norm_ge_le_normalized_trace_moment [Nonempty ι]101    {Ω : Type*} [MeasurableSpace Ω] (μ : Measure Ω)102    (X : Ω → Matrix ι ι ℂ) (hX : ∀ ω, (X ω).IsHermitian)103    (hmeas : Measurable (fun ω => ‖X ω‖)) (p : ℕ) {t : ℝ} (ht : 0 < t) :104    μ {ω | t ≤ ‖X ω‖} ≤105      (Fintype.card ι : ℝ≥0∞) *106        (∫⁻ ω, ENNReal.ofReal ((X ω ^ (2 * p)).trace.re / Fintype.card ι) ∂μ) /107        ENNReal.ofReal t ^ (2 * p) := by108  have hd : (Fintype.card ι : ℝ) ≠ 0 := by109    exact_mod_cast Fintype.card_ne_zero110  have he (ω : Ω) : ENNReal.ofReal ((X ω ^ (2 * p)).trace.re) =111      (Fintype.card ι : ℝ≥0∞) *112        ENNReal.ofReal ((X ω ^ (2 * p)).trace.re / Fintype.card ι) := by113    rw [← ENNReal.ofReal_natCast, ← ENNReal.ofReal_mul (by positivity)]114    congr 1115    field_simp116  have hb := measure_norm_ge_le_trace_moment μ X hX hmeas p ht117  simp_rw [he] at hb118  rwa [lintegral_const_mul' _ _ (ENNReal.natCast_ne_top _)] at hb119120/-- A varying moment order is permitted. A proved vanishing trace-moment121ratio supplies the required one-sided operator-norm convergence. -/122theorem upper_tail_tendsto_zero_of_trace_moments123    {Ω : ℕ → Type*} {ι : ℕ → Type*}124    [∀ N, MeasurableSpace (Ω N)] [∀ N, Fintype (ι N)]125    [∀ N, DecidableEq (ι N)] [∀ N, Nonempty (ι N)]126    (μ : ∀ N, Measure (Ω N)) (X : ∀ N, Ω N → Matrix (ι N) (ι N) ℂ)127    (hX : ∀ N ω, (X N ω).IsHermitian)128    (hmeas : ∀ N, Measurable (fun ω => ‖X N ω‖)) (p : ℕ → ℕ)129    {t : ℝ} (ht : 0 < t)130    (hmoment : Tendsto131      (fun N => (∫⁻ ω, ENNReal.ofReal ((X N ω ^ (2 * p N)).trace.re) ∂μ N) /132        ENNReal.ofReal t ^ (2 * p N)) atTop (nhds 0)) :133    Tendsto (fun N => μ N {ω | t ≤ ‖X N ω‖}) atTop (nhds 0) := by134  exact tendsto_of_tendsto_of_tendsto_of_le_of_le tendsto_const_nhds hmoment135    (fun _ => bot_le) (fun N => measure_norm_ge_le_trace_moment136      (μ N) (X N) (hX N) (hmeas N) (p N) ht)137138/-- Canonical independent Haar specialization. All measurability and139Hermitian-preservation obligations are discharged for the actual channel140adjoint. Only the asymptotic high-trace estimate is a premise. -/141theorem canonical_upper_tail_of_trace_moments142    {K : ℕ} [NeZero K] (n : ℕ)143    (A : Matrix (ZMod (K ^ n)) (ZMod (K ^ n)) ℂ) (hA : A.IsHermitian)144    (p : ℕ → ℕ) {t : ℝ} (ht : 0 < t)145    (hmoment : Tendsto (fun N =>146      (∫⁻ ω, ENNReal.ofReal147        ((((BlockConstruction.blockChannel (HaarModel.sampleUnitary K n N ω) n).adjointMap A)148          ^ (2 * p N)).trace.re) ∂HaarModel.sampleMeasure K n N) /149          ENNReal.ofReal t ^ (2 * p N)) atTop (nhds 0)) :150    Tendsto (fun N => HaarModel.sampleMeasure K n N {ω | t ≤151      ‖(BlockConstruction.blockChannel (HaarModel.sampleUnitary K n N ω) n).adjointMap A‖})152      atTop (nhds 0) := by153  apply upper_tail_tendsto_zero_of_trace_moments154    (fun N => HaarModel.sampleMeasure K n N)155    (fun N ω => (BlockConstruction.blockChannel156      (HaarModel.sampleUnitary K n N ω) n).adjointMap A)157    (fun N ω => Channels.KrausChannel.adjointMap_isHermitian _ A hA)158    (fun N => HaarModel.measurable_blockAdjoint_norm n N A) p ht hmoment159160end Nonadditivity.HaarMomentTail