Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.Conversion

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

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

9 declarations

Full module

1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.SwitchChannel7import Nonadditivity.ChannelTensorControl8import Nonadditivity.WeylTensor910/-! # Concrete entropy-gap to Holevo-gap conversion1112This file applies the checked switch and Weyl constructions to actual13Kraus channels. Its analytic norm-certificate premise remains explicit.14-/1516noncomputable section1718namespace Nonadditivity.Conversion1920open Entropy Channels Channels.KrausChannel AdjointPurity21open scoped Matrix.Norms.L2Operator2223variable {ι κ : Type*} [Fintype ι] [DecidableEq ι] [Fintype κ]24variable {d : ℕ} [NeZero d]2526/-- The manuscript's switch followed by its `d²`-label Weyl extension. -/27def converted (T : KrausChannel ι (ZMod d) κ) := T.switch.weylExtension2829theorem converted_holevo [Nonempty ι] (T : KrausChannel ι (ZMod d) κ) :30    (converted T).holevo = Real.log d - T.minimumEntropy :=31  T.switch_weylExtension_holevo3233theorem converted_holevo_le_of_output_entropy [Nonempty ι]34    (T : KrausChannel ι (ZMod d) κ) {s : ℝ}35    (hentropy : ∀ ρ : DensityMatrix ι, s ≤ (T.output ρ).vonNeumann) :36    (converted T).holevo ≤ Real.log d - s := by37  rw [converted_holevo]38  have hmin : s ≤ T.minimumEntropy := by39    apply le_csInf (T.outputs_nonempty.image _)40    rintro _ ⟨_, ⟨ρ, rfl⟩, rfl⟩41    exact hentropy ρ42  linarith4344/-- A genuine finite-dimensional channel with the required small single-use45Holevo information, from an adjoint operator/HS certificate for its base. -/46theorem converted_holevo_le_of_adjoint_certificate [Nonempty ι]47    (T : KrausChannel ι (ZMod d) κ) {t : ℝ} (ht : 0 ≤ t)48    (hcertificate : ∀ A : Matrix (ZMod d) (ZMod d) ℂ,49      A.IsHermitian → A.trace = 0 → ‖T.adjointMap A‖ ≤ t * hsLength A) :50    (converted T).holevo ≤ Real.log (1 + (d : ℝ) * t ^ 2) := by51  have h := converted_holevo_le_of_output_entropy T52    (fun ρ => (T.output_purity_and_entropy_of_certificate ht hcertificate ρ).2)53  simp only [ZMod.card] at h54  linarith5556omit [DecidableEq ι] in57/-- The final classical registers have exactly the claimed size `2d²`. -/58theorem converted_input_dimension :59    Fintype.card ((ZMod d × ZMod d) × (Bool × ι)) =60      2 * Fintype.card ι * d ^ 2 := by61  simp [pow_two]62  ring6364/-- Independent Weyl labels turn any joint output into a real finite coding65ensemble, even when the underlying input is entangled. -/66theorem weyl_tensor_holevo_lower {μ η : Type*} [Fintype μ] [DecidableEq μ] [Fintype η]67    (T : KrausChannel ι (ZMod d) κ) (S : KrausChannel μ (ZMod d) η)68    (ρ : DensityMatrix (ι × μ)) :69    2 * Real.log d - ((T.tensor S).output ρ).vonNeumann ≤70      (T.weylExtension.tensor S.weylExtension).holevo := by71  apply WeylTensor.orbit_information_lower_bound72    (T.weylExtension.tensor S.weylExtension).outputs ((T.tensor S).output ρ)73  intro q r74  refine ⟨jointLabelledState q r ρ, ?_⟩75  change ((controlled (fun q => T.outputUnitary (Weyl.family q))).tensor76    (controlled (fun r => S.outputUnitary (Weyl.family r)))).output77      (jointLabelledState q r ρ) = _78  rw [controlled_tensor_output_labelled, tensor_outputUnitary_output]79  rfl8081/-- The two switches reproduce the original/conjugate pair on an arbitrary82entangled input; independent Weyl ensembles then give the two-use lower bound. -/83theorem converted_tensor_holevo_lower (T : KrausChannel ι (ZMod d) κ)84    (ρ : DensityMatrix (ι × ι)) :85    2 * Real.log d - ((T.tensor T.conjugate).output ρ).vonNeumann ≤86      ((converted T).tensor (converted T)).holevo := by87  have h := weyl_tensor_holevo_lower T.switch T.switch (jointLabelledState false true ρ)88  have ho : (T.switch.tensor T.switch).output (jointLabelledState false true ρ) =89      (T.tensor T.conjugate).output ρ := by90    change ((controlled (fun b : Bool => if b then T.conjugate else T)).tensor91      (controlled (fun b : Bool => if b then T.conjugate else T))).output _ = _92    rw [controlled_tensor_output_labelled]93    rfl94  rw [ho] at h95  exact h9697/-- A proved minimum-output entropy gap becomes a Holevo gap for a single98explicit CPTP channel, without assuming either Holevo estimate. -/99theorem converted_gap_lower [Nonempty ι] (T : KrausChannel ι (ZMod d) κ)100    (ρ : DensityMatrix (ι × ι)) :101    2 * T.minimumEntropy - ((T.tensor T.conjugate).output ρ).vonNeumann ≤102      ((converted T).tensor (converted T)).holevo - 2 * (converted T).holevo := by103  have h := converted_tensor_holevo_lower T ρ104  rw [converted_holevo]105  linarith106107/-- The remaining premises are the base adjoint norm certificate and a joint108entropy witness. Positivity, all entropy inequalities, switch, and Weyl109conversion are proved internally. -/110theorem converted_bounds_of_certificate [Nonempty ι]111    (T : KrausChannel ι (ZMod d) κ) {t B : ℝ} (ht : 0 ≤ t)112    (hcertificate : ∀ A : Matrix (ZMod d) (ZMod d) ℂ,113      A.IsHermitian → A.trace = 0 → ‖T.adjointMap A‖ ≤ t * hsLength A)114    (ρ : DensityMatrix (ι × ι))115    (hjoint : ((T.tensor T.conjugate).output ρ).vonNeumann ≤ B) :116    (converted T).holevo ≤ Real.log (1 + (d : ℝ) * t ^ 2) ∧117    2 * Real.log d - B ≤ ((converted T).tensor (converted T)).holevo ∧118    2 * Real.log d - B - 2 * Real.log (1 + (d : ℝ) * t ^ 2) ≤119      ((converted T).tensor (converted T)).holevo - 2 * (converted T).holevo := by120  have h₁ := converted_holevo_le_of_adjoint_certificate T ht hcertificate121  have h₂ := converted_tensor_holevo_lower T ρ122  exact ⟨h₁, by linarith, by linarith⟩123124end Nonadditivity.Conversion