Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.HolevoTensorSuperadditivity

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

Direct imports

Imported by project modules

3 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

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

28 declarations

Full module

1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.HolevoBits78/-! # Holevo superadditivity for genuine tensor-product channels910Product ensembles give the information sum, using the proved entropy identity11for actual product density matrices. No entropy or Holevo additivity premise is12used. Basis changes and Kraus relabeling preserve the Holevo supremum.13-/1415noncomputable section1617namespace Nonadditivity1819open Entropy Channels Channels.KrausChannel20open scoped BigOperators Kronecker Matrix2122namespace StateEnsembles2324variable {ι μ : Type*} [Fintype ι] [DecidableEq ι] [Fintype μ] [DecidableEq μ]2526/-- An ensemble with an arbitrary finite label type, represented in the defining27`Fin`-indexed collection without changing its weights or states. -/28def Ensemble.ofFinite {α : Type*} [Fintype α] {outputs : Set (DensityMatrix ι)}29    (p : α → ℝ) (hp : ∀ a, 0 ≤ p a) (hsum : ∑ a, p a = 1)30    (ρ : α → DensityMatrix ι) (hρ : ∀ a, ρ a ∈ outputs) : Ensemble outputs where31  size := Fintype.card α32  weight := p ∘ (Fintype.equivFin α).symm33  weight_nonneg := fun a => hp ((Fintype.equivFin α).symm a)34  weight_sum := ((Fintype.equivFin α).symm.sum_comp p).trans hsum35  state := ρ ∘ (Fintype.equivFin α).symm36  state_mem := fun a => hρ ((Fintype.equivFin α).symm a)3738theorem Ensemble.ofFinite_average {α : Type*} [Fintype α]39    {outputs : Set (DensityMatrix ι)}40    (p : α → ℝ) (hp : ∀ a, 0 ≤ p a) (hsum : ∑ a, p a = 1)41    (ρ : α → DensityMatrix ι) (hρ : ∀ a, ρ a ∈ outputs) :42    (Ensemble.ofFinite p hp hsum ρ hρ).average = DensityMatrix.mixture p hp hsum ρ := by43  apply DensityMatrix.ext44  exact (Fintype.equivFin α).symm.sum_comp (fun a => (p a : ℂ) • (ρ a).matrix)4546theorem Ensemble.ofFinite_information {α : Type*} [Fintype α]47    {outputs : Set (DensityMatrix ι)}48    (p : α → ℝ) (hp : ∀ a, 0 ≤ p a) (hsum : ∑ a, p a = 1)49    (ρ : α → DensityMatrix ι) (hρ : ∀ a, ρ a ∈ outputs) :50    (Ensemble.ofFinite p hp hsum ρ hρ).information =51      (DensityMatrix.mixture p hp hsum ρ).vonNeumann - ∑ a, p a * (ρ a).vonNeumann := by52  unfold Ensemble.information53  rw [Ensemble.ofFinite_average]54  congr 155  exact (Fintype.equivFin α).symm.sum_comp (fun a => p a * (ρ a).vonNeumann)5657/-- Relabel all output states of an ensemble by the same basis equivalence. -/58def Ensemble.reindex {outputs : Set (DensityMatrix ι)} (e : Ensemble outputs)59    (u : ι ≃ μ) : Ensemble ((fun ρ => ρ.reindex u) '' outputs) where60  size := e.size61  weight := e.weight62  weight_nonneg := e.weight_nonneg63  weight_sum := e.weight_sum64  state := fun a => (e.state a).reindex u65  state_mem := fun a => ⟨e.state a, e.state_mem a, rfl⟩6667theorem Ensemble.reindex_average {outputs : Set (DensityMatrix ι)}68    (e : Ensemble outputs) (u : ι ≃ μ) :69    (e.reindex u).average = e.average.reindex u := by70  apply DensityMatrix.ext71  ext a b72  simp only [Ensemble.average, Ensemble.reindex, DensityMatrix.mixture_matrix,73    DensityMatrix.reindex, Matrix.reindex_apply, Matrix.sum_apply, Matrix.smul_apply,74    Matrix.submatrix_apply]7576@[simp] theorem Ensemble.reindex_information {outputs : Set (DensityMatrix ι)}77    (e : Ensemble outputs) (u : ι ≃ μ) : (e.reindex u).information = e.information := by78  unfold Ensemble.information79  rw [Ensemble.reindex_average, DensityMatrix.reindex_entropy]80  simp only [Ensemble.reindex, DensityMatrix.reindex_entropy]81  rfl8283@[simp] theorem density_reindex_symm (ρ : DensityMatrix ι) (u : ι ≃ μ) :84    (ρ.reindex u).reindex u.symm = ρ := by85  apply DensityMatrix.ext86  ext a b87  simp [DensityMatrix.reindex, Matrix.reindex_apply]8889theorem quantity_reindex_le [Nonempty ι] [Nonempty μ]90    {outputs : Set (DensityMatrix ι)} (hne : outputs.Nonempty) (u : ι ≃ μ) :91    quantity outputs ≤ quantity ((fun ρ => ρ.reindex u) '' outputs) := by92  apply csSup_le93  · obtain ⟨ρ, hρ⟩ := hne94    exact ⟨_, singleton ρ hρ, rfl⟩95  · rintro _ ⟨e, rfl⟩96    change e.information ≤ _97    rw [← e.reindex_information u]98    exact le_csSup (information_bddAbove _) ⟨e.reindex u, rfl⟩99100/-- The ensemble supremum is exactly invariant under an output basis change. -/101theorem quantity_reindex [Nonempty ι] [Nonempty μ]102    {outputs : Set (DensityMatrix ι)} (hne : outputs.Nonempty) (u : ι ≃ μ) :103    quantity ((fun ρ => ρ.reindex u) '' outputs) = quantity outputs := by104  apply le_antisymm105  · have h := quantity_reindex_le (hne.image ((fun ρ => ρ.reindex u))) u.symm106    have he : ((fun ρ => ρ.reindex u.symm) '' ((fun ρ => ρ.reindex u) '' outputs)) =107        outputs := by108      ext ρ109      constructor110      · rintro ⟨_, ⟨σ, hσ, rfl⟩, rfl⟩111        simpa using hσ112      · intro hρ113        exact ⟨ρ.reindex u, ⟨ρ, hρ, rfl⟩, density_reindex_symm ρ u⟩114    rwa [he] at h115  · exact quantity_reindex_le hne u116117end StateEnsembles118119namespace Channels.KrausChannel120121variable {ι ο κ μ ν η : Type*}122variable [Fintype ι] [DecidableEq ι] [Fintype ο] [DecidableEq ο] [Fintype κ]123variable [Fintype μ] [DecidableEq μ] [Fintype ν] [DecidableEq ν] [Fintype η]124125/-- The independent product of two actual channel-output ensembles. -/126def productEnsemble (T : KrausChannel ι ο κ) (S : KrausChannel μ ν η)127    (e : StateEnsembles.Ensemble T.outputs) (f : StateEnsembles.Ensemble S.outputs) :128    StateEnsembles.Ensemble (T.tensor S).outputs :=129  StateEnsembles.Ensemble.ofFinite (fun ab : Fin e.size × Fin f.size =>130    e.weight ab.1 * f.weight ab.2)131    (fun ab => mul_nonneg (e.weight_nonneg _) (f.weight_nonneg _))132    (by simp [Fintype.sum_prod_type, ← Finset.mul_sum,133      e.weight_sum, f.weight_sum])134    (fun ab => (e.state ab.1).tensor (f.state ab.2))135    (fun ab => by136      obtain ⟨ρ, hρ⟩ := e.state_mem ab.1137      obtain ⟨σ, hσ⟩ := f.state_mem ab.2138      exact ⟨ρ.tensor σ, by rw [tensor_output, hρ, hσ]⟩)139140theorem productEnsemble_average (T : KrausChannel ι ο κ) (S : KrausChannel μ ν η)141    (e : StateEnsembles.Ensemble T.outputs) (f : StateEnsembles.Ensemble S.outputs) :142    (T.productEnsemble S e f).average = e.average.tensor f.average := by143  unfold productEnsemble144  rw [StateEnsembles.Ensemble.ofFinite_average]145  apply DensityMatrix.ext146  ext ⟨a, b⟩ ⟨c, d⟩147  simp only [DensityMatrix.mixture_matrix, Fintype.sum_prod_type, Matrix.sum_apply,148    Matrix.smul_apply, DensityMatrix.tensor_matrix, Matrix.kroneckerMap_apply,149    StateEnsembles.Ensemble.average, smul_eq_mul, Complex.ofReal_mul,150    Finset.sum_mul, Finset.mul_sum]151  rw [Finset.sum_comm]152  apply Finset.sum_congr rfl153  intro i _154  apply Finset.sum_congr rfl155  intro j _156  ring157158/-- The information of the product ensemble is the sum of the two informations. -/159theorem productEnsemble_information (T : KrausChannel ι ο κ) (S : KrausChannel μ ν η)160    (e : StateEnsembles.Ensemble T.outputs) (f : StateEnsembles.Ensemble S.outputs) :161    (T.productEnsemble S e f).information = e.information + f.information := by162  have hw : (∑ ab : Fin e.size × Fin f.size,163      (e.weight ab.1 * f.weight ab.2) *164        ((e.state ab.1).vonNeumann + (f.state ab.2).vonNeumann)) =165      (∑ a, e.weight a * (e.state a).vonNeumann) +166        (∑ b, f.weight b * (f.state b).vonNeumann) := by167    simp only [Fintype.sum_prod_type, mul_add, Finset.sum_add_distrib]168    congr 1169    · simp_rw [show ∀ a b, (e.weight a * f.weight b) * (e.state a).vonNeumann =170          (e.weight a * (e.state a).vonNeumann) * f.weight b by intros; ring]171      simp [← Finset.mul_sum, f.weight_sum]172    · simp_rw [mul_assoc]173      simp_rw [← Finset.mul_sum]174      rw [← Finset.sum_mul, e.weight_sum, one_mul]175  have ha := productEnsemble_average T S e f176  unfold productEnsemble at ha ⊢177  rw [StateEnsembles.Ensemble.ofFinite_average] at ha178  rw [StateEnsembles.Ensemble.ofFinite_information, ha, DensityMatrix.tensor_entropy]179  simp_rw [DensityMatrix.tensor_entropy]180  rw [hw]181  unfold StateEnsembles.Ensemble.information182  ring183184/-- Holevo information is superadditive for arbitrary actual finite channels. -/185theorem holevo_tensor_superadditive [Nonempty ι] [Nonempty ο] [Nonempty μ] [Nonempty ν]186    (T : KrausChannel ι ο κ) (S : KrausChannel μ ν η) :187    T.holevo + S.holevo ≤ (T.tensor S).holevo := by188  have hT : (Set.range fun e : StateEnsembles.Ensemble T.outputs => e.information).Nonempty := by189    obtain ⟨ρ, hρ⟩ := T.outputs_nonempty190    exact ⟨_, StateEnsembles.singleton ρ hρ, rfl⟩191  have hS : (Set.range fun e : StateEnsembles.Ensemble S.outputs => e.information).Nonempty := by192    obtain ⟨ρ, hρ⟩ := S.outputs_nonempty193    exact ⟨_, StateEnsembles.singleton ρ hρ, rfl⟩194  apply (le_sub_iff_add_le).mp195  apply csSup_le hT196  rintro _ ⟨e, rfl⟩197  apply (le_sub_iff_add_le).mpr198  rw [add_comm]199  apply (le_sub_iff_add_le).mp200  apply csSup_le hS201  rintro _ ⟨f, rfl⟩202  apply (le_sub_iff_add_le).mpr203  rw [add_comm, ← productEnsemble_information T S e f]204  exact le_csSup (StateEnsembles.information_bddAbove _) ⟨_, rfl⟩205206theorem holevoBits_tensor_superadditive207    [Nonempty ι] [Nonempty ο] [Nonempty μ] [Nonempty ν]208    (T : KrausChannel ι ο κ) (S : KrausChannel μ ν η) :209    T.holevoBits + S.holevoBits ≤ (T.tensor S).holevoBits := by210  simpa only [holevoBits, add_div] using211    div_le_div_of_nonneg_right (T.holevo_tensor_superadditive S) Scalar.log_two_pos.le212213/-- Equivalent input/output bases do not change the Holevo quantity. -/214theorem holevo_reindex [Nonempty ι] [Nonempty ο] [Nonempty μ] [Nonempty ν]215    (T : KrausChannel ι ο κ) (ei : ι ≃ μ) (eo : ο ≃ ν) :216    (T.reindex ei eo).holevo = T.holevo := by217  have he : (T.reindex ei eo).outputs = (fun ρ => ρ.reindex eo) '' T.outputs := by218    ext σ219    constructor220    · rintro ⟨ρ, rfl⟩221      refine ⟨T.output (ρ.reindex ei.symm), ⟨_, rfl⟩, ?_⟩222      apply DensityMatrix.ext223      have h := T.reindex_map ei eo (ρ.reindex ei.symm).matrix224      simpa [DensityMatrix.reindex, Matrix.reindex_apply] using h.symm225    · rintro ⟨_, ⟨ρ, rfl⟩, rfl⟩226      refine ⟨ρ.reindex ei, ?_⟩227      apply DensityMatrix.ext228      exact T.reindex_map ei eo ρ.matrix229  unfold holevo230  rw [he, StateEnsembles.quantity_reindex T.outputs_nonempty eo]231232theorem holevo_eq_of_map_eq (T : KrausChannel ι ο κ) (S : KrausChannel ι ο η)233    (h : ∀ X, T.map X = S.map X) : T.holevo = S.holevo := by234  have ho : T.output = S.output := by235    funext ρ236    apply DensityMatrix.ext237    exact h ρ.matrix238  unfold holevo outputs239  rw [ho]240241@[simp] theorem holevoBits_reindex242    [Nonempty ι] [Nonempty ο] [Nonempty μ] [Nonempty ν]243    (T : KrausChannel ι ο κ) (ei : ι ≃ μ) (eo : ο ≃ ν) :244    (T.reindex ei eo).holevoBits = T.holevoBits := by rw [holevoBits, holevo_reindex]; rfl245246theorem holevoBits_eq_of_map_eq (T : KrausChannel ι ο κ) (S : KrausChannel ι ο η)247    (h : ∀ X, T.map X = S.map X) : T.holevoBits = S.holevoBits := by248  rw [holevoBits, T.holevo_eq_of_map_eq S h]; rfl249250end Channels.KrausChannel251end Nonadditivity