Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Section IV C, Eq.(18), Appendix A1: stabilization by an input-sized ancilla

Open
QAlgorithms.Papers.Independent.Advance50.P17.stabilization

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 system of dimension d≥1d\ge1d≥1. For each Δ∈{D,A,B,C}\Delta\in\{D,A,B,C\}Δ∈{D,A,B,C} and every finite ancilla SSS with dim⁡S≥d\dim S\ge ddimS≥d,

Δmax⁡(IS⊗E,IS⊗F)=Δstab(E,F).\Delta_{\max}(\mathcal I_S\otimes\mathcal E,\mathcal I_S\otimes\mathcal F)=\Delta_{\rm stab}(\mathcal E,\mathcal F).Δmax​(IS​⊗E,IS​⊗F)=Δstab​(E,F).

The analogous minimum squared fidelity equals FstabF_{\rm stab}Fstab​. Consequently both stabilized quantities remain unchanged after adjoining any positive finite identity register to the original system. The cutoff is the input dimension, and tensor-factor orders are canonical.

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, Eq.(18), Appendix A1, p.12: all ancillas of dimension at least d
achieve the same concrete maximum/minimum. Stabilized measures are stable on extension. -/
theorem stabilization (E F : FiniteProcess I I) :
    (∀ (S : Type) [Fintype S] [DecidableEq S] [Nonempty S], Fintype.card I ≤ Fintype.card S →
      (∀ c : Choice, maxDistance (stateDistance c) (idTensorSuperop (R := S) E.val)
        (idTensorSuperop (R := S) F.val) = stabDistance (stateDistance c) E.val F.val) ∧
      minFidelity (idTensorSuperop (R := S) E.val) (idTensorSuperop (R := S) F.val) =
        stabFidelity E.val F.val) ∧
    (∀ c : Choice, stabDistance (stateDistance c) (idTensorSuperop (R := J) E.val)
      (idTensorSuperop (R := J) F.val) = stabDistance (stateDistance c) E.val F.val) ∧
    stabFidelity (idTensorSuperop (R := J) E.val) (idTensorSuperop (R := J) F.val) =
      stabFidelity E.val F.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. 12, Section IV C, Eq.(18), Appendix A1: stabilization by an input-sized ancilla
Read-back

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

Let I,JI,JI,J be finite nonempty index types with decidable equality, and let E,FE,FE,F be channels on complex I×II\times II×I matrices, meaning maps admitting finite Kraus representations X↦∑aKaXKa†X\mapsto\sum_aK_aXK_a^\daggerX↦∑a​Ka​XKa†​ with ∑aKa†Ka=1\sum_aK_a^\dagger K_a=1∑a​Ka†​Ka​=1. Write Pψ=ψψ†P_\psi=\psi\psi^\daggerPψ​=ψψ†, and define fidelity and trace distance by

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. The four functions DcD_cDc​ are DtrD_{\mathrm{tr}}Dtr​, arccos⁡F\arccos\sqrt{\mathcal F}arccosF​, 2−2F\sqrt{2-2\sqrt{\mathcal F}}2−2F​​, and 1−F\sqrt{1-\mathcal F}1−F​. For maps G,HG,HG,H on an index space KKK, let Dmax⁡,c(G,H)D_{\max,c}(G,H)Dmax,c​(G,H) be the supremum of Dc(G(Pψ),H(Pψ))D_c(G(P_\psi),H(P_\psi))Dc​(G(Pψ​),H(Pψ​)) over all unit vectors ψ\psiψ, and let Fmin⁡(G,H)F_{\min}(G,H)Fmin​(G,H) be the corresponding infimum of fidelity. Define

Dstab,c(G,H)=Dmax⁡,c(id⁡K⊗G,id⁡K⊗H),Fstab(G,H)=Fmin⁡(id⁡K⊗G,id⁡K⊗H),D_{\mathrm{stab},c}(G,H)=D_{\max,c}(\operatorname{id}_K\otimes G,\operatorname{id}_K\otimes H),\qquad F_{\mathrm{stab}}(G,H)=F_{\min}(\operatorname{id}_K\otimes G,\operatorname{id}_K\otimes H),Dstab,c​(G,H)=Dmax,c​(idK​⊗G,idK​⊗H),Fstab​(G,H)=Fmin​(idK​⊗G,idK​⊗H),

where extension by an identity means applying the map to each reference-indexed matrix block. For every finite nonempty type SSS with decidable equality and ∣I∣≤∣S∣|I|\le |S|∣I∣≤∣S∣, every choice ccc satisfies

Dmax⁡,c(id⁡S⊗E,id⁡S⊗F)=Dstab,c(E,F),D_{\max,c}(\operatorname{id}_S\otimes E,\operatorname{id}_S\otimes F)=D_{\mathrm{stab},c}(E,F),Dmax,c​(idS​⊗E,idS​⊗F)=Dstab,c​(E,F),

and Fmin⁡(id⁡S⊗E,id⁡S⊗F)=Fstab(E,F)F_{\min}(\operatorname{id}_S\otimes E,\operatorname{id}_S\otimes F)=F_{\mathrm{stab}}(E,F)Fmin​(idS​⊗E,idS​⊗F)=Fstab​(E,F). In addition, with no cardinality comparison required between III and JJJ, extending both maps by id⁡J\operatorname{id}_JidJ​ leaves every Dstab,cD_{\mathrm{stab},c}Dstab,c​ and FstabF_{\mathrm{stab}}Fstab​ unchanged; on the extended maps their definitions use a further reference indexed by J×IJ\times IJ×I.

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