Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Section IV B: average distances fail stability

Open
QAlgorithms.Papers.Independent.Advance50.P17.averageNonstability

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

prove2quantum

For each choice Δ∈{D,A,B,C}\Delta\in\{D,A,B,C\}Δ∈{D,A,B,C}, there exist positive finite system and ancilla dimensions and CPTP maps E,F\mathcal E,\mathcal FE,F such that

Δave(IA⊗E,IA⊗F)≠Δave(E,F).\Delta_{\rm ave}(\mathcal I_A\otimes\mathcal E,\mathcal I_A\otimes\mathcal F)\ne\Delta_{\rm ave}(\mathcal E,\mathcal F).Δave​(IA​⊗E,IA​⊗F)=Δave​(E,F).

The average is over the normalized Haar pure-input law on the applicable register. This is an existence claim, without a prescribed dimension or gap constant.

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 B, PDF p.7: for EACH candidate metric there exists a failure of stability;
this makes no assertion about identical pairs or one-dimensional systems. -/
theorem averageNonstability : ∀ c : Choice, ∃ d m : ℕ, ∃ hd : 0 < d, ∃ hm : 0 < m,
    letI : Nonempty (Fin d) := ⟨⟨0,hd⟩⟩
    letI : Nonempty (Fin m) := ⟨⟨0,hm⟩⟩
    ∃ E F : FiniteProcess (Fin d) (Fin d),
      aveDistance (stateDistance c) (idTensorSuperop (R := Fin m) E.val)
        (idTensorSuperop (R := Fin m) F.val) ≠ aveDistance (stateDistance c) 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. 7, Section IV B: average distances fail stability
Read-back

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

For each of the four choices

dtr(A,B)=12Re⁡tr⁡(A−B)†(A−B),dangle(A,B)=arccos⁡F(A,B),dbures(A,B)=2−2F(A,B),dsine(A,B)=1−F(A,B),d_{\mathrm{tr}}(A,B)=\tfrac12\operatorname{Re}\operatorname{tr}\sqrt{(A-B)^\dagger(A-B)},\quad d_{\mathrm{angle}}(A,B)=\arccos\sqrt{F(A,B)},\quad d_{\mathrm{bures}}(A,B)=\sqrt{2-2\sqrt{F(A,B)}},\quad d_{\mathrm{sine}}(A,B)=\sqrt{1-F(A,B)},dtr​(A,B)=21​Retr(A−B)†(A−B)​,dangle​(A,B)=arccosF(A,B)​,dbures​(A,B)=2−2F(A,B)​​,dsine​(A,B)=1−F(A,B)​,

where F(A,B)=(Re⁡tr⁡ABA)2F(A,B)=(\operatorname{Re}\operatorname{tr}\sqrt{\sqrt A B\sqrt A})^2F(A,B)=(RetrA​BA​​)2, there exist positive natural numbers d,md,md,m and channels E,FE,FE,F on Cd\mathbb C^dCd such that

Dav(id⁡m⊗E,id⁡m⊗F)≠Dav(E,F).D_{\mathrm{av}}(\operatorname{id}_m\otimes E,\operatorname{id}_m\otimes F)\neq D_{\mathrm{av}}(E,F).Dav​(idm​⊗E,idm​⊗F)=Dav​(E,F).

Here a channel admits a finite representation G(X)=∑jKjXKj†G(X)=\sum_jK_jXK_j^\daggerG(X)=∑j​Kj​XKj†​ with ∑jKj†Kj=1\sum_jK_j^\dagger K_j=1∑j​Kj†​Kj​=1, the tensor extension applies GGG to each matrix block with fixed reference indices, and Dav(G,H)D_{\mathrm{av}}(G,H)Dav​(G,H) is the Haar average of the chosen state function between G(ψψ†)G(\psi\psi^\dagger)G(ψψ†) and H(ψψ†)H(\psi\psi^\dagger)H(ψψ†). In each input space, this average is defined by taking a fixed column of a Haar-distributed unitary, using the enumeration and chosen input basis element in the definitions, with Haar measure normalized to total mass one. The dimensions and channels may depend on the choice of state function.

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