Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.PureChannelEntropy

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

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

14 declarations

Full module

1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.Channels7import Nonadditivity.EntropyProducts89/-!10# Entropy equality of channel and complementary outputs for pure inputs1112The coefficient matrix is constructed explicitly from the actual Kraus13operators. The two output matrices are identified with its two Gram matrices;14the entropy equality then follows from the proved rectangular spectral theorem.15-/1617namespace Nonadditivity.Channels1819open Nonadditivity.Entropy20open scoped BigOperators ComplexOrder ComplexConjugate Kronecker Matrix2122noncomputable section2324theorem densityMatrix_ext {ι : Type*} [Fintype ι] [DecidableEq ι]25    (ρ σ : DensityMatrix ι) (h : ρ.matrix = σ.matrix) : ρ = σ := by26  cases ρ with27  | mk A hA htrA =>28    cases σ with29    | mk B hB htrB =>30      change A = B at h31      subst B32      rfl3334/-- The actual rank-one input density matrix of a normalized finite vector. -/35def pureState {ι : Type*} [Fintype ι] [DecidableEq ι]36    (v : ι → ℂ) (hv : ∑ i, Complex.normSq (v i) = 1) : DensityMatrix ι where37  matrix := Matrix.vecMulVec v (star v)38  positive := Matrix.posSemidef_vecMulVec_self_star v39  normalized := by40    have h : ∑ i, (Complex.normSq (v i) : ℂ) = 1 := by exact_mod_cast hv41    change (∑ i, v i * star (v i)) = 142    have hterm (i : ι) : v i * star (v i) = (Complex.normSq (v i) : ℂ) :=43      Complex.mul_conj (v i)44    simp_rw [hterm]45    exact h4647/-- Every actual normalized rank-one density matrix has zero von Neumann entropy. -/48theorem pureState_entropy_zero {ι : Type*} [Fintype ι] [DecidableEq ι]49    (v : ι → ℂ) (hv : ∑ i, Complex.normSq (v i) = 1) :50    (pureState v hv).vonNeumann = 0 := by51  let A : Matrix ι Unit ℂ := fun i _ => v i52  have hA : (pureState v hv).matrix = A * Aᴴ := by53    ext i j54    simp [pureState, A, Matrix.mul_apply, Matrix.conjTranspose_apply,55      Matrix.vecMulVec_apply, Pi.star_apply]56  have hn : (A * Aᴴ).trace = 1 := by57    rw [← hA]58    exact (pureState v hv).normalized59  have hs : pureState v hv = bipartiteLeft A hn :=60    densityMatrix_ext _ _ hA61  rw [hs, bipartite_entropy_eq]62  apply le_antisymm63  · simpa using (bipartiteRight A hn).vonNeumann_le_log_dim64  · exact (bipartiteRight A hn).vonNeumann_nonneg6566namespace KrausChannel6768variable {ι ο κ : Type*} [Fintype ι] [DecidableEq ι]69  [Fintype ο] [DecidableEq ο] [Fintype κ] [DecidableEq κ]7071/-- Pure Stinespring output as an output-by-environment coefficient matrix. -/72def pureCoefficients (T : KrausChannel ι ο κ) (v : ι → ℂ) : Matrix ο κ ℂ :=73  fun b e => (T.kraus e *ᵥ v) b7475omit [DecidableEq ο] [DecidableEq κ] in76/-- The system output is the left Gram matrix of the explicit Stinespring coefficients. -/77theorem map_rankOne_eq_gram (T : KrausChannel ι ο κ) (v : ι → ℂ) :78    T.map (Matrix.vecMulVec v (star v)) =79      T.pureCoefficients v * (T.pureCoefficients v)ᴴ := by80  simp only [map, Matrix.mul_vecMulVec, Matrix.vecMulVec_mul]81  ext b c82  simp only [Matrix.sum_apply, Matrix.vecMulVec_apply, pureCoefficients,83    Matrix.mul_apply, Matrix.conjTranspose_apply, Matrix.vecMul, Matrix.mulVec,84    dotProduct, Pi.star_apply, star_sum, star_mul]8586omit [DecidableEq ο] [DecidableEq κ] in87/-- The environment output is the transpose of the right Gram matrix. -/88theorem complementary_map_rankOne_eq_gram (T : KrausChannel ι ο κ) (v : ι → ℂ) :89    T.complementary.map (Matrix.vecMulVec v (star v)) =90      ((T.pureCoefficients v)ᴴ * T.pureCoefficients v).transpose := by91  rw [T.complementary.map_rankOne_eq_gram]92  ext e f93  simp [pureCoefficients, complementary, Matrix.mul_apply,94    Matrix.conjTranspose_apply, Matrix.mulVec, dotProduct, mul_comm]9596omit [DecidableEq ο] [DecidableEq κ] in97/-- Kraus completeness and input normalization imply normalization of the coefficient matrix. -/98theorem pureCoefficients_normalized (T : KrausChannel ι ο κ) (v : ι → ℂ)99    (hv : ∑ i, Complex.normSq (v i) = 1) :100    (T.pureCoefficients v * (T.pureCoefficients v)ᴴ).trace = 1 := by101  rw [← T.map_rankOne_eq_gram v, T.trace_map]102  exact (pureState v hv).normalized103104/-- Actual pure-input channel/complement entropy equality; no Schmidt equality is assumed. -/105theorem pure_output_complementary_entropy_eq (T : KrausChannel ι ο κ) (v : ι → ℂ)106    (hv : ∑ i, Complex.normSq (v i) = 1) :107    (T.output (pureState v hv)).vonNeumann =108      (T.complementary.output (pureState v hv)).vonNeumann := by109  let A := T.pureCoefficients v110  let hn := T.pureCoefficients_normalized v hv111  have hleft : T.output (pureState v hv) = bipartiteLeft A hn := by112    apply densityMatrix_ext113    exact T.map_rankOne_eq_gram v114  have hright : T.complementary.output (pureState v hv) =115      (bipartiteRight A hn).conjugate := by116    apply densityMatrix_ext117    exact T.complementary_map_rankOne_eq_gram v118  rw [hleft, hright]119  exact bipartite_physical_reductions_entropy_eq A hn120121end KrausChannel122123end124125end Nonadditivity.Channels