Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Section IV B, Eq.(13): Haar average is a process metric

Open
QAlgorithms.Papers.Independent.Advance50.P17.averageMetric

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

prove2quantum

Let Δ\DeltaΔ be a state metric continuous on normalized density matrices, and let E,F\mathcal E,\mathcal FE,F range over CPTP maps on a fixed positive finite-dimensional system. With normalized Haar measure on pure inputs,

Δave(E,F)=∫Δ(E(ψ),F(ψ)) dψ\Delta_{\rm ave}(\mathcal E,\mathcal F)=\int\Delta(\mathcal E(\psi),\mathcal F(\psi))\,d\psiΔave​(E,F)=∫Δ(E(ψ),F(ψ))dψ

has an integrable integrand and is a metric on processes, including separation of distinct channels. Here ψ\psiψ denotes the rank-one density of a unit vector. Continuity supplies the regularity implicit in the source's integral.

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, Eq.(13): a continuous state metric gives an integrable, faithful
Haar-averaged process metric. Continuity is on density matrices, not on arbitrary operators. -/
theorem averageMetric (delta : FiniteStateDistance) (hm : StateMetrics delta)
    (hcont : StateContinuous delta) :
    MetricAxioms (fun E F : FiniteProcess I I => aveDistance delta E.val F.val) ∧
    (∀ E F : FiniteProcess I I, Integrable (fun U => delta
      (E.val (pureDensity (haarColumnInput (I := I) U)))
      (F.val (pureDensity (haarColumnInput (I := I) U)))) (Schur.unitaryHaar (Fintype.card I))) := 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, Eq.(13): Haar average is a process metric
Read-back

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

Let III be a finite nonempty type with decidable equality, and let δ\deltaδ assign real values to pairs of complex square matrices on every finite type with decidable equality. Assume that on positive semidefinite trace-one matrices of every finite nonempty type, δ\deltaδ is nonnegative, vanishes exactly on equality, is symmetric, and satisfies the triangle inequality; also assume that (ρ,σ)↦δ(ρ,σ)(\rho,\sigma)\mapsto\delta(\rho,\sigma)(ρ,σ)↦δ(ρ,σ) is continuous on each such pair of density-matrix spaces. Put d=∣I∣d=|I|d=∣I∣, fix the enumeration e:I≅{0,…,d−1}e:I\cong\{0,\ldots,d-1\}e:I≅{0,…,d−1} used by the definitions and their chosen element i0∈Ii_0\in Ii0​∈I, and for a d×dd\times dd×d unitary UUU let ψU(i)=Ue(i),e(i0)\psi_U(i)=U_{e(i),e(i_0)}ψU​(i)=Ue(i),e(i0​)​. Let μd\mu_dμd​ be Haar measure on this unitary group normalized to have total mass one. For channels E,FE,FE,F on III, where channels admit finite Kraus representations with ∑jKj†Kj=1\sum_jK_j^\dagger K_j=1∑j​Kj†​Kj​=1, define

Dav(E,F)=∫δ(E(ψUψU†),F(ψUψU†)) dμd(U).D_{\mathrm{av}}(E,F)=\int\delta(E(\psi_U\psi_U^\dagger),F(\psi_U\psi_U^\dagger))\,d\mu_d(U).Dav​(E,F)=∫δ(E(ψU​ψU†​),F(ψU​ψU†​))dμd​(U).

Then DavD_{\mathrm{av}}Dav​ is nonnegative, vanishes exactly on equal channels, is symmetric, and satisfies the triangle inequality. Moreover, for every such E,FE,FE,F, the displayed integrand is integrable with respect to μd\mu_dμd​.

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