Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.WeightedCertificate

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

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

13 declarations

Full module

1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.DampedChannel7import Nonadditivity.SpectralDamping8import Nonadditivity.InitialNetReduction910/-! # Dimension-free stability under small output weights1112Output multiplication by a normalized Hermitian weight matrix gives an actual13Kraus channel. Its damped adjoint certificate changes by at most δ(2+δ), where14δ bounds the operator norm of the weight matrix minus the identity.15-/16noncomputable section17set_option backward.isDefEq.respectTransparency false18set_option maxHeartbeats 120000019set_option linter.unusedSectionVars false20namespace Nonadditivity.WeightedCertificate21open Channels Channels.KrausChannel AdjointPurity22open scoped BigOperators Matrix Matrix.Norms.L2Operator MatrixOrder ComplexOrder2324variable {ι ο κ : Type} [Fintype ι] [DecidableEq ι] [Nonempty ι]25  [Fintype ο] [DecidableEq ο] [Nonempty ο] [Fintype κ]2627/-- A genuine channel obtained by multiplying every output Kraus operator by V. -/28def weighted (T : KrausChannel ι ο κ) (V : Matrix ο ο ℂ) (hV : V.IsHermitian)29    (hcomplete : T.adjointMap (V*V)=1) : KrausChannel ι ο κ where30  kraus k := V*T.kraus k31  complete := by32    simpa only [Matrix.conjTranspose_mul,hV.eq,Matrix.mul_assoc,adjointMap]33      using hcomplete3435@[simp] theorem weighted_kraus (T : KrausChannel ι ο κ) (V : Matrix ο ο ℂ)36    (hV : V.IsHermitian) (hcomplete : T.adjointMap (V*V)=1) (k : κ) :37    (weighted T V hV hcomplete).kraus k = V*T.kraus k := rfl3839theorem weighted_map (T : KrausChannel ι ο κ) (V : Matrix ο ο ℂ)40    (hV : V.IsHermitian) (hcomplete : T.adjointMap (V*V)=1) (X : Matrix ι ι ℂ) :41    (weighted T V hV hcomplete).map X = V*T.map X*V := by42  simp only [map,weighted,Matrix.conjTranspose_mul,hV.eq,43    Matrix.mul_sum,Matrix.sum_mul,Matrix.mul_assoc]4445theorem weighted_adjointMap (T : KrausChannel ι ο κ) (V : Matrix ο ο ℂ)46    (hV : V.IsHermitian) (hcomplete : T.adjointMap (V*V)=1) (A : Matrix ο ο ℂ) :47    (weighted T V hV hcomplete).adjointMap A = T.adjointMap (V*A*V) := by48  simp only [adjointMap,weighted,Matrix.conjTranspose_mul,hV.eq,Matrix.mul_assoc]4950/-- Positivity makes the actual Kraus adjoint monotone. -/51theorem adjointMap_mono (T : KrausChannel ι ο κ) {A B : Matrix ο ο ℂ} (hAB : A≤B) :52    T.adjointMap A ≤ T.adjointMap B := by53  rw [Matrix.le_iff] at hAB ⊢54  have h := T.adjointMap_posSemidef (B-A) hAB55  have he : T.adjointMap (B-A) = T.adjointMap B-T.adjointMap A :=56    (T.adjointLinearMap).map_sub B A57  rwa [he] at h5859theorem adjointMap_real_smul_one (T : KrausChannel ι ο κ) (r : ℝ) :60    T.adjointMap (r • (1 : Matrix ο ο ℂ)) = r • (1 : Matrix ι ι ℂ) := by61  change T.adjointMap ((r : ℂ) • 1) = (r : ℂ) • 162  rw [adjointMap_smul,adjointMap_one]6364/-- Every genuine channel adjoint contracts the norm of Hermitian observables. -/65theorem adjointMap_norm_le (T : KrausChannel ι ο κ) (A : Matrix ο ο ℂ)66    (hA : A.IsHermitian) : ‖T.adjointMap A‖ ≤ ‖A‖ := by67  letI : CStarAlgebra (Matrix ο ο ℂ) := {}68  have hu : A ≤ ‖A‖ • (1 : Matrix ο ο ℂ) := by69    simpa only [Algebra.algebraMap_eq_smul_one] using70      hA.isSelfAdjoint.le_algebraMap_norm_self71  have hl : (-‖A‖) • (1 : Matrix ο ο ℂ) ≤ A := by72    have h := hA.neg.isSelfAdjoint.le_algebraMap_norm_self73    simpa only [norm_neg,Algebra.algebraMap_eq_smul_one,neg_smul,neg_neg] using74      neg_le_neg h75  apply SpectralDamping.norm_le_of_bounds _ (T.adjointMap_isHermitian A hA) (norm_nonneg _)76  · simpa only [adjointMap_real_smul_one] using adjointMap_mono T hl77  · simpa only [adjointMap_real_smul_one] using adjointMap_mono T hu7879/-- Every Hermitian damping with positive discarded mass is an operator contraction. -/80theorem damping_norm_le_one (F : Matrix ι ι ℂ) (hF : F.IsHermitian)81    (hres : (1-F*F).PosSemidef) : ‖F‖ ≤ 1 := by82  letI : CStarAlgebra (Matrix ι ι ℂ) := {}83  have hp : (F*F).PosSemidef := by84    simpa only [hF.eq] using Matrix.posSemidef_conjTranspose_mul_self F85  have hn : ‖F*F‖ ≤ 1 :=86    (CStarAlgebra.norm_le_one_iff_of_nonneg _ hp.nonneg).mpr (Matrix.le_iff.mpr hres)87  rw [hF.isSelfAdjoint.norm_mul_self] at hn88  nlinarith [norm_nonneg F]8990/-- Sandwiching by a contraction cannot increase the operator norm. -/91theorem sandwich_norm_le (F X : Matrix ι ι ℂ) (hF : ‖F‖ ≤ 1) : ‖F*X*F‖ ≤ ‖X‖ := by92  calc93    ‖F*X*F‖ ≤ (‖F‖*‖X‖)*‖F‖ := (norm_mul_le _ _).trans94      (mul_le_mul_of_nonneg_right (norm_mul_le _ _) (norm_nonneg _))95    _ ≤ (1*‖X‖)*1 := mul_le_mul96      (mul_le_mul_of_nonneg_right hF (norm_nonneg _)) hF (norm_nonneg _) (by positivity)97    _ = ‖X‖ := by ring9899/-- A small change of output weights has a dimension-free operator bound. -/100theorem weighted_observable_sub_norm_le (V A : Matrix ο ο ℂ) {δ : ℝ}101    (hδ : 0 ≤ δ) (hV : ‖V-1‖ ≤ δ) :102    ‖V*A*V-A‖ ≤ δ*(2+δ)*‖A‖ := by103  have hv : ‖V‖ ≤ 1+δ := by104    calc105      ‖V‖ = ‖(V-1)+1‖ := by rw [sub_add_cancel]106      _ ≤ ‖V-1‖+‖(1 : Matrix ο ο ℂ)‖ := norm_add_le _ _107      _ ≤ 1+δ := by rw [norm_one]; linarith108  have he : V*A*V-A = (V-1)*A*V+A*(V-1) := by noncomm_ring109  rw [he]110  calc111    _ ≤ ‖(V-1)*A*V‖+‖A*(V-1)‖ := norm_add_le _ _112    _ ≤ ‖V-1‖*‖A‖*‖V‖+‖A‖*‖V-1‖ := add_le_add113      ((norm_mul_le _ _).trans114        (mul_le_mul_of_nonneg_right (norm_mul_le _ _) (norm_nonneg _))) (norm_mul_le _ _)115    _ ≤ δ*‖A‖*(1+δ)+‖A‖*δ := add_le_add116      (mul_le_mul (mul_le_mul_of_nonneg_right hV (norm_nonneg _)) hv117        (norm_nonneg _) (by positivity))118      (mul_le_mul_of_nonneg_left hV (norm_nonneg _))119    _ = _ := by ring120121/-- The same damping matrix retains the original certificate up to a vanishing,122input-dimension-independent loss in the output weights. -/123theorem damped_weighted_certificate (T : KrausChannel ι ο κ)124    (V : Matrix ο ο ℂ) (hV : V.IsHermitian) (hcomplete : T.adjointMap (V*V)=1)125    (F : Matrix ι ι ℂ) (hF : F.IsHermitian) (hres : (1-F*F).PosSemidef)126    {t δ : ℝ} (hδ : 0 ≤ δ) (hweight : ‖V-1‖ ≤ δ)127    (hcert : ∀ A : Matrix ο ο ℂ, A.IsHermitian → A.trace=0 →128      ‖(DampedChannel.damped T F hF hres).adjointMap A‖ ≤ t*hsLength A) :129    ∀ A : Matrix ο ο ℂ, A.IsHermitian → A.trace=0 →130      ‖(DampedChannel.damped (weighted T V hV hcomplete) F hF hres).adjointMap A‖ ≤131        (t+δ*(2+δ))*hsLength A := by132  intro A hA ht133  have hc : (V*A*V-A).IsHermitian := by134    change (V*A*V-A).conjTranspose = V*A*V-A135    simp only [Matrix.conjTranspose_sub,Matrix.conjTranspose_mul,hV.eq,hA.eq,Matrix.mul_assoc]136  have he : (DampedChannel.damped (weighted T V hV hcomplete) F hF hres).adjointMap A =137      (DampedChannel.damped T F hF hres).adjointMap A + F*T.adjointMap (V*A*V-A)*F := by138    rw [DampedChannel.damped_adjointMap_traceless _ _ _ _ _ ht,139      DampedChannel.damped_adjointMap_traceless _ _ _ _ _ ht,weighted_adjointMap]140    have hs := (T.adjointLinearMap).map_sub (V*A*V) A141    change T.adjointMap (V*A*V-A)=T.adjointMap (V*A*V)-T.adjointMap A at hs142    rw [hs,Matrix.mul_sub,Matrix.sub_mul]143    abel144  rw [he]145  apply (norm_add_le _ _).trans146  have herror : ‖F*T.adjointMap (V*A*V-A)*F‖ ≤ δ*(2+δ)*hsLength A := by147    calc148      _ ≤ ‖T.adjointMap (V*A*V-A)‖ := sandwich_norm_le F (T.adjointMap (V*A*V-A)) (damping_norm_le_one F hF hres)149      _ ≤ ‖V*A*V-A‖ := adjointMap_norm_le T _ hc150      _ ≤ δ*(2+δ)*‖A‖ := weighted_observable_sub_norm_le V A hδ hweight151      _ ≤ δ*(2+δ)*hsLength A := mul_le_mul_of_nonneg_left152        (InitialNetReduction.norm_le_hsLength A hA) (by positivity)153  have h := add_le_add (hcert A hA ht) herror154  convert h using 1155  ring156157end Nonadditivity.WeightedCertificate