Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Multipartite extendibility tests, (97)–(109)

Open
QAlgorithms.Papers.Independent.Extend50.P47.multipartite_extension_tests

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 m≥1 and each ki≥1, form the product of permutation groups and permute ki copies of party i independently; retain each first copy. Algorithms 3 and 4 have maximum fidelities over exactly the multipartite Bose-extension and invariant-extension marginal sets (97)–(102), respectively.

p3opt=max⁡σ∈(k1,…,km)-BEF(ρ,σ),p4opt=max⁡σ∈(k1,…,km)-EF(ρ,σ).p_3^{\rm opt}=\max_{\sigma\in(k_1,\ldots,k_m)\text{-BE}}F(\rho,\sigma),\qquad p_4^{\rm opt}=\max_{\sigma\in(k_1,\ldots,k_m)\text{-E}}F(\rho,\sigma).p3opt​=σ∈(k1​,…,km​)-BEmax​F(ρ,σ),p4opt​=σ∈(k1​,…,km​)-Emax​F(ρ,σ).

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.15, (108)–(109): both multipartite extension tests, with positive
copy counts n_i+1 and precisely the first-copy marginal. -/
theorem multipartite_extension_tests [Nonempty P] {m : ℕ} (hm : 0 < m) (d n : Fin m → ℕ)
    (hd : ∀ i, 0 < d i) (rho : Mat ((i : Fin m) → Fin (d i)))
    (hrho : IsDensityMatrix rho)
    (psi : EuclideanSpace ℂ (P × ((i : Fin m) → Fin (d i))))
    (hpsi : ‖psi‖ = 1) (hpur : traceLeft (pureDensity psi) = rho) :
    TestIdentity psi (symmetryControlAverage (multiFamily d n)) rho (BSE (multiFamily d n)) ∧
    TestIdentity psi (seTest (multiFamily d n)) rho (SE (multiFamily d n)) := by sorry

end QAlgorithms.Papers.Independent.Extend50.P47

end
Source
Testing symmetry on quantum computers, arXiv:2105.12758v3, PDF p. 15, Multipartite extendibility tests, (97)–(109)
Read-back

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

Let PPP be a nonempty finite index type with decidable equality, let m>0m>0m>0, let di>0d_i>0di​>0 and ni≥0n_i\ge0ni​≥0 be natural numbers, and put H=∏i{0,…,di−1}H=\prod_i\{0,\ldots,d_i-1\}H=∏i​{0,…,di​−1} and R=∏i({0,…,ni−1}→{0,…,di−1})R=\prod_i(\{0,\ldots,n_i-1\}\to\{0,\ldots,d_i-1\})R=∏i​({0,…,ni​−1}→{0,…,di​−1}). Let ρ\rhoρ be a positive semidefinite matrix on HHH of trace 111, and let ψ∈CP×H\psi\in\mathbb C^{P\times H}ψ∈CP×H have norm 111 and Tr⁡P∣ψ⟩⟨ψ∣=ρ\operatorname{Tr}_P|\psi\rangle\langle\psi|=\rhoTrP​∣ψ⟩⟨ψ∣=ρ. For π∈∏iSni+1\boldsymbol\pi\in\prod_i S_{n_i+1}π∈∏i​Sni​+1​, define FπF_{\boldsymbol\pi}Fπ​ on R×HR\times HR×H to have row yyy, column xxx entry 111 when, for every iii, the list consisting of yH(i)y_H(i)yH​(i) followed by yR(i)y_R(i)yR​(i) equals the list consisting of xH(i)x_H(i)xH​(i) followed by xR(i)x_R(i)xR​(i), composed with πi−1\pi_i^{-1}πi−1​, and entry 000 otherwise; put Q=(∏i(ni+1)!)−1∑πFπQ=(\prod_i(n_i+1)!)^{-1}\sum_{\boldsymbol\pi}F_{\boldsymbol\pi}Q=(∏i​(ni​+1)!)−1∑π​Fπ​. Define CB\mathcal C_BCB​ to consist of all density matrices σ\sigmaσ on HHH admitting a density matrix ω\omegaω on R×HR\times HR×H with Tr⁡Rω=σ\operatorname{Tr}_R\omega=\sigmaTrR​ω=σ and ω=QωQ\omega=Q\omega Qω=QωQ; define CS\mathcal C_SCS​ by replacing that last condition with ω=FπωFπ†\omega=F_{\boldsymbol\pi}\omega F_{\boldsymbol\pi}^\daggerω=Fπ​ωFπ†​ for every π\boldsymbol\piπ. Also put T=R×(R×H)T=R\times(R\times H)T=R×(R×H) and define

K((r,(r′,h′)),h), ((u,(u′,j′)),j)=1∏i(ni+1)!∑π(Fπ)(r,h),(u,j)(Fπ)(r′,h′),(u′,j′)‾.K_{((r,(r',h')),h),\,((u,(u',j')),j)} =\frac1{\prod_i(n_i+1)!}\sum_{\boldsymbol\pi} (F_{\boldsymbol\pi})_{(r,h),(u,j)} \overline{(F_{\boldsymbol\pi})_{(r',h'),(u',j')}}.K((r,(r′,h′)),h),((u,(u′,j′)),j)​=∏i​(ni​+1)!1​π∑​(Fπ​)(r,h),(u,j)​(Fπ​)(r′,h′),(u′,j′)​​.

The assertion is the conjunction of two common-maximum statements: first, the values Re⁡Tr⁡(Q†Q(N⊗idH)(∣ψ⟩⟨ψ∣))\operatorname{Re}\operatorname{Tr}(Q^\dagger Q(\mathcal N\otimes\mathrm{id}_H)(|\psi\rangle\langle\psi|))ReTr(Q†Q(N⊗idH​)(∣ψ⟩⟨ψ∣)), over channels N:P→R\mathcal N:P\to RN:P→R, and the values (Re⁡Tr⁡ρ σρ)2(\operatorname{Re}\operatorname{Tr}\sqrt{\sqrt\rho\,\sigma\sqrt\rho})^2(ReTrρ​σρ​​)2, over σ∈CB\sigma\in\mathcal C_Bσ∈CB​, have the same attained maximum; second, the analogous acceptance values with KKK and channels N:P→T\mathcal N:P\to TN:P→T, and the same squared-fidelity expression over σ∈CS\sigma\in\mathcal C_Sσ∈CS​, have the same attained maximum. The maxima in the two statements need not be the same number. Here density means positive semidefinite with trace 111, channels are finite Kraus sums X↦∑ℓEℓXEℓ†X\mapsto\sum_\ell E_\ell X E_\ell^\daggerX↦∑ℓ​Eℓ​XEℓ†​ with ∑ℓEℓ†Eℓ=I\sum_\ell E_\ell^\dagger E_\ell=I∑ℓ​Eℓ†​Eℓ​=I, and partial trace sums diagonal entries over the discarded index. Every ni=0n_i=0ni​=0 case is included.

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