Exact Lean source
Nonadditivity.Asymptotics
Download original .lean · View on GitHub · Jump to source
Direct imports
Mathlib.Analysis.SpecialFunctions.Log.BasicdependencyMathlib.Data.Real.SqrtdependencyMathlib.Algebra.Order.Floor.SemiringdependencyMathlib.Tactic.LinarithdependencyMathlib.Tactic.RingdependencyMathlib.Tactic.FieldSimpdependencyMathlib.Tactic.PositivitydependencyMathlib.Tactic.NormNumdependency
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
Nonadditivity.Asymptotics.blockLengthNonadditivity.Asymptotics.blockLength_div_lowerNonadditivity.Asymptotics.blockLength_div_lower._proof_1_1internal/detail/privateNonadditivity.Asymptotics.blockLength_div_tendsto_zeroNonadditivity.Asymptotics.blockLength_div_upperNonadditivity.Asymptotics.blockLength_div_upper._proof_1_1internal/detail/privateNonadditivity.Asymptotics.blockLength_posNonadditivity.Asymptotics.blockLength_pos._proof_1_1internal/detail/privateNonadditivity.Asymptotics.blockLength_tendsto_atTopNonadditivity.Asymptotics.eventually_linear_gapNonadditivity.Asymptotics.eventually_normalized_gap_lowerNonadditivity.Asymptotics.eventually_normalized_gap_lower._proof_1_1internal/detail/privateNonadditivity.Asymptotics.eventually_ratio_lowerNonadditivity.Asymptotics.eventually_ratio_of_holevo_boundsNonadditivity.Asymptotics.exists_large_gap_and_ratioNonadditivity.Asymptotics.exists_small_large_of_boundsNonadditivity.Asymptotics.finiteSizeCorrectionNonadditivity.Asymptotics.finiteSizeCorrection._proof_1internal/detail/privateNonadditivity.Asymptotics.finiteSizeCorrection.eq_1internal/detail/privateNonadditivity.Asymptotics.finiteSizeCorrection_blockLength_tendsto_zeroNonadditivity.Asymptotics.finiteSizeCorrection_div_tendsto_zeroNonadditivity.Asymptotics.finiteSizeCorrection_nonnegNonadditivity.Asymptotics.finiteSizeCorrection_tendsto_zeroNonadditivity.Asymptotics.gap_tendsto_atTopNonadditivity.Asymptotics.log_nat_posNonadditivity.Asymptotics.log_nat_pos._proof_1_1internal/detail/privateNonadditivity.Asymptotics.log_sqrt_tendsto_atTopNonadditivity.Asymptotics.log_two_posNonadditivity.Asymptotics.normalized_gap_liminfNonadditivity.Asymptotics.normalized_gap_liminf._proof_1_1internal/detail/privateNonadditivity.Asymptotics.output_normalized_gap_liminfNonadditivity.Asymptotics.output_normalized_gap_liminf._simp_1_1internal/detail/privateNonadditivity.Asymptotics.output_normalized_gap_liminf._simp_1_2internal/detail/privateNonadditivity.Asymptotics.output_normalized_gap_liminf._simp_1_3internal/detail/privateNonadditivity.Asymptotics.output_normalized_gap_liminf._simp_1_4internal/detail/privateNonadditivity.Asymptotics.output_normalized_gap_liminf._simp_1_5internal/detail/privateNonadditivity.Asymptotics.output_normalized_gap_liminf._simp_1_6internal/detail/privateNonadditivity.Asymptotics.output_normalized_gap_liminf._simp_1_7internal/detail/privateNonadditivity.Asymptotics.ratio_lower_of_holevo_boundsNonadditivity.Asymptotics.ratio_lower_of_holevo_bounds._proof_1_1internal/detail/privateNonadditivity.Asymptotics.regrouping_gap_div_tendsto_zeroNonadditivity.Asymptotics.regrouping_gap_div_tendsto_zero._proof_1_1internal/detail/privateNonadditivity.Asymptotics.regrouping_gap_div_tendsto_zero._simp_1_2internal/detail/privateNonadditivity.Asymptotics.regrouping_gap_div_tendsto_zero._simp_1_3internal/detail/privateNonadditivity.Asymptotics.regrouping_gap_div_tendsto_zero._simp_1_4internal/detail/privateNonadditivity.Asymptotics.regrouping_gap_div_tendsto_zero._simp_1_5internal/detail/privateNonadditivity.Asymptotics.regrouping_gap_div_tendsto_zero._simp_1_6internal/detail/privateNonadditivity.Asymptotics.regrouping_gap_div_tendsto_zero._simp_1_7internal/detail/privateNonadditivity.Asymptotics.regrouping_gap_div_tendsto_zero._simp_1_8internal/detail/privateNonadditivity.Asymptotics.separationLowerNonadditivity.Asymptotics.separationLower_ge_sqrtNonadditivity.Asymptotics.separationLower_ge_sqrt._proof_1_1internal/detail/privateNonadditivity.Asymptotics.separationLower_tendsto_atTopNonadditivity.Asymptotics.separationUpperNonadditivity.Asymptotics.separationUpper._proof_1internal/detail/privateNonadditivity.Asymptotics.separationUpper._proof_2internal/detail/privateNonadditivity.Asymptotics.separationUpper.eq_1internal/detail/privateNonadditivity.Asymptotics.separationUpper_tendsto_zeroNonadditivity.Asymptotics.sqrt_le_blockLengthNonadditivity.Asymptotics.sqrt_le_blockLength._proof_1_1internal/detail/privateNonadditivity.Asymptotics.vanishing_diverging_of_bounds
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 : ℕ) : ℝ :=369 * (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 : ℝ) := by45apply Real.log_pos46exact_mod_cast (show 1 < K by omega)4748lemma blockLength_pos {K : ℕ} (hK : 2 ≤ K) : 0 < blockLength K := by49unfold blockLength50apply Nat.ceil_pos.251apply 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) :58Real.sqrt K ≤ (blockLength K : ℝ) := by59have hKpos : (0 : ℝ) < K := by exact_mod_cast (show 0 < K by omega)60have hspos : 0 < Real.sqrt (Real.log K) := Real.sqrt_pos.2 (log_nat_pos hK)61have hc := (div_le_iff₀ hspos).1 (Nat.le_ceil ((K : ℝ) / Real.sqrt (Real.log K)))62have hs : Real.sqrt (Real.log K) ≤ Real.sqrt K :=63Real.sqrt_le_sqrt (Real.log_le_self hKpos.le)64have hm := mul_le_mul_of_nonneg_left hs (Nat.cast_nonneg (blockLength K) :65(0 : ℝ) ≤ (blockLength K : ℝ))66have hsq := Real.mul_self_sqrt hKpos.le67have hsK := Real.sqrt_pos.2 hKpos68apply (mul_le_mul_iff_left₀ hsK).169calc70Real.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 := by75apply (tendsto_natCast_atTop_iff (R := ℝ)).176apply tendsto_atTop_mono' atTop _77(Real.tendsto_sqrt_atTop.comp tendsto_natCast_atTop_atTop)78filter_upwards [eventually_ge_atTop 2] with K hK79exact sqrt_le_blockLength hK8081lemma blockLength_div_upper {K : ℕ} (hK : 2 ≤ K) :82(blockLength K : ℝ) / K ≤831 / Real.sqrt (Real.log K) + 1 / (K : ℝ) := by84have hKpos : (0 : ℝ) < K := by exact_mod_cast (show 0 < K by omega)85have hspos : 0 < Real.sqrt (Real.log K) := Real.sqrt_pos.2 (log_nat_pos hK)86have 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 _))).le89apply (div_le_iff₀ hKpos).290convert hc using 191field_simp9293lemma blockLength_div_lower {K : ℕ} (hK : 2 ≤ K) :941 / Real.sqrt (Real.log K) ≤ (blockLength K : ℝ) / K := by95have hKpos : (0 : ℝ) < K := by exact_mod_cast (show 0 < K by omega)96have hc := Nat.le_ceil ((K : ℝ) / Real.sqrt (Real.log K))97apply (le_div_iff₀ hKpos).298convert hc using 199ring100101lemma log_sqrt_tendsto_atTop :102Tendsto (fun K : ℕ => Real.sqrt (Real.log K)) atTop atTop :=103Real.tendsto_sqrt_atTop.comp104(Real.tendsto_log_atTop.comp tendsto_natCast_atTop_atTop)105106lemma blockLength_div_tendsto_zero :107Tendsto (fun K : ℕ => (blockLength K : ℝ) / K) atTop (𝓝 0) := by108have hs : Tendsto (fun K : ℕ => 1 / Real.sqrt (Real.log K)) atTop (𝓝 0) :=109tendsto_const_nhds.div_atTop log_sqrt_tendsto_atTop110have hn : Tendsto (fun K : ℕ => 1 / (K : ℝ)) atTop (𝓝 0) :=111tendsto_const_nhds.div_atTop tendsto_natCast_atTop_atTop112apply squeeze_zero' (Eventually.of_forall fun K => by positivity)113· filter_upwards [eventually_ge_atTop 2] with K hK114exact 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 :119Tendsto separationUpper atTop (𝓝 0) := by120have h := blockLength_div_tendsto_zero.const_mul (9 / Real.log 2)121have hn : Tendsto (fun K : ℕ => 1 / (K : ℝ)) atTop (𝓝 0) :=122tendsto_const_nhds.div_atTop tendsto_natCast_atTop_atTop123have hsum : Tendsto (fun K : ℕ =>124(9 / Real.log 2) * ((blockLength K : ℝ) / K) + 1 / (K : ℝ)) atTop (𝓝 0) := by125simpa using h.add hn126convert hsum using 1127ext K128simp only [separationUpper, div_eq_mul_inv, mul_inv_rev]129ring130131lemma separationLower_ge_sqrt {K : ℕ} (hK : 2 ≤ K) :132Real.sqrt (Real.log K) / (2 * Real.log 2) ≤ separationLower K := by133have hKpos : (0 : ℝ) < K := by exact_mod_cast (show 0 < K by omega)134have hl := log_nat_pos hK135have hspos : 0 < Real.sqrt (Real.log K) := Real.sqrt_pos.2 hl136have hc := Nat.le_ceil ((K : ℝ) / Real.sqrt (Real.log K))137have hb : (K : ℝ) ≤ (blockLength K : ℝ) * Real.sqrt (Real.log K) :=138(div_le_iff₀ hspos).1 hc139have hb' := mul_le_mul_of_nonneg_right hb (Real.sqrt_nonneg (Real.log K))140have hs : Real.sqrt (Real.log K) * Real.sqrt (Real.log K) = Real.log K :=141Real.mul_self_sqrt hl.le142have hn : Real.sqrt (Real.log K) * K ≤ (blockLength K : ℝ) * Real.log K := by143nlinarith [hb', hs]144unfold separationLower145apply (div_le_div_iff₀ (by positivity : 0 < 2 * Real.log (2 : ℝ))146(by positivity : 0 < 2 * (K : ℝ) * Real.log (2 : ℝ))).2147nlinarith [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 := by151have h : Tendsto (fun K : ℕ => Real.sqrt (Real.log K) / (2 * Real.log 2))152atTop atTop := log_sqrt_tendsto_atTop.atTop_div_const (by positivity)153refine tendsto_atTop_mono' atTop ?_ h154filter_upwards [eventually_ge_atTop 2] with K hK155exact separationLower_ge_sqrt hK156157/-- The finite-size correction `4 log₂((n+1)/(n-1))` in the gap bound. -/158def finiteSizeCorrection (n : ℕ) : ℝ :=1594 * Real.log (((n : ℝ) + 1) / ((n : ℝ) - 1)) / Real.log 2160161/-- The explicit logarithmic correction tends to zero. -/162theorem finiteSizeCorrection_tendsto_zero :163Tendsto finiteSizeCorrection atTop (𝓝 0) := by164have hn : Tendsto (fun n : ℕ => (n : ℝ) - 1) atTop atTop := by165simpa only [sub_eq_add_neg] using166tendsto_atTop_add_const_right atTop (-1 : ℝ) tendsto_natCast_atTop_atTop167have hi : Tendsto (fun n : ℕ => 2 / ((n : ℝ) - 1)) atTop (𝓝 0) :=168tendsto_const_nhds.div_atTop hn169have hr : Tendsto (fun n : ℕ => ((n : ℝ) + 1) / ((n : ℝ) - 1))170atTop (𝓝 1) := by171have haux : Tendsto (fun n : ℕ => 1 + 2 / ((n : ℝ) - 1)) atTop (𝓝 1) := by172simpa using tendsto_const_nhds.add hi173apply haux.congr'174filter_upwards [eventually_ge_atTop 2] with n hn175have hnR : (2 : ℝ) ≤ n := by exact_mod_cast hn176have hn0 : (n : ℝ) - 1 ≠ 0 := by linarith177field_simp178ring179simpa 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) :1830 ≤ finiteSizeCorrection n := by184have hnR : (2 : ℝ) ≤ n := by exact_mod_cast hn185have hd : 0 < (n : ℝ) - 1 := by linarith186have hr : 1 ≤ ((n : ℝ) + 1) / ((n : ℝ) - 1) := by187apply (le_div_iff₀ hd).2188linarith189exact 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 :194Tendsto (fun K : ℕ => finiteSizeCorrection (blockLength K)) atTop (𝓝 0) :=195finiteSizeCorrection_tendsto_zero.comp blockLength_tendsto_atTop196197/-- The normalized finite-size correction also tends to zero. -/198theorem finiteSizeCorrection_div_tendsto_zero :199Tendsto (fun n : ℕ => finiteSizeCorrection n / n) atTop (𝓝 0) :=200finiteSizeCorrection_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 := by207have he : ∀ᶠ n : ℕ in atTop, finiteSizeCorrection n < δ / 2 :=208finiteSizeCorrection_tendsto_zero.eventually (gt_mem_nhds (half_pos hδ))209filter_upwards [hgap, he, eventually_ge_atTop 1] with n hbound hc hn210have hnR : (1 : ℝ) ≤ n := by exact_mod_cast hn211nlinarith212213/-- 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) :217Tendsto gap atTop atTop := by218have hlinear : Tendsto (fun n : ℕ => (δ / 2) * n) atTop atTop :=219tendsto_natCast_atTop_atTop.const_mul_atTop (half_pos hδ)220exact 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 := by227have he : ∀ᶠ n : ℕ in atTop, finiteSizeCorrection n / n < ε :=228finiteSizeCorrection_div_tendsto_zero.eventually (gt_mem_nhds hε)229filter_upwards [hgap, he, eventually_ge_atTop 1] with n hbound hc hn230have hnR : (0 : ℝ) < n := by exact_mod_cast (show 0 < n by omega)231have hc' : finiteSizeCorrection n < ε * n := (div_lt_iff₀ hnR).1 hc232apply (le_div_iff₀ hnR).2233nlinarith234235/-- 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 := by241have hu : ∀ᶠ n : ℕ in atTop, gap n / n ≤ U := by242filter_upwards [hupper, eventually_ge_atTop 1] with n hbound hn243have hnR : (0 : ℝ) < n := by exact_mod_cast (show 0 < n by omega)244apply (div_le_iff₀ hnR).2245nlinarith246have hl : ∀ᶠ n : ℕ in atTop, δ - 1 ≤ gap n / n :=247eventually_normalized_gap_lower gap (by norm_num) hgap248apply (le_liminf_iff'249(isBoundedUnder_of_eventually_le hu).isCoboundedUnder_ge250(isBoundedUnder_of_eventually_ge hl)).2251intro y hy252have he := eventually_normalized_gap_lower gap (sub_pos.2 hy) hgap253simpa 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 := by261have hLpos : 0 < L := by linarith262have hs : ∀ᶠ n : ℕ in atTop,263(n : ℝ) * (δ / L) - finiteSizeCorrection n ≤ gap n / L := by264filter_upwards [hgap, eventually_ge_atTop 2] with n hb hn265have hc := finiteSizeCorrection_nonneg hn266apply (le_div_iff₀ hLpos).2267calc268((n : ℝ) * (δ / L) - finiteSizeCorrection n) * L =269(n : ℝ) * δ - finiteSizeCorrection n * L := by270field_simp271_ ≤ (n : ℝ) * δ - finiteSizeCorrection n := by nlinarith272_ ≤ gap n := hb273have hu : ∀ᶠ n : ℕ in atTop, gap n / L ≤ (n : ℝ) * (U / L) := by274filter_upwards [hupper] with n hn275convert div_le_div_of_nonneg_right hn hLpos.le using 1276ring277have h := normalized_gap_liminf (fun n => gap n / L) hs hu278convert h using 1279congr 1280ext n281simp only [div_eq_mul_inv, mul_inv_rev]282ring283284/-- 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,290b / (2 * a + finiteSizeCorrection n / n) ≤ ratio n) :291∀ᶠ n : ℕ in atTop, R ≤ ratio n := by292have hd : Tendsto (fun n : ℕ => 2 * a + finiteSizeCorrection n / n)293atTop (𝓝 (2 * a)) := by294simpa using tendsto_const_nhds.add finiteSizeCorrection_div_tendsto_zero295have hm : Tendsto (fun n : ℕ => b / (2 * a + finiteSizeCorrection n / n))296atTop (𝓝 (b / (2 * a))) :=297tendsto_const_nhds.div hd (by positivity)298have he : ∀ᶠ n : ℕ in atTop, R < b / (2 * a + finiteSizeCorrection n / n) :=299hm.eventually (lt_mem_nhds hR)300filter_upwards [hbound, he] with n hb he301exact 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₂) :310b / (2 * a + finiteSizeCorrection n / n) ≤ chi₂ / (2 * chi₁) := by311have hnR : (0 : ℝ) < n := by exact_mod_cast (show 0 < n by omega)312have hc := finiteSizeCorrection_nonneg hn313have hd : 0 < 2 * a + finiteSizeCorrection n / n := by positivity314have hh : 2 * chi₁ ≤ (n : ℝ) * (2 * a + finiteSizeCorrection n / n) := by315have hcancel : (finiteSizeCorrection n / (n : ℝ)) * n = finiteSizeCorrection n :=316div_mul_cancel₀ _ hnR.ne'317nlinarith318apply (div_le_div_iff₀ hd (by positivity : 0 < 2 * chi₁)).2319calc320b * (2 * chi₁) ≤ b * ((n : ℝ) * (2 * a + finiteSizeCorrection n / n)) :=321mul_le_mul_of_nonneg_left hh hb322_ = ((n : ℝ) * b) * (2 * a + finiteSizeCorrection n / n) := by ring323_ ≤ chi₂ * (2 * a + finiteSizeCorrection n / n) :=324mul_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,332chi₁ 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) := by335apply eventually_ratio_lower (fun n => chi₂ n / (2 * chi₁ n)) ha hR336filter_upwards [hchi, hupper, hlower, eventually_ge_atTop 2] with n hc hu hl hn337exact 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,346b / (2 * a + finiteSizeCorrection n / n) ≤ ratio n) :347∃ n, n₀ ≤ n ∧ A ≤ gap n ∧ R ≤ ratio n := by348have hg : ∀ᶠ n : ℕ in atTop, A ≤ gap n :=349(gap_tendsto_atTop gap hδ hgap).eventually (eventually_ge_atTop A)350have hr := eventually_ratio_lower ratio ha hR hratio351exact (by352filter_upwards [eventually_ge_atTop n₀, hg, hr] with n hn hg hr353exact ⟨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) :363Tendsto chi atTop (𝓝 0) ∧364Tendsto twoUseHalf atTop atTop ∧ Tendsto capacity atTop atTop := by365have hc : Tendsto chi atTop (𝓝 0) := by366apply squeeze_zero' (Eventually.of_forall hchi_nonneg)367· filter_upwards [eventually_ge_atTop 2] with K hK368exact hchi K hK369· exact separationUpper_tendsto_zero370have ht : Tendsto twoUseHalf atTop atTop := by371refine tendsto_atTop_mono' atTop ?_ separationLower_tendsto_atTop372filter_upwards [eventually_ge_atTop 2] with K hK373exact htwo K hK374exact ⟨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 := by384obtain ⟨hc, ht, _⟩ :=385vanishing_diverging_of_bounds chi twoUseHalf twoUseHalf hchi_nonneg hchi htwo386(fun _ => le_rfl)387have hsmall : ∀ᶠ K in atTop, chi K < ε := hc.eventually (gt_mem_nhds hε)388have hlarge : ∀ᶠ K in atTop, R ≤ twoUseHalf K := ht.eventually (eventually_ge_atTop R)389exact (by390filter_upwards [eventually_ge_atTop 2, hsmall, hlarge] with K hK hs hl391exact ⟨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)) :398Tendsto (fun m : ℕ => (chi (2 * m) - 2 * chi m) / m) atTop (𝓝 0) := by399have hd : Tendsto (fun m : ℕ => 2 * m) atTop atTop :=400tendsto_atTop_mono (fun m : ℕ => show id m ≤ 2 * m by change m ≤ 2 * m; omega) tendsto_id401have hh : Tendsto (fun m : ℕ =>4022 * (chi (2 * m) / (2 * m : ℕ) - chi m / m)) atTop (𝓝 0) := by403simpa using ((h.comp hd).sub h).const_mul 2404convert hh using 1405ext m406by_cases hm : m = 0407· simp [hm]408· have hmr : (m : ℝ) ≠ 0 := by exact_mod_cast hm409push_cast410field_simp411412end413414end Nonadditivity.Asymptotics