Exact Lean source
Nonadditivity.OperationalWeakConverse
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
20 project constants, including generated, internal and private declarations.
20 declarations
Nonadditivity.Operational.Code.log_messages_le_holevo_add_dimension_errorNonadditivity.Operational.Code.log_messages_le_holevo_add_errorNonadditivity.Operational.Code.mean_projected_distance_leNonadditivity.Operational.CodeSequence.hasRate_le_regularizedHolevoSupremumNonadditivity.Operational.CodeSequence.holevoCorrectionNonadditivity.Operational.CodeSequence.holevoCorrection._proof_1internal/detail/privateNonadditivity.Operational.CodeSequence.holevoCorrection._proof_2internal/detail/privateNonadditivity.Operational.CodeSequence.holevoCorrection.eq_1internal/detail/privateNonadditivity.Operational.CodeSequence.holevoCorrection_tendsto_zeroNonadditivity.Operational.CodeSequence.rate_le_normalizedPowerHolevo_add_correctionNonadditivity.Operational.CodeSequence.rate_le_normalizedPowerHolevo_add_correction._simp_1_1internal/detail/privateNonadditivity.Operational.CodeSequence.rate_le_normalizedPowerHolevo_add_correction._simp_1_2internal/detail/privateNonadditivity.Operational.CodeSequence.rate_le_normalizedPowerHolevo_add_correction._simp_1_3internal/detail/privateNonadditivity.Operational.CodeSequence.rate_le_normalizedPowerHolevo_add_correction._simp_1_4internal/detail/privateNonadditivity.Operational.CodeSequence.rate_le_normalizedPowerHolevo_add_correction._simp_1_5internal/detail/privateNonadditivity.Operational.CodeSequence.rate_le_normalizedPowerHolevo_add_correction._simp_1_6internal/detail/privateNonadditivity.Operational.CodeSequence.rate_le_normalizedPowerHolevo_add_correction._simp_1_7internal/detail/privateNonadditivity.Operational.POVM.projectedState_traceDistanceNonadditivity.Operational.achievableRate_le_regularizedHolevoSupremumNonadditivity.Operational.operationalCapacity_le_regularizedHolevoSupremum
Full module
1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.OperationalProjectedCode7import Nonadditivity.QuantumCodingGentle8import Nonadditivity.OperationalCapacity910/-! # Operational Holevo weak converse from actual decoders1112The proof embeds the actual POVM by its concrete Naimark isometry, projects13each successful message into its orthogonal label, and uses the proved gentle14projection and entropy-continuity estimates. No measured relative entropy15or coding inequality is assumed.16-/1718noncomputable section1920namespace Nonadditivity.Operational2122open Entropy Channels QuantumCodingContinuity OperationalFlaggedEntropy RegularizedHolevo23open Filter Topology24open scoped BigOperators ComplexOrder2526namespace POVM2728variable {ο μ : Type*} [Fintype ο] [DecidableEq ο] [Nonempty ο]29[Fintype μ] [DecidableEq μ]3031/-- The actual orthogonal comparison state is close whenever that message32is decoded with high probability, including zero-probability fallback. -/33theorem projectedState_traceDistance (P : POVM ο μ) (ρ : DensityMatrix ο) (m : μ) :34traceDistance (P.projectedState ρ m) (P.dilate ρ) ≤35Real.sqrt (2 * (1 - P.probability ρ m)) := by36by_cases h : 0 < P.probability ρ m37· rw [traceDistance_comm]38exact traceDistance_gentle_projection (P.dilate ρ) (P.projectedState ρ m)39(labelProjection m) (labelProjection_hermitian m) (labelProjection_idempotent m)40(P.probability ρ m) h (P.probability_le_one ρ m)41(P.labelProjection_compress_trace ρ m)42(by simpa only [Complex.ofReal_inv] using P.projectedState_matrix_of_pos ρ m h)43· have hz : P.probability ρ m = 0 :=44le_antisymm (le_of_not_gt h) (P.probability_nonneg ρ m)45rw [hz]46exact (traceDistance_le_one _ _).trans (by norm_num)4748end POVM4950namespace Code5152variable {ι ο κ : Type*} [Fintype ι] [DecidableEq ι]53[Fintype ο] [DecidableEq ο] [Nonempty ο] [Fintype κ]54variable {T : KrausChannel ι ο κ} {M : ℕ}5556theorem mean_projected_distance_le (C : Code T M) (hM : 0 < M) :57(∑ m, traceDistance (C.decode.projectedState (T.output (C.encode m)) m)58(C.decode.dilate (T.output (C.encode m)))) / M ≤ Real.sqrt (2 * C.error) := by59have h₁ := div_le_div_of_nonneg_right (Finset.sum_le_sum fun m (_ : m ∈ Finset.univ) =>60C.decode.projectedState_traceDistance (T.output (C.encode m)) m) (Nat.cast_nonneg M)61have h₂ := mean_sqrt_le_sqrt_mean hM62(fun m => 2 * (1 - C.decode.probability (T.output (C.encode m)) m))63(fun m => mul_nonneg (by norm_num) (sub_nonneg.mpr (C.decode.probability_le_one _ m)))64have he : (∑ m, 2 * (1 - C.decode.probability (T.output (C.encode m)) m)) / M =652 * C.error := by66rw [← Finset.mul_sum, mul_div_assoc, C.mean_failure_eq_error hM]67rw [he] at h₂68exact h₁.trans h₂6970/-- A finite-block Holevo converse for actual channel input codewords and71actual POVM decoding error. All analytic and coding inequalities are proved. -/72theorem log_messages_le_holevo_add_error (C : Code T M) (hM : 0 < M) :73Real.log M ≤ T.holevo + 2 * Real.sqrt (2 * C.error) *74Real.log ((M : ℝ) * Fintype.card ο) + 4 * Real.log 2 := by75letI : NeZero M := ⟨Nat.ne_of_gt hM⟩76have h := uniformInformation_le_add_of_mean_traceDistance hM77(fun m => C.decode.dilate (T.output (C.encode m)))78(fun m => C.decode.projectedState (T.output (C.encode m)) m)79(C.mean_projected_distance_le hM)80rw [uniformInformation_dilate] at h81have hflag : uniformInformation hM82(fun m => C.decode.projectedState (T.output (C.encode m)) m) = Real.log M :=83uniformInformation_flags hM (fun m => C.decode.normalizedBlockState (T.output (C.encode m)) m)84rw [hflag, Fintype.card_prod, Fintype.card_fin, Nat.cast_mul] at h85have hinfo := C.uniformInformation_le_holevo hM86linarith8788/-- At error at most one half, the actual dimension packing estimate89eliminates the message count from the continuity loss. -/90theorem log_messages_le_holevo_add_dimension_error (C : Code T M) (hM : 0 < M)91(he : C.error ≤ 1 / 2) :92Real.log M ≤ T.holevo + 2 * Real.sqrt (2 * C.error) *93(Real.log 2 + 2 * Real.log (Fintype.card ο)) + 4 * Real.log 2 := by94have hd : (0 : ℝ) < Fintype.card ο := by exact_mod_cast Fintype.card_pos95have hMpos : (0 : ℝ) < M := by exact_mod_cast hM96have hp := C.messages_le_dimension_div_one_sub_error (by norm_num) he97norm_num at hp98have hprod : (M : ℝ) * Fintype.card ο ≤ 2 * (Fintype.card ο : ℝ) ^ 2 := by99nlinarith100have hl := Real.log_le_log (mul_pos hMpos hd) hprod101rw [Real.log_mul (by norm_num : (2 : ℝ) ≠ 0) (pow_ne_zero _ hd.ne'),102Real.log_pow] at hl103norm_num only [Nat.cast_ofNat] at hl104have hm := mul_le_mul_of_nonneg_left hl105(mul_nonneg (by norm_num : (0 : ℝ) ≤ 2) (Real.sqrt_nonneg (2 * C.error)))106have hh := C.log_messages_le_holevo_add_error hM107linarith108109end Code110111namespace CodeSequence112113variable {ι ο κ : Type*} [Fintype ι] [DecidableEq ι]114[Fintype ο] [DecidableEq ο] [Nonempty ο] [Fintype κ]115variable {T : KrausChannel ι ο κ}116117/-- Explicit loss in the finite-block rate converse. -/118def holevoCorrection (S : CodeSequence T) (n : ℕ) : ℝ :=1194 * Real.sqrt (2 * (S.code n).error) * Scalar.log2 (Fintype.card ο) +120(2 * Real.sqrt (2 * (S.code n).error) + 4) / ((n + 1 : ℕ) : ℝ)121122theorem rate_le_normalizedPowerHolevo_add_correction (S : CodeSequence T) (n : ℕ)123(he : (S.code n).error ≤ 1 / 2) :124S.rate n ≤ normalizedPowerHolevo T n + S.holevoCorrection n := by125have h := (S.code n).log_messages_le_holevo_add_dimension_error (S.messages_pos n) he126simp only [positiveTensorIndex_card, Nat.cast_pow, Real.log_pow] at h127have hn : (0 : ℝ) < ((n + 1 : ℕ) : ℝ) := by positivity128have hd := div_le_div_of_nonneg_right h (mul_nonneg Scalar.log_two_pos.le hn.le)129convert hd using 1 <;>130dsimp [rate, holevoCorrection, normalizedPowerHolevo, KrausChannel.holevoBits, Scalar.log2] <;>131(field_simp; all_goals ring)132133omit [Nonempty ο] in134theorem holevoCorrection_tendsto_zero (S : CodeSequence T) (he : S.VanishingError) :135Tendsto (S.holevoCorrection) atTop (𝓝 0) := by136have hs : Tendsto (fun n => Real.sqrt (2 * (S.code n).error)) atTop (𝓝 0) := by137simpa using (he.const_mul 2).sqrt138have hl : Tendsto (fun n : ℕ => ((n + 1 : ℕ) : ℝ)) atTop atTop :=139tendsto_natCast_atTop_atTop.comp (tendsto_add_atTop_nat 1)140have hfirst : Tendsto (fun n => 4 * Real.sqrt (2 * (S.code n).error) *141Scalar.log2 (Fintype.card ο)) atTop (𝓝 0) := by142simpa using (hs.const_mul 4).mul_const (Scalar.log2 (Fintype.card ο))143have hsecond : Tendsto (fun n => (2 * Real.sqrt (2 * (S.code n).error) + 4) /144((n + 1 : ℕ) : ℝ)) atTop (𝓝 0) := by145exact ((hs.const_mul 2).add_const 4).div_atTop hl146simpa only [holevoCorrection, zero_add] using hfirst.add hsecond147148variable [Nonempty ι]149150theorem hasRate_le_regularizedHolevoSupremum (S : CodeSequence T) {R : ℝ}151(he : S.VanishingError) (hr : S.HasRate R) :152R ≤ sSup (Set.range (normalizedPowerHolevo T)) := by153let C := sSup (Set.range (normalizedPowerHolevo T))154have hb : BddAbove (Set.range (normalizedPowerHolevo T)) := by155refine ⟨Scalar.log2 (Fintype.card ο), ?_⟩156rintro _ ⟨n, rfl⟩157exact normalizedPowerHolevo_le T n158have hle (n : ℕ) : normalizedPowerHolevo T n ≤ C := le_csSup hb ⟨n, rfl⟩159have hbound : ∀ᶠ n in atTop, S.rate n ≤ C + S.holevoCorrection n := by160have hevent : ∀ᶠ n in atTop, (S.code n).error < 1 / 2 :=161he.eventually (gt_mem_nhds (by norm_num))162filter_upwards [hevent] with n hn163have h₁ := S.rate_le_normalizedPowerHolevo_add_correction n hn.le164linarith [hle n]165have hlimit : Tendsto (fun n => C + S.holevoCorrection n) atTop (𝓝 C) := by166simpa using tendsto_const_nhds.add (S.holevoCorrection_tendsto_zero he)167by_contra h168have hCR : C < R := lt_of_not_ge h169let r := (C + R) / 2170have hCr : C < r := by dsimp [r]; linarith171have hrR : r < R := by dsimp [r]; linarith172have hlo : ∀ᶠ n in atTop, r ≤ C + S.holevoCorrection n := by173filter_upwards [hr r hrR, hbound] with n hn hb using hn.trans hb174have hc := ge_of_tendsto hlimit hlo175linarith176177end CodeSequence178179variable {ι ο κ : Type*} [Fintype ι] [DecidableEq ι] [Nonempty ι]180[Fintype ο] [DecidableEq ο] [Nonempty ο] [Fintype κ]181182/-- Every operationally achievable rate is bounded by the regularized183Holevo supremum, with no coding theorem used as an assumption. -/184theorem achievableRate_le_regularizedHolevoSupremum {T : KrausChannel ι ο κ} {R : ℝ}185(hR : AchievableRate T R) : R ≤ sSup (Set.range (normalizedPowerHolevo T)) := by186obtain ⟨S, he, hr⟩ := hR187exact S.hasRate_le_regularizedHolevoSupremum he hr188189/-- Operational capacity, independently defined through actual encoders and190decoders with vanishing average error, is at most the regularized Holevo191supremum of the genuine tensor powers. -/192theorem operationalCapacity_le_regularizedHolevoSupremum (T : KrausChannel ι ο κ) :193operationalCapacity T ≤ sSup (Set.range (normalizedPowerHolevo T)) :=194csSup_le ⟨0, zero_achievable T⟩ (fun _ h => achievableRate_le_regularizedHolevoSupremum h)195196end Nonadditivity.Operational