SpectralVariation.lean
1module23public import SubentropyCertificates.OrderedEigenvalues4public import SubentropyCertificates.QubitTraceDistance5public import SubentropyCertificates.MaximalCoupling6import all SubentropyCertificates.HelstromSpectral78/-! The trace-norm eigenvalue perturbation inequality. A common upper bound for9two Hermitian matrices is obtained from the positive part of their difference. -/10@[expose] public section11noncomputable section12open Matrix13open scoped BigOperators ComplexOrder MatrixOrder1415namespace SubentropyCertificates.SpectralContinuity16open SubentropyCertificates.Helstrom17open SubentropyCertificates.Continuity18open SubentropyCertificates.MixedQubit (traceDistance)19open D5.S3.Quantum.Foundation.FiniteStateChannel20open D5.S3.Quantum.Information.PartialTraceMutualInformation2122variable {D : Type*} [Fintype D] [DecidableEq D]2324private theorem sum_ordered {A : Matrix D D ℂ} (hA : A.IsHermitian) :25 ∑ i, hA.eigenvalues₀ i = A.trace.re := by26 let e : Fin (Fintype.card D) ≃ D := Fintype.equivOfCardEq (Fintype.card_fin _)27 have hs := congrArg Complex.re hA.trace_eq_sum_eigenvalues28 simp only [Complex.re_sum] at hs29 exact (e.symm.sum_comp hA.eigenvalues₀).symm.trans hs.symm3031/-- Trace-norm perturbation inequality for decreasingly ordered eigenvalues32of arbitrary Hermitian matrices, including matrices with repeated eigenvalues. -/33theorem ordered_spectral_l1_le {A B : Matrix D D ℂ} (hA : A.IsHermitian) (hB : B.IsHermitian) :34 (∑ i, |hA.eigenvalues₀ i - hB.eigenvalues₀ i|) ≤ ∑ i, |(hA.sub hB).eigenvalues i| := by35 let hH := hA.sub hB36 let w := hH.eigenvalues37 let f := fun i ↦ (|w i| + w i) / 238 let g := fun i ↦ (|w i| - w i) / 239 let U := hH.eigenvectorUnitary40 let P := spectralMatrix U f41 let N := spectralMatrix U g42 have hP : P.PosSemidef := spectral_pos U f (fun i ↦ by dsimp [f]; linarith [neg_abs_le (w i)])43 have hN : N.PosSemidef := spectral_pos U g (fun i ↦ by dsimp [g]; linarith [le_abs_self (w i)])44 have hd : A - B = P - N := by45 rw [show P - N = _ from spectral_sub U f g]46 calc47 _ = spectralMatrix U w := hH.spectral_theorem48 _ = _ := congrArg (spectralMatrix U) (funext fun i ↦ by dsimp [f, g]; ring)49 let C := B + P50 have hC : C.IsHermitian := hB.add hP.isHermitian51 have ca : C - A = N := by52 change B + P - A = N53 rw [sub_eq_iff_eq_add.mp hd]54 abel55 have cb : C - B = P := by dsimp [C]; abel56 have ha := ordered_eigenvalues_mono hA hC (by rwa [ca])57 have hb := ordered_eigenvalues_mono hB hC (by rwa [cb])58 have point i : |hA.eigenvalues₀ i - hB.eigenvalues₀ i| ≤59 (hC.eigenvalues₀ i - hA.eigenvalues₀ i) + (hC.eigenvalues₀ i - hB.eigenvalues₀ i) :=60 abs_le.mpr ⟨by linarith [hb i], by linarith [ha i]⟩61 calc62 _ ≤ _ := Finset.sum_le_sum (fun i _ ↦ point i)63 _ = N.trace.re + P.trace.re := by64 simp only [Finset.sum_add_distrib, Finset.sum_sub_distrib, sum_ordered]65 rw [← ca, ← cb, Matrix.trace_sub, Matrix.trace_sub, Complex.sub_re, Complex.sub_re]66 _ = _ := by67 rw [show N.trace.re = _ from spectral_trace U g, show P.trace.re = _ from spectral_trace U f,68 ← Finset.sum_add_distrib]69 exact Finset.sum_congr rfl (fun i _ ↦ by change g i + f i = |w i|; dsimp [g, f]; ring)7071/-- The probability vector of eigenvalues in decreasing order. -/72def orderedSpectrum (ρ : DensityState D) : Fin (Fintype.card D) → ℝ :=73 (density_posSemidef ρ).isHermitian.eigenvalues₀7475/-- Total variation of the two ordered spectra is bounded by quantum trace distance. -/76theorem ordered_spectrum_totalVariation_le (ρ σ : DensityState D) :77 totalVariation (orderedSpectrum ρ) (orderedSpectrum σ) ≤ traceDistance ρ σ :=78 div_le_div_of_nonneg_right79 (ordered_spectral_l1_le (density_posSemidef ρ).isHermitian (density_posSemidef σ).isHermitian)80 (by norm_num)8182end SubentropyCertificates.SpectralContinuity
Axioms used
Choose a statement to see which axioms its proof uses.