Pratik Patil

InteriorEigenbasis.lean

1module23public import SubentropyCertificates.ProjectionAlignment45/-! A spectrum with one distinguished entry can be expressed in an arbitrary6eigenbasis using the diagonal extremizers already used for attainment. -/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.QuantumEquality20open SubentropyCertificates.ClassicalCurve21open SubentropyCertificates.BinarySpectra (densityMatrix)22open SubentropyCertificates.Subadditivity (subentropy_zero_iff_pure subentropy_of_spectrum)2324variable {D : Type*} [Fintype D] [DecidableEq D] {m : ℕ}2526theorem extremalDiagonal_matrix (e : D ≃ Option (Fin (m + 1))) {δ : ℝ} (hδ : δ ∈ Icc 0 1) :27    densityMatrix (extremalDiagonal e δ hδ) =28      extremalMatrix m δ (densityMatrix (coordinatePure e)) := by29  change diagonal (fun i ↦ (extremalVector m δ (e i) : ℂ)) =30    extremalMatrix m δ (diagonal (fun i ↦ (extremalVector m 0 (e i) : ℂ)))31  ext i j32  by_cases hij : i = j33  · subst j34    cases hi : e i <;> simp [extremalMatrix, Matrix.smul_apply, hi, extremalVector]35  · simp [extremalMatrix, Matrix.smul_apply, hij]3637theorem extremalMatrix_conj (U : Matrix.unitaryGroup D ℂ) (P : Matrix D D ℂ) (m : ℕ) (δ : ℝ) :38    Unitary.conjStarAlgAut ℂ _ U (extremalMatrix m δ P) =39      extremalMatrix m δ (Unitary.conjStarAlgAut ℂ _ U P) := by40  simp only [extremalMatrix, map_add, map_smul, map_sub, map_one]4142theorem extremal_spectral_basis (σ : DensityState D) (hn : Fintype.card D = m + 2)43    {δ : ℝ} (hδ : δ ∈ Icc 0 1)44    (hs : ∃ i, (density_posSemidef σ).isHermitian.eigenvalues i = 1-δ ∧45      ∀ j, j ≠ i → (density_posSemidef σ).isHermitian.eigenvalues j = δ / (m+1 : ℕ)) :46    ∃ (e : D ≃ Option (Fin (m + 1))) (U : Matrix.unitaryGroup D ℂ),47      densityMatrix σ = Unitary.conjStarAlgAut ℂ _ U (densityMatrix (extremalDiagonal e δ hδ)) := by48  obtain ⟨i, hi, hj⟩ := hs49  let t : D ≃ Option (Fin (m+1)) := Fintype.equivOfCardEq (by simp [hn, Nat.add_assoc])50  let e := t.trans (Equiv.swap (t i) none)51  have hei : e i = none := by simp [e]52  let hA := (density_posSemidef σ).isHermitian53  have hw j : hA.eigenvalues j = extremalVector m δ (e j) := by54    by_cases h : j = i55    · subst j56      rw [hei]57      exact hi58    · have hne : e j ≠ none := fun eq ↦ h (e.injective (eq.trans hei.symm))59      cases hval : e j with60      | none => exact (hne hval).elim61      | some k => exact hj j h62  refine ⟨e, hA.eigenvectorUnitary, ?_⟩63  calc64    _ = Unitary.conjStarAlgAut ℂ _ hA.eigenvectorUnitary65        (diagonal (fun b ↦ (hA.eigenvalues b : ℂ))) := hA.spectral_theorem66    _ = _ := by simp_rw [hw]; rfl6768theorem pure_spectral_basis (ρ : DensityState D) (hn : Fintype.card D = m + 2) (hρ : IsPure ρ) :69    ∃ (e : D ≃ Option (Fin (m + 1))) (U : Matrix.unitaryGroup D ℂ),70      densityMatrix ρ = Unitary.conjStarAlgAut ℂ _ U (densityMatrix (coordinatePure e)) := by71  let hA := (density_posSemidef ρ).isHermitian72  have hp := spectral_prob (density_posSemidef ρ) ρ.2.273  obtain ⟨i, hi⟩ := (classical_zero_iff_pointMass hA.eigenvalues hp).mp74    ((subentropy_of_spectrum hA).symm.trans ((subentropy_zero_iff_pure ρ).mpr hρ))75  apply extremal_spectral_basis ρ hn (δ := 0) ⟨le_rfl, zero_le_one⟩76  change ∃ i, hA.eigenvalues i = _ ∧ ∀ j, j ≠ i → hA.eigenvalues j = _77  rw [hi]78  exact ⟨i, by simp [pointMass], fun j hj ↦ by simp [pointMass, hj]⟩7980theorem subentropy_eq_of_unitary (ρ σ : DensityState D) (U : Matrix.unitaryGroup D ℂ)81    (h : densityMatrix ρ = Unitary.conjStarAlgAut ℂ _ U (densityMatrix σ)) :82    subentropy ρ = subentropy σ := by83  change matrixSubentropy (densityMatrix ρ) = matrixSubentropy (densityMatrix σ)84  rw [h]85  exact matrixSubentropy_isometric_embedding _ _ (Unitary.coe_star_mul_self U)8687end SubentropyCertificates.SpectralContinuity

Axioms used

Choose a statement to see which axioms its proof uses.