Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.PrescribedCostScaling

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

Catalog entries: Input-qubit cost of the growing-K separation

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

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

15 declarations

Full module

1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.PrescribedCostInformation7import Nonadditivity.PrescribedCostLogarithms89/-! # Matching information bounds in terms of the actual input-qubit cost -/10noncomputable section11namespace Nonadditivity.PrescribedCost12open Filter Topology Asymptotics ActualConsequences1314theorem correction_sqrt_log_tendsto_zero :15    Tendsto (fun K : ℕ => finiteSizeCorrection (blockLength K)*Real.sqrt (Real.log K))16      atTop (𝓝 0) := by17  have hb := blockLength_tendsto_atTop.eventually (eventually_ge_atTop 2)18  apply squeeze_zero' _ _ (by simpa using19    sqrt_log_div_blockLength_tendsto_zero.const_mul (16/Real.log 2))20  · filter_upwards [hb] with K hn21    exact mul_nonneg (finiteSizeCorrection_nonneg hn) (Real.sqrt_nonneg _)22  · filter_upwards [hb] with K hn23    have h := mul_le_mul_of_nonneg_right (finiteSizeCorrection_le_inverse hn)24      (Real.sqrt_nonneg (Real.log K))25    convert h using 126    ring2728theorem growingFamily_chi_scaled_bounds :29    ∀ᶠ K : ℕ in atTop,30      1 ≤ (growingFamily K).chi * Real.sqrt (Real.log K) ∧31      (growingFamily K).chi * Real.sqrt (Real.log K) ≤ 9/Real.log 2+1 := by32  have htwo : Tendsto (fun K : ℕ => 2*((blockLength K:ℝ)*Real.sqrt (Real.log K)/K))33      atTop (𝓝 2) := by simpa using normalized_blockLength_tendsto_one.const_mul 234  have hlo := htwo.eventually (lt_mem_nhds (by norm_num : (1:ℝ)<2))35  have hupper : Tendsto (fun K : ℕ =>36      (9/Real.log 2)*((blockLength K:ℝ)*Real.sqrt (Real.log K)/K) +37        finiteSizeCorrection (blockLength K)*Real.sqrt (Real.log K)/2)38      atTop (𝓝 (9/Real.log 2)) := by39    simpa using (normalized_blockLength_tendsto_one.const_mul (9/Real.log 2)).add40      (correction_sqrt_log_tendsto_zero.div_const 2)41  have hu := hupper.eventually (gt_mem_nhds (by linarith : 9/Real.log 2<9/Real.log 2+1))42  filter_upwards [growingFamily_bounds_eventually,hlo,hu,eventually_ge_atTop 2]43    with K hs hl hu hK44  have hKr : (0:ℝ)<K := by exact_mod_cast (show 0<K by omega)45  have hsqrt := Real.sqrt_nonneg (Real.log K)46  have hlow := mul_le_mul_of_nonneg_right hs.1 hsqrt47  have hhigh := mul_le_mul_of_nonneg_right hs.2.1 hsqrt48  have hterm := mul_le_mul_of_nonneg_right49    (mul_le_mul_of_nonneg_left (Scalar.aK_le hKr)50      (Nat.cast_nonneg (blockLength K): (0:ℝ)≤blockLength K)) hsqrt51  have hterm' : (blockLength K:ℝ)*Scalar.aK K*Real.sqrt (Real.log K) ≤52      (9/Real.log 2)*((blockLength K:ℝ)*Real.sqrt (Real.log K)/K) := by53    convert hterm using 154    ring55  have hlow' : 2*((blockLength K:ℝ)*Real.sqrt (Real.log K)/K) ≤56      (growingFamily K).chi*Real.sqrt (Real.log K) := by57    convert hlow using 158    ring59  constructor60  · linarith61  · nlinarith6263def inputLogScale : ℝ := Real.sqrt (2/Real.log 2)6465theorem inputLogScale_pos : 0 < inputLogScale := by66  unfold inputLogScale67  exact Real.sqrt_pos.mpr (by positivity)6869theorem input_sqrt_ratio_bounds :70    ∀ᶠ K : ℕ in atTop,71      inputLogScale/2 ≤ Real.sqrt (Scalar.log2 (inputQubits K))/Real.sqrt (Real.log K) ∧72      Real.sqrt (Scalar.log2 (inputQubits K))/Real.sqrt (Real.log K) ≤ 2*inputLogScale := by73  have ht := sqrt_inputLog_ratio_tendsto74  have hlo := ht.eventually (lt_mem_nhds (show inputLogScale/2 < inputLogScale by75    linarith [inputLogScale_pos]))76  have hhi := ht.eventually (gt_mem_nhds (show inputLogScale < 2*inputLogScale by77    linarith [inputLogScale_pos]))78  filter_upwards [hlo,hhi,eventually_ge_atTop 2] with K hl hh hK79  rw [Real.sqrt_div' _ (log_nat_pos hK).le] at hl hh80  exact ⟨hl.le,hh.le⟩8182/-- An explicit two-sided Θ bound for χ in the reciprocal square root of83log(input qubits), using the same channel family with quadratic input cost. -/84theorem growingFamily_chi_input_cost_bounds :85    ∀ᶠ K : ℕ in atTop,86      inputLogScale/2 ≤ (growingFamily K).chi*Real.sqrt (Scalar.log2 (inputQubits K)) ∧87      (growingFamily K).chi*Real.sqrt (Scalar.log2 (inputQubits K)) ≤88        (9/Real.log 2+1)*(2*inputLogScale) := by89  filter_upwards [growingFamily_chi_scaled_bounds,input_sqrt_ratio_bounds,eventually_ge_atTop 2]90    with K hc hr hK91  have hsqrt : 0<Real.sqrt (Real.log K) := Real.sqrt_pos.mpr (log_nat_pos hK)92  have he : ((growingFamily K).chi*Real.sqrt (Real.log K))*93      (Real.sqrt (Scalar.log2 (inputQubits K))/Real.sqrt (Real.log K)) =94      (growingFamily K).chi*Real.sqrt (Scalar.log2 (inputQubits K)) := by field_simp95  have hn := mul_nonneg (growingFamily K).chi_nonneg hsqrt.le96  have hlo := mul_le_mul hc.1 hr.1 (div_nonneg inputLogScale_pos.le (by norm_num)) hn97  have hhi := mul_le_mul hc.2 hr.2 (by positivity) (by positivity)98  rw [he] at hlo hhi99  exact ⟨by simpa using hlo,hhi⟩100101end Nonadditivity.PrescribedCost