Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.ExactQualitative

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

Catalog entries: Qualitative finite-dimensional realization

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

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

6 declarations

Full module

1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.DeterministicQualitative7import Nonadditivity.WeightedBlockBell8import Nonadditivity.WeightedParameters9import Nonadditivity.WeightedPositivity1011/-! # The exact qualitative bounds without Haar assumptions1213A nonzero arbitrarily small perturbation of the branch weights supplies a14strict Bell entropy reserve. Its effect on the adjoint certificate fits inside15the prescribed single-use tolerance. Finite-moment damping is chosen only after16this reserve is fixed, so its entropy error is absorbed completely. This proves17the displayed qualitative bounds with no error in the two-use lower bound.1819The construction is different from the manuscript's Haar construction and does20not supply its sharp prescribed local dimension.21-/22noncomputable section23set_option backward.isDefEq.respectTransparency false24set_option maxHeartbeats 60000025namespace Nonadditivity.ExactQualitative26open Entropy Channels Channels.KrausChannel AdjointPurity BlockConstruction27open Conversion BlockScalars ActualConsequences FiniteBlockModel28open WeightedBellScalar WeightedBlock29open scoped BigOperators Matrix.Norms.L2Operator ComplexOrder MatrixOrder3031/-- The manuscript's qualitative channel dimensions and exact two-use lower32bound, now with every analytic existence premise discharged. -/33theorem exists_actual_channel_bounds_with_dimensions {K n : ℕ}34    (hK : 2 ≤ K) (hn : 1 ≤ n) {η : ℝ} (hη : 0 < η) :35    ∃ (T : FiniteQuantumChannel) (N : ℕ), 0 < N ∧36      Fintype.card T.Input = 2 * N^n * K^(2*n) ∧37      Fintype.card T.Output = K^n ∧38      0 < T.chi ∧ T.chi ≤ (n : ℝ)*Scalar.aK K+η ∧39      (n : ℝ)*Scalar.log2 K/(K : ℝ) ≤ T.chiTwo := by40  classical41  letI : NeZero K := ⟨by omega⟩42  let ε : ℝ := η * Real.log 243  have hε : 0 < ε := mul_pos hη Scalar.log_two_pos44  obtain ⟨δ,hδ,_,hbudget⟩ := WeightedParameters.exists_collinsYoun_budget hK hn hε45  obtain ⟨s,hs,hsK,hscale⟩ := WeightedParameters.exists_small_perturbation hK n hδ46  let q := perturbedWeights hK s47  have hq (i : Fin K) : 0 ≤ q i := (perturbedWeights_positive hK hs.le hsK i).le48  have hsum : ∑ i, q i=1 := perturbedWeights_sum hK s49  let margin : ℝ := (n : ℝ)*(2*s^2*Real.log K)50  have hnpos : (0 : ℝ) < n := by exact_mod_cast (show 0<n by omega)51  have hmargin : 0 < margin := mul_pos hnpos (perturbation_margin_pos hK hs)52  obtain ⟨τ,hτ,hstable⟩ := EntropyStability.exists_damped_bell_entropy_modulus53    (ο := ZMod (K^n)) margin hmargin54  obtain ⟨m,hm,horder⟩ := DampedRealization.exists_moment_order55    (ο := ZMod (K^n)) (amplification_gt_one (half_pos hε))56    (collinsYounConstant_pos hK hn) hτ57  let U := baseUnitary K (4*m)58  let B := blockChannel U n59  obtain ⟨F,G,hF,hres,hGF,hcert,hloss⟩ := horder _ _ B (by60    intro A _ ht hu61    exact block_adjoint_normalized_moment_le hK hn m A ht hu.le)62  let W := weightedBlock U q hq hsum n63  let D := DampedChannel.damped W F hF hres64  letI : DecidableEq ((ZMod (K^n) × ZMod (K^n)) ×65      (Bool × TensorChainIndex (LocalIndex K (4*m)) n)) := instDecidableEqProd66  let T := converted D67  have hweighted := WeightedCertificate.damped_weighted_certificate B (outputScale q n)68    (outputScale_isHermitian q n) (block_adjoint_outputScale_sq U q hq hsum n)69    F hF hres hδ.le hscale hcert70  rw [← weightedBlock_eq_weighted U q hq hsum n] at hweighted71  have hfinal : ∀ A : Matrix (ZMod (K^n)) (ZMod (K^n)) ℂ,72      A.IsHermitian → A.trace=0 →73      ‖D.adjointMap A‖ ≤ amplification ε*collinsYounConstant K n*hsLength A := by74    intro A hA ht75    exact (hweighted A hA ht).trans76      (mul_le_mul_of_nonneg_right hbudget (hsLength_nonneg A))77  have hsingle : T.holevo ≤ (n : ℝ)*Real.log (1+9/(K : ℝ))+ε := by78    have h := converted_holevo_le_of_adjoint_certificate D79      (amplification_times_constant_pos (η := ε) hK hn).le hfinal80    simp only [Nat.cast_pow] at h81    exact h.trans (log_purity_factor_le_eta hK hε)82  have hb := weightedBlock_canonical_entropy_le U q hq hsum n83  have hsq : ∑ i, q i^2 = 1/(K : ℝ)+2*s^2 := perturbedWeights_sum_sq hK s84  rw [hsq] at hb85  have hd := hstable W F hF hres hloss86  have hjoint : ((D.tensor D.conjugate).output BellOutput.bellState).vonNeumann ≤87      (n : ℝ)*(2*Real.log K-Real.log K/(K : ℝ)) := by88    calc89      _ ≤ (DampedBellStability.pairedBellOutput W).vonNeumann + margin := hd90      _ ≤ (n : ℝ)*(2*Real.log K-(1/(K : ℝ)+2*s^2)*Real.log K)+margin :=91        add_le_add hb (le_refl margin)92      _ = _ := by dsimp only [margin]; ring93  have hpair := converted_tensor_holevo_lower D BellOutput.bellState94  have hlower : (n : ℝ)*Real.log K/(K : ℝ) ≤ (T.tensor T).holevo := by95    have hc := two_use_entropy_cancellation K n96    linarith97  have hpos : 0 < T.holevoBits := by98    apply WeightedPositivity.converted_damped_weightedBlock_holevoBits_pos99      U q hq hsum hn ⟨⟨0,by omega⟩,?_⟩ F G hF hres hGF100    change perturbedWeights hK s ⟨0,by omega⟩ ≠ _101    rw [perturbedWeights_zero_index]102    linarith103  refine ⟨FiniteQuantumChannel.ofKraus T, Fintype.card (LocalIndex K (4*m)),104    Fintype.card_pos, ?_, ?_, hpos, ?_, ?_⟩105  · exact Qualitative.constructed_input_dimension (LocalIndex K (4*m)) n106  · exact ZMod.card _107  · exact HolevoBits.natural_upper_to_bits n hsingle108  · exact HolevoBits.natural_lower_to_bits n hlower109110theorem exists_actual_channel_bounds_positive {K n : ℕ}111    (hK : 2 ≤ K) (hn : 1 ≤ n) {η : ℝ} (hη : 0 < η) :112    ∃ T : FiniteQuantumChannel,113      0 < T.chi ∧ T.chi ≤ (n : ℝ)*Scalar.aK K+η ∧114      (n : ℝ)*Scalar.log2 K/(K : ℝ) ≤ T.chiTwo := by115  obtain ⟨T,_,_,_,_,h⟩ := exists_actual_channel_bounds_with_dimensions hK hn hη116  exact ⟨T,h⟩117118/-- The exact qualitative additive lower bound for the same genuine channel. -/119theorem exists_actual_channel_gap {K n : ℕ}120    (hK : 2 ≤ K) (hn : 1 ≤ n) {η : ℝ} (hη : 0 < η) :121    ∃ T : FiniteQuantumChannel,122      0 < T.chi ∧ T.chi ≤ (n : ℝ)*Scalar.aK K+η ∧123      (n : ℝ)*Scalar.deltaK K-2*η ≤ T.gap := by124  obtain ⟨T,hp,hu,hl⟩ := exists_actual_channel_bounds_positive hK hn hη125  refine ⟨T,hp,hu,?_⟩126  exact Scalar.holevo_gap hu (by simpa only [mul_div_assoc] using hl)127128end Nonadditivity.ExactQualitative