Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 2.1: invariant purification characterization

Open
QAlgorithms.Papers.Independent.Extend50.P47.invariant_purification

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

prove2quantum

Every register has a fixed finite nonempty computational basis. States are positive semidefinite trace-one matrices, and pure vectors have norm one. Write F(ρ,σ)=∥ρσ∥12F(\rho,\sigma)=\|\sqrt\rho\sqrt\sigma\|_1^2F(ρ,σ)=∥ρ​σ​∥12​ for squared fidelity. Here GGG is a finite group and UUU denotes its specified unitary representation. Raw Bose averages Π=∣G∣−1∑gU(g)\Pi=|G|^{-1}\sum_gU(g)Π=∣G∣−1∑g​U(g) use an ordinary representation; conjugation symmetry permits a projective representation.

ρS has an invariant density extension on R×S iff a unit vector on (R×S)×(R×S) purifies ρS after discarding R,R̂,Ŝ and is fixed by every U(g)⊗conjugate(U(g)); equivalently that vector is fixed by the average of the doubled representation. Both iff clauses are conclusions.

ρS∈SymExtG  ⟺  ∃∣ψ⟩: ∥ψ∥=1, Tr⁡RR^S^ψ=ρS, (U(g)⊗U‾(g))∣ψ⟩=∣ψ⟩(∀g).\rho_S\in\mathrm{SymExt}_G\iff\exists|\psi\rangle:\ \|\psi\|=1,\ \operatorname{Tr}_{R\widehat R\widehat S}\psi=\rho_S,\ (U(g)\otimes\overline U(g))|\psi\rangle=|\psi\rangle\quad(\forall g).ρS​∈SymExtG​⟺∃∣ψ⟩: ∥ψ∥=1, TrRRS​ψ=ρS​, (U(g)⊗U(g))∣ψ⟩=∣ψ⟩(∀g).

The formula gives the exact characterization or operational specialization described in the cited result.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Extend50_P47
Formal statement
noncomputable section

namespace QAlgorithms.Papers.Independent.Extend50.P47

open scoped ComplexConjugate ComplexOrder Matrix Matrix.Norms.L2Operator Manifold ContDiff

open MeasureTheory

open QAlgorithms.Papers.Independent.Information100.P60 (Mat)

open QAlgorithms.Papers.Independent.Information100.P56 (normalizedChoi)

variable {G S R P T A B C D R2 S2 : Type*}

variable [Fintype G] [Group G] [DecidableEq G]

variable [Fintype S] [DecidableEq S] [Nonempty S]

variable [Fintype R] [DecidableEq R] [Nonempty R]

variable [Fintype P] [DecidableEq P] [Nonempty P]

variable [Fintype T] [DecidableEq T] [Nonempty T]

variable [Fintype A] [DecidableEq A] [Nonempty A]

variable [Fintype B] [DecidableEq B] [Nonempty B]

variable [Fintype C] [DecidableEq C] [Nonempty C]

variable [Fintype D] [DecidableEq D] [Nonempty D]

variable [Fintype R2] [DecidableEq R2] [Nonempty R2]

variable [Fintype S2] [DecidableEq S2] [Nonempty S2]

/-- PDF p.5, Theorem 2.1; p.41 constructs the invariant purification.
Both the pointwise and average fixed-vector characterizations are conclusions. -/
theorem invariant_purification [Nonempty S] [Nonempty R] (U : G → Matrix.unitaryGroup (R × S) ℂ)
    (hU : IsProjectiveUnitaryLift U) (rho : Mat S) (hrho : IsDensityMatrix rho) :
    (SE (fun g => (U g : Mat (R × S))) rho ↔
      ∃ psi : EuclideanSpace ℂ ((R × S) × (R × S)), ‖psi‖ = 1 ∧
        traceLeft (traceRight (pureDensity psi)) = rho ∧
        ∀ g, psi = act (conjugateTensorAction (fun h => (U h : Mat (R × S))) g) psi) ∧
    (∀ psi : EuclideanSpace ℂ ((R × S) × (R × S)),
      (∀ g, psi = act (conjugateTensorAction (fun h => (U h : Mat (R × S))) g) psi) ↔
        psi = act (symmetryControlAverage (conjugateTensorAction (fun h => (U h : Mat (R × S))))) psi) := by sorry

end QAlgorithms.Papers.Independent.Extend50.P47

end
Source
Testing symmetry on quantum computers, arXiv:2105.12758v3, PDF p. 5, Theorem 2.1: invariant purification characterization
Read-back

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

Let GGG be a finite group and R,SR,SR,S finite nonempty index types with decidable equality. Let UgU_gUg​ be a unitary matrix on R×SR\times SR×S for every g∈Gg\in Gg∈G, and assume that, for every g,h∈Gg,h\in Gg,h∈G, there exists z∈Cz\in\mathbb Cz∈C with ∣z∣=1|z|=1∣z∣=1 such that Ugh=zUgUhU_{gh}=zU_gU_hUgh​=zUg​Uh​. Let ρ\rhoρ be a positive semidefinite matrix on SSS with trace 111, and put Cg=Ug⊗Ug‾C_g=U_g\otimes\overline{U_g}Cg​=Ug​⊗Ug​​, where the bar denotes entrywise complex conjugation. The declaration asserts both of the following equivalences. First, there exists a positive semidefinite matrix ω\omegaω on R×SR\times SR×S, with trace 111, such that

∑r∈Rω(r,s),(r,t)=ρs,tandω=UgωUg† for every g,\sum_{r\in R}\omega_{(r,s),(r,t)}=\rho_{s,t} \quad\text{and}\quad \omega=U_g\omega U_g^\dagger\ \text{for every }g,r∈R∑​ω(r,s),(r,t)​=ρs,t​andω=Ug​ωUg†​ for every g,

if and only if there exists a vector ψ∈C(R×S)×(R×S)\psi\in\mathbb C^{(R\times S)\times(R\times S)}ψ∈C(R×S)×(R×S) with ∥ψ∥=1\|\psi\|=1∥ψ∥=1, fixed by every CgC_gCg​, and satisfying

ρs,t=∑r∈R∑u∈R×Sψ((r,s),u) ψ((r,t),u)‾for all s,t∈S.\rho_{s,t} = \sum_{r\in R}\sum_{u\in R\times S} \psi_{((r,s),u)}\, \overline{\psi_{((r,t),u)}} \quad\text{for all }s,t\in S.ρs,t​=r∈R∑​u∈R×S∑​ψ((r,s),u)​ψ((r,t),u)​​for all s,t∈S.

Second, for every vector ψ\psiψ in that same space, without any normalization requirement,

(ψ=Cgψ for every g∈G)⟺ψ=(∣G∣−1∑g∈GCg)ψ.\bigl(\psi=C_g\psi\ \text{for every }g\in G\bigr) \quad\Longleftrightarrow\quad \psi=\left(|G|^{-1}\sum_{g\in G}C_g\right)\psi.(ψ=Cg​ψ for every g∈G)⟺ψ=​∣G∣−1g∈G∑​Cg​​ψ.

In particular, this second equivalence includes the zero vector.

Human review
  • Endorsed by Shuze Chen · Oct 30, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 30, 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