Exact Lean source
Nonadditivity.BlockScalars
Download original .lean · View on GitHub · Jump to source
Direct imports
Nonadditivity.NetMathlib.Analysis.SpecialFunctions.Log.BasicdependencyMathlib.Analysis.Complex.ExponentialBoundsdependency
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
Nonadditivity.BlockScalars.amplificationNonadditivity.BlockScalars.amplification._proof_1internal/detail/privateNonadditivity.BlockScalars.amplification.eq_1internal/detail/privateNonadditivity.BlockScalars.amplification_gt_oneNonadditivity.BlockScalars.amplification_logNonadditivity.BlockScalars.amplification_times_constant_posNonadditivity.BlockScalars.capacity_gap_of_converted_boundsNonadditivity.BlockScalars.gapCoefficientNonadditivity.BlockScalars.gapCoefficient._proof_1internal/detail/privateNonadditivity.BlockScalars.gap_of_converted_boundsNonadditivity.BlockScalars.log_output_dimensionNonadditivity.BlockScalars.log_purity_factor_leNonadditivity.BlockScalars.log_purity_factor_le_etaNonadditivity.BlockScalars.two_use_entropy_cancellation
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 ≤ κ) :24Real.log (1 + (K : ℝ) ^ n * (κ * collinsYounConstant K n) ^ 2) ≤25(n : ℝ) * Real.log (1 + 9 / (K : ℝ)) + 2 * Real.log κ := by26have hKreal : (2 : ℝ) ≤ K := by exact_mod_cast hK27have hKpos : (0 : ℝ) < K := by linarith28have hκpos : 0 < κ := by linarith29have hleft : 0 < 1 + (K : ℝ) ^ n * (κ * collinsYounConstant K n) ^ 2 := by positivity30have hb : 0 < 1 + 9 / (K : ℝ) := by positivity31have hp := collinsYoun_purity_factor_le (n := n) hK hκ32have hl := Real.log_le_log hleft hp33rw [Real.log_mul (pow_ne_zero _ hκpos.ne') (pow_ne_zero _ hb.ne'),34Real.log_pow, Real.log_pow] at hl35norm_num at hl36linarith3738def amplification (η : ℝ) : ℝ := Real.exp (η / 2)3940theorem amplification_gt_one {η : ℝ} (hη : 0 < η) : 1 < amplification η := by41dsimp [amplification]42exact Real.one_lt_exp_iff.mpr (by linarith)4344theorem amplification_log (η : ℝ) : 2 * Real.log (amplification η) = η := by45rw [amplification, Real.log_exp]46ring4748theorem amplification_times_constant_pos {K n : ℕ} {η : ℝ}49(hK : 2 ≤ K) (hn : 1 ≤ n) :500 < amplification η * collinsYounConstant K n :=51mul_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 < η) :57Real.log (1 + (K : ℝ) ^ n *58(amplification η * collinsYounConstant K n) ^ 2) ≤59(n : ℝ) * Real.log (1 + 9 / (K : ℝ)) + η := by60have hh := log_purity_factor_le (n := n) hK (amplification_gt_one hη).le61rw [amplification_log] at hh62exact hh6364theorem log_output_dimension {K n : ℕ} :65Real.log ((K ^ n : ℕ) : ℝ) = (n : ℝ) * Real.log (K : ℝ) := by66rw [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 : ℕ) :712 * Real.log ((K ^ n : ℕ) : ℝ) -72(n : ℝ) * (2 * Real.log (K : ℝ) - Real.log (K : ℝ) / K) =73(n : ℝ) * Real.log (K : ℝ) / K := by74rw [log_output_dimension]75ring7677def gapCoefficient (K : ℕ) : ℝ :=78Real.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 * χ₁ := by85have he : (n : ℝ) * gapCoefficient K - 2 * η =86(n : ℝ) * Real.log (K : ℝ) / K -872 * ((n : ℝ) * Real.log (1 + 9 / (K : ℝ)) + η) := by88dsimp [gapCoefficient]89ring90rw [he]91linarith9293theorem 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 - χ₁ := by98have he : (n : ℝ) * gapCoefficient K / 2 - η =99((n : ℝ) * Real.log (K : ℝ) / K) / 2 -100((n : ℝ) * Real.log (1 + 9 / (K : ℝ)) + η) := by101dsimp [gapCoefficient]102ring103rw [he]104linarith105106end Nonadditivity.BlockScalars