Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Section IV C: stabilized trace distance as optimal discrimination bias

Open
QAlgorithms.Papers.Independent.Advance50.P17.stabilizedDiscrimination

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 register of dimension d≥1d\ge1d≥1. For any positive finite ancilla SSS, unit pure input on S⊗IS\otimes IS⊗I, and joint binary POVM effect MMM, the equal-prior success probability of distinguishing the two channel outputs is bounded by

Psucc≤1+Dstab(E,F)2.P_{\rm succ}\le\frac{1+D_{\rm stab}(\mathcal E,\mathcal F)}2.Psucc​≤21+Dstab​(E,F)​.

An ancilla of dimension ddd, a normalized pure input, and a joint binary POVM attain equality. Thus the bias above one half is Dstab/2D_{\rm stab}/2Dstab​/2.

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: arbitrary-ancilla discrimination success is (1+D_stab)/2;
an input-sized ancilla and a joint binary POVM attain it. Bias means success minus 1/2. -/
theorem stabilizedDiscrimination (E F : FiniteProcess I I) :
    (∀ (S : Type) [Fintype S] [DecidableEq S] [Nonempty S], ∀ psi : ProcessPureInput (S × I),
      ∀ M : Matrix (S × I) (S × I) ℂ, IsEffect M →
        binarySuccess (idTensorSuperop E.val (pureDensity psi.val))
          (idTensorSuperop F.val (pureDensity psi.val)) M ≤
            (1 + stabDistance (stateDistance .trace) E.val F.val) / 2) ∧
    (∃ psi : ProcessPureInput (I × I), ∃ M : Matrix (I × I) (I × I) ℂ, IsEffect M ∧
      binarySuccess (idTensorSuperop E.val (pureDensity psi.val))
        (idTensorSuperop F.val (pureDensity psi.val)) M =
          (1 + stabDistance (stateDistance .trace) E.val F.val) / 2) := 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: stabilized trace distance as optimal discrimination bias
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, where a channel admits a finite Kraus representation 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. Write Pψ=ψψ†P_\psi=\psi\psi^\daggerPψ​=ψψ†, and define

Dtr(A,B)=12Re⁡tr⁡(A−B)†(A−B),Dstab(E,F)=sup⁡∥ϕ∥=1, ϕ∈CI×IDtr ⁣((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 D_{\mathrm{stab}}(E,F)= \sup_{\|\phi\|=1,\ \phi\in\mathbb C^{I\times I}} D_{\mathrm{tr}}\!\left((\operatorname{id}_I\otimes E)(P_\phi), (\operatorname{id}_I\otimes F)(P_\phi)\right),Dtr​(A,B)=21​Retr(A−B)†(A−B)​,Dstab​(E,F)=∥ϕ∥=1, ϕ∈CI×Isup​Dtr​((idI​⊗E)(Pϕ​),(idI​⊗F)(Pϕ​)),

with the square root given by matrix functional calculus. Identity extension acts on each reference-indexed matrix block. For every finite nonempty reference type SSS with decidable equality, every unit vector ψ∈CS×I\psi\in\mathbb C^{S\times I}ψ∈CS×I, and every matrix MMM on that space such that both MMM and 1−M1-M1−M are positive semidefinite, put A=(id⁡S⊗E)(Pψ)A=(\operatorname{id}_S\otimes E)(P_\psi)A=(idS​⊗E)(Pψ​) and B=(id⁡S⊗F)(Pψ)B=(\operatorname{id}_S\otimes F)(P_\psi)B=(idS​⊗F)(Pψ​). Then

Re⁡tr⁡(MA)+Re⁡tr⁡((1−M)B)2≤1+Dstab(E,F)2.\frac{\operatorname{Re}\operatorname{tr}(MA)+ \operatorname{Re}\operatorname{tr}((1-M)B)}2 \le \frac{1+D_{\mathrm{stab}}(E,F)}2.2Retr(MA)+Retr((1−M)B)​≤21+Dstab​(E,F)​.

There exist a unit vector ψ∈CI×I\psi\in\mathbb C^{I\times I}ψ∈CI×I and such an effect MMM on I×II\times II×I for which equality holds.

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