Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.HaarInputScaling

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

Catalog entries: Gap scaling with input and output qubits

Direct imports

Imported by project modules

1 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

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

9 declarations

Full module

1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.HaarPrescribedScaling78/-! # Matching square-root input-qubit scaling of the actual Holevo gap -/9noncomputable section10namespace Nonadditivity.HaarPrescribedDimension11open Filter Topology ActualConsequences1213def inputLeading (K : ℕ) : ℝ := Quantitative.dimensionExponent (Real.log K)/Real.log 21415theorem inputLeading_pos {K : ℕ} (hK : 2≤K) : 0 < inputLeading K := by16  have hl : 0≤Real.log (K:ℝ) := Real.log_nonneg (by exact_mod_cast (show 1≤K by omega))17  unfold inputLeading Quantitative.dimensionExponent18  positivity1920theorem prescribed_input_div_sq_tendsto {K : ℕ} (hK : 2≤K) :21    Tendsto (fun n : ℕ => Scalar.log2 (Fintype.card (prescribedFamily hK n).Input)/(n:ℝ)^2)22      atTop (𝓝 (inputLeading K)) := by23  have hi : Tendsto (fun n : ℕ => (n:ℝ)⁻¹) atTop (𝓝 0) :=24    tendsto_inv_atTop_zero.comp tendsto_natCast_atTop_atTop25  have he := (prescribedFamily_input_size_remainder_tendsto hK).mul (hi.pow 2)26  have hh := (((tendsto_const_nhds : Tendsto (fun _ : ℕ => inputLeading K)27    atTop (𝓝 (inputLeading K))).add (hi.const_mul (2*Scalar.log2 K))).add28      (hi.pow 2)).add he29  simp only [mul_zero,add_zero,zero_pow (by decide : 2≠0)] at hh30  apply hh.congr'31  filter_upwards [eventually_ge_atTop 1] with n hn32  have hn0 : (n:ℝ)≠0 := by exact_mod_cast (show n≠0 by omega)33  unfold inputLeading34  field_simp35  ring3637theorem prescribed_sqrt_input_div_tendsto {K : ℕ} (hK : 2≤K) :38    Tendsto (fun n : ℕ => Real.sqrt (Scalar.log2 (Fintype.card (prescribedFamily hK n).Input))/(n:ℝ))39      atTop (𝓝 (Real.sqrt (inputLeading K))) := by40  apply (prescribed_input_div_sq_tendsto hK).sqrt.congr'41  filter_upwards [eventually_ge_atTop 1] with n hn42  rw [Real.sqrt_div' _ (sq_nonneg _), Real.sqrt_sq_eq_abs,abs_of_nonneg (Nat.cast_nonneg n)]4344/-- The stated Θ(sqrt(input qubits)) gap with positive explicit comparison45constants and the actual channel dimension inside the square root. -/46theorem prescribed_gap_sqrt_input_bounds {K : ℕ} (hK : 2≤K)47    (hδ : 0<Scalar.deltaK K) :48    ∃ c C : ℝ, 0<c ∧ 0<C ∧ ∀ᶠ n : ℕ in atTop,49      c*Real.sqrt (Scalar.log2 (Fintype.card (prescribedFamily hK n).Input)) ≤50        (prescribedFamily hK n).gap ∧51      (prescribedFamily hK n).gap ≤52        C*Real.sqrt (Scalar.log2 (Fintype.card (prescribedFamily hK n).Input)) := by53  let s := Real.sqrt (inputLeading K)54  have hs : 0<s := Real.sqrt_pos.mpr (inputLeading_pos hK)55  have hlog : 0<Scalar.log2 K := lt_of_lt_of_le (by norm_num : (0:ℝ)<1) (log2_ge_one hK)56  refine ⟨Scalar.deltaK K/(4*s),4*Scalar.log2 K/s,by positivity,by positivity,?_⟩57  have hl := (prescribed_sqrt_input_div_tendsto hK).eventually58    (lt_mem_nhds (show s/2<s by linarith))59  have hu := (prescribed_sqrt_input_div_tendsto hK).eventually60    (gt_mem_nhds (show s<2*s by linarith))61  filter_upwards [hl,hu,prescribedFamily_gap_linear_bounds hK hδ,eventually_ge_atTop 1]62    with n hnlo hnhi hg hn63  have hnR : (0:ℝ)<n := by exact_mod_cast (show 0<n by omega)64  have hlo := (lt_div_iff₀ hnR).mp hnlo65  have hhi := (div_lt_iff₀ hnR).mp hnhi66  constructor67  · rw [div_mul_eq_mul_div]68    apply (div_le_iff₀ (by positivity : 0<4*s)).269    nlinarith [mul_le_mul_of_nonneg_left hhi.le hδ.le,70      mul_le_mul_of_nonneg_left hg.1 hs.le]71  · rw [div_mul_eq_mul_div]72    apply (le_div_iff₀ hs).273    nlinarith [mul_le_mul_of_nonneg_left hlo.le hlog.le,74      mul_le_mul_of_nonneg_left hg.2 hs.le]7576end Nonadditivity.HaarPrescribedDimension