Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.Asymptotics

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

Direct imports

  • Mathlib.Analysis.SpecialFunctions.Log.Basic dependency
  • Mathlib.Data.Real.Sqrt dependency
  • Mathlib.Algebra.Order.Floor.Semiring dependency
  • Mathlib.Tactic.Linarith dependency
  • Mathlib.Tactic.Ring dependency
  • Mathlib.Tactic.FieldSimp dependency
  • Mathlib.Tactic.Positivity dependency
  • Mathlib.Tactic.NormNum dependency

Imported by project modules

3 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

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

61 declarations

Full module

1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Mathlib.Analysis.SpecialFunctions.Log.Basic7import Mathlib.Data.Real.Sqrt8import Mathlib.Algebra.Order.Floor.Semiring9import Mathlib.Tactic.Linarith10import Mathlib.Tactic.Ring11import Mathlib.Tactic.FieldSimp12import Mathlib.Tactic.Positivity13import Mathlib.Tactic.NormNum1415/-!16# Asymptotic consequences of the numerical channel bounds1718The sequence `blockLength K = ⌈K / √(ln K)⌉₊` is the actual sequence in19Corollary 4 (vanishing Holevo information and diverging capacity).20The scalar limits below are unconditional theorems of real analysis.21The channel-specific conclusion takes the proved numerical bounds as explicit22hypotheses; it does not assert or axiomatize the random-channel construction.23-/2425namespace Nonadditivity.Asymptotics2627open Filter Topology2829noncomputable section3031/-- The exact integer block length in the separation corollary. -/32def blockLength (K : ℕ) : ℕ := ⌈(K : ℝ) / Real.sqrt (Real.log K)⌉₊3334/-- Upper bound for the single-use Holevo information, in bits. -/35def separationUpper (K : ℕ) : ℝ :=36  9 * (blockLength K : ℝ) / ((K : ℝ) * Real.log 2) + 1 / (K : ℝ)3738/-- Lower bound for half of the two-use Holevo information, in bits. -/39def separationLower (K : ℕ) : ℝ :=40  (blockLength K : ℝ) * Real.log K / (2 * (K : ℝ) * Real.log 2)4142lemma log_two_pos : 0 < Real.log (2 : ℝ) := Real.log_pos (by norm_num)4344lemma log_nat_pos {K : ℕ} (hK : 2 ≤ K) : 0 < Real.log (K : ℝ) := by45  apply Real.log_pos46  exact_mod_cast (show 1 < K by omega)4748lemma blockLength_pos {K : ℕ} (hK : 2 ≤ K) : 0 < blockLength K := by49  unfold blockLength50  apply Nat.ceil_pos.251  apply div_pos52  · exact_mod_cast (show 0 < K by omega)53  · exact Real.sqrt_pos.2 (log_nat_pos hK)5455/-- Rounding preserves enough growth to send the integer block length to56infinity; this simple bound avoids assuming any logarithmic rate estimate. -/57lemma sqrt_le_blockLength {K : ℕ} (hK : 2 ≤ K) :58    Real.sqrt K ≤ (blockLength K : ℝ) := by59  have hKpos : (0 : ℝ) < K := by exact_mod_cast (show 0 < K by omega)60  have hspos : 0 < Real.sqrt (Real.log K) := Real.sqrt_pos.2 (log_nat_pos hK)61  have hc := (div_le_iff₀ hspos).1 (Nat.le_ceil ((K : ℝ) / Real.sqrt (Real.log K)))62  have hs : Real.sqrt (Real.log K) ≤ Real.sqrt K :=63    Real.sqrt_le_sqrt (Real.log_le_self hKpos.le)64  have hm := mul_le_mul_of_nonneg_left hs (Nat.cast_nonneg (blockLength K) :65    (0 : ℝ) ≤ (blockLength K : ℝ))66  have hsq := Real.mul_self_sqrt hKpos.le67  have hsK := Real.sqrt_pos.2 hKpos68  apply (mul_le_mul_iff_left₀ hsK).169  calc70    Real.sqrt K * Real.sqrt K = (K : ℝ) := hsq71    _ ≤ (blockLength K : ℝ) * Real.sqrt (Real.log K) := hc72    _ ≤ (blockLength K : ℝ) * Real.sqrt K := hm7374lemma blockLength_tendsto_atTop : Tendsto blockLength atTop atTop := by75  apply (tendsto_natCast_atTop_iff (R := ℝ)).176  apply tendsto_atTop_mono' atTop _77    (Real.tendsto_sqrt_atTop.comp tendsto_natCast_atTop_atTop)78  filter_upwards [eventually_ge_atTop 2] with K hK79  exact sqrt_le_blockLength hK8081lemma blockLength_div_upper {K : ℕ} (hK : 2 ≤ K) :82    (blockLength K : ℝ) / K ≤83      1 / Real.sqrt (Real.log K) + 1 / (K : ℝ) := by84  have hKpos : (0 : ℝ) < K := by exact_mod_cast (show 0 < K by omega)85  have hspos : 0 < Real.sqrt (Real.log K) := Real.sqrt_pos.2 (log_nat_pos hK)86  have hc : (blockLength K : ℝ) ≤87      (K : ℝ) / Real.sqrt (Real.log K) + 1 :=88    (Nat.ceil_lt_add_one (div_nonneg (Nat.cast_nonneg K) (Real.sqrt_nonneg _))).le89  apply (div_le_iff₀ hKpos).290  convert hc using 191  field_simp9293lemma blockLength_div_lower {K : ℕ} (hK : 2 ≤ K) :94    1 / Real.sqrt (Real.log K) ≤ (blockLength K : ℝ) / K := by95  have hKpos : (0 : ℝ) < K := by exact_mod_cast (show 0 < K by omega)96  have hc := Nat.le_ceil ((K : ℝ) / Real.sqrt (Real.log K))97  apply (le_div_iff₀ hKpos).298  convert hc using 199  ring100101lemma log_sqrt_tendsto_atTop :102    Tendsto (fun K : ℕ => Real.sqrt (Real.log K)) atTop atTop :=103  Real.tendsto_sqrt_atTop.comp104    (Real.tendsto_log_atTop.comp tendsto_natCast_atTop_atTop)105106lemma blockLength_div_tendsto_zero :107    Tendsto (fun K : ℕ => (blockLength K : ℝ) / K) atTop (𝓝 0) := by108  have hs : Tendsto (fun K : ℕ => 1 / Real.sqrt (Real.log K)) atTop (𝓝 0) :=109    tendsto_const_nhds.div_atTop log_sqrt_tendsto_atTop110  have hn : Tendsto (fun K : ℕ => 1 / (K : ℝ)) atTop (𝓝 0) :=111    tendsto_const_nhds.div_atTop tendsto_natCast_atTop_atTop112  apply squeeze_zero' (Eventually.of_forall fun K => by positivity)113  · filter_upwards [eventually_ge_atTop 2] with K hK114    exact blockLength_div_upper hK115  · simpa using hs.add hn116117/-- The explicit single-use upper bound tends to zero; no limit is assumed. -/118theorem separationUpper_tendsto_zero :119    Tendsto separationUpper atTop (𝓝 0) := by120  have h := blockLength_div_tendsto_zero.const_mul (9 / Real.log 2)121  have hn : Tendsto (fun K : ℕ => 1 / (K : ℝ)) atTop (𝓝 0) :=122    tendsto_const_nhds.div_atTop tendsto_natCast_atTop_atTop123  have hsum : Tendsto (fun K : ℕ =>124      (9 / Real.log 2) * ((blockLength K : ℝ) / K) + 1 / (K : ℝ)) atTop (𝓝 0) := by125    simpa using h.add hn126  convert hsum using 1127  ext K128  simp only [separationUpper, div_eq_mul_inv, mul_inv_rev]129  ring130131lemma separationLower_ge_sqrt {K : ℕ} (hK : 2 ≤ K) :132    Real.sqrt (Real.log K) / (2 * Real.log 2) ≤ separationLower K := by133  have hKpos : (0 : ℝ) < K := by exact_mod_cast (show 0 < K by omega)134  have hl := log_nat_pos hK135  have hspos : 0 < Real.sqrt (Real.log K) := Real.sqrt_pos.2 hl136  have hc := Nat.le_ceil ((K : ℝ) / Real.sqrt (Real.log K))137  have hb : (K : ℝ) ≤ (blockLength K : ℝ) * Real.sqrt (Real.log K) :=138    (div_le_iff₀ hspos).1 hc139  have hb' := mul_le_mul_of_nonneg_right hb (Real.sqrt_nonneg (Real.log K))140  have hs : Real.sqrt (Real.log K) * Real.sqrt (Real.log K) = Real.log K :=141    Real.mul_self_sqrt hl.le142  have hn : Real.sqrt (Real.log K) * K ≤ (blockLength K : ℝ) * Real.log K := by143    nlinarith [hb', hs]144  unfold separationLower145  apply (div_le_div_iff₀ (by positivity : 0 < 2 * Real.log (2 : ℝ))146    (by positivity : 0 < 2 * (K : ℝ) * Real.log (2 : ℝ))).2147  nlinarith [mul_le_mul_of_nonneg_right hn log_two_pos.le]148149/-- The exact rounded lower bound diverges to infinity. -/150theorem separationLower_tendsto_atTop : Tendsto separationLower atTop atTop := by151  have h : Tendsto (fun K : ℕ => Real.sqrt (Real.log K) / (2 * Real.log 2))152      atTop atTop := log_sqrt_tendsto_atTop.atTop_div_const (by positivity)153  refine tendsto_atTop_mono' atTop ?_ h154  filter_upwards [eventually_ge_atTop 2] with K hK155  exact separationLower_ge_sqrt hK156157/-- The finite-size correction `4 log₂((n+1)/(n-1))` in the gap bound. -/158def finiteSizeCorrection (n : ℕ) : ℝ :=159  4 * Real.log (((n : ℝ) + 1) / ((n : ℝ) - 1)) / Real.log 2160161/-- The explicit logarithmic correction tends to zero. -/162theorem finiteSizeCorrection_tendsto_zero :163    Tendsto finiteSizeCorrection atTop (𝓝 0) := by164  have hn : Tendsto (fun n : ℕ => (n : ℝ) - 1) atTop atTop := by165    simpa only [sub_eq_add_neg] using166      tendsto_atTop_add_const_right atTop (-1 : ℝ) tendsto_natCast_atTop_atTop167  have hi : Tendsto (fun n : ℕ => 2 / ((n : ℝ) - 1)) atTop (𝓝 0) :=168    tendsto_const_nhds.div_atTop hn169  have hr : Tendsto (fun n : ℕ => ((n : ℝ) + 1) / ((n : ℝ) - 1))170      atTop (𝓝 1) := by171    have haux : Tendsto (fun n : ℕ => 1 + 2 / ((n : ℝ) - 1)) atTop (𝓝 1) := by172      simpa using tendsto_const_nhds.add hi173    apply haux.congr'174    filter_upwards [eventually_ge_atTop 2] with n hn175    have hnR : (2 : ℝ) ≤ n := by exact_mod_cast hn176    have hn0 : (n : ℝ) - 1 ≠ 0 := by linarith177    field_simp178    ring179  simpa only [finiteSizeCorrection, Real.log_one, mul_zero, zero_div] using180    (hr.log (by norm_num)).const_mul 4 |>.div_const (Real.log 2)181182lemma finiteSizeCorrection_nonneg {n : ℕ} (hn : 2 ≤ n) :183    0 ≤ finiteSizeCorrection n := by184  have hnR : (2 : ℝ) ≤ n := by exact_mod_cast hn185  have hd : 0 < (n : ℝ) - 1 := by linarith186  have hr : 1 ≤ ((n : ℝ) + 1) / ((n : ℝ) - 1) := by187    apply (le_div_iff₀ hd).2188    linarith189  exact div_nonneg (mul_nonneg (by norm_num) (Real.log_nonneg hr)) log_two_pos.le190191/-- The explicit-construction finite-size correction vanishes along the192same growing integer block sequence used for the qualitative separation. -/193theorem finiteSizeCorrection_blockLength_tendsto_zero :194    Tendsto (fun K : ℕ => finiteSizeCorrection (blockLength K)) atTop (𝓝 0) :=195  finiteSizeCorrection_tendsto_zero.comp blockLength_tendsto_atTop196197/-- The normalized finite-size correction also tends to zero. -/198theorem finiteSizeCorrection_div_tendsto_zero :199    Tendsto (fun n : ℕ => finiteSizeCorrection n / n) atTop (𝓝 0) :=200  finiteSizeCorrection_tendsto_zero.div_atTop tendsto_natCast_atTop_atTop201202/-- A positive `δ` yields an eventual linear lower bound from the manuscript's203explicit finite-size estimate. This is the lower half of its `Θ(n)` claim. -/204theorem eventually_linear_gap (gap : ℕ → ℝ) {δ : ℝ} (hδ : 0 < δ)205    (hgap : ∀ᶠ n : ℕ in atTop, (n : ℝ) * δ - finiteSizeCorrection n ≤ gap n) :206    ∀ᶠ n : ℕ in atTop, (δ / 2) * n ≤ gap n := by207  have he : ∀ᶠ n : ℕ in atTop, finiteSizeCorrection n < δ / 2 :=208    finiteSizeCorrection_tendsto_zero.eventually (gt_mem_nhds (half_pos hδ))209  filter_upwards [hgap, he, eventually_ge_atTop 1] with n hbound hc hn210  have hnR : (1 : ℝ) ≤ n := by exact_mod_cast hn211  nlinarith212213/-- In particular the additive gap diverges; this is a proved consequence of214its numerical bound, independent of any channel representation. -/215theorem gap_tendsto_atTop (gap : ℕ → ℝ) {δ : ℝ} (hδ : 0 < δ)216    (hgap : ∀ᶠ n : ℕ in atTop, (n : ℝ) * δ - finiteSizeCorrection n ≤ gap n) :217    Tendsto gap atTop atTop := by218  have hlinear : Tendsto (fun n : ℕ => (δ / 2) * n) atTop atTop :=219    tendsto_natCast_atTop_atTop.const_mul_atTop (half_pos hδ)220  exact tendsto_atTop_mono' atTop (eventually_linear_gap gap hδ hgap) hlinear221222/-- The normalized gap is eventually at least `δ - ε` for every positive ε.223This is the quantitative lower-limit statement before conversion to a liminf. -/224theorem eventually_normalized_gap_lower (gap : ℕ → ℝ) {δ ε : ℝ} (hε : 0 < ε)225    (hgap : ∀ᶠ n : ℕ in atTop, (n : ℝ) * δ - finiteSizeCorrection n ≤ gap n) :226    ∀ᶠ n : ℕ in atTop, δ - ε ≤ gap n / n := by227  have he : ∀ᶠ n : ℕ in atTop, finiteSizeCorrection n / n < ε :=228    finiteSizeCorrection_div_tendsto_zero.eventually (gt_mem_nhds hε)229  filter_upwards [hgap, he, eventually_ge_atTop 1] with n hbound hc hn230  have hnR : (0 : ℝ) < n := by exact_mod_cast (show 0 < n by omega)231  have hc' : finiteSizeCorrection n < ε * n := (div_lt_iff₀ hnR).1 hc232  apply (le_div_iff₀ hnR).2233  nlinarith234235/-- The liminf form of the linear gap estimate. The output-dimension upper236bound makes the real-valued liminf well defined in its boundedness conditions. -/237theorem normalized_gap_liminf (gap : ℕ → ℝ) {δ U : ℝ}238    (hgap : ∀ᶠ n : ℕ in atTop, (n : ℝ) * δ - finiteSizeCorrection n ≤ gap n)239    (hupper : ∀ᶠ n : ℕ in atTop, gap n ≤ (n : ℝ) * U) :240    δ ≤ liminf (fun n : ℕ => gap n / n) atTop := by241  have hu : ∀ᶠ n : ℕ in atTop, gap n / n ≤ U := by242    filter_upwards [hupper, eventually_ge_atTop 1] with n hbound hn243    have hnR : (0 : ℝ) < n := by exact_mod_cast (show 0 < n by omega)244    apply (div_le_iff₀ hnR).2245    nlinarith246  have hl : ∀ᶠ n : ℕ in atTop, δ - 1 ≤ gap n / n :=247    eventually_normalized_gap_lower gap (by norm_num) hgap248  apply (le_liminf_iff'249    (isBoundedUnder_of_eventually_le hu).isCoboundedUnder_ge250    (isBoundedUnder_of_eventually_ge hl)).2251  intro y hy252  have he := eventually_normalized_gap_lower gap (sub_pos.2 hy) hgap253  simpa only [sub_sub_cancel] using he254255/-- The guaranteed fraction of the output size: if the output size is `n L`256qubits with `L ≥ 1`, its normalized liminf is at least `δ/L`. -/257theorem output_normalized_gap_liminf (gap : ℕ → ℝ) {δ U L : ℝ} (hL : 1 ≤ L)258    (hgap : ∀ᶠ n : ℕ in atTop, (n : ℝ) * δ - finiteSizeCorrection n ≤ gap n)259    (hupper : ∀ᶠ n : ℕ in atTop, gap n ≤ (n : ℝ) * U) :260    δ / L ≤ liminf (fun n : ℕ => gap n / ((n : ℝ) * L)) atTop := by261  have hLpos : 0 < L := by linarith262  have hs : ∀ᶠ n : ℕ in atTop,263      (n : ℝ) * (δ / L) - finiteSizeCorrection n ≤ gap n / L := by264    filter_upwards [hgap, eventually_ge_atTop 2] with n hb hn265    have hc := finiteSizeCorrection_nonneg hn266    apply (le_div_iff₀ hLpos).2267    calc268      ((n : ℝ) * (δ / L) - finiteSizeCorrection n) * L =269          (n : ℝ) * δ - finiteSizeCorrection n * L := by270        field_simp271      _ ≤ (n : ℝ) * δ - finiteSizeCorrection n := by nlinarith272      _ ≤ gap n := hb273  have hu : ∀ᶠ n : ℕ in atTop, gap n / L ≤ (n : ℝ) * (U / L) := by274    filter_upwards [hupper] with n hn275    convert div_le_div_of_nonneg_right hn hLpos.le using 1276    ring277  have h := normalized_gap_liminf (fun n => gap n / L) hs hu278  convert h using 1279  congr 1280  ext n281  simp only [div_eq_mul_inv, mul_inv_rev]282  ring283284/-- The lower-limit ratio assertion in a form valid even when the ratios285are unbounded. The scalar finite-size denominator converges without assuming286that convergence as a premise. -/287theorem eventually_ratio_lower (ratio : ℕ → ℝ) {a b R : ℝ} (ha : 0 < a)288    (hR : R < b / (2 * a))289    (hbound : ∀ᶠ n : ℕ in atTop,290      b / (2 * a + finiteSizeCorrection n / n) ≤ ratio n) :291    ∀ᶠ n : ℕ in atTop, R ≤ ratio n := by292  have hd : Tendsto (fun n : ℕ => 2 * a + finiteSizeCorrection n / n)293      atTop (𝓝 (2 * a)) := by294    simpa using tendsto_const_nhds.add finiteSizeCorrection_div_tendsto_zero295  have hm : Tendsto (fun n : ℕ => b / (2 * a + finiteSizeCorrection n / n))296      atTop (𝓝 (b / (2 * a))) :=297    tendsto_const_nhds.div hd (by positivity)298  have he : ∀ᶠ n : ℕ in atTop, R < b / (2 * a + finiteSizeCorrection n / n) :=299    hm.eventually (lt_mem_nhds hR)300  filter_upwards [hbound, he] with n hb he301  exact he.le.trans hb302303/-- Division in the Holevo ratio is justified by the explicit positive304single-use information premise. The constants and finite-size correction305are exactly those of the manuscript after setting `b = log₂ K / K`. -/306lemma ratio_lower_of_holevo_bounds {n : ℕ} (hn : 2 ≤ n)307    {a b chi₁ chi₂ : ℝ} (ha : 0 < a) (hb : 0 ≤ b) (hchi : 0 < chi₁)308    (hupper : chi₁ ≤ (n : ℝ) * a + finiteSizeCorrection n / 2)309    (hlower : (n : ℝ) * b ≤ chi₂) :310    b / (2 * a + finiteSizeCorrection n / n) ≤ chi₂ / (2 * chi₁) := by311  have hnR : (0 : ℝ) < n := by exact_mod_cast (show 0 < n by omega)312  have hc := finiteSizeCorrection_nonneg hn313  have hd : 0 < 2 * a + finiteSizeCorrection n / n := by positivity314  have hh : 2 * chi₁ ≤ (n : ℝ) * (2 * a + finiteSizeCorrection n / n) := by315    have hcancel : (finiteSizeCorrection n / (n : ℝ)) * n = finiteSizeCorrection n :=316      div_mul_cancel₀ _ hnR.ne'317    nlinarith318  apply (div_le_div_iff₀ hd (by positivity : 0 < 2 * chi₁)).2319  calc320    b * (2 * chi₁) ≤ b * ((n : ℝ) * (2 * a + finiteSizeCorrection n / n)) :=321      mul_le_mul_of_nonneg_left hh hb322    _ = ((n : ℝ) * b) * (2 * a + finiteSizeCorrection n / n) := by ring323    _ ≤ chi₂ * (2 * a + finiteSizeCorrection n / n) :=324      mul_le_mul_of_nonneg_right hlower hd.le325326/-- Every strict lower threshold below `b/(2a)` is eventually attained by327`χ₂/(2χ₁)`, proved directly from the one-use and two-use bounds. -/328theorem eventually_ratio_of_holevo_bounds (chi₁ chi₂ : ℕ → ℝ) {a b R : ℝ}329    (ha : 0 < a) (hb : 0 ≤ b) (hR : R < b / (2 * a))330    (hchi : ∀ᶠ n : ℕ in atTop, 0 < chi₁ n)331    (hupper : ∀ᶠ n : ℕ in atTop,332      chi₁ n ≤ (n : ℝ) * a + finiteSizeCorrection n / 2)333    (hlower : ∀ᶠ n : ℕ in atTop, (n : ℝ) * b ≤ chi₂ n) :334    ∀ᶠ n : ℕ in atTop, R ≤ chi₂ n / (2 * chi₁ n) := by335  apply eventually_ratio_lower (fun n => chi₂ n / (2 * chi₁ n)) ha hR336  filter_upwards [hchi, hupper, hlower, eventually_ge_atTop 2] with n hc hu hl hn337  exact ratio_lower_of_holevo_bounds hn ha hb hc hu hl338339/-- Any requested finite gap and ratio can be achieved simultaneously once340one fixes parameters with a positive slope and a sufficiently large ratio341limit. Channel existence remains an explicit hypothesis in the calling layer. -/342theorem exists_large_gap_and_ratio (gap ratio : ℕ → ℝ) {δ a b A R : ℝ}343    (ha : 0 < a) (hδ : 0 < δ) (hR : R < b / (2 * a)) (n₀ : ℕ)344    (hgap : ∀ᶠ n : ℕ in atTop, (n : ℝ) * δ - finiteSizeCorrection n ≤ gap n)345    (hratio : ∀ᶠ n : ℕ in atTop,346      b / (2 * a + finiteSizeCorrection n / n) ≤ ratio n) :347    ∃ n, n₀ ≤ n ∧ A ≤ gap n ∧ R ≤ ratio n := by348  have hg : ∀ᶠ n : ℕ in atTop, A ≤ gap n :=349    (gap_tendsto_atTop gap hδ hgap).eventually (eventually_ge_atTop A)350  have hr := eventually_ratio_lower ratio ha hR hratio351  exact (by352    filter_upwards [eventually_ge_atTop n₀, hg, hr] with n hn hg hr353    exact ⟨hn, hg, hr⟩ : ∀ᶠ n : ℕ in atTop, n₀ ≤ n ∧ A ≤ gap n ∧ R ≤ ratio n).exists354355/-- Corollary 4, with all channel-specific ingredients displayed as hypotheses.356`twoUseHalf` denotes half of the two-use Holevo information. -/357theorem vanishing_diverging_of_bounds358    (chi twoUseHalf capacity : ℕ → ℝ)359    (hchi_nonneg : ∀ K, 0 ≤ chi K)360    (hchi : ∀ K, 2 ≤ K → chi K ≤ separationUpper K)361    (htwo : ∀ K, 2 ≤ K → separationLower K ≤ twoUseHalf K)362    (hcapacity : ∀ K, twoUseHalf K ≤ capacity K) :363    Tendsto chi atTop (𝓝 0) ∧364      Tendsto twoUseHalf atTop atTop ∧ Tendsto capacity atTop atTop := by365  have hc : Tendsto chi atTop (𝓝 0) := by366    apply squeeze_zero' (Eventually.of_forall hchi_nonneg)367    · filter_upwards [eventually_ge_atTop 2] with K hK368      exact hchi K hK369    · exact separationUpper_tendsto_zero370  have ht : Tendsto twoUseHalf atTop atTop := by371    refine tendsto_atTop_mono' atTop ?_ separationLower_tendsto_atTop372    filter_upwards [eventually_ge_atTop 2] with K hK373    exact htwo K hK374  exact ⟨hc, ht, tendsto_atTop_mono hcapacity ht⟩375376/-- The pointwise epsilon/rate separation follows from the actual sequence. -/377theorem exists_small_large_of_bounds378    (chi twoUseHalf : ℕ → ℝ)379    (hchi_nonneg : ∀ K, 0 ≤ chi K)380    (hchi : ∀ K, 2 ≤ K → chi K ≤ separationUpper K)381    (htwo : ∀ K, 2 ≤ K → separationLower K ≤ twoUseHalf K)382    {ε R : ℝ} (hε : 0 < ε) :383    ∃ K, 2 ≤ K ∧ chi K ≤ ε ∧ R ≤ twoUseHalf K := by384  obtain ⟨hc, ht, _⟩ :=385    vanishing_diverging_of_bounds chi twoUseHalf twoUseHalf hchi_nonneg hchi htwo386      (fun _ => le_rfl)387  have hsmall : ∀ᶠ K in atTop, chi K < ε := hc.eventually (gt_mem_nhds hε)388  have hlarge : ∀ᶠ K in atTop, R ≤ twoUseHalf K := ht.eventually (eventually_ge_atTop R)389  exact (by390    filter_upwards [eventually_ge_atTop 2, hsmall, hlarge] with K hK hs hl391    exact ⟨hK, hs.le, hl⟩ : ∀ᶠ K in atTop, 2 ≤ K ∧ chi K ≤ ε ∧ R ≤ twoUseHalf K).exists392393/-- Regrouping tensor powers of one fixed channel cannot produce a linear gap.394The sole hypothesis is the normalized Holevo convergence defining its capacity.395The conclusion uses the actual regrouped expression, including at `m = 0`. -/396theorem regrouping_gap_div_tendsto_zero (chi : ℕ → ℝ) (C : ℝ)397    (h : Tendsto (fun m : ℕ => chi m / m) atTop (𝓝 C)) :398    Tendsto (fun m : ℕ => (chi (2 * m) - 2 * chi m) / m) atTop (𝓝 0) := by399  have hd : Tendsto (fun m : ℕ => 2 * m) atTop atTop :=400    tendsto_atTop_mono (fun m : ℕ => show id m ≤ 2 * m by change m ≤ 2 * m; omega) tendsto_id401  have hh : Tendsto (fun m : ℕ =>402      2 * (chi (2 * m) / (2 * m : ℕ) - chi m / m)) atTop (𝓝 0) := by403    simpa using ((h.comp hd).sub h).const_mul 2404  convert hh using 1405  ext m406  by_cases hm : m = 0407  · simp [hm]408  · have hmr : (m : ℝ) ≠ 0 := by exact_mod_cast hm409    push_cast410    field_simp411412end413414end Nonadditivity.Asymptotics