Exact Lean source
Nonadditivity.WeightedCertificate
Download original .lean · View on GitHub · Jump to source
Direct imports
Imported by project modules
2 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
13 project constants, including generated, internal and private declarations.
13 declarations
Nonadditivity.WeightedCertificate.adjointMap_monoNonadditivity.WeightedCertificate.adjointMap_norm_leNonadditivity.WeightedCertificate.adjointMap_real_smul_oneNonadditivity.WeightedCertificate.damped_weighted_certificateNonadditivity.WeightedCertificate.damping_norm_le_oneNonadditivity.WeightedCertificate.sandwich_norm_leNonadditivity.WeightedCertificate.weightedNonadditivity.WeightedCertificate.weighted._proof_1internal/detail/privateNonadditivity.WeightedCertificate.weighted.eq_1internal/detail/privateNonadditivity.WeightedCertificate.weighted_adjointMapNonadditivity.WeightedCertificate.weighted_krausNonadditivity.WeightedCertificate.weighted_mapNonadditivity.WeightedCertificate.weighted_observable_sub_norm_le
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 ι ο κ where30kraus k := V*T.kraus k31complete := by32simpa only [Matrix.conjTranspose_mul,hV.eq,Matrix.mul_assoc,adjointMap]33using 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 := by42simp only [map,weighted,Matrix.conjTranspose_mul,hV.eq,43Matrix.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) := by48simp 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) :52T.adjointMap A ≤ T.adjointMap B := by53rw [Matrix.le_iff] at hAB ⊢54have h := T.adjointMap_posSemidef (B-A) hAB55have he : T.adjointMap (B-A) = T.adjointMap B-T.adjointMap A :=56(T.adjointLinearMap).map_sub B A57rwa [he] at h5859theorem adjointMap_real_smul_one (T : KrausChannel ι ο κ) (r : ℝ) :60T.adjointMap (r • (1 : Matrix ο ο ℂ)) = r • (1 : Matrix ι ι ℂ) := by61change T.adjointMap ((r : ℂ) • 1) = (r : ℂ) • 162rw [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‖ := by67letI : CStarAlgebra (Matrix ο ο ℂ) := {}68have hu : A ≤ ‖A‖ • (1 : Matrix ο ο ℂ) := by69simpa only [Algebra.algebraMap_eq_smul_one] using70hA.isSelfAdjoint.le_algebraMap_norm_self71have hl : (-‖A‖) • (1 : Matrix ο ο ℂ) ≤ A := by72have h := hA.neg.isSelfAdjoint.le_algebraMap_norm_self73simpa only [norm_neg,Algebra.algebraMap_eq_smul_one,neg_smul,neg_neg] using74neg_le_neg h75apply 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 := by82letI : CStarAlgebra (Matrix ι ι ℂ) := {}83have hp : (F*F).PosSemidef := by84simpa only [hF.eq] using Matrix.posSemidef_conjTranspose_mul_self F85have hn : ‖F*F‖ ≤ 1 :=86(CStarAlgebra.norm_le_one_iff_of_nonneg _ hp.nonneg).mpr (Matrix.le_iff.mpr hres)87rw [hF.isSelfAdjoint.norm_mul_self] at hn88nlinarith [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‖ := by92calc93‖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‖ := by103have hv : ‖V‖ ≤ 1+δ := by104calc105‖V‖ = ‖(V-1)+1‖ := by rw [sub_add_cancel]106_ ≤ ‖V-1‖+‖(1 : Matrix ο ο ℂ)‖ := norm_add_le _ _107_ ≤ 1+δ := by rw [norm_one]; linarith108have he : V*A*V-A = (V-1)*A*V+A*(V-1) := by noncomm_ring109rw [he]110calc111_ ≤ ‖(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 := by132intro A hA ht133have hc : (V*A*V-A).IsHermitian := by134change (V*A*V-A).conjTranspose = V*A*V-A135simp only [Matrix.conjTranspose_sub,Matrix.conjTranspose_mul,hV.eq,hA.eq,Matrix.mul_assoc]136have 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 := by138rw [DampedChannel.damped_adjointMap_traceless _ _ _ _ _ ht,139DampedChannel.damped_adjointMap_traceless _ _ _ _ _ ht,weighted_adjointMap]140have hs := (T.adjointLinearMap).map_sub (V*A*V) A141change T.adjointMap (V*A*V-A)=T.adjointMap (V*A*V)-T.adjointMap A at hs142rw [hs,Matrix.mul_sub,Matrix.sub_mul]143abel144rw [he]145apply (norm_add_le _ _).trans146have herror : ‖F*T.adjointMap (V*A*V-A)*F‖ ≤ δ*(2+δ)*hsLength A := by147calc148_ ≤ ‖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)153have h := add_le_add (hcert A hA ht) herror154convert h using 1155ring156157end Nonadditivity.WeightedCertificate