Exact Lean source
Nonadditivity.Holevo
Download original .lean · View on GitHub · Jump to source
Direct imports
Mathlib.Algebra.Module.BigOperatorsdependencyMathlib.Data.Real.ArchimedeandependencyMathlib.Order.ConditionallyCompleteLattice.BasicdependencyMathlib.Tactic.Linarithdependency
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
Nonadditivity.Holevo.EnsembleNonadditivity.Holevo.Ensemble._sizeOf_1internal/detail/privateNonadditivity.Holevo.Ensemble._sizeOf_instinternal/detail/privateNonadditivity.Holevo.Ensemble.averageNonadditivity.Holevo.Ensemble.casesOnNonadditivity.Holevo.Ensemble.ctorIdxNonadditivity.Holevo.Ensemble.informationNonadditivity.Holevo.Ensemble.mkNonadditivity.Holevo.Ensemble.mk._flat_ctorinternal/detail/privateNonadditivity.Holevo.Ensemble.mk.injNonadditivity.Holevo.Ensemble.mk.injEqNonadditivity.Holevo.Ensemble.mk.noConfusionNonadditivity.Holevo.Ensemble.mk.sizeOf_specNonadditivity.Holevo.Ensemble.noConfusionNonadditivity.Holevo.Ensemble.noConfusionTypeNonadditivity.Holevo.Ensemble.recNonadditivity.Holevo.Ensemble.recOnNonadditivity.Holevo.Ensemble.sizeNonadditivity.Holevo.Ensemble.stateNonadditivity.Holevo.Ensemble.state_memNonadditivity.Holevo.Ensemble.weightNonadditivity.Holevo.Ensemble.weight_nonnegNonadditivity.Holevo.Ensemble.weight_sumNonadditivity.Holevo.ensemble_information_leNonadditivity.Holevo.ensemble_information_of_orbitNonadditivity.Holevo.minimumEntropyNonadditivity.Holevo.minimumEntropy_leNonadditivity.Holevo.mixture_minimumEntropyNonadditivity.Holevo.quantityNonadditivity.Holevo.quantity.eq_1internal/detail/privateNonadditivity.Holevo.quantity_eq_of_orbitNonadditivity.Holevo.quantity_eq_sub_minimumEntropy
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) where30size : ℕ31weight : Fin size → ℝ32weight_nonneg : ∀ i, 0 ≤ weight i33weight_sum : ∑ i, weight i = 134state : Fin size → E35state_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 → ℝ) : ℝ :=41S 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 → ℝ) : ℝ :=46sSup (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 := by51have hsum : s ≤ ∑ i, e.weight i * S (e.state i) := by52calc53s = ∑ i, e.weight i * s := by rw [← Finset.sum_mul, e.weight_sum, one_mul]54_ ≤ ∑ i, e.weight i * S (e.state i) := by55apply Finset.sum_le_sum56intro i hi57exact mul_le_mul_of_nonneg_left (hmin _ (e.state_mem i)) (e.weight_nonneg i)58unfold Ensemble.information59linarith6061theorem 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 := by64unfold Ensemble.information65simp_rw [hent]66rw [← 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 := by76have hupper : ∀ e : Ensemble output, e.information S ≤ q - s :=77fun e => ensemble_information_le e hmin (hmax e)78have hbound : BddAbove (Set.range fun e : Ensemble output => e.information S) :=79⟨q - s, by rintro _ ⟨e, rfl⟩; exact hupper e⟩80have hattain := ensemble_information_of_orbit orbit havg hent81apply le_antisymm82· exact csSup_le ⟨orbit.information S, ⟨orbit, rfl⟩⟩83(by rintro _ ⟨e, rfl⟩; exact hupper e)84· rw [quantity, ← hattain]85exact 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) :90minimumEntropy 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) :98quantity output S = q - minimumEntropy output S :=99quantity_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 := by108have hsum : minimumEntropy output S ≤ ∑ i, e.weight i * S (e.state i) := by109calc110minimumEntropy output S = ∑ i, e.weight i * minimumEntropy output S := by111rw [← 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))114exact hsum.trans (hconcave e)115116end Nonadditivity.Holevo