Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.PrescribedCostScalars

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

Direct imports

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

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.HaarPrescribedScaling7import Mathlib.Analysis.SpecialFunctions.Pow.Asymptotics89/-! # Rounded growing-block lengths and the prescribed construction threshold -/1011noncomputable section12namespace Nonadditivity.PrescribedCost13open Filter Topology14open Asymptotics1516theorem sqrt_log_div_nat_tendsto_zero :17    Tendsto (fun K : ℕ => Real.sqrt (Real.log K) / K) atTop (𝓝 0) := by18  have h : Tendsto (fun K : ℕ => 1 / Real.sqrt K) atTop (𝓝 0) := tendsto_const_nhds.div_atTop19    (Real.tendsto_sqrt_atTop.comp tendsto_natCast_atTop_atTop)20  apply squeeze_zero' (Eventually.of_forall (fun K => by positivity)) _21    h22  filter_upwards [eventually_ge_atTop 2] with K hK23  have hKr : (0 : ℝ) < K := by exact_mod_cast (show 0<K by omega)24  have hs := Real.sqrt_le_sqrt (Real.log_le_self hKr.le)25  have hsq := Real.mul_self_sqrt hKr.le26  apply (div_le_div_iff₀ hKr (Real.sqrt_pos.mpr hKr)).mpr27  nlinarith [mul_le_mul_of_nonneg_right hs (Real.sqrt_nonneg (K:ℝ))]2829theorem normalized_blockLength_tendsto_one :30    Tendsto (fun K : ℕ => (blockLength K : ℝ) * Real.sqrt (Real.log K) / K)31      atTop (𝓝 1) := by32  have hu : Tendsto (fun K : ℕ => 1 + Real.sqrt (Real.log K) / K) atTop (𝓝 1) := by33    simpa using tendsto_const_nhds.add sqrt_log_div_nat_tendsto_zero34  apply tendsto_of_tendsto_of_tendsto_of_le_of_le' tendsto_const_nhds hu35  · filter_upwards [eventually_ge_atTop 2] with K hK36    have hk : (0 : ℝ) < K := by exact_mod_cast (show 0<K by omega)37    have hs := Real.sqrt_pos.mpr (log_nat_pos hK)38    have hc := (div_le_iff₀ hs).mp (Nat.le_ceil ((K:ℝ)/Real.sqrt (Real.log K)))39    exact (le_div_iff₀ hk).mpr (by simpa using hc)40  · filter_upwards [eventually_ge_atTop 2] with K hK41    have hk : (0 : ℝ) < K := by exact_mod_cast (show 0<K by omega)42    have hs := Real.sqrt_pos.mpr (log_nat_pos hK)43    have hc := (Nat.ceil_lt_add_one (div_nonneg hk.le hs.le)).le44    have hm := mul_le_mul_of_nonneg_right hc hs.le45    change (blockLength K : ℝ) * Real.sqrt (Real.log K) / K ≤ _46    apply (div_le_iff₀ hk).mpr47    have hid : (((K:ℝ)/Real.sqrt (Real.log K))+1)*Real.sqrt (Real.log K) =48        (K:ℝ)+Real.sqrt (Real.log K) := by field_simp49    rw [hid] at hm50    convert hm using 151    field_simp5253theorem log_pow_div_sqrt_tendsto_zero (m : ℕ) :54    Tendsto (fun K : ℕ => (Real.log K)^m / Real.sqrt K) atTop (𝓝 0) := by55  have h := (isLittleO_log_rpow_rpow_atTop (m:ℝ)56    (show (0:ℝ)<1/2 by norm_num)).tendsto_div_nhds_zero.comp tendsto_natCast_atTop_atTop57  simpa only [Real.rpow_natCast, ← Real.sqrt_eq_rpow] using h5859theorem threshold_div_sqrt_tendsto_zero :60    Tendsto (fun K : ℕ => (Quantitative.n₀ K : ℝ) / Real.sqrt K) atTop (𝓝 0) := by61  have hu : Tendsto (fun K : ℕ =>62      (256*(1+Real.log K)^2+1)/Real.sqrt K) atTop (𝓝 0) := by63    have h := ((log_pow_div_sqrt_tendsto_zero 0).const_mul 257).add64      (((log_pow_div_sqrt_tendsto_zero 1).const_mul 512).add65        ((log_pow_div_sqrt_tendsto_zero 2).const_mul 256))66    convert h using 167    · funext K68      simp only [pow_zero, pow_one]69      ring70    · norm_num71  apply squeeze_zero (fun K => by positivity) (fun K => ?_) hu72  exact div_le_div_of_nonneg_right73    (Nat.ceil_lt_add_one (show (0:ℝ)≤256*(1+Real.log K)^2 by positivity)).le74    (Real.sqrt_nonneg _)7576/-- The manuscript's unmodified rounded block length eventually exceeds the77prescribed threshold; the initial maximum in the actual family disappears. -/78theorem threshold_le_blockLength_eventually :79    ∀ᶠ K : ℕ in atTop, Quantitative.n₀ K ≤ blockLength K := by80  have ht := threshold_div_sqrt_tendsto_zero.eventually (gt_mem_nhds (show (0:ℝ)<1 by norm_num))81  filter_upwards [ht, eventually_ge_atTop 2] with K h hK82  have hk : (0:ℝ)<K := by exact_mod_cast (show 0<K by omega)83  have hs := (div_lt_iff₀ (Real.sqrt_pos.mpr hk)).mp h84  have hb := sqrt_le_blockLength hK85  exact_mod_cast (show (Quantitative.n₀ K : ℝ) ≤ (blockLength K : ℝ) by linarith)8687end Nonadditivity.PrescribedCost