Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.OperationalStrongConverse

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

Direct imports

Imported by project modules

1 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

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

7 declarations

Full module

1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.OperationalCapacity7import Mathlib.Analysis.SpecificLimits.Basic89/-! # Dimension strong converse for genuine quantum codes1011Above either the input or output logarithmic dimension, the actual decoding12success tends to zero. The finite bound is exponential in the block length.13-/1415noncomputable section1617namespace Nonadditivity.Operational.CodeSequence1819open Channels RegularizedHolevo Filter Topology2021variable {ι ο κ : Type*}22variable [Fintype ι] [DecidableEq ι] [Fintype ο] [DecidableEq ο] [Fintype κ]23variable {T : KrausChannel ι ο κ}2425private theorem scalar_dimension_ratio_bound {M d n : ℕ} (hM : 0 < M) (hd : 0 < d)26    {R : ℝ} (hR : R ≤ Scalar.log2 M / ((n + 1 : ℕ) : ℝ)) :27    (d : ℝ) ^ (n + 1) / M ≤28      Real.exp (((n + 1 : ℕ) : ℝ) * (Scalar.log2 d - R) * Real.log 2) := by29  have hdR : (0 : ℝ) < d := by exact_mod_cast hd30  have hMR : (0 : ℝ) < M := by exact_mod_cast hM31  have hn : (0 : ℝ) < ((n + 1 : ℕ) : ℝ) := by positivity32  have hlog : R * ((n + 1 : ℕ) : ℝ) * Real.log 2 ≤ Real.log M := by33    apply (le_div_iff₀ Scalar.log_two_pos).mp34    exact (le_div_iff₀ hn).mp hR35  have heq : (d : ℝ) ^ (n + 1) / M =36      Real.exp (((n + 1 : ℕ) : ℝ) * Real.log d - Real.log M) := by37    rw [Real.exp_sub, Real.exp_nat_mul, Real.exp_log hdR, Real.exp_log hMR]38  rw [heq]39  apply Real.exp_le_exp.mpr40  have hcancel : Scalar.log2 d * Real.log 2 = Real.log d := by41    exact div_mul_cancel₀ _ Scalar.log_two_pos.ne'42  calc43    ((n + 1 : ℕ) : ℝ) * Real.log d - Real.log M ≤44        ((n + 1 : ℕ) : ℝ) * Real.log d -45          R * ((n + 1 : ℕ) : ℝ) * Real.log 2 := sub_le_sub_left hlog _46    _ = ((n + 1 : ℕ) : ℝ) * (Scalar.log2 d - R) * Real.log 2 := by47      rw [mul_sub, sub_mul, mul_assoc _ (Scalar.log2 d), hcancel]48      ring4950/-- Exponential decoding-success bound at any finite block length. -/51theorem success_le_output_exponential [Nonempty ο] (S : CodeSequence T)52    (n : ℕ) {R : ℝ} (hR : R ≤ S.rate n) :53    (S.code n).success ≤54      Real.exp (((n + 1 : ℕ) : ℝ) * (Scalar.log2 (Fintype.card ο) - R) * Real.log 2) := by55  have h := (S.code n).success_le_dimension_div_messages56  simp only [positiveTensorIndex_card, Nat.cast_pow] at h57  exact h.trans (scalar_dimension_ratio_bound (S.messages_pos n) Fintype.card_pos hR)5859theorem success_le_input_exponential [Nonempty ι] (S : CodeSequence T)60    (n : ℕ) {R : ℝ} (hR : R ≤ S.rate n) :61    (S.code n).success ≤62      Real.exp (((n + 1 : ℕ) : ℝ) * (Scalar.log2 (Fintype.card ι) - R) * Real.log 2) := by63  have h := (S.code n).success_le_input_dimension_div_messages64  simp only [positiveTensorIndex_card, Nat.cast_pow] at h65  exact h.trans (scalar_dimension_ratio_bound (S.messages_pos n) Fintype.card_pos hR)6667private theorem success_tendsto_zero_of_exponential_bound68    (S : CodeSequence T) {R d : ℝ} (hR : S.HasRate R) (hd : d < R)69    (hbound : ∀ n r, r ≤ S.rate n → (S.code n).success ≤70      Real.exp (((n + 1 : ℕ) : ℝ) * (d - r) * Real.log 2)) :71    Tendsto (fun n => (S.code n).success) atTop (𝓝 0) := by72  let r := (d + R) / 273  have hdr : d < r := by dsimp [r]; linarith74  have hrR : r < R := by dsimp [r]; linarith75  have hnegative : (d - r) * Real.log 2 < 0 :=76    mul_neg_of_neg_of_pos (sub_neg.mpr hdr) Scalar.log_two_pos77  have hlimit : Tendsto78      (fun n : ℕ => Real.exp (((n + 1 : ℕ) : ℝ) * (d - r) * Real.log 2))79      atTop (𝓝 0) := by80    have hq := tendsto_pow_atTop_nhds_zero_of_lt_one81      (Real.exp_nonneg ((d - r) * Real.log 2)) (Real.exp_lt_one_iff.mpr hnegative)82    simpa only [← Real.exp_nat_mul, mul_assoc] using hq.comp (tendsto_add_atTop_nat 1)83  apply squeeze_zero' (Eventually.of_forall (fun n => (S.code n).success_nonneg)) _ hlimit84  filter_upwards [hR r hrR] with n hn85  exact hbound n r hn8687/-- Every rate strictly above the output dimension forces error to one. -/88theorem error_tendsto_one_of_output_rate [Nonempty ο] (S : CodeSequence T)89    {R : ℝ} (hR : S.HasRate R) (hd : Scalar.log2 (Fintype.card ο) < R) :90    Tendsto (fun n => (S.code n).error) atTop (𝓝 1) := by91  have h := success_tendsto_zero_of_exponential_bound S hR hd92    (fun n _ hn => S.success_le_output_exponential n hn)93  simpa only [sub_zero] using tendsto_const_nhds.sub h9495/-- The same strong converse holds above the input dimension. -/96theorem error_tendsto_one_of_input_rate [Nonempty ι] (S : CodeSequence T)97    {R : ℝ} (hR : S.HasRate R) (hd : Scalar.log2 (Fintype.card ι) < R) :98    Tendsto (fun n => (S.code n).error) atTop (𝓝 1) := by99  have h := success_tendsto_zero_of_exponential_bound S hR hd100    (fun n _ hn => S.success_le_input_exponential n hn)101  simpa only [sub_zero] using tendsto_const_nhds.sub h102103end Nonadditivity.Operational.CodeSequence