Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Pure multipartite separability test, (88)–(92)

Open
QAlgorithms.Papers.Independent.Extend50.P47.multipartite_pure_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.

For m≥1 nonzero finite local registers, unit pure multipartite ψ, and k≥1, the test using G=(Sk)^m and independent literal copy permutations per party accepts with Tr((⊗i ΠSym_i) ψ^⊗k).

pacc=Tr⁡ ⁣[(⨂i=1mΠsym,i(k))ψ⊗k].p_{\rm acc}=\operatorname{Tr}\!\left[\left(\bigotimes_{i=1}^m\Pi_{{\rm sym},i}^{(k)}\right)\psi^{\otimes k}\right].pacc​=Tr[(i=1⨂m​Πsym,i(k)​)ψ⊗k].

There are m≥1m\ge1m≥1 parties, k≥1k\ge1k≥1 identical copies of the pure density ψ\psiψ, and one local symmetric projector per party.

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.14, (88)–(92): the multipartite pure-state acceptance formula only. -/
theorem multipartite_pure_test {m : ℕ} (hm : 0 < m) (d : Fin m → ℕ)
    (hd : ∀ i, 0 < d i) (k : ℕ) (hk : 0 < k)
    (psi : EuclideanSpace ℂ ((i : Fin m) → Fin (d i))) (hpsi : ‖psi‖ = 1) :
    controlReturnProbability (symmetryControlAverage (multiPureFamily d k)) (multiCopies (pureDensity psi) k) =
      effectProb (multiProjector d k) (multiCopies (pureDensity psi) k) := by sorry

end QAlgorithms.Papers.Independent.Extend50.P47

end
Source
Testing symmetry on quantum computers, arXiv:2105.12758v3, PDF p. 14, Pure multipartite separability test, (88)–(92)
Read-back

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

Let m>0m>0m>0, let di>0d_i>0di​>0 be natural numbers for i=0,…,m−1i=0,\ldots,m-1i=0,…,m−1, let k>0k>0k>0, and let ψ∈CH\psi\in\mathbb C^Hψ∈CH, where H=∏i{0,…,di−1}H=\prod_i\{0,\ldots,d_i-1\}H=∏i​{0,…,di​−1}, have norm 111. On the array index set x=(xi)ix=(x_i)_ix=(xi​)i​, with xi:{0,…,k−1}→{0,…,di−1}x_i:\{0,\ldots,k-1\}\to\{0,\ldots,d_i-1\}xi​:{0,…,k−1}→{0,…,di​−1}, define

Rx,y=∏t=0k−1ψ((xi(t))i) ψ((yi(t))i)‾,(Fπ)y,x=1{∀i, yi=xi∘πi−1},R_{x,y}=\prod_{t=0}^{k-1} \psi((x_i(t))_i)\,\overline{\psi((y_i(t))_i)},\qquad (F_{\boldsymbol\pi})_{y,x} =\mathbf 1_{\{\forall i,\ y_i=x_i\circ\pi_i^{-1}\}},Rx,y​=t=0∏k−1​ψ((xi​(t))i​)ψ((yi​(t))i​)​,(Fπ​)y,x​=1{∀i, yi​=xi​∘πi−1​}​,

where π=(πi)i∈(Sk)m\boldsymbol\pi=(\pi_i)_i\in(S_k)^mπ=(πi​)i​∈(Sk​)m. Put

Q=1(k!)m∑π∈(Sk)mFπ,Jx,y=∏i(1k!∑π∈Sk1{xi=yi∘π−1}).Q=\frac1{(k!)^m}\sum_{\boldsymbol\pi\in(S_k)^m}F_{\boldsymbol\pi}, \qquad J_{x,y}=\prod_i\left(\frac1{k!}\sum_{\pi\in S_k} \mathbf 1_{\{x_i=y_i\circ\pi^{-1}\}}\right).Q=(k!)m1​π∈(Sk​)m∑​Fπ​,Jx,y​=i∏​(k!1​π∈Sk​∑​1{xi​=yi​∘π−1}​).

The assertion is exactly

Re⁡Tr⁡(Q†QR)=Re⁡Tr⁡(JR).\operatorname{Re}\operatorname{Tr}(Q^\dagger Q R) =\operatorname{Re}\operatorname{Tr}(J R).ReTr(Q†QR)=ReTr(JR).
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