Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

POVM covariance test, (124)–(140)

Open
QAlgorithms.Papers.Independent.Extend50.P47.measurement_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 finite POVM Λ on S, specified projective U(g) and a specified permutation action πg on outcome labels X, define M(ρ)=Σx Tr(Λxρ)|x⟩⟨x|. With a supplied coherent measurement dilation, the normalized Choi test has optimum invariant-state fidelity and accepts optimally with probability 1 iff U(g)†ΛxU(g)=Λπg^{-1}(x) for all g,x.

ΦM=1dim⁡S∑xΛxT⊗∣x⟩⟨x∣,popt=max⁡σ∈Sym(U‾⊗W)F(ΦM,σ),popt=1  ⟺  U(g)†ΛxU(g)=Λπg−1(x) (∀g,x).\Phi^{\mathcal M}=\frac1{\dim S}\sum_x\Lambda_x^T\otimes|x\rangle\langle x|,\quad p^{\rm opt}=\max_{\sigma\in\mathrm{Sym}(\overline U\otimes W)}F(\Phi^{\mathcal M},\sigma),\quad p^{\rm opt}=1\iff U(g)^\dagger\Lambda_xU(g)=\Lambda_{\pi_g^{-1}(x)}\ (\forall g,x).ΦM=dimS1​x∑​ΛxT​⊗∣x⟩⟨x∣,popt=σ∈Sym(U⊗W)max​F(ΦM,σ),popt=1⟺U(g)†Λx​U(g)=Λπg−1​(x)​ (∀g,x).

The POVM effects Λx⪰0\Lambda_x\succeq0Λx​⪰0 sum to ISI_SIS​. The supplied label action πg\pi_gπg​ has permutation matrix W(g)W(g)W(g). The normalized Choi state uses dim⁡S\dim SdimS, correcting the printed ∣X∣|X|∣X∣ in (131),(133).

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.16–17, (124)–(140). Source correction: (131),(133) print |X|;
the constructed normalized Choi state uses dim S, as (116),(134) require.
The test is relative to the supplied indexed action, (130). -/
theorem measurement_covariance_test [Nonempty S] [Nonempty P] {X : Type*} [Fintype X] [DecidableEq X] [Nonempty X]
    (U : G → Matrix.unitaryGroup S ℂ) (hU : IsProjectiveUnitaryLift U)
    (pi : G →* Equiv.Perm X) (L : X → Mat S) (hL : IsPOVM L)
    (psi : EuclideanSpace ℂ (P × (S × X))) (hpsi : ‖psi‖ = 1)
    (hpur : traceLeft (pureDensity psi) = normalizedChoi (povmOutcomeChannel L)) :
    ∃ v, IsGreatest (proverValues psi (symTest
      (choiFamily (fun g => (U g : Mat S)) (fun g => outcomeMatrix (pi g))))) v ∧
    IsGreatest (symmetryFidelityValues (normalizedChoi (povmOutcomeChannel L))
      (Sym (choiFamily (fun g => (U g : Mat S)) (fun g => outcomeMatrix (pi g))))) v ∧
    (v = 1 ↔ ∀ g x, (U g : Mat S)ᴴ * L x * (U g : Mat S) = L ((pi g).symm x)) := by sorry

end QAlgorithms.Papers.Independent.Extend50.P47

end
Source
Testing symmetry on quantum computers, arXiv:2105.12758v3, PDF p. 16, POVM covariance test, (124)–(140)
Read-back

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

Let GGG be a finite group, and let S,P,XS,P,XS,P,X be nonempty finite index types with the required decidable equalities. Let UgU_gUg​ be unitary matrices on CS\mathbb C^SCS, with the property that for every g,h∈Gg,h\in Gg,h∈G there is a complex number zzz of modulus one such that Ugh=zUgUhU_{gh}=zU_gU_hUgh​=zUg​Uh​. Let π:G→Perm⁡(X)\pi:G\to\operatorname{Perm}(X)π:G→Perm(X) be a group homomorphism, and let (Lx)x∈X(L_x)_{x\in X}(Lx​)x∈X​ satisfy Lx⪰0L_x\succeq0Lx​⪰0 and ∑xLx=I\sum_xL_x=I∑x​Lx​=I. Put H=S×XH=S\times XH=S×X, define (Πg)yx=1(\Pi_g)_{yx}=1(Πg​)yx​=1 when y=πg(x)y=\pi_g(x)y=πg​(x) and 000 otherwise, and set

Cg=Ug‾⊗Πg,K=1∣G∣∑g∈GCg‾⊗Cg,J(s,x),(t,y)=1x=y(Lx)ts∣S∣.C_g=\overline{U_g}\otimes\Pi_g,\qquad K=\frac1{|G|}\sum_{g\in G}\overline{C_g}\otimes C_g,\qquad J_{(s,x),(t,y)}=\frac{\mathbf1_{x=y}(L_x)_{ts}}{|S|}.Cg​=Ug​​⊗Πg​,K=∣G∣1​g∈G∑​Cg​​⊗Cg​,J(s,x),(t,y)​=∣S∣1x=y​(Lx​)ts​​.

Here bars denote entrywise complex conjugation. Let ψ∈CP×H\psi\in\mathbb C^{P\times H}ψ∈CP×H have norm one and satisfy Tr⁡P∣ψ⟩⟨ψ∣=J\operatorname{Tr}_P|\psi\rangle\langle\psi|=JTrP​∣ψ⟩⟨ψ∣=J, where (∣ψ⟩⟨ψ∣)ab=ψaψb‾(|\psi\rangle\langle\psi|)_{ab}=\psi_a\overline{\psi_b}(∣ψ⟩⟨ψ∣)ab​=ψa​ψb​​. For density matrices define F(A,B)=Re⁡tr⁡A BAF(A,B)=\operatorname{Re}\operatorname{tr}\sqrt{\sqrt A\,B\sqrt A}F(A,B)=RetrA​BA​​. There exists a real number vvv that is an attained maximum of both

{Re⁡tr⁡ ⁣[K†K(N⊗idH)(∣ψ⟩⟨ψ∣)]:N is a channel from P to H}and{F(J,σ)2:σ⪰0, tr⁡σ=1, σ=CgσCg† ∀g}.\left\{\operatorname{Re}\operatorname{tr}\!\left[K^\dagger K (\mathcal N\otimes\mathrm{id}_H)(|\psi\rangle\langle\psi|)\right]: \mathcal N\text{ is a channel from }P\text{ to }H\right\} \quad\text{and}\quad \left\{F(J,\sigma)^2:\sigma\succeq0,\ \operatorname{tr}\sigma=1,\ \sigma=C_g\sigma C_g^\dagger\ \forall g\right\}.{Retr[K†K(N⊗idH​)(∣ψ⟩⟨ψ∣)]:N is a channel from P to H}and{F(J,σ)2:σ⪰0, trσ=1, σ=Cg​σCg†​ ∀g}.

A channel here means a map N(A)=∑j=0m−1EjAEj†\mathcal N(A)=\sum_{j=0}^{m-1}E_jAE_j^\daggerN(A)=∑j=0m−1​Ej​AEj†​ for some natural number mmm, with ∑jEj†Ej=IP\sum_jE_j^\dagger E_j=I_P∑j​Ej†​Ej​=IP​. Moreover, v=1v=1v=1 if and only if Ug†LxUg=Lπg−1(x)U_g^\dagger L_xU_g=L_{\pi_g^{-1}(x)}Ug†​Lx​Ug​=Lπg−1​(x)​ for every g∈Gg\in Gg∈G and x∈Xx\in Xx∈X.

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