Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Section IV C: pure inputs suffice for worst-case optimization

Open
QAlgorithms.Papers.Independent.Advance50.P17.pureMixed

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

prove2quantum

Let E,F\mathcal E,\mathcal FE,F be CPTP maps on a positive finite-dimensional register. For each Δ∈{D,A,B,C}\Delta\in\{D,A,B,C\}Δ∈{D,A,B,C}, its pure-input supremum is attained by a unit vector ψ\psiψ, and

max⁡ρ densityΔ(E(ρ),F(ρ))=Δ(E(ψ),F(ψ))=max⁡ϕ pureΔ(E(ϕ),F(ϕ)).\max_{\rho\text{ density}}\Delta(\mathcal E(\rho),\mathcal F(\rho))=\Delta(\mathcal E(\psi),\mathcal F(\psi))=\max_{\phi\text{ pure}}\Delta(\mathcal E(\phi),\mathcal F(\phi)).ρ densitymax​Δ(E(ρ),F(ρ))=Δ(E(ψ),F(ψ))=ϕ puremax​Δ(E(ϕ),F(ϕ)).

Likewise, the minimum squared fidelity over all density inputs equals its pure-input minimum and has a pure minimizer. More generally the distance conclusion holds for a continuous, jointly convex state metric. The concrete A,B,CA,B,CA,B,C conclusions use root-fidelity concavity and decreasing transforms; they do not assume the source's false joint-convexity claim.

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]

/-- Section IV C, PDF p.8: all four concrete maxima and minimum squared fidelity are attained
at pure inputs and bound every mixed input. This avoids the false double-convexity premise. -/
theorem pureMixed (E F : FiniteProcess I I) :
    (∀ c : Choice, ∃ psi : ProcessPureInput I,
      maxDistance (stateDistance c) E.val F.val =
        stateDistance c (E.val (pureDensity psi.val)) (F.val (pureDensity psi.val)) ∧
      ∀ rho : ProcessDensityInput I, stateDistance c (E.val rho.val) (F.val rho.val) ≤
        stateDistance c (E.val (pureDensity psi.val)) (F.val (pureDensity psi.val))) ∧
    (∃ psi : ProcessPureInput I, minFidelity E.val F.val =
      fidelity (E.val (pureDensity psi.val)) (F.val (pureDensity psi.val)) ∧
      ∀ rho : ProcessDensityInput I, fidelity (E.val (pureDensity psi.val)) (F.val (pureDensity psi.val)) ≤
        fidelity (E.val rho.val) (F.val rho.val)) ∧
    (∀ delta : FiniteStateDistance, StateMetrics delta → StateContinuous delta →
      StateDoublyConvex delta → ∃ psi : ProcessPureInput I,
        maxDistance delta E.val F.val = delta (E.val (pureDensity psi.val))
          (F.val (pureDensity psi.val)) ∧
        ∀ rho : ProcessDensityInput I, delta (E.val rho.val) (F.val rho.val) ≤
          delta (E.val (pureDensity psi.val)) (F.val (pureDensity psi.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. 8, Section IV C: pure inputs suffice for worst-case optimization
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. A density matrix is a positive semidefinite matrix of trace 111; write Pψ=ψψ†P_\psi=\psi\psi^\daggerPψ​=ψψ† for a unit vector ψ\psiψ. Define

F(A,B)=(Re⁡tr⁡A BA)2,Dtr(A,B)=12Re⁡tr⁡(A−B)†(A−B),\mathcal F(A,B)=\left(\operatorname{Re}\operatorname{tr}\sqrt{\sqrt A\,B\sqrt A}\right)^2,\qquad D_{\mathrm{tr}}(A,B)=\tfrac12\operatorname{Re}\operatorname{tr}\sqrt{(A-B)^\dagger(A-B)},F(A,B)=(RetrA​BA​​)2,Dtr​(A,B)=21​Retr(A−B)†(A−B)​,

using matrix functional calculus, and let the other three distances be arccos⁡F(A,B)\arccos\sqrt{\mathcal F(A,B)}arccosF(A,B)​, 2−2F(A,B)\sqrt{2-2\sqrt{\mathcal F(A,B)}}2−2F(A,B)​​, and 1−F(A,B)\sqrt{1-\mathcal F(A,B)}1−F(A,B)​. For any matrix function δ\deltaδ, set Dmax⁡,δ(E,F)=sup⁡∥ϕ∥=1δ(E(Pϕ),F(Pϕ))D_{\max,\delta}(E,F)=\sup_{\|\phi\|=1}\delta(E(P_\phi),F(P_\phi))Dmax,δ​(E,F)=sup∥ϕ∥=1​δ(E(Pϕ​),F(Pϕ​)), and set Fmin⁡(E,F)=inf⁡∥ϕ∥=1F(E(Pϕ),F(Pϕ))F_{\min}(E,F)=\inf_{\|\phi\|=1}\mathcal F(E(P_\phi),F(P_\phi))Fmin​(E,F)=inf∥ϕ∥=1​F(E(Pϕ​),F(Pϕ​)). For each of the four distances DcD_cDc​, there exists a unit vector ψ\psiψ, possibly depending on ccc, such that

Dmax⁡,Dc(E,F)=Dc(E(Pψ),F(Pψ)),Dc(E(ρ),F(ρ))≤Dc(E(Pψ),F(Pψ))D_{\max,D_c}(E,F)=D_c(E(P_\psi),F(P_\psi)),\qquad D_c(E(\rho),F(\rho))\le D_c(E(P_\psi),F(P_\psi))Dmax,Dc​​(E,F)=Dc​(E(Pψ​),F(Pψ​)),Dc​(E(ρ),F(ρ))≤Dc​(E(Pψ​),F(Pψ​))

for every density matrix ρ\rhoρ. There also exists a unit vector ψ\psiψ such that Fmin⁡(E,F)=F(E(Pψ),F(Pψ))F_{\min}(E,F)=\mathcal F(E(P_\psi),F(P_\psi))Fmin​(E,F)=F(E(Pψ​),F(Pψ​)), and this value is at most F(E(ρ),F(ρ))\mathcal F(E(\rho),F(\rho))F(E(ρ),F(ρ)) for every density matrix ρ\rhoρ. Finally, the same maximum attainment and domination of all mixed inputs hold for every family δ\deltaδ of real functions on pairs of complex matrices, defined for every finite index type with decidable equality, provided that on density matrices in every finite nonempty such type it satisfies nonnegativity, vanishing exactly on equal pairs, symmetry, the triangle inequality, continuity as a function of the pair, and joint convexity

δ ⁣(∑jpjρj,∑jpjσj)≤∑jpjδ(ρj,σj)\delta\!\left(\sum_jp_j\rho_j,\sum_jp_j\sigma_j\right) \le\sum_jp_j\delta(\rho_j,\sigma_j)δ(j∑​pj​ρj​,j∑​pj​σj​)≤j∑​pj​δ(ρj​,σj​)

for every finite family of density matrices and nonnegative weights summing to 111. These hypotheses on δ\deltaδ impose no conditions on its values outside density matrices.

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