Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.Holevo

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

Direct imports

  • Mathlib.Algebra.Module.BigOperators dependency
  • Mathlib.Data.Real.Archimedean dependency
  • Mathlib.Order.ConditionallyCompleteLattice.Basic dependency
  • Mathlib.Tactic.Linarith dependency

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

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

32 declarations

Full module

1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Mathlib.Algebra.Module.BigOperators7import Mathlib.Data.Real.Archimedean8import Mathlib.Order.ConditionallyCompleteLattice.Basic9import Mathlib.Tactic.Linarith1011/-!12# Finite-ensemble variational part of the Weyl conversion1314This is an actual supremum over normalized finite ensembles, rather than a15postulated Holevo equality. The ambient space can be instantiated with16Hermitian matrices. Quantum entropy bounds, output convexity, and the Weyl17orbit attaining the maximum are explicit hypotheses of the generic result;18the quantum instantiation is not proved here.19-/2021noncomputable section2223namespace Nonadditivity.Holevo2425open scoped BigOperators2627variable {E : Type*} [AddCommGroup E] [Module ℝ E]2829structure Ensemble (output : Set E) where30  size : ℕ31  weight : Fin size → ℝ32  weight_nonneg : ∀ i, 0 ≤ weight i33  weight_sum : ∑ i, weight i = 134  state : Fin size → E35  state_mem : ∀ i, state i ∈ output3637def Ensemble.average {output : Set E} (e : Ensemble output) : E :=38  ∑ i, e.weight i • e.state i3940def Ensemble.information {output : Set E} (e : Ensemble output) (S : E → ℝ) : ℝ :=41  S e.average - ∑ i, e.weight i * S (e.state i)4243def minimumEntropy (output : Set E) (S : E → ℝ) : ℝ := sInf (S '' output)4445def quantity (output : Set E) (S : E → ℝ) : ℝ :=46  sSup (Set.range fun e : Ensemble output => e.information S)4748theorem ensemble_information_le {output : Set E} {S : E → ℝ} {q s : ℝ}49    (e : Ensemble output) (hmin : ∀ y ∈ output, s ≤ S y)50    (hmax : S e.average ≤ q) : e.information S ≤ q - s := by51  have hsum : s ≤ ∑ i, e.weight i * S (e.state i) := by52    calc53      s = ∑ i, e.weight i * s := by rw [← Finset.sum_mul, e.weight_sum, one_mul]54      _ ≤ ∑ i, e.weight i * S (e.state i) := by55        apply Finset.sum_le_sum56        intro i hi57        exact mul_le_mul_of_nonneg_left (hmin _ (e.state_mem i)) (e.weight_nonneg i)58  unfold Ensemble.information59  linarith6061theorem ensemble_information_of_orbit {output : Set E} {S : E → ℝ} {q s : ℝ}62    (e : Ensemble output) (havg : S e.average = q)63    (hent : ∀ i, S (e.state i) = s) : e.information S = q - s := by64  unfold Ensemble.information65  simp_rw [hent]66  rw [← Finset.sum_mul, e.weight_sum, one_mul, havg]6768/-- The variational Weyl identity. The orbit ensemble has average entropy q69and each member has the minimizing entropy s. No equality for the supremum70is assumed: the proof establishes both inequalities from finite ensembles. -/71theorem quantity_eq_of_orbit {output : Set E} {S : E → ℝ} {q s : ℝ}72    (hmin : ∀ y ∈ output, s ≤ S y)73    (hmax : ∀ e : Ensemble output, S e.average ≤ q)74    (orbit : Ensemble output) (havg : S orbit.average = q)75    (hent : ∀ i, S (orbit.state i) = s) : quantity output S = q - s := by76  have hupper : ∀ e : Ensemble output, e.information S ≤ q - s :=77    fun e => ensemble_information_le e hmin (hmax e)78  have hbound : BddAbove (Set.range fun e : Ensemble output => e.information S) :=79    ⟨q - s, by rintro _ ⟨e, rfl⟩; exact hupper e⟩80  have hattain := ensemble_information_of_orbit orbit havg hent81  apply le_antisymm82  · exact csSup_le ⟨orbit.information S, ⟨orbit, rfl⟩⟩83      (by rintro _ ⟨e, rfl⟩; exact hupper e)84  · rw [quantity, ← hattain]85    exact le_csSup hbound ⟨orbit, rfl⟩8687omit [AddCommGroup E] [Module ℝ E] in88theorem minimumEntropy_le {output : Set E} {S : E → ℝ}89    (hbounded : BddBelow (S '' output)) {y : E} (hy : y ∈ output) :90    minimumEntropy output S ≤ S y := csInf_le hbounded ⟨y, hy, rfl⟩9192/-- Rephrasing the orbit identity with the actual infimum definition. -/93theorem quantity_eq_sub_minimumEntropy {output : Set E} {S : E → ℝ} {q : ℝ}94    (hbounded : BddBelow (S '' output))95    (hmax : ∀ e : Ensemble output, S e.average ≤ q)96    (orbit : Ensemble output) (havg : S orbit.average = q)97    (hent : ∀ i, S (orbit.state i) = minimumEntropy output S) :98    quantity output S = q - minimumEntropy output S :=99  quantity_eq_of_orbit (fun _ hy => minimumEntropy_le hbounded hy) hmax orbit havg hent100101/-- Minimum entropy is unchanged by closing a set of outputs under mixtures,102provided S satisfies its concavity inequality on every ensemble. -/103theorem mixture_minimumEntropy {output : Set E} {S : E → ℝ}104    (hbounded : BddBelow (S '' output))105    (hconcave : ∀ e : Ensemble output,106      (∑ i, e.weight i * S (e.state i)) ≤ S e.average)107    {e : Ensemble output} : minimumEntropy output S ≤ S e.average := by108  have hsum : minimumEntropy output S ≤ ∑ i, e.weight i * S (e.state i) := by109    calc110      minimumEntropy output S = ∑ i, e.weight i * minimumEntropy output S := by111        rw [← Finset.sum_mul, e.weight_sum, one_mul]112      _ ≤ _ := Finset.sum_le_sum (fun i _ => mul_le_mul_of_nonneg_left113          (minimumEntropy_le hbounded (e.state_mem i)) (e.weight_nonneg i))114  exact hsum.trans (hconcave e)115116end Nonadditivity.Holevo