Exact Lean source
Nonadditivity.DampedPositivity
Download original .lean · View on GitHub · Jump to source
Imported by project modules
3 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
7 project constants, including generated, internal and private declarations.
7 declarations
Nonadditivity.DampedPositivity.converted_damped_block_holevoBits_posNonadditivity.DampedPositivity.converted_damped_block_holevoBits_pos._proof_1_1internal/detail/privateNonadditivity.DampedPositivity.converted_damped_block_holevoBits_pos._proof_1_2internal/detail/privateNonadditivity.DampedPositivity.converted_damped_holevoBits_posNonadditivity.DampedPositivity.converted_holevo_pos_of_nonuniformNonadditivity.DampedPositivity.exists_damped_output_mixtureNonadditivity.DampedPositivity.exists_damped_output_ne_maximallyMixed
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 =35c • (T.output ρ).matrix + (1-c) • (maximallyMixed ο).matrix := by36let X := G.conjTranspose * ρ.matrix * G37have hX : X.PosSemidef := ρ.positive.conjTranspose_mul_mul_same G38have hFG : F * G.conjTranspose = 1 := by39have hh := congrArg Matrix.conjTranspose hGF40simpa only [Matrix.conjTranspose_mul, hF.eq, Matrix.conjTranspose_one] using hh41have hrecover : F * X * F = ρ.matrix := by42calc43F * X * F = (F * G.conjTranspose) * ρ.matrix * (G * F) := by44simp only [X, Matrix.mul_assoc]45_ = ρ.matrix := by rw [hFG, hGF, Matrix.one_mul, Matrix.mul_one]46have htr : X.trace.re ≠ 0 := by47intro hh48have ht : X.trace = 0 := by rw [← positive_trace_real X hX, hh]; simp49have hz := hX.trace_eq_zero_iff.mp ht50have hr : ρ.matrix = 0 := by simpa [hz] using hrecover.symm51have hn := ρ.normalized52rw [hr, Matrix.trace_zero] at hn53exact zero_ne_one hn54let σ := normalizePositive X hX55let c : ℂ := ((X.trace.re)⁻¹ : ℝ)56have hc : c ≠ 0 := by57change (((X.trace.re)⁻¹ : ℝ) : ℂ) ≠ 058exact_mod_cast inv_ne_zero htr59have hσ : σ.matrix = c • X := by simp [σ, normalizePositive, htr, c]60have hretain : F * σ.matrix * F = c • ρ.matrix := by61rw [hσ, Matrix.mul_smul, Matrix.smul_mul, hrecover]62have htrace : ((1-F*F)*σ.matrix).trace = 1-c := by63rw [Matrix.sub_mul, Matrix.one_mul, Matrix.trace_sub, σ.normalized]64have ht : (F*F*σ.matrix).trace = c := by65rw [← Matrix.trace_mul_cycle F σ.matrix F, hretain, Matrix.trace_smul,66ρ.normalized, smul_eq_mul, mul_one]67rw [ht]68refine ⟨σ, c, hc, ?_⟩69rw [output_matrix, damped_map, hretain, KrausChannel.map_smul, htrace]70congr 171simp only [maximallyMixed, smul_smul, Complex.ofReal_div, Complex.ofReal_one,72Complex.ofReal_natCast]73congr 174ring7576theorem 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 ο := by81obtain ⟨ρ, hρ⟩ := hT82obtain ⟨σ, c, hc, he⟩ := exists_damped_output_mixture T F G hF hres hGF ρ83refine ⟨σ, fun hh => hρ ?_⟩84apply DensityMatrix.ext85have hh' := congrArg DensityMatrix.matrix hh86rw [he] at hh'87have heq : c • (T.output ρ).matrix - c • (maximallyMixed ο).matrix = 0 := by88calc89_ = (c • (T.output ρ).matrix + (1-c) • (maximallyMixed ο).matrix) -90(maximallyMixed ο).matrix := by rw [sub_smul, one_smul]; abel91_ = 0 := sub_eq_zero.mpr hh'92exact (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)) :970 < (Conversion.converted T).holevo := by98obtain ⟨ρ, hρ⟩ := hT99have hs := (T.output ρ).vonNeumann_lt_log_card_of_ne_maximallyMixed hρ100have hm : T.minimumEntropy ≤ (T.output ρ).vonNeumann :=101StateEnsembles.minimumEntropy_le ⟨ρ,rfl⟩102rw [Conversion.converted_holevo]103simp only [ZMod.card] at hs104linarith105106theorem 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)) :1100 < (Conversion.converted (damped T F hF hres)).holevoBits := by111apply div_pos _ Scalar.log_two_pos112exact 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) :1210 < (Conversion.converted122(damped (BlockConstruction.blockChannel U n) F hF hres)).holevoBits := by123apply converted_damped_holevoBits_pos _ F G hF hres hGF124obtain ⟨ρ, hρ⟩ := PositiveHolevo.exists_block_entropy_le hK U n125refine ⟨ρ, fun he => ?_⟩126rw [he, maximallyMixed_entropy] at hρ127simp only [ZMod.card, Nat.cast_pow, Real.log_pow] at hρ128have hnp : (0 : ℝ) < n := by exact_mod_cast (show 0 < n by omega)129have hKp : (0 : ℝ) < K := by exact_mod_cast (show 0 < K by omega)130have hp : 0 < (n : ℝ) * (2 * Real.log 2 / (K : ℝ)) :=131mul_pos hnp (div_pos (mul_pos (by norm_num) Scalar.log_two_pos) hKp)132nlinarith133134end Nonadditivity.DampedPositivity