Exact Lean source
Nonadditivity.OperationalStrongConverse
Download original .lean · View on GitHub · Jump to source
Direct imports
Nonadditivity.OperationalCapacityMathlib.Analysis.SpecificLimits.Basicdependency
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
Nonadditivity.Operational.CodeSequence.error_tendsto_one_of_input_rateNonadditivity.Operational.CodeSequence.error_tendsto_one_of_output_rateNonadditivity.Operational.CodeSequence.success_le_input_exponentialNonadditivity.Operational.CodeSequence.success_le_output_exponential_private.Nonadditivity.OperationalStrongConverse.0.Nonadditivity.Operational.CodeSequence.scalar_dimension_ratio_boundinternal/detail/private_private.Nonadditivity.OperationalStrongConverse.0.Nonadditivity.Operational.CodeSequence.success_tendsto_zero_of_exponential_boundinternal/detail/private_private.Nonadditivity.OperationalStrongConverse.0.Nonadditivity.Operational.CodeSequence.success_tendsto_zero_of_exponential_bound._simp_1_1internal/detail/private
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 ≤28Real.exp (((n + 1 : ℕ) : ℝ) * (Scalar.log2 d - R) * Real.log 2) := by29have hdR : (0 : ℝ) < d := by exact_mod_cast hd30have hMR : (0 : ℝ) < M := by exact_mod_cast hM31have hn : (0 : ℝ) < ((n + 1 : ℕ) : ℝ) := by positivity32have hlog : R * ((n + 1 : ℕ) : ℝ) * Real.log 2 ≤ Real.log M := by33apply (le_div_iff₀ Scalar.log_two_pos).mp34exact (le_div_iff₀ hn).mp hR35have heq : (d : ℝ) ^ (n + 1) / M =36Real.exp (((n + 1 : ℕ) : ℝ) * Real.log d - Real.log M) := by37rw [Real.exp_sub, Real.exp_nat_mul, Real.exp_log hdR, Real.exp_log hMR]38rw [heq]39apply Real.exp_le_exp.mpr40have hcancel : Scalar.log2 d * Real.log 2 = Real.log d := by41exact div_mul_cancel₀ _ Scalar.log_two_pos.ne'42calc43((n + 1 : ℕ) : ℝ) * Real.log d - Real.log M ≤44((n + 1 : ℕ) : ℝ) * Real.log d -45R * ((n + 1 : ℕ) : ℝ) * Real.log 2 := sub_le_sub_left hlog _46_ = ((n + 1 : ℕ) : ℝ) * (Scalar.log2 d - R) * Real.log 2 := by47rw [mul_sub, sub_mul, mul_assoc _ (Scalar.log2 d), hcancel]48ring4950/-- 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 ≤54Real.exp (((n + 1 : ℕ) : ℝ) * (Scalar.log2 (Fintype.card ο) - R) * Real.log 2) := by55have h := (S.code n).success_le_dimension_div_messages56simp only [positiveTensorIndex_card, Nat.cast_pow] at h57exact 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 ≤62Real.exp (((n + 1 : ℕ) : ℝ) * (Scalar.log2 (Fintype.card ι) - R) * Real.log 2) := by63have h := (S.code n).success_le_input_dimension_div_messages64simp only [positiveTensorIndex_card, Nat.cast_pow] at h65exact 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 ≤70Real.exp (((n + 1 : ℕ) : ℝ) * (d - r) * Real.log 2)) :71Tendsto (fun n => (S.code n).success) atTop (𝓝 0) := by72let r := (d + R) / 273have hdr : d < r := by dsimp [r]; linarith74have hrR : r < R := by dsimp [r]; linarith75have hnegative : (d - r) * Real.log 2 < 0 :=76mul_neg_of_neg_of_pos (sub_neg.mpr hdr) Scalar.log_two_pos77have hlimit : Tendsto78(fun n : ℕ => Real.exp (((n + 1 : ℕ) : ℝ) * (d - r) * Real.log 2))79atTop (𝓝 0) := by80have hq := tendsto_pow_atTop_nhds_zero_of_lt_one81(Real.exp_nonneg ((d - r) * Real.log 2)) (Real.exp_lt_one_iff.mpr hnegative)82simpa only [← Real.exp_nat_mul, mul_assoc] using hq.comp (tendsto_add_atTop_nat 1)83apply squeeze_zero' (Eventually.of_forall (fun n => (S.code n).success_nonneg)) _ hlimit84filter_upwards [hR r hrR] with n hn85exact 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) :90Tendsto (fun n => (S.code n).error) atTop (𝓝 1) := by91have h := success_tendsto_zero_of_exponential_bound S hR hd92(fun n _ hn => S.success_le_output_exponential n hn)93simpa 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) :98Tendsto (fun n => (S.code n).error) atTop (𝓝 1) := by99have h := success_tendsto_zero_of_exponential_bound S hR hd100(fun n _ hn => S.success_le_input_exponential n hn)101simpa only [sub_zero] using tendsto_const_nhds.sub h102103end Nonadditivity.Operational.CodeSequence