Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.PrescribedCostDimensions

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

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

13 declarations

Full module

1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.PrescribedCostScalars78/-! # Exact quadratic input-qubit cost along the growing-parameter separation -/910noncomputable section11namespace Nonadditivity.PrescribedCost12open Filter Topology Asymptotics13open ActualConsequences HaarPrescribedDimension StructuredHaarConsequences1415def scalarInputQubits (K : ℕ) : ℝ :=16  Dimensions.inputQubits K (Dimensions.matrixDimension17    (Quantitative.dimensionExponent (Real.log K)) (blockLength K)) (blockLength K)1819theorem log_div_nat_tendsto_zero :20    Tendsto (fun K : ℕ => Real.log K / K) atTop (𝓝 0) := by21  have h := (isLittleO_log_rpow_atTop (show (0:ℝ)<1 by norm_num)).tendsto_div_nhds_zero22  simpa only [Real.rpow_one] using h.comp tendsto_natCast_atTop_atTop2324theorem normalized_dimension_leading_tendsto :25    Tendsto (fun K : ℕ => Quantitative.dimensionExponent (Real.log K) *26      (blockLength K : ℝ)^2 / (K:ℝ)^2) atTop (𝓝 280) := by27  have h := ((normalized_blockLength_tendsto_one.pow 2).const_mul 280).add28    ((blockLength_div_tendsto_zero.pow 2).const_mul 80)29  have h' : Tendsto (fun K : ℕ =>30      280*((blockLength K:ℝ)*Real.sqrt (Real.log K)/K)^2 +31        80*((blockLength K:ℝ)/K)^2) atTop (𝓝 280) := by simpa using h32  apply h'.congr'33  filter_upwards [eventually_ge_atTop 2] with K hK34  simp only [Quantitative.dimensionExponent, div_pow, mul_pow,35    Real.sq_sqrt (log_nat_pos hK).le]36  ring3738theorem normalized_ceiling_error_tendsto :39    Tendsto (fun K : ℕ => ((blockLength K:ℝ) *40      (Real.log (Dimensions.matrixDimension (Quantitative.dimensionExponent (Real.log K))41        (blockLength K) : ℝ) - Quantitative.dimensionExponent (Real.log K)*(blockLength K))) /42        (K:ℝ)^2) atTop (𝓝 0) := by43  have hupper : Tendsto (fun K : ℕ => (blockLength K:ℝ)/(K:ℝ)^2) atTop (𝓝 0) := by44    have h := blockLength_div_tendsto_zero.div_atTop tendsto_natCast_atTop_atTop45    simpa only [div_div, ← pow_two] using h46  apply squeeze_zero' (Eventually.of_forall (fun K =>47    div_nonneg (mul_nonneg (Nat.cast_nonneg _)48      (Dimensions.log_matrixDimension_error _ _).1) (sq_nonneg _))) _ hupper49  filter_upwards [eventually_ge_atTop 2] with K hK50  have hb : 0 ≤ Quantitative.dimensionExponent (Real.log K) := by51    unfold Quantitative.dimensionExponent52    have hlog := (log_nat_pos hK).le53    positivity54  have he := (Dimensions.log_matrixDimension_error55    (Quantitative.dimensionExponent (Real.log K)) (blockLength K)).256  have he1 : Real.exp (-(Quantitative.dimensionExponent (Real.log K)*(blockLength K))) ≤ 1 :=57    Real.exp_le_one_iff.mpr (neg_nonpos.mpr (mul_nonneg hb (Nat.cast_nonneg _)))58  exact div_le_div_of_nonneg_right (by nlinarith [show (0:ℝ) ≤ blockLength K from Nat.cast_nonneg _]) (sq_nonneg (K:ℝ))5960/-- The exact rounded prescribed input dimension has the manuscript's61leading qubit cost `(280/log 2)*K^2`. -/62theorem scalarInputQubits_div_sq_tendsto :63    Tendsto (fun K : ℕ => scalarInputQubits K/(K:ℝ)^2)64      atTop (𝓝 (280/Real.log 2)) := by65  have hconst : Tendsto (fun K : ℕ => 1/(K:ℝ)^2) atTop (𝓝 0) := by66    simpa only [Function.comp_apply, one_div, inv_pow, zero_pow (by decide : 2 ≠ 0)] using67      ((tendsto_inv_atTop_zero : Tendsto (fun x : ℝ => x⁻¹) atTop (𝓝 0)).comp68        (tendsto_natCast_atTop_atTop : Tendsto (fun K : ℕ => (K:ℝ)) atTop atTop)).pow 269  have hlinear : Tendsto (fun K : ℕ =>70      (2/Real.log 2)*((blockLength K:ℝ)/K)*(Real.log K/K)) atTop (𝓝 0) := by71    simpa only [mul_zero] using72      (blockLength_div_tendsto_zero.const_mul (2/Real.log 2)).mul log_div_nat_tendsto_zero73  have h := ((hconst.add (normalized_dimension_leading_tendsto.div_const (Real.log 2))).add74    hlinear).add (normalized_ceiling_error_tendsto.div_const (Real.log 2))75  have h' : Tendsto (fun K : ℕ => 1/(K:ℝ)^2 +76      (Quantitative.dimensionExponent (Real.log K)*(blockLength K:ℝ)^2/(K:ℝ)^2)/Real.log 2 +77      (2/Real.log 2)*((blockLength K:ℝ)/K)*(Real.log K/K) +78      (((blockLength K:ℝ)*(Real.log (Dimensions.matrixDimension79        (Quantitative.dimensionExponent (Real.log K)) (blockLength K):ℝ) -80        Quantitative.dimensionExponent (Real.log K)*(blockLength K)))/(K:ℝ)^2)/Real.log 2)81      atTop (𝓝 (280/Real.log 2)) := by simpa using h82  apply h'.congr'83  filter_upwards [eventually_ge_atTop 2] with K hK84  unfold scalarInputQubits85  rw [Dimensions.input_qubits_formula (blockLength K) (by omega)86    (Dimensions.matrixDimension_pos _ _)]87  unfold Scalar.log288  ring8990/-- The actual prescribed channel at the growing block length. Initial91indices use the threshold built into `prescribedFamily`; eventually none do. -/92def growingFamily (K : ℕ) : FiniteQuantumChannel :=93  if hK : 2 ≤ K then prescribedFamily hK (blockLength K)94  else prescribedFamily (K := 2) (by decide) 19596theorem growingFamily_input_qubits_eventually :97    ∀ᶠ K : ℕ in atTop,98      Scalar.log2 (Fintype.card (growingFamily K).Input) = scalarInputQubits K := by99  filter_upwards [threshold_le_blockLength_eventually, eventually_ge_atTop 2] with K hn hK100  rw [growingFamily, dif_pos hK, (prescribedFamily_spec hK hn).1]101  rfl102103/-- The input cost statement concerns the actual selected channels, not a104dimension sequence disconnected from the quantum construction. -/105theorem growingFamily_input_qubits_div_sq_tendsto :106    Tendsto (fun K : ℕ => Scalar.log2 (Fintype.card (growingFamily K).Input)/(K:ℝ)^2)107      atTop (𝓝 (280/Real.log 2)) := by108  apply scalarInputQubits_div_sq_tendsto.congr'109  filter_upwards [growingFamily_input_qubits_eventually] with K hK110  rw [hK]111112end Nonadditivity.PrescribedCost