Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Appendix A2: D_stab is an attained concave maximization

Open
QAlgorithms.Papers.Independent.Advance50.P17.distanceOptimization

by Gohan · Oct 29, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

Fix CPTP maps E,F\mathcal E,\mathcal FE,F on a positive finite-dimensional system. On the nonempty compact convex density-operator set D\mathcal DD, let GD(ρ)G_D(\rho)GD​(ρ) be the half trace-norm distance of the extended outputs on the canonical square-root purification of ρ\rhoρ. This objective is continuous and concave, and

Dstab(E,F)=max⁡ρ∈DGD(ρ).D_{\rm stab}(\mathcal E,\mathcal F)=\max_{\rho\in\mathcal D}G_D(\rho).Dstab​(E,F)=ρ∈Dmax​GD​(ρ).

The maximum is attained. The purified objective is distinct from the ordinarily convex distance D(E(ρ),F(ρ))D(\mathcal E(\rho),\mathcal F(\rho))D(E(ρ),F(ρ)).

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Advance50_P17
Formal statement
noncomputable section

open MeasureTheory Filter

open scoped Matrix ComplexConjugate Topology

namespace QAlgorithms.Papers.Independent.Advance50.P17

open QAlgorithms.Papers.Independent.Information100.P53 (fidelity)

open QAlgorithms.Papers.Independent.Information100.P08 (canonicalPurification)

open QAlgorithms.Papers.Independent.Information100.P75 (hermitianReal)

variable {I J K : Type} [Fintype I] [Fintype J] [Fintype K]
  [DecidableEq I] [DecidableEq J] [DecidableEq K]
  [Nonempty I] [Nonempty J] [Nonempty K]

/-- Appendix A2, PDF p.13: D_stab is an attained maximization of the continuous concave
PURIFIED trace-distance objective over normalized density operators. -/
theorem distanceOptimization (E F : FiniteProcess I I) :
    Set.Nonempty {rho : Matrix I I ℂ | IsDensityMatrix rho} ∧
    IsCompact {rho : Matrix I I ℂ | IsDensityMatrix rho} ∧
    Convex ℝ {rho : Matrix I I ℂ | IsDensityMatrix rho} ∧
    ContinuousOn (purifiedChannelTraceDistance E.val F.val) {rho | IsDensityMatrix rho} ∧
    ConcaveOn ℝ {rho | IsDensityMatrix rho} (purifiedChannelTraceDistance E.val F.val) ∧
    (∃ rho : ProcessDensityInput I, stabDistance (stateDistance .trace) E.val F.val =
      purifiedChannelTraceDistance E.val F.val rho.val ∧
      ∀ sigma : ProcessDensityInput I, purifiedChannelTraceDistance E.val F.val sigma.val ≤ purifiedChannelTraceDistance E.val F.val rho.val) := by sorry

end QAlgorithms.Papers.Independent.Advance50.P17

end
Source
Distance measures to compare real and ideal quantum processes, arXiv:quant-ph/0408063v2, PDF p. 13, Appendix A2: D_stab is an attained concave maximization
Read-back

What the Lean code literally says, in plain math · gpt-6.1-sol

Let III be a finite nonempty index type with decidable equality, and let E,FE,FE,F be channels on its complex matrices, meaning maps with finite Kraus representations X↦∑aKaXKa†X\mapsto\sum_aK_aXK_a^\daggerX↦∑a​Ka​XKa†​ satisfying ∑aKa†Ka=1\sum_aK_a^\dagger K_a=1∑a​Ka†​Ka​=1. Let DI\mathcal D_IDI​ consist of the positive semidefinite matrices of trace 111. Write Pv=vv†P_v=vv^\daggerPv​=vv†, define χρ(i,i′)=(ρ)i′,i\chi_\rho(i,i')=(\sqrt\rho)_{i',i}χρ​(i,i′)=(ρ​)i′,i​, and set

Dtr(A,B)=12Re⁡tr⁡(A−B)†(A−B),Δ(ρ)=Dtr((id⁡I⊗E)(Pχρ),(id⁡I⊗F)(Pχρ)).D_{\mathrm{tr}}(A,B)=\tfrac12\operatorname{Re}\operatorname{tr}\sqrt{(A-B)^\dagger(A-B)},\qquad \Delta(\rho)=D_{\mathrm{tr}}((\operatorname{id}_I\otimes E)(P_{\chi_\rho}), (\operatorname{id}_I\otimes F)(P_{\chi_\rho})).Dtr​(A,B)=21​Retr(A−B)†(A−B)​,Δ(ρ)=Dtr​((idI​⊗E)(Pχρ​​),(idI​⊗F)(Pχρ​​)).

The square roots use matrix functional calculus, and identity extension applies the map to each reference-indexed matrix block. Define

Dstab(E,F)=sup⁡∥ψ∥=1, ψ∈CI×IDtr((id⁡I⊗E)(Pψ),(id⁡I⊗F)(Pψ)).D_{\mathrm{stab}}(E,F)= \sup_{\|\psi\|=1,\ \psi\in\mathbb C^{I\times I}} D_{\mathrm{tr}}((\operatorname{id}_I\otimes E)(P_\psi), (\operatorname{id}_I\otimes F)(P_\psi)).Dstab​(E,F)=∥ψ∥=1, ψ∈CI×Isup​Dtr​((idI​⊗E)(Pψ​),(idI​⊗F)(Pψ​)).

Then DI\mathcal D_IDI​ is nonempty, compact, and convex over R\mathbb RR; Δ\DeltaΔ is continuous and concave on DI\mathcal D_IDI​; and there exists ρ∈DI\rho\in\mathcal D_Iρ∈DI​ such that

Dstab(E,F)=Δ(ρ),Δ(σ)≤Δ(ρ)for every σ∈DI.D_{\mathrm{stab}}(E,F)=\Delta(\rho),\qquad \Delta(\sigma)\le\Delta(\rho)\quad\text{for every }\sigma\in\mathcal D_I.Dstab​(E,F)=Δ(ρ),Δ(σ)≤Δ(ρ)for every σ∈DI​.
Human review
  • Endorsed by Shuze Chen · Oct 29, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 29, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me