Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.BlockScalars

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

Direct imports

  • Nonadditivity.Net
  • Mathlib.Analysis.SpecialFunctions.Log.Basic dependency
  • Mathlib.Analysis.Complex.ExponentialBounds 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

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

14 declarations

Full module

1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.Net7import Mathlib.Analysis.SpecialFunctions.Log.Basic8import Mathlib.Analysis.Complex.ExponentialBounds910/-!11# Scalar consequences of the actual block norm certificate1213These lemmas insert the exact Collins--Youn constant and output dimension14into the channel entropy bounds.  Entropies here use natural logarithms.15The tolerance can be chosen arbitrarily small using `κ = exp (η/2)`.16-/1718noncomputable section1920namespace Nonadditivity.BlockScalars2122/-- The exact logarithmic loss after inserting `c_n²`. -/23theorem log_purity_factor_le {K n : ℕ} {κ : ℝ} (hK : 2 ≤ K) (hκ : 1 ≤ κ) :24    Real.log (1 + (K : ℝ) ^ n * (κ * collinsYounConstant K n) ^ 2) ≤25      (n : ℝ) * Real.log (1 + 9 / (K : ℝ)) + 2 * Real.log κ := by26  have hKreal : (2 : ℝ) ≤ K := by exact_mod_cast hK27  have hKpos : (0 : ℝ) < K := by linarith28  have hκpos : 0 < κ := by linarith29  have hleft : 0 < 1 + (K : ℝ) ^ n * (κ * collinsYounConstant K n) ^ 2 := by positivity30  have hb : 0 < 1 + 9 / (K : ℝ) := by positivity31  have hp := collinsYoun_purity_factor_le (n := n) hK hκ32  have hl := Real.log_le_log hleft hp33  rw [Real.log_mul (pow_ne_zero _ hκpos.ne') (pow_ne_zero _ hb.ne'),34    Real.log_pow, Real.log_pow] at hl35  norm_num at hl36  linarith3738def amplification (η : ℝ) : ℝ := Real.exp (η / 2)3940theorem amplification_gt_one {η : ℝ} (hη : 0 < η) : 1 < amplification η := by41  dsimp [amplification]42  exact Real.one_lt_exp_iff.mpr (by linarith)4344theorem amplification_log (η : ℝ) : 2 * Real.log (amplification η) = η := by45  rw [amplification, Real.log_exp]46  ring4748theorem amplification_times_constant_pos {K n : ℕ} {η : ℝ}49    (hK : 2 ≤ K) (hn : 1 ≤ n) :50    0 < amplification η * collinsYounConstant K n :=51  mul_pos (Real.exp_pos _) (collinsYounConstant_pos hK hn)5253/-- Arbitrarily small additive entropy loss from an arbitrarily accurate54finite-dimensional norm approximation. -/55theorem log_purity_factor_le_eta {K n : ℕ} {η : ℝ}56    (hK : 2 ≤ K) (hη : 0 < η) :57    Real.log (1 + (K : ℝ) ^ n *58      (amplification η * collinsYounConstant K n) ^ 2) ≤59      (n : ℝ) * Real.log (1 + 9 / (K : ℝ)) + η := by60  have hh := log_purity_factor_le (n := n) hK (amplification_gt_one hη).le61  rw [amplification_log] at hh62  exact hh6364theorem log_output_dimension {K n : ℕ} :65    Real.log ((K ^ n : ℕ) : ℝ) = (n : ℝ) * Real.log (K : ℝ) := by66  rw [Nat.cast_pow, Real.log_pow]6768/-- Exact cancellation of the two-copy output dimension with the Bell entropy69upper bound; no asymptotic remainder is introduced. -/70theorem two_use_entropy_cancellation (K n : ℕ) :71    2 * Real.log ((K ^ n : ℕ) : ℝ) -72      (n : ℝ) * (2 * Real.log (K : ℝ) - Real.log (K : ℝ) / K) =73        (n : ℝ) * Real.log (K : ℝ) / K := by74  rw [log_output_dimension]75  ring7677def gapCoefficient (K : ℕ) : ℝ :=78  Real.log (K : ℝ) / K - 2 * Real.log (1 + 9 / (K : ℝ))7980/-- The Holevo gap after discharging the actual dimension and purity scalars. -/81theorem gap_of_converted_bounds {K n : ℕ} {χ₁ χ₂ η : ℝ}82    (hχ₁ : χ₁ ≤ (n : ℝ) * Real.log (1 + 9 / (K : ℝ)) + η)83    (hχ₂ : (n : ℝ) * Real.log (K : ℝ) / K ≤ χ₂) :84    (n : ℝ) * gapCoefficient K - 2 * η ≤ χ₂ - 2 * χ₁ := by85  have he : (n : ℝ) * gapCoefficient K - 2 * η =86      (n : ℝ) * Real.log (K : ℝ) / K -87        2 * ((n : ℝ) * Real.log (1 + 9 / (K : ℝ)) + η) := by88    dsimp [gapCoefficient]89    ring90  rw [he]91  linarith9293theorem capacity_gap_of_converted_bounds {K n : ℕ} {χ₁ χ₂ C η : ℝ}94    (hχ₁ : χ₁ ≤ (n : ℝ) * Real.log (1 + 9 / (K : ℝ)) + η)95    (hχ₂ : (n : ℝ) * Real.log (K : ℝ) / K ≤ χ₂)96    (hC : χ₂ / 2 ≤ C) :97    (n : ℝ) * gapCoefficient K / 2 - η ≤ C - χ₁ := by98  have he : (n : ℝ) * gapCoefficient K / 2 - η =99      ((n : ℝ) * Real.log (K : ℝ) / K) / 2 -100        ((n : ℝ) * Real.log (1 + 9 / (K : ℝ)) + η) := by101    dsimp [gapCoefficient]102    ring103  rw [he]104  linarith105106end Nonadditivity.BlockScalars