Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Channel covariance test, (110)–(123)

Open
QAlgorithms.Papers.Independent.Extend50.P47.channel_covariance_test

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. The set SymG\mathrm{Sym}_GSymG​ consists of invariant densities; B ⁣-SymG\mathrm{B\!\text{-}Sym}_GB-SymG​ consists of densities supported by Π\PiΠ. The sets SymExtG\mathrm{SymExt}_GSymExtG​ and BSEG\mathrm{BSE}_GBSEG​ are their normalized-extension marginal analogues, tracing out precisely the stated reference register. The input includes a unit purification of ρS\rho_SρS​. The prover acts only on its purifying register, with arbitrary ancillas and a retained private environment, and returns the prescribed registers. It never acts on retained SSS. All maxima mentioned below are attained.

For a supplied unitary dilation W of a CPTP N:A→B, prepare its normalized reference-first Choi purification as in (117)–(118), then Algorithm 2 under conjugate(U_A)⊗V_B has optimum max fidelity with densities invariant under this action; value 1 iff N∘AdU(g)=AdV(g)∘N for all g.

popt=max⁡σ∈Sym(U‾⊗V)F(ΦN,σ),popt=1  ⟺  N∘AdU(g)=AdV(g)∘N (∀g).p^{\rm opt}=\max_{\sigma\in\mathrm{Sym}(\overline U\otimes V)}F(\Phi^{\mathcal N},\sigma),\qquad p^{\rm opt}=1\iff\mathcal N\circ\mathrm{Ad}_{U(g)}=\mathrm{Ad}_{V(g)}\circ\mathcal N\ (\forall g).popt=σ∈Sym(U⊗V)max​F(ΦN,σ),popt=1⟺N∘AdU(g)​=AdV(g)​∘N (∀g).

The reference-first Choi density has entries Φ(a,b),(a′,b′)N=N(∣a⟩⟨a′∣)b,b′/dim⁡A\Phi^{\mathcal N}_{(a,b),(a',b')}=\mathcal N(|a\rangle\langle a'|)_{b,b'}/\dim AΦ(a,b),(a′,b′)N​=N(∣a⟩⟨a′∣)b,b′​/dimA, and AdU(X)=UXU†\mathrm{Ad}_U(X)=UXU^\daggerAdU​(X)=UXU†. The optimization is over all invariant densities.

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 pp.15–16, (110)–(123): Algorithm 2's optimum on a normalized Choi
state, and acceptance one iff covariance of the fixed channel. The comparison
states range over every invariant density, without a Choi marginal constraint. -/
theorem channel_covariance_test [Nonempty P] [Nonempty A] [Nonempty B] (U : G → Matrix.unitaryGroup A ℂ)
    (V : G → Matrix.unitaryGroup B ℂ) (hU : IsProjectiveUnitaryLift U) (hV : IsProjectiveUnitaryLift V)
    (N : Superop A B) (hN : IsChannel N)
    (psi : EuclideanSpace ℂ (P × (A × B))) (hpsi : ‖psi‖ = 1)
    (hpur : traceLeft (pureDensity psi) = normalizedChoi N) :
    ∃ v, IsGreatest (proverValues psi
      (symTest (choiFamily (fun g => (U g : Mat A)) (fun g => (V g : Mat B))))) v ∧
    IsGreatest (symmetryFidelityValues (normalizedChoi N)
      (Sym (choiFamily (fun g => (U g : Mat A)) (fun g => (V g : Mat B))))) v ∧
    (v = 1 ↔ IsOperatorCovariant (fun g => (U g : Mat A)) (fun g => (V g : Mat B)) N) := by sorry

end QAlgorithms.Papers.Independent.Extend50.P47

end
Source
Testing symmetry on quantum computers, arXiv:2105.12758v3, PDF p. 15, Channel covariance test, (110)–(123)
Read-back

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

Let GGG be a finite group, and let P,A,BP,A,BP,A,B be nonempty finite index types with decidable equality. Let UgU_gUg​ and VgV_gVg​ be unitary matrices on AAA and BBB, respectively, such that for every g,h∈Gg,h\in Gg,h∈G there exist complex numbers zg,hz_{g,h}zg,h​ and wg,hw_{g,h}wg,h​, each of modulus 111, satisfying Ugh=zg,hUgUhU_{gh}=z_{g,h}U_gU_hUgh​=zg,h​Ug​Uh​ and Vgh=wg,hVgVhV_{gh}=w_{g,h}V_gV_hVgh​=wg,h​Vg​Vh​. Let N\mathcal NN be a channel from matrices on AAA to matrices on BBB, meaning that N(X)=∑ℓEℓXEℓ†\mathcal N(X)=\sum_\ell E_\ell X E_\ell^\daggerN(X)=∑ℓ​Eℓ​XEℓ†​ for some finite family with ∑ℓEℓ†Eℓ=IA\sum_\ell E_\ell^\dagger E_\ell=I_A∑ℓ​Eℓ†​Eℓ​=IA​. Put H=A×BH=A\times BH=A×B, define

J(a,b),(c,d)=N(∣a⟩⟨c∣)b,d∣A∣,Cg=Ug‾⊗Vg,J_{(a,b),(c,d)} =\frac{\mathcal N(|a\rangle\langle c|)_{b,d}}{|A|}, \qquad C_g=\overline{U_g}\otimes V_g,J(a,b),(c,d)​=∣A∣N(∣a⟩⟨c∣)b,d​​,Cg​=Ug​​⊗Vg​,

and let ψ∈CP×H\psi\in\mathbb C^{P\times H}ψ∈CP×H have norm 111 and satisfy Tr⁡P∣ψ⟩⟨ψ∣=J\operatorname{Tr}_P|\psi\rangle\langle\psi|=JTrP​∣ψ⟩⟨ψ∣=J. Define a matrix KKK on H×HH\times HH×H by

K(t,s),(u,r)=1∣G∣∑g∈G(Cg)s,r (Cg)t,u‾.K_{(t,s),(u,r)} =\frac1{|G|}\sum_{g\in G}(C_g)_{s,r}\, \overline{(C_g)_{t,u}}.K(t,s),(u,r)​=∣G∣1​g∈G∑​(Cg​)s,r​(Cg​)t,u​​.

Then there exists a real number vvv which is an attained maximum both of

Re⁡Tr⁡ ⁣(K†K (E⊗idH)(∣ψ⟩⟨ψ∣))\operatorname{Re}\operatorname{Tr}\!\left( K^\dagger K\,(\mathcal E\otimes\mathrm{id}_H)(|\psi\rangle\langle\psi|) \right)ReTr(K†K(E⊗idH​)(∣ψ⟩⟨ψ∣))

over all channels E\mathcal EE from matrices on PPP to matrices on HHH, and of

(Re⁡Tr⁡J σJ)2\left(\operatorname{Re}\operatorname{Tr} \sqrt{\sqrt J\,\sigma\sqrt J}\right)^2(ReTrJ​σJ​​)2

over all positive semidefinite matrices σ\sigmaσ on HHH with trace 111 satisfying σ=CgσCg†\sigma=C_g\sigma C_g^\daggerσ=Cg​σCg†​ for every ggg. Moreover, this same vvv satisfies

v=1⟺∀g∈G, ∀X∈CA×A, N(UgXUg†)=VgN(X)Vg†.v=1 \quad\Longleftrightarrow\quad \forall g\in G,\ \forall X\in\mathbb C^{A\times A},\ \mathcal N(U_g XU_g^\dagger)=V_g\mathcal N(X)V_g^\dagger.v=1⟺∀g∈G, ∀X∈CA×A, N(Ug​XUg†​)=Vg​N(X)Vg†​.

Partial trace means summing diagonal entries in the discarded index, and the channels E\mathcal EE have the same finite Kraus-sum meaning as above.

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