Pratik Patil

InteriorEquality.lean

1module23public import SubentropyCertificates.InteriorEigenbasis4public import SubentropyCertificates.ClassicalInteriorEquality56/-! Theorem 13: all maximizing density-matrix pairs at strictly interior radii. -/7@[expose] public section8noncomputable section9set_option backward.isDefEq.respectTransparency false10open Matrix Set11open scoped BigOperators ComplexOrder MatrixOrder1213namespace SubentropyCertificates.SpectralContinuity14open D5.S3.Quantum.Foundation.FiniteStateChannel15open D5.S3.Quantum.Information.InputInformationBalance (IsPure)16open D5.S3.Quantum.Information.PartialTraceMutualInformation17open D5.S3.Quantum.Subentropy.Basic18open D5.S3.Quantum.Subentropy.DensityKernel19open SubentropyCertificates.ClassicalCurve20open SubentropyCertificates.Continuity21open SubentropyCertificates.BinarySpectra (densityMatrix)22open SubentropyCertificates.MixedQubit (traceDistance)23open SubentropyCertificates.Subadditivity (subentropy_zero_iff_pure subentropy_of_spectrum)2425variable {D : Type*} [Fintype D] [DecidableEq D] {m : ℕ}2627private theorem native_spectral_distance (ρ σ : DensityState D) :28    totalVariation (density_posSemidef ρ).isHermitian.eigenvalues29      (density_posSemidef σ).isHermitian.eigenvalues ≤ traceDistance ρ σ := by30  let e : Fin (Fintype.card D) ≃ D := Fintype.equivOfCardEq (Fintype.card_fin _)31  apply LE.le.trans _ (ordered_spectrum_totalVariation_le ρ σ)32  apply le_of_eq33  exact congrArg (fun x : ℝ ↦ x / 2)34    (e.symm.sum_comp (fun j ↦ |orderedSpectrum ρ j - orderedSpectrum σ j|))3536private theorem conjugate_pure_projection (ρ : DensityState D) (hρ : IsPure ρ)37    (U : Matrix.unitaryGroup D ℂ) :38    let P := Unitary.conjStarAlgAut ℂ _ U (densityMatrix ρ)39    P.IsHermitian ∧ P*P = P ∧ P.trace = 1 := by40  refine ⟨((density_posSemidef ρ).mul_mul_conjTranspose_same (U : Matrix D D ℂ)).isHermitian,41    ?_, ?_⟩42  · rw [← map_mul, (pure_density_projection ρ hρ).1]43  · rw [Unitary.conjStarAlgAut_apply, Matrix.trace_mul_comm, ← Matrix.mul_assoc]44    simpa using (show (densityMatrix ρ).trace = 1 from ρ.2.2)4546private theorem interior_necessity (hn : Fintype.card D = m + 2) {δ : ℝ}47    (h0 : 0 < δ) (hu : δ < uniformError m) (ρ σ : DensityState D)48    (hd : traceDistance ρ σ ≤ δ) (hg : subentropy σ - subentropy ρ = phi m δ) :49    IsPure ρ ∧ densityMatrix σ = extremalMatrix m δ (densityMatrix ρ) := by50  let p := (density_posSemidef σ).isHermitian.eigenvalues51  let q := (density_posSemidef ρ).isHermitian.eigenvalues52  have hp : p ∈ probabilitySimplex D := spectral_prob (density_posSemidef σ) σ.2.253  have hq : q ∈ probabilitySimplex D := spectral_prob (density_posSemidef ρ) ρ.2.254  have hsσ : subentropy σ = classicalSubentropy p :=55    subentropy_of_spectrum (density_posSemidef σ).isHermitian56  have hsρ : subentropy ρ = classicalSubentropy q :=57    subentropy_of_spectrum (density_posSemidef ρ).isHermitian58  rw [hsσ, hsρ] at hg59  have ht := native_spectral_distance σ ρ60  rw [traceDistance_comm σ ρ] at ht61  obtain ⟨hz, shape⟩ := classical_interior_equality m hn p q hp hq h0 hu (ht.trans hd) hg62  have pure := (subentropy_zero_iff_pure ρ).mp (hsρ.trans hz)63  have hδ : δ ∈ Icc (0 : ℝ) 1 := ⟨h0.le, hu.le.trans (uniformError_mem m).2⟩64  obtain ⟨e, U, hσ⟩ := extremal_spectral_basis σ hn hδ shape65  let P := Unitary.conjStarAlgAut ℂ _ U (densityMatrix (coordinatePure e))66  obtain ⟨hpH, hp2, hpt⟩ := conjugate_pure_projection (coordinatePure e)67    (extremal_diagonal_pair e hδ).1 U68  have hS : densityMatrix σ = extremalMatrix m δ P := by69    rw [hσ, extremalDiagonal_matrix, extremalMatrix_conj]70  have he := interior_projection_alignment m hu ρ σ pure P hpH hp2 hpt hS hd71  exact ⟨pure, he.symm ▸ hS⟩7273/-- Every aligned pair has actual distance δ and signed subentropy gap Φ_d(δ). -/74theorem aligned_pair_values (hn : Fintype.card D = m + 2) {δ : ℝ} (hδ : δ ∈ Icc (0 : ℝ) 1)75    (ρ σ : DensityState D) (hρ : IsPure ρ)76    (hs : densityMatrix σ = extremalMatrix m δ (densityMatrix ρ)) :77    traceDistance ρ σ = δ ∧ subentropy σ - subentropy ρ = phi m δ := by78  obtain ⟨e, U, hr⟩ := pure_spectral_basis ρ hn hρ79  have hσ : densityMatrix σ =80      Unitary.conjStarAlgAut ℂ _ U (densityMatrix (extremalDiagonal e δ hδ)) := by81    rw [hs, hr, extremalDiagonal_matrix, extremalMatrix_conj]82  obtain ⟨_, _, dist, gap⟩ := extremal_diagonal_pair e hδ83  exact ⟨(traceDistance_comm ρ σ).trans ((traceDistance_eq_of_unitary _ _ _ _ U hσ hr).trans dist),84    by rwa [subentropy_eq_of_unitary σ _ U hσ, subentropy_eq_of_unitary ρ _ U hr]⟩8586/-- A pair in the closed trace-distance ball attains the interior maximum iff, up to87exchange, it consists of a pure projection and the state with weight 1-δ on that88projection and weight δ/(d-1) on its orthogonal complement. -/89theorem quantum_modulus_interior_eq_iff (hn : Fintype.card D = m + 2) {δ : ℝ}90    (h0 : 0 < δ) (hu : δ < uniformError m) (ρ σ : DensityState D) :91    (traceDistance ρ σ ≤ δ ∧ |subentropy ρ - subentropy σ| = sSup (quantumDifferences D δ)) ↔92      (IsPure ρ ∧ densityMatrix σ = extremalMatrix m δ (densityMatrix ρ)) ∨93      (IsPure σ ∧ densityMatrix ρ = extremalMatrix m δ (densityMatrix σ)) := by94  have : Nonempty D := Fintype.card_pos_iff.mp (by omega)95  rw [quantum_modulus_supremum D h0.le, hn]96  change (_ ∧ _ = phi m (min δ (uniformError m))) ↔ _97  rw [min_eq_left hu.le]98  have hδ : δ ∈ Icc (0 : ℝ) 1 := ⟨h0.le, hu.le.trans (uniformError_mem m).2⟩99  have hpos := phi_pos m h0 hu.le100  constructor101  · rintro ⟨hd, hg⟩102    rcases le_total (subentropy ρ) (subentropy σ) with h | h103    · rw [abs_of_nonpos (sub_nonpos.mpr h), neg_sub] at hg104      exact Or.inl (interior_necessity hn h0 hu ρ σ hd hg)105    · rw [abs_of_nonneg (sub_nonneg.mpr h)] at hg106      rw [traceDistance_comm] at hd107      exact Or.inr (interior_necessity hn h0 hu σ ρ hd hg)108  · rintro (⟨hr, hs⟩ | ⟨hs, hr⟩)109    · obtain ⟨hd, hg⟩ := aligned_pair_values hn hδ ρ σ hr hs110      exact ⟨hd.le, by rw [abs_sub_comm, hg, abs_of_nonneg hpos.le]⟩111    · obtain ⟨hd, hg⟩ := aligned_pair_values hn hδ σ ρ hs hr112      exact ⟨(traceDistance_comm ρ σ).le.trans hd.le, by rw [hg, abs_of_nonneg hpos.le]⟩113114end SubentropyCertificates.SpectralContinuity

Axioms used

Choose a statement to see which axioms its proof uses.