Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Bipartite k-extendibility test, (96)

Open
QAlgorithms.Papers.Independent.Extend50.P47.k_extension_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 k≥1 with the same S,R and literal permutation representation, Algorithm 4 has optimum max squared fidelity over ordinary k-extendible states.

p4opt=max⁡σ∈k-EF(ρAB,σ).p_4^{\rm opt}=\max_{\sigma\in k\text{-E}}F(\rho_{AB},\sigma).p4opt​=σ∈k-Emax​F(ρAB​,σ).

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 pp.14–15, (96): ordinary k-extendibility tests; k=1 imposes no constraint. -/
theorem k_extension_test [Nonempty P] [Nonempty A] [Nonempty B] (n : ℕ) (rho : Mat (A × B)) (hrho : IsDensityMatrix rho)
    (psi : EuclideanSpace ℂ (P × (A × B))) (hpsi : ‖psi‖ = 1)
    (hpur : traceLeft (pureDensity psi) = rho) :
    TestIdentity psi (seTest (kFamily (A := A) (B := B) n)) rho
      (SE (kFamily (A := A) (B := B) n)) := by sorry

end QAlgorithms.Papers.Independent.Extend50.P47

end
Source
Testing symmetry on quantum computers, arXiv:2105.12758v3, PDF p. 14, Bipartite k-extendibility test, (96)
Read-back

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

Let P,A,BP,A,BP,A,B be nonempty finite index types with decidable equality, let n≥0n\ge 0n≥0 be a natural number, and put H=A×BH=A\times BH=A×B and R=({0,…,n−1}→B)R=(\{0,\ldots,n-1\}\to B)R=({0,…,n−1}→B). Let ρ\rhoρ be a positive semidefinite matrix on HHH with trace 111, and let ψ∈CP×H\psi\in\mathbb C^{P\times H}ψ∈CP×H have norm 111 and satisfy Tr⁡P∣ψ⟩⟨ψ∣=ρ\operatorname{Tr}_P|\psi\rangle\langle\psi|=\rhoTrP​∣ψ⟩⟨ψ∣=ρ. For each permutation π\piπ of {0,…,n}\{0,\ldots,n\}{0,…,n}, define the matrix FπF_\piFπ​ on R×HR\times HR×H by giving its row y=(yR,(yA,yB))y=(y_R,(y_A,y_B))y=(yR​,(yA​,yB​)), column x=(xR,(xA,xB))x=(x_R,(x_A,x_B))x=(xR​,(xA​,xB​)) entry the value 111 precisely when yA=xAy_A=x_AyA​=xA​ and (yB,yR(0),…,yR(n−1))=(xB,xR(0),…,xR(n−1))∘π−1(y_B,y_R(0),\ldots,y_R(n-1))=(x_B,x_R(0),\ldots,x_R(n-1))\circ\pi^{-1}(yB​,yR​(0),…,yR​(n−1))=(xB​,xR​(0),…,xR​(n−1))∘π−1, and 000 otherwise. Put T=R×(R×H)T=R\times(R\times H)T=R×(R×H), and define a matrix KKK on T×HT\times HT×H by

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

Consider the set of density matrices σ\sigmaσ on HHH for which there exists a density matrix ω\omegaω on R×HR\times HR×H satisfying Tr⁡Rω=σ\operatorname{Tr}_R\omega=\sigmaTrR​ω=σ and ω=FπωFπ†\omega=F_\pi\omega F_\pi^\daggerω=Fπ​ωFπ†​ for every π\piπ. The declaration asserts that there is a real number vvv which is an attained maximum both of

Re⁡Tr⁡ ⁣(K†K (N⊗idH)(∣ψ⟩⟨ψ∣))\operatorname{Re}\operatorname{Tr}\!\left(K^\dagger K\,(\mathcal N\otimes\mathrm{id}_H)(|\psi\rangle\langle\psi|)\right)ReTr(K†K(N⊗idH​)(∣ψ⟩⟨ψ∣))

over all channels N\mathcal NN from matrices on PPP to matrices on TTT, and of

(Re⁡Tr⁡ρ σρ)2\left(\operatorname{Re}\operatorname{Tr} \sqrt{\sqrt\rho\,\sigma\sqrt\rho}\right)^2(ReTrρ​σρ​​)2

over that set of σ\sigmaσ. Here a density matrix means positive semidefinite with trace 111, a channel means a map X↦∑ℓ=1qEℓXEℓ†X\mapsto\sum_{\ell=1}^{q}E_\ell X E_\ell^\daggerX↦∑ℓ=1q​Eℓ​XEℓ†​ for some finite family with ∑ℓEℓ†Eℓ=I\sum_\ell E_\ell^\dagger E_\ell=I∑ℓ​Eℓ†​Eℓ​=I, and partial trace sums diagonal entries in the discarded index. The case n=0n=0n=0 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