Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Pure bipartite separability test, (81)–(85)

Open
QAlgorithms.Papers.Independent.Extend50.P47.bipartite_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 a unit pure ψAB and k≥1 identical copies, Algorithm 1 with identity on A copies and the literal permutation representation on B copies accepts with Tr(ΠSym ρB^⊗k). Explicitly p2=(1+t2)/2, p3=(1+3t2+2t3)/6, p4=(1+6t2+3t2²+8t3+6t4)/24 where tr=Tr(ρB^r); and p2≥p3≥p4.

pk=Tr⁡(Πsym(k)ρB⊗k),p2=1+t22,p3=1+3t2+2t36,p4=1+6t2+3t22+8t3+6t424,p2≥p3≥p4.p_k=\operatorname{Tr}(\Pi_{\rm sym}^{(k)}\rho_B^{\otimes k}),\quad p_2=\frac{1+t_2}{2},\quad p_3=\frac{1+3t_2+2t_3}{6},\quad p_4=\frac{1+6t_2+3t_2^2+8t_3+6t_4}{24},\quad p_2\ge p_3\ge p_4.pk​=Tr(Πsym(k)​ρB⊗k​),p2​=21+t2​​,p3​=61+3t2​+2t3​​,p4​=241+6t2​+3t22​+8t3​+6t4​​,p2​≥p3​≥p4​.

Here ρB=Tr⁡AψAB\rho_B=\operatorname{Tr}_A\psi_{AB}ρB​=TrA​ψAB​, tj=Tr⁡(ρBj)t_j=\operatorname{Tr}(\rho_B^j)tj​=Tr(ρBj​), and Πsym(k)\Pi_{\rm sym}^{(k)}Πsym(k)​ averages all copy permutations on BBB.

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.13–14, (81)–(85): the trace formula, all three explicit small-copy
probabilities, and their order. No all-k monotonicity claim is added. -/
theorem bipartite_pure_test [Nonempty A] [Nonempty B] (psi : EuclideanSpace ℂ (A × B)) (hpsi : ‖psi‖ = 1) :
    (∀ k : ℕ, 0 < k → bipartiteAcceptance psi k =
      effectProb (tensorSymmetrizer B k) (symmetryTensorCopies (traceLeft (pureDensity psi)) k)) ∧
    (let rho := traceLeft (pureDensity psi)
     bipartiteAcceptance psi 2 = (1 + (rho ^ 2).trace.re) / 2 ∧
     bipartiteAcceptance psi 3 = (1 + 3 * (rho ^ 2).trace.re +
       2 * (rho ^ 3).trace.re) / 6 ∧
     bipartiteAcceptance psi 4 = (1 + 6 * (rho ^ 2).trace.re +
       3 * ((rho ^ 2).trace.re) ^ 2 + 8 * (rho ^ 3).trace.re +
       6 * (rho ^ 4).trace.re) / 24) ∧
    bipartiteAcceptance psi 3 ≤ bipartiteAcceptance psi 2 ∧
    bipartiteAcceptance psi 4 ≤ bipartiteAcceptance psi 3 := by sorry

end QAlgorithms.Papers.Independent.Extend50.P47

end
Source
Testing symmetry on quantum computers, arXiv:2105.12758v3, PDF p. 13, Pure bipartite separability test, (81)–(85)
Read-back

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

Let A,BA,BA,B be nonempty finite index types with decidable equality, and let ψ∈CA×B\psi\in\mathbb C^{A\times B}ψ∈CA×B have norm 111. Put ρb,b′=∑aψ(a,b)ψ(a,b′)‾\rho_{b,b'}=\sum_a\psi_{(a,b)}\overline{\psi_{(a,b')}}ρb,b′​=∑a​ψ(a,b)​ψ(a,b′)​​. Define ak=Re⁡Tr⁡[Kk†Kk(∣ψ⟩⟨ψ∣)⊗k]a_k=\operatorname{Re}\operatorname{Tr}[K_k^\dagger K_k(|\psi\rangle\langle\psi|)^{\otimes k}]ak​=ReTr[Kk†​Kk​(∣ψ⟩⟨ψ∣)⊗k], where KkK_kKk​ is the average over all permutations of the kkk BBB-coordinates, leaving each AAA-coordinate fixed, and where (∣ψ⟩⟨ψ∣)u,v=ψuψv‾(|\psi\rangle\langle\psi|)_{u,v}=\psi_u\overline{\psi_v}(∣ψ⟩⟨ψ∣)u,v​=ψu​ψv​​; tensor powers have entries given by products of the corresponding kkk entries. For every natural number k>0k>0k>0,

ak=Re⁡Tr⁡(QB,kρ⊗k),QB,k=1k!∑π∈Sym⁡(k)Pπ,Pπ(y,x)=1{yi=xπ−1(i) ∀i}.a_k=\operatorname{Re}\operatorname{Tr}(Q_{B,k}\rho^{\otimes k}), \qquad Q_{B,k}=\frac1{k!}\sum_{\pi\in\operatorname{Sym}(k)}P_\pi, \quad P_\pi(y,x)=\mathbf1_{\{y_i=x_{\pi^{-1}(i)}\ \forall i\}}.ak​=ReTr(QB,k​ρ⊗k),QB,k​=k!1​π∈Sym(k)∑​Pπ​,Pπ​(y,x)=1{yi​=xπ−1(i)​ ∀i}​.

Moreover, all of the following hold:

a2=1+Re⁡Tr⁡ρ22,a3=1+3Re⁡Tr⁡ρ2+2Re⁡Tr⁡ρ36,a_2=\frac{1+\operatorname{Re}\operatorname{Tr}\rho^2}{2},\qquad a_3=\frac{1+3\operatorname{Re}\operatorname{Tr}\rho^2+ 2\operatorname{Re}\operatorname{Tr}\rho^3}{6},a2​=21+ReTrρ2​,a3​=61+3ReTrρ2+2ReTrρ3​, a4=1+6Re⁡Tr⁡ρ2+3(Re⁡Tr⁡ρ2)2+8Re⁡Tr⁡ρ3+6Re⁡Tr⁡ρ424,a3≤a2,a4≤a3.a_4=\frac{1+6\operatorname{Re}\operatorname{Tr}\rho^2+ 3(\operatorname{Re}\operatorname{Tr}\rho^2)^2+ 8\operatorname{Re}\operatorname{Tr}\rho^3+ 6\operatorname{Re}\operatorname{Tr}\rho^4}{24}, \qquad a_3\le a_2,\qquad a_4\le a_3.a4​=241+6ReTrρ2+3(ReTrρ2)2+8ReTrρ3+6ReTrρ4​,a3​≤a2​,a4​≤a3​.
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