Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Remark 1: incoherence as cyclic-group symmetry

Open
QAlgorithms.Papers.Independent.Extend50.P47.incoherence

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 integer d≥1, cyclic Zd acting by Z(z)=Σj exp(2πijz/d)|j⟩⟨j|, the invariant densities are exactly the diagonal densities, equivalently the fixed points of complete dephasing. Algorithm 2 optimal acceptance is their maximum squared fidelity.

ρ=Z(z)ρZ(z)† (0≤z<d)  ⟺  ρ=∑jpj∣j⟩⟨j∣,pj≥0, ∑jpj=1.\rho=Z(z)\rho Z(z)^\dagger\ (0\le z<d)\iff\rho=\sum_jp_j|j\rangle\langle j|,\quad p_j\ge0,\ \sum_jp_j=1.ρ=Z(z)ρZ(z)† (0≤z<d)⟺ρ=j∑​pj​∣j⟩⟨j∣,pj​≥0, j∑​pj​=1.

Z(z)=∑j=0d−1e2πijz/d∣j⟩⟨j∣Z(z)=\sum_{j=0}^{d-1}e^{2\pi i jz/d}|j\rangle\langle j|Z(z)=∑j=0d−1​e2πijz/d∣j⟩⟨j∣; the comparison states for Algorithm 2 are exactly the diagonal 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.9–10, Remark 1: cyclic conjugation invariance is precisely diagonality. -/
theorem incoherence {d : ℕ} (hd : 0 < d) (rho : Mat (Fin d))
    (hrho : IsDensityMatrix rho)
    {Pur : Type*} [Fintype Pur] [DecidableEq Pur] [Nonempty Pur]
    (psi : EuclideanSpace ℂ (Pur × Fin d)) (hpsi : ‖psi‖ = 1)
    (hpur : traceLeft (pureDensity psi) = rho) :
    (Sym (incoherentClock d) rho ↔
      ∃ p : Fin d → ℝ, (∀ j, 0 ≤ p j) ∧ ∑ j, p j = 1 ∧
        rho = Matrix.diagonal (fun j => (p j : ℂ))) ∧
    (rho = (Fintype.card (Fin d) : ℂ)⁻¹ •
      ∑ z, incoherentClock d z * rho * (incoherentClock d z)ᴴ ↔
      ∀ i j, i ≠ j → rho i j = 0) ∧
    TestIdentity psi (symTest (incoherentClock d)) rho (Sym (incoherentClock d)) := by sorry

end QAlgorithms.Papers.Independent.Extend50.P47

end
Source
Testing symmetry on quantum computers, arXiv:2105.12758v3, PDF p. 10, Remark 1: incoherence as cyclic-group symmetry
Read-back

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

Let d>0d>0d>0 be a natural number, let ρ\rhoρ be a positive semidefinite complex d×dd\times dd×d matrix with trace 111, and let Pur\mathrm{Pur}Pur be a nonempty finite type with decidable equality. Let ψ∈CPur×{0,…,d−1}\psi\in\mathbb C^{\mathrm{Pur}\times\{0,\ldots,d-1\}}ψ∈CPur×{0,…,d−1} have norm 111 and satisfy Tr⁡Pur∣ψ⟩⟨ψ∣=ρ\operatorname{Tr}_{\mathrm{Pur}}|\psi\rangle\langle\psi|=\rhoTrPur​∣ψ⟩⟨ψ∣=ρ, where (∣ψ⟩⟨ψ∣)u,v=ψuψv‾(|\psi\rangle\langle\psi|)_{u,v}=\psi_u\overline{\psi_v}(∣ψ⟩⟨ψ∣)u,v​=ψu​ψv​​. Define CzC_zCz​ to be diagonal with (Cz)jj=e2πijz/d(C_z)_{jj}=e^{2\pi i jz/d}(Cz​)jj​=e2πijz/d. Three assertions hold jointly: first, ρ=CzρCz†\rho=C_z\rho C_z^\daggerρ=Cz​ρCz†​ for every zzz if and only if ρ=diag⁡(p)\rho=\operatorname{diag}(p)ρ=diag(p) for some real pj≥0p_j\ge0pj​≥0 with ∑jpj=1\sum_jp_j=1∑j​pj​=1; second, ρ=d−1∑zCzρCz†\rho=d^{-1}\sum_zC_z\rho C_z^\daggerρ=d−1∑z​Cz​ρCz†​ if and only if every off-diagonal entry of ρ\rhoρ is zero; third, putting K=d−1∑zCz‾⊗CzK=d^{-1}\sum_z\overline{C_z}\otimes C_zK=d−1∑z​Cz​​⊗Cz​, the following two sets of real numbers have a common greatest element:

{Re⁡Tr⁡ ⁣[K†K(N⊗id)(∣ψ⟩⟨ψ∣)]:N:Pur→Cd is a channel},{Fr(ρ,σ)2:σ≥0, Tr⁡σ=1, σ=CzσCz† ∀z}.\left\{\operatorname{Re}\operatorname{Tr}\!\left[K^\dagger K (\mathcal N\otimes\mathrm{id})(|\psi\rangle\langle\psi|)\right]: \mathcal N:\mathrm{Pur}\to\mathbb C^d\text{ is a channel}\right\}, \qquad \left\{F_{\mathrm r}(\rho,\sigma)^2: \sigma\ge0,\ \operatorname{Tr}\sigma=1,\ \sigma=C_z\sigma C_z^\dagger\ \forall z\right\}.{ReTr[K†K(N⊗id)(∣ψ⟩⟨ψ∣)]:N:Pur→Cd is a channel},{Fr​(ρ,σ)2:σ≥0, Trσ=1, σ=Cz​σCz†​ ∀z}.

Here a channel is a map admitting finitely many Kraus matrices EjE_jEj​, acting by X↦∑jEjXEj†X\mapsto\sum_jE_jXE_j^\daggerX↦∑j​Ej​XEj†​ with ∑jEj†Ej=I\sum_jE_j^\dagger E_j=I∑j​Ej†​Ej​=I, and Fr(ρ,σ)=Re⁡Tr⁡ρ σρF_{\mathrm r}(\rho,\sigma)=\operatorname{Re}\operatorname{Tr}\sqrt{\sqrt\rho\,\sigma\sqrt\rho}Fr​(ρ,σ)=ReTrρ​σρ​​, with square roots defined by functional calculus.

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