Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.DampedPositivity

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

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

7 declarations

Full module

1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.StrictEntropy7import Nonadditivity.DampedChannel8import Nonadditivity.PositiveHolevo910/-! # Invertible damping preserves a nonuniform output1112The input is pulled back through a left inverse and renormalized. Its output13is a strictly positive multiple of the original output plus uniform noise.14-/1516noncomputable section17set_option maxHeartbeats 60000018set_option backward.isDefEq.respectTransparency false1920namespace Nonadditivity.DampedPositivity2122open Entropy Channels Channels.KrausChannel DampedChannel23open scoped BigOperators Matrix ComplexOrder2425variable {ι ο κ : Type*} [Fintype ι] [DecidableEq ι] [Nonempty ι]26  [Fintype ο] [DecidableEq ο] [Nonempty ο] [Fintype κ]2728/-- Pulling a state back through an invertible filter gives its original29output, mixed with uniform noise with a strictly positive retained weight. -/30theorem exists_damped_output_mixture (T : KrausChannel ι ο κ)31    (F G : Matrix ι ι ℂ) (hF : F.IsHermitian)32    (hres : (1-F*F).PosSemidef) (hGF : G*F=1) (ρ : DensityMatrix ι) :33    ∃ (σ : DensityMatrix ι) (c : ℂ), c ≠ 0 ∧34      ((damped T F hF hres).output σ).matrix =35        c • (T.output ρ).matrix + (1-c) • (maximallyMixed ο).matrix := by36  let X := G.conjTranspose * ρ.matrix * G37  have hX : X.PosSemidef := ρ.positive.conjTranspose_mul_mul_same G38  have hFG : F * G.conjTranspose = 1 := by39    have hh := congrArg Matrix.conjTranspose hGF40    simpa only [Matrix.conjTranspose_mul, hF.eq, Matrix.conjTranspose_one] using hh41  have hrecover : F * X * F = ρ.matrix := by42    calc43      F * X * F = (F * G.conjTranspose) * ρ.matrix * (G * F) := by44        simp only [X, Matrix.mul_assoc]45      _ = ρ.matrix := by rw [hFG, hGF, Matrix.one_mul, Matrix.mul_one]46  have htr : X.trace.re ≠ 0 := by47    intro hh48    have ht : X.trace = 0 := by rw [← positive_trace_real X hX, hh]; simp49    have hz := hX.trace_eq_zero_iff.mp ht50    have hr : ρ.matrix = 0 := by simpa [hz] using hrecover.symm51    have hn := ρ.normalized52    rw [hr, Matrix.trace_zero] at hn53    exact zero_ne_one hn54  let σ := normalizePositive X hX55  let c : ℂ := ((X.trace.re)⁻¹ : ℝ)56  have hc : c ≠ 0 := by57    change (((X.trace.re)⁻¹ : ℝ) : ℂ) ≠ 058    exact_mod_cast inv_ne_zero htr59  have hσ : σ.matrix = c • X := by simp [σ, normalizePositive, htr, c]60  have hretain : F * σ.matrix * F = c • ρ.matrix := by61    rw [hσ, Matrix.mul_smul, Matrix.smul_mul, hrecover]62  have htrace : ((1-F*F)*σ.matrix).trace = 1-c := by63    rw [Matrix.sub_mul, Matrix.one_mul, Matrix.trace_sub, σ.normalized]64    have ht : (F*F*σ.matrix).trace = c := by65      rw [← Matrix.trace_mul_cycle F σ.matrix F, hretain, Matrix.trace_smul,66        ρ.normalized, smul_eq_mul, mul_one]67    rw [ht]68  refine ⟨σ, c, hc, ?_⟩69  rw [output_matrix, damped_map, hretain, KrausChannel.map_smul, htrace]70  congr 171  simp only [maximallyMixed, smul_smul, Complex.ofReal_div, Complex.ofReal_one,72    Complex.ofReal_natCast]73  congr 174  ring7576theorem exists_damped_output_ne_maximallyMixed (T : KrausChannel ι ο κ)77    (F G : Matrix ι ι ℂ) (hF : F.IsHermitian)78    (hres : (1-F*F).PosSemidef) (hGF : G*F=1)79    (hT : ∃ ρ : DensityMatrix ι, T.output ρ ≠ maximallyMixed ο) :80    ∃ σ : DensityMatrix ι, (damped T F hF hres).output σ ≠ maximallyMixed ο := by81  obtain ⟨ρ, hρ⟩ := hT82  obtain ⟨σ, c, hc, he⟩ := exists_damped_output_mixture T F G hF hres hGF ρ83  refine ⟨σ, fun hh => hρ ?_⟩84  apply DensityMatrix.ext85  have hh' := congrArg DensityMatrix.matrix hh86  rw [he] at hh'87  have heq : c • (T.output ρ).matrix - c • (maximallyMixed ο).matrix = 0 := by88    calc89      _ = (c • (T.output ρ).matrix + (1-c) • (maximallyMixed ο).matrix) -90          (maximallyMixed ο).matrix := by rw [sub_smul, one_smul]; abel91      _ = 0 := sub_eq_zero.mpr hh'92  exact (smul_right_injective _ hc) (sub_eq_zero.mp heq)9394theorem converted_holevo_pos_of_nonuniform {d : ℕ} [NeZero d]95    (T : KrausChannel ι (ZMod d) κ)96    (hT : ∃ ρ : DensityMatrix ι, T.output ρ ≠ maximallyMixed (ZMod d)) :97    0 < (Conversion.converted T).holevo := by98  obtain ⟨ρ, hρ⟩ := hT99  have hs := (T.output ρ).vonNeumann_lt_log_card_of_ne_maximallyMixed hρ100  have hm : T.minimumEntropy ≤ (T.output ρ).vonNeumann :=101    StateEnsembles.minimumEntropy_le ⟨ρ,rfl⟩102  rw [Conversion.converted_holevo]103  simp only [ZMod.card] at hs104  linarith105106theorem converted_damped_holevoBits_pos {d : ℕ} [NeZero d]107    (T : KrausChannel ι (ZMod d) κ) (F G : Matrix ι ι ℂ)108    (hF : F.IsHermitian) (hres : (1-F*F).PosSemidef) (hGF : G*F=1)109    (hT : ∃ ρ : DensityMatrix ι, T.output ρ ≠ maximallyMixed (ZMod d)) :110    0 < (Conversion.converted (damped T F hF hres)).holevoBits := by111  apply div_pos _ Scalar.log_two_pos112  exact converted_holevo_pos_of_nonuniform _113    (exists_damped_output_ne_maximallyMixed T F G hF hres hGF hT)114115/-- The concrete block construction retains a strictly positive Holevo116denominator after any invertible damping filter. -/117theorem converted_damped_block_holevoBits_pos {K : ℕ} [NeZero K] (hK : 2 ≤ K)118    (U : ℕ → Fin K → unitary (Matrix ι ι ℂ)) {n : ℕ} (hn : 1 ≤ n)119    (F G : Matrix (TensorChainIndex ι n) (TensorChainIndex ι n) ℂ)120    (hF : F.IsHermitian) (hres : (1-F*F).PosSemidef) (hGF : G*F=1) :121    0 < (Conversion.converted122      (damped (BlockConstruction.blockChannel U n) F hF hres)).holevoBits := by123  apply converted_damped_holevoBits_pos _ F G hF hres hGF124  obtain ⟨ρ, hρ⟩ := PositiveHolevo.exists_block_entropy_le hK U n125  refine ⟨ρ, fun he => ?_⟩126  rw [he, maximallyMixed_entropy] at hρ127  simp only [ZMod.card, Nat.cast_pow, Real.log_pow] at hρ128  have hnp : (0 : ℝ) < n := by exact_mod_cast (show 0 < n by omega)129  have hKp : (0 : ℝ) < K := by exact_mod_cast (show 0 < K by omega)130  have hp : 0 < (n : ℝ) * (2 * Real.log 2 / (K : ℝ)) :=131    mul_pos hnp (div_pos (mul_pos (by norm_num) Scalar.log_two_pos) hKp)132  nlinarith133134end Nonadditivity.DampedPositivity