Exact Lean source
Nonadditivity.PureChannelEntropy
Download original .lean · View on GitHub · Jump to source
Direct imports
Imported by project modules
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
Nonadditivity.Channels.KrausChannel.complementary_map_rankOne_eq_gramNonadditivity.Channels.KrausChannel.map_rankOne_eq_gramNonadditivity.Channels.KrausChannel.pureCoefficientsNonadditivity.Channels.KrausChannel.pureCoefficients.eq_1internal/detail/privateNonadditivity.Channels.KrausChannel.pureCoefficients_normalizedNonadditivity.Channels.KrausChannel.pure_output_complementary_entropy_eqNonadditivity.Channels.densityMatrix_extNonadditivity.Channels.pureStateNonadditivity.Channels.pureState._proof_1internal/detail/privateNonadditivity.Channels.pureState._proof_2internal/detail/privateNonadditivity.Channels.pureState.eq_1internal/detail/privateNonadditivity.Channels.pureState_entropy_zeroNonadditivity.Entropy.DensityMatrix.mk.congr_simpNonadditivity.Entropy.bipartiteRight.congr_simp
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) : ρ = σ := by26cases ρ with27| mk A hA htrA =>28cases σ with29| mk B hB htrB =>30change A = B at h31subst B32rfl3334/-- 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 ι where37matrix := Matrix.vecMulVec v (star v)38positive := Matrix.posSemidef_vecMulVec_self_star v39normalized := by40have h : ∑ i, (Complex.normSq (v i) : ℂ) = 1 := by exact_mod_cast hv41change (∑ i, v i * star (v i)) = 142have hterm (i : ι) : v i * star (v i) = (Complex.normSq (v i) : ℂ) :=43Complex.mul_conj (v i)44simp_rw [hterm]45exact 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 := by51let A : Matrix ι Unit ℂ := fun i _ => v i52have hA : (pureState v hv).matrix = A * Aᴴ := by53ext i j54simp [pureState, A, Matrix.mul_apply, Matrix.conjTranspose_apply,55Matrix.vecMulVec_apply, Pi.star_apply]56have hn : (A * Aᴴ).trace = 1 := by57rw [← hA]58exact (pureState v hv).normalized59have hs : pureState v hv = bipartiteLeft A hn :=60densityMatrix_ext _ _ hA61rw [hs, bipartite_entropy_eq]62apply 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 ο κ ℂ :=73fun 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 : ι → ℂ) :78T.map (Matrix.vecMulVec v (star v)) =79T.pureCoefficients v * (T.pureCoefficients v)ᴴ := by80simp only [map, Matrix.mul_vecMulVec, Matrix.vecMulVec_mul]81ext b c82simp only [Matrix.sum_apply, Matrix.vecMulVec_apply, pureCoefficients,83Matrix.mul_apply, Matrix.conjTranspose_apply, Matrix.vecMul, Matrix.mulVec,84dotProduct, 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 : ι → ℂ) :89T.complementary.map (Matrix.vecMulVec v (star v)) =90((T.pureCoefficients v)ᴴ * T.pureCoefficients v).transpose := by91rw [T.complementary.map_rankOne_eq_gram]92ext e f93simp [pureCoefficients, complementary, Matrix.mul_apply,94Matrix.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 := by101rw [← T.map_rankOne_eq_gram v, T.trace_map]102exact (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 := by109let A := T.pureCoefficients v110let hn := T.pureCoefficients_normalized v hv111have hleft : T.output (pureState v hv) = bipartiteLeft A hn := by112apply densityMatrix_ext113exact T.map_rankOne_eq_gram v114have hright : T.complementary.output (pureState v hv) =115(bipartiteRight A hn).conjugate := by116apply densityMatrix_ext117exact T.complementary_map_rankOne_eq_gram v118rw [hleft, hright]119exact bipartite_physical_reductions_entropy_eq A hn120121end KrausChannel122123end124125end Nonadditivity.Channels