Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Section III: C is a metric on normalized states

Open
QAlgorithms.Papers.Independent.Advance50.P17.cMetric

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

prove2quantum

On normalized density matrices of every positive finite dimension, let F(ρ,σ)=[tr⁡ρ σρ]2F(\rho,\sigma)=[\operatorname{tr}\sqrt{\sqrt\rho\,\sigma\sqrt\rho}]^2F(ρ,σ)=[trρ​σρ​​]2 and C(ρ,σ)=1−F(ρ,σ)C(\rho,\sigma)=\sqrt{1-F(\rho,\sigma)}C(ρ,σ)=1−F(ρ,σ)​. Then CCC is nonnegative and symmetric, vanishes exactly when its arguments coincide, and satisfies

C(ρ,τ)≤C(ρ,σ)+C(σ,τ).C(\rho,\tau)\le C(\rho,\sigma)+C(\sigma,\tau).C(ρ,τ)≤C(ρ,σ)+C(σ,τ).

This supplies a fidelity-derived state metric; pure vectors enter through their density matrices, so global phase is immaterial.

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 III, PDF p.4 (proof note [38], p.15): C is a metric on normalized density matrices.
The overstrong simultaneous-purification assertion in note [38] is not a hypothesis. -/
theorem cMetric : MetricAxioms (fun rho sigma : ProcessDensityInput I => stateDistance .sine rho.val sigma.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. 4, Section III: C is a metric on normalized states
Read-back

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

For every finite nonempty type III with decidable equality, consider the complex matrices ρ\rhoρ indexed by III that are positive semidefinite and satisfy tr⁡ρ=1\operatorname{tr}\rho=1trρ=1. Define

F(ρ,σ)=(Re⁡tr⁡ρ σρ)2,d(ρ,σ)=1−F(ρ,σ),F(\rho,\sigma)= \left(\operatorname{Re}\operatorname{tr}\sqrt{\sqrt{\rho}\,\sigma\sqrt{\rho}}\right)^2, \qquad d(\rho,\sigma)=\sqrt{1-F(\rho,\sigma)},F(ρ,σ)=(Retrρ​σρ​​)2,d(ρ,σ)=1−F(ρ,σ)​,

where matrix square roots are given by continuous functional calculus and the outer square root is the real square root. Then ddd is nonnegative, d(ρ,σ)=0d(\rho,\sigma)=0d(ρ,σ)=0 if and only if ρ=σ\rho=\sigmaρ=σ, d(ρ,σ)=d(σ,ρ)d(\rho,\sigma)=d(\sigma,\rho)d(ρ,σ)=d(σ,ρ), and d(ρ,τ)≤d(ρ,σ)+d(σ,τ)d(\rho,\tau)\leq d(\rho,\sigma)+d(\sigma,\tau)d(ρ,τ)≤d(ρ,σ)+d(σ,τ) for all such ρ,σ,τ\rho,\sigma,\tauρ,σ,τ.

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