Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.ActualConsequences

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

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

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

66 declarations

Full module

1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.HaarModel7import Nonadditivity.PositiveHolevo8import Nonadditivity.Asymptotics910/-!11# Asymptotic separation for actual finite quantum channels1213The channels in this file are actual finite Kraus CPTP maps. They are chosen14from the proved qualitative realization using the specified normalized Haar15matrix model. The two remaining analytic inputs are displayed explicitly:16Collins--Youn's free-operator bound and the canonical Haar strong convergence17statement. No numerical Holevo family or entropy inequality is assumed.1819The quantities here are Holevo information in bits. The file makes no20operational-capacity assertion and requires no coding theorem.21-/2223noncomputable section2425namespace Nonadditivity.ActualConsequences2627open Filter Topology28open Nonadditivity.Entropy Nonadditivity.Channels Nonadditivity.Channels.KrausChannel29open scoped BigOperators Matrix ComplexOrder3031/-- A packaged finite quantum channel, retaining its genuine Kraus CPTP map32and all finite Hilbert-space and environment indices. -/33structure FiniteQuantumChannel where34  Input : Type35  Output : Type36  Environment : Type37  inputFinite : Fintype Input38  inputDecidable : DecidableEq Input39  inputNonempty : Nonempty Input40  outputFinite : Fintype Output41  outputDecidable : DecidableEq Output42  outputNonempty : Nonempty Output43  environmentFinite : Fintype Environment44  channel : @KrausChannel Input Output Environment inputFinite inputDecidable outputFinite environmentFinite4546attribute [instance] FiniteQuantumChannel.inputFinite FiniteQuantumChannel.inputDecidable47  FiniteQuantumChannel.inputNonempty FiniteQuantumChannel.outputFinite48  FiniteQuantumChannel.outputDecidable FiniteQuantumChannel.outputNonempty49  FiniteQuantumChannel.environmentFinite5051namespace FiniteQuantumChannel5253/-- Package a concrete channel without changing its input, output, or map. -/54def ofKraus {ι ο κ : Type} [Fintype ι] [DecidableEq ι] [Nonempty ι]55    [Fintype ο] [DecidableEq ο] [Nonempty ο] [Fintype κ]56    (T : KrausChannel ι ο κ) : FiniteQuantumChannel where57  Input := ι58  Output := ο59  Environment := κ60  inputFinite := inferInstance61  inputDecidable := inferInstance62  inputNonempty := inferInstance63  outputFinite := inferInstance64  outputDecidable := inferInstance65  outputNonempty := inferInstance66  environmentFinite := inferInstance67  channel := T6869def chi (T : FiniteQuantumChannel) : ℝ := T.channel.holevoBits7071def chiTwo (T : FiniteQuantumChannel) : ℝ := (T.channel.tensor T.channel).holevoBits7273def gap (T : FiniteQuantumChannel) : ℝ := T.chiTwo - 2 * T.chi7475def twoUseRatio (T : FiniteQuantumChannel) : ℝ := T.chiTwo / (2 * T.chi)7677@[simp] theorem ofKraus_chi {ι ο κ : Type} [Fintype ι] [DecidableEq ι] [Nonempty ι]78    [Fintype ο] [DecidableEq ο] [Nonempty ο] [Fintype κ]79    (T : KrausChannel ι ο κ) : (ofKraus T).chi = T.holevoBits := rfl8081@[simp] theorem ofKraus_chiTwo {ι ο κ : Type} [Fintype ι] [DecidableEq ι] [Nonempty ι]82    [Fintype ο] [DecidableEq ο] [Nonempty ο] [Fintype κ]83    (T : KrausChannel ι ο κ) : (ofKraus T).chiTwo = (T.tensor T).holevoBits := rfl8485theorem chi_nonneg (T : FiniteQuantumChannel) : 0 ≤ T.chi := T.channel.holevoBits_nonneg8687theorem chiTwo_nonneg (T : FiniteQuantumChannel) : 0 ≤ T.chiTwo :=88  (T.channel.tensor T.channel).holevoBits_nonneg8990end FiniteQuantumChannel9192/-- The precise global analytic inputs needed to apply the actual-channel93realization to each finite parameter pair. These are operator and random94matrix statements, not assumptions about channel information quantities. -/95structure AnalyticInputs : Prop where96  collinsYoun : ∀ (K n : ℕ), 2 ≤ K → 1 ≤ n → FreeModel.CollinsYounBound K n97  haarStrong : ∀ (K : ℕ) [NeZero K] (n : ℕ), 2 ≤ K → 1 ≤ n →98    HaarModel.HaarStrongConvergence K n99100/-- The actual finite-channel existence bound in bits, obtained directly101from the canonical Haar model's analytic premises. -/102theorem exists_actual_channel_bounds_positive (inputs : AnalyticInputs) {K n : ℕ}103    (hK : 2 ≤ K) (hn : 1 ≤ n) {η : ℝ} (hη : 0 < η) :104    ∃ T : FiniteQuantumChannel,105      0 < T.chi ∧ T.chi ≤ (n : ℝ) * Scalar.aK K + η ∧106      (n : ℝ) * Scalar.log2 K / (K : ℝ) ≤ T.chiTwo := by107  letI : NeZero K := ⟨by omega⟩108  have hε : 0 < η * Real.log 2 := mul_pos hη Scalar.log_two_pos109  obtain ⟨N, ω, h₁, h₂, _⟩ :=110    HaarModel.qualitative_realization_of_CY_and_Haar_strong_convergence n hK hn hε111      (inputs.collinsYoun K n hK hn) (inputs.haarStrong K n hK hn)112  let T := Conversion.converted (BlockConstruction.blockChannel113    (HaarModel.sampleUnitary K n N ω) n)114  refine ⟨FiniteQuantumChannel.ofKraus T,115    PositiveHolevo.block_converted_holevoBits_pos hK (HaarModel.sampleUnitary K n N ω) hn,116    ?_, ?_⟩117  · exact HolevoBits.natural_upper_to_bits n h₁118  · exact HolevoBits.natural_lower_to_bits n h₂119120theorem exists_actual_channel_bounds (inputs : AnalyticInputs) {K n : ℕ}121    (hK : 2 ≤ K) (hn : 1 ≤ n) {η : ℝ} (hη : 0 < η) :122    ∃ T : FiniteQuantumChannel,123      T.chi ≤ (n : ℝ) * Scalar.aK K + η ∧124      (n : ℝ) * Scalar.log2 K / (K : ℝ) ≤ T.chiTwo := by125  obtain ⟨T, _, hu, hl⟩ := exists_actual_channel_bounds_positive inputs hK hn hη126  exact ⟨T, hu, hl⟩127128/-- Instantiate the actual construction with the manuscript's integer129`sqrt(log)` block length, rather than postulating a numerical channel family. -/130theorem exists_actual_separating_channel_positive (inputs : AnalyticInputs) {K : ℕ} (hK : 2 ≤ K) :131    ∃ T : FiniteQuantumChannel,132      0 < T.chi ∧ T.chi ≤ Asymptotics.separationUpper K ∧133      Asymptotics.separationLower K ≤ T.chiTwo / 2 := by134  have hKpos : (0 : ℝ) < K := by exact_mod_cast (show 0 < K by omega)135  have hn : 1 ≤ Asymptotics.blockLength K := Asymptotics.blockLength_pos hK136  obtain ⟨T, hpos, h₁, h₂⟩ := exists_actual_channel_bounds_positive inputs hK hn137    (show 0 < 1 / (K : ℝ) by positivity)138  refine ⟨T, hpos, ?_, ?_⟩139  · calc140      T.chi ≤ (Asymptotics.blockLength K : ℝ) * Scalar.aK K + 1 / (K : ℝ) := h₁141      _ ≤ (Asymptotics.blockLength K : ℝ) * (9 / ((K : ℝ) * Real.log 2)) + 1 / (K : ℝ) :=142        by143          have hh := mul_le_mul_of_nonneg_left (Scalar.aK_le hKpos)144            (Nat.cast_nonneg (Asymptotics.blockLength K) : (0 : ℝ) ≤ Asymptotics.blockLength K)145          linarith146      _ = Asymptotics.separationUpper K := by unfold Asymptotics.separationUpper; ring147  · have hh := div_le_div_of_nonneg_right h₂ (show (0 : ℝ) ≤ 2 by norm_num)148    convert hh using 1149    unfold Asymptotics.separationLower Scalar.log2150    ring151152theorem exists_actual_separating_channel (inputs : AnalyticInputs) {K : ℕ} (hK : 2 ≤ K) :153    ∃ T : FiniteQuantumChannel,154      T.chi ≤ Asymptotics.separationUpper K ∧155      Asymptotics.separationLower K ≤ T.chiTwo / 2 := by156  obtain ⟨T, _, hu, hl⟩ := exists_actual_separating_channel_positive inputs hK157  exact ⟨T, hu, hl⟩158159/-- An actual finite-dimensional channel sequence selected from the160construction. The first two indices use the identity channel; all later161indices use the proved Haar realization with the exact integer block length. -/162def separatingFamily (inputs : AnalyticInputs) (K : ℕ) : FiniteQuantumChannel :=163  if hK : 2 ≤ K then Classical.choose (exists_actual_separating_channel_positive inputs hK)164  else FiniteQuantumChannel.ofKraus (KrausChannel.identity : KrausChannel (Fin 1) (Fin 1) Unit)165166theorem separatingFamily_bounds (inputs : AnalyticInputs) {K : ℕ} (hK : 2 ≤ K) :167    (separatingFamily inputs K).chi ≤ Asymptotics.separationUpper K ∧168      Asymptotics.separationLower K ≤ (separatingFamily inputs K).chiTwo / 2 := by169  simp only [separatingFamily, dif_pos hK]170  exact (Classical.choose_spec (exists_actual_separating_channel_positive inputs hK)).2171172/-- Strict positive single-use information of every nontrivial member of173this actual family, derived from the proved universal constructed lower bound. -/174theorem separatingFamily_pos (inputs : AnalyticInputs) {K : ℕ} (hK : 2 ≤ K) :175    0 < (separatingFamily inputs K).chi := by176  simp only [separatingFamily, dif_pos hK]177  exact (Classical.choose_spec (exists_actual_separating_channel_positive inputs hK)).1178179/-- Vanishing single-use Holevo information and diverging two-use information180for a sequence of actual finite Kraus CPTP channels. Only the two explicitly181specified analytic inputs are hypotheses. -/182theorem actual_vanishing_diverging (inputs : AnalyticInputs) :183    Tendsto (fun K => (separatingFamily inputs K).chi) atTop (𝓝 0) ∧184      Tendsto (fun K => (separatingFamily inputs K).chiTwo / 2) atTop atTop := by185  obtain ⟨h₁, h₂, _⟩ := Asymptotics.vanishing_diverging_of_bounds186    (fun K => (separatingFamily inputs K).chi)187    (fun K => (separatingFamily inputs K).chiTwo / 2)188    (fun K => (separatingFamily inputs K).chiTwo / 2)189    (fun K => (separatingFamily inputs K).chi_nonneg)190    (fun K hK => (separatingFamily_bounds inputs hK).1)191    (fun K hK => (separatingFamily_bounds inputs hK).2)192    (fun _ => le_rfl)193  exact ⟨h₁, h₂⟩194195/-- The actual sequence's additive Holevo gap diverges to infinity. -/196theorem actual_gap_tendsto_atTop (inputs : AnalyticInputs) :197    Tendsto (fun K => (separatingFamily inputs K).gap) atTop atTop := by198  obtain ⟨h₁, h₂⟩ := actual_vanishing_diverging inputs199  have hp := h₂.const_mul_atTop (by norm_num : (0 : ℝ) < 2)200  have hn := h₁.const_mul (-2)201  have hh := hp.atTop_add hn202  convert hh using 1203  ext K204  unfold FiniteQuantumChannel.gap205  ring206207/-- Every finite requested additive gap is attained by an actual channel. -/208theorem actual_unbounded_gap (inputs : AnalyticInputs) (R : ℝ) :209    ∃ T : FiniteQuantumChannel, R ≤ T.gap := by210  obtain ⟨K, hK⟩ := ((actual_gap_tendsto_atTop inputs).eventually211    (eventually_ge_atTop R)).exists212  exact ⟨separatingFamily inputs K, hK⟩213214/-- Simultaneously arbitrarily small single-use information and arbitrarily215large half-two-use information, attained by a genuine finite CPTP channel. -/216theorem actual_small_large (inputs : AnalyticInputs) {ε R : ℝ} (hε : 0 < ε) :217    ∃ T : FiniteQuantumChannel, T.chi ≤ ε ∧ R ≤ T.chiTwo / 2 := by218  obtain ⟨h₁, h₂⟩ := actual_vanishing_diverging inputs219  have hs : ∀ᶠ K in atTop, (separatingFamily inputs K).chi < ε :=220    h₁.eventually (gt_mem_nhds hε)221  have hl : ∀ᶠ K in atTop, R ≤ (separatingFamily inputs K).chiTwo / 2 :=222    h₂.eventually (eventually_ge_atTop R)223  obtain ⟨K, hs, hl⟩ := (hs.and hl).exists224  exact ⟨separatingFamily inputs K, hs.le, hl⟩225226/-- The per-use gain available already with two uses diverges on the actual227channel sequence. This finite-block statement needs no operational coding theorem. -/228theorem actual_two_use_gain_tendsto_atTop (inputs : AnalyticInputs) :229    Tendsto (fun K => (separatingFamily inputs K).chiTwo / 2 -230      (separatingFamily inputs K).chi) atTop atTop := by231  have h := (actual_gap_tendsto_atTop inputs).atTop_div_const (by norm_num : (0 : ℝ) < 2)232  convert h using 1233  ext K234  unfold FiniteQuantumChannel.gap235  ring236237/-- Arbitrarily small single-use information and arbitrarily large two-use238per-use gain occur simultaneously for an actual finite quantum channel. -/239theorem actual_small_large_gain (inputs : AnalyticInputs) {ε R : ℝ} (hε : 0 < ε) :240    ∃ T : FiniteQuantumChannel, T.chi ≤ ε ∧ R ≤ T.chiTwo / 2 - T.chi := by241  have hs : ∀ᶠ K in atTop, (separatingFamily inputs K).chi < ε :=242    (actual_vanishing_diverging inputs).1.eventually (gt_mem_nhds hε)243  have hl : ∀ᶠ K in atTop, R ≤ (separatingFamily inputs K).chiTwo / 2 -244      (separatingFamily inputs K).chi :=245    (actual_two_use_gain_tendsto_atTop inputs).eventually (eventually_ge_atTop R)246  obtain ⟨K, hs, hl⟩ := (hs.and hl).exists247  exact ⟨separatingFamily inputs K, hs.le, hl⟩248249/-- The genuine two-use ratio diverges, with its denominator proved positive250for all `K ≥ 2`. No channel positivity premise is left to the caller. -/251theorem actual_ratio_tendsto_atTop (inputs : AnalyticInputs) :252    Tendsto (fun K => (separatingFamily inputs K).twoUseRatio) atTop atTop := by253  obtain ⟨hχ, htwo⟩ := actual_vanishing_diverging inputs254  have hsmall : ∀ᶠ K in atTop, (separatingFamily inputs K).chi < 1 :=255    hχ.eventually (gt_mem_nhds (by norm_num : (0 : ℝ) < 1))256  have hbound : ∀ᶠ K in atTop,257      (separatingFamily inputs K).chiTwo / 2 ≤ (separatingFamily inputs K).twoUseRatio := by258    filter_upwards [hsmall, eventually_ge_atTop 2] with K hs hK259    have hp := separatingFamily_pos inputs hK260    have hn := (separatingFamily inputs K).chiTwo_nonneg261    have hm := mul_le_mul_of_nonneg_left hs.le hn262    unfold FiniteQuantumChannel.twoUseRatio263    apply (le_div_iff₀ (by positivity : 0 < 2 * (separatingFamily inputs K).chi)).2264    nlinarith265  exact tendsto_atTop_mono' atTop hbound htwo266267/-- Arbitrarily large additive and multiplicative violations occur268simultaneously for an actual finite channel with strictly positive information. -/269theorem actual_large_gap_and_ratio (inputs : AnalyticInputs) (A R : ℝ) :270    ∃ T : FiniteQuantumChannel, 0 < T.chi ∧ A ≤ T.gap ∧ R ≤ T.twoUseRatio := by271  have hg : ∀ᶠ K in atTop, A ≤ (separatingFamily inputs K).gap :=272    (actual_gap_tendsto_atTop inputs).eventually (eventually_ge_atTop A)273  have hr : ∀ᶠ K in atTop, R ≤ (separatingFamily inputs K).twoUseRatio :=274    (actual_ratio_tendsto_atTop inputs).eventually (eventually_ge_atTop R)275  obtain ⟨K, hK, hg, hr⟩ := ((eventually_ge_atTop 2).and (hg.and hr)).exists276  exact ⟨separatingFamily inputs K, separatingFamily_pos inputs hK, hg, hr⟩277278end Nonadditivity.ActualConsequences