Pratik Patil

QuantumModulus.lean

1module23public import SubentropyCertificates.DiagonalTraceDistance45/-! The attained quantum modulus of Theorem 13. Before the uniform endpoint the6explicit pair has distance equal to the prescribed radius. On the plateau the7same pure and maximally mixed states continue to attain the maximum. -/8@[expose] public section9noncomputable section10open Matrix Set11open scoped BigOperators ComplexOrder MatrixOrder1213namespace SubentropyCertificates.SpectralContinuity14open D5.S3.Quantum.Foundation.FiniteStateChannel15open D5.S3.Quantum.Information.InputInformationBalance (IsPure)16open D5.S3.Quantum.Subentropy.Basic17open SubentropyCertificates.ClassicalCurve18open SubentropyCertificates.Continuity19open SubentropyCertificates.BinarySpectra (densityMatrix)20open SubentropyCertificates.MixedQubit (traceDistance)21open SubentropyCertificates.QuantumEquality22open SubentropyCertificates.Subadditivity (subentropy_zero_iff_pure)2324variable {D : Type*} [Fintype D] [DecidableEq D] {m : ℕ}2526/-- A diagonal state with weight 1-u at the distinguished coordinate and equal27weight u/(d-1) at all other coordinates. The equivalence specifies that coordinate. -/28def extremalDiagonal (e : D ≃ Option (Fin (m + 1))) (u : ℝ) (hu : u ∈ Icc (0 : ℝ) 1) :29    DensityState D :=30  diagonalDensity (extremalVector m u ∘ e) (simplex_reindex _ (extremal_probability m hu) e)3132/-- The coordinate pure state at the distinguished label of e. -/33def coordinatePure (e : D ≃ Option (Fin (m + 1))) : DensityState D :=34  extremalDiagonal e 0 ⟨le_rfl, zero_le_one⟩3536theorem extremalDiagonal_subentropy (e : D ≃ Option (Fin (m + 1)))37    {u : ℝ} (hu : u ∈ Icc (0 : ℝ) 1) : subentropy (extremalDiagonal e u hu) = phi m u :=38  classical_subentropy_reindex (extremalVector m u) e3940/-- Both members are diagonal in the same basis. Their actual trace distance is u41and their signed subentropy difference is exactly the curve value. -/42theorem extremal_diagonal_pair (e : D ≃ Option (Fin (m + 1)))43    {u : ℝ} (hu : u ∈ Icc (0 : ℝ) 1) :44    IsPure (coordinatePure e) ∧45      Commute (densityMatrix (extremalDiagonal e u hu)) (densityMatrix (coordinatePure e)) ∧46      traceDistance (extremalDiagonal e u hu) (coordinatePure e) = u ∧47      subentropy (extremalDiagonal e u hu) - subentropy (coordinatePure e) = phi m u := by48  have hzero : subentropy (coordinatePure e) = 0 :=49    (extremalDiagonal_subentropy e (u := 0) ⟨le_rfl, zero_le_one⟩).trans (phi_zero m)50  refine ⟨(subentropy_zero_iff_pure _).mp hzero, ?_, ?_, ?_⟩51  · exact diagonalDensity_commute _ _ (simplex_reindex _ (extremal_probability m hu) e)52      (simplex_reindex _ (extremal_probability m (u := 0) ⟨le_rfl, zero_le_one⟩) e)53  · unfold coordinatePure extremalDiagonal54    rw [diagonalDensity_traceDistance]55    change (∑ i, |extremalVector m u (e i) - extremalVector m 0 (e i)|) / 2 = u56    rw [e.sum_comp (fun i ↦ |extremalVector m u i - extremalVector m 0 i|)]57    exact extremal_totalVariation m hu.158  · rw [hzero, sub_zero, extremalDiagonal_subentropy]5960/-- At the uniform endpoint the second spectrum is uniform: its density matrix is I/d. -/61theorem extremalDiagonal_uniform (e : D ≃ Option (Fin (m + 1))) :62    densityMatrix (extremalDiagonal e (uniformError m) (uniformError_mem m)) =63      (1 / ((m + 2 : ℕ) : ℝ)) • (1 : Matrix D D ℂ) := by64  change diagonal (fun i ↦ (extremalVector m (uniformError m) (e i) : ℂ)) = _65  rw [extremal_uniform]66  ext i j67  by_cases h : i = j68  · subst j69    simp [Matrix.smul_apply, Complex.real_smul]70  · simp [Matrix.smul_apply, h]7172/-- Values of the absolute subentropy difference on the closed trace-distance ball. -/73def quantumDifferences (D : Type*) [Fintype D] [DecidableEq D] (δ : ℝ) : Set ℝ :=74  {v | ∃ ρ σ : DensityState D, traceDistance ρ σ ≤ δ ∧ v = |subentropy ρ - subentropy σ|}7576/-- In every positive finite dimension, the quantum modulus is the largest attained77difference on the ball at every nonnegative radius. -/78theorem quantum_modulus_isGreatest (D : Type*) [Fintype D] [DecidableEq D] [Nonempty D]79    {δ : ℝ} (hδ : 0 ≤ δ) :80    IsGreatest (quantumDifferences D δ) (quantumModulus (Fintype.card D) δ) := by81  refine ⟨?_, ?_⟩82  · by_cases hd : Fintype.card D = 183    · let i : D := Classical.choice ‹Nonempty D›84      let p := pointMass i85      let hp := pointMass_probability i86      refine ⟨diagonalDensity p hp, diagonalDensity p hp, ?_, ?_⟩87      · simpa [diagonalDensity_traceDistance, totalVariation] using hδ88      · simp [hd, quantumModulus]89    · have hpos := Fintype.card_pos (α := D)90      obtain ⟨m, hm⟩ : ∃ m, Fintype.card D = m + 2 := ⟨Fintype.card D - 2, by omega⟩91      let e : D ≃ Option (Fin (m + 1)) := Fintype.equivOfCardEq (by simp [hm, Nat.add_assoc])92      let u := min δ (uniformError m)93      have hu : u ∈ Icc (0 : ℝ) 1 :=94        ⟨le_min hδ (uniformError_mem m).1, (min_le_right ..).trans (uniformError_mem m).2⟩95      obtain ⟨_, _, hdist, hgap⟩ := extremal_diagonal_pair e hu96      refine ⟨extremalDiagonal e u hu, coordinatePure e, hdist.le.trans (min_le_left ..), ?_⟩97      have hnonneg : 0 ≤ phi m u := classical_subentropy_nonneg _ (extremal_probability m hu)98      rw [hgap, abs_of_nonneg hnonneg, hm]99      rfl100  · rintro v ⟨ρ, σ, hdist, rfl⟩101    exact quantum_continuity_upper ρ σ hdist102103/-- The supremum in Theorem 13, in the manuscript's closed-ball formulation. -/104theorem quantum_modulus_supremum (D : Type*) [Fintype D] [DecidableEq D] [Nonempty D]105    {δ : ℝ} (hδ : 0 ≤ δ) :106    sSup (quantumDifferences D δ) = quantumModulus (Fintype.card D) δ :=107  (quantum_modulus_isGreatest D hδ).csSup_eq108109/-- On the plateau the attained maximum is log d - H_d + 1. -/110theorem quantum_modulus_plateau (D : Type*) [Fintype D] [DecidableEq D]111    (hd : Fintype.card D = m + 2) {δ : ℝ} (hδ : uniformError m ≤ δ) :112    IsGreatest (quantumDifferences D δ)113      (Real.log (m + 2 : ℕ) - (harmonic (m + 2) : ℝ) + 1) := by114  have : Nonempty D := Fintype.card_pos_iff.mp (by omega)115  have h := quantum_modulus_isGreatest D ((uniformError_mem m).1.trans hδ)116  simpa only [hd, quantumModulus, modulus, min_eq_right hδ, phi_uniform_endpoint] using h117118end SubentropyCertificates.SpectralContinuity

Axioms used

Choose a statement to see which axioms its proof uses.