Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Two-copy photon-number and specified XOR branches coincide up to local unitary

Open
QAlgorithms.Papers.Independent.Intake100.P62.photon_number_xor_equivalence

by Gohan · Oct 30, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

The two parties each hold one complete oscillator mode, with joint Hilbert space ℓ2(N×N)\ell^2(\mathbb N\times\mathbb N)ℓ2(N×N) and no occupation cutoff. A density means a positive trace-class operator of trace one. We use [Xj,Pk]=iδjk[X_j,P_k]=i\delta_{jk}[Xj​,Pk​]=iδjk​ and vacuum covariance III.

Let ρ\rhoρ be any density and N≥0N\ge0N≥0 an integer. Form two independent copies, grouped as (A1,A2):(B1,B2)(A_1,A_2):(B_1,B_2)(A1​,A2​):(B1​,B2​). Let XNX_NXN​ be their unnormalized branch when each party's total occupation is exactly NNN. Let YNY_NYN​ be the unnormalized branch obtained by first projecting each local oscillator to span⁡{∣0⟩,…,∣N⟩}\operatorname{span}\{|0\rangle,\ldots,|N\rangle\}span{∣0⟩,…,∣N⟩}, then applying on both sides

XORN+1∣k,ℓ⟩=∣k,(ℓ+k) mod (N+1)⟩,\mathrm{XOR}_{N+1}|k,\ell\rangle=|k,(\ell+k)\bmod(N+1)\rangle,XORN+1​∣k,ℓ⟩=∣k,(ℓ+k)mod(N+1)⟩,

and selecting target outcome exactly NNN on both sides, keeping the targets. There is a full local unitary UNU_NUN​ extending ∣k,N−k⟩↦∣k,N⟩|k,N-k\rangle\mapsto|k,N\rangle∣k,N−k⟩↦∣k,N⟩ for 0≤k≤N0\le k\le N0≤k≤N such that

(UN⊗UN)XN(UN⊗UN)∗=YN,tr⁡XN=tr⁡YN.(U_N\otimes U_N)X_N(U_N\otimes U_N)^*=Y_N, \qquad \operatorname{tr}X_N=\operatorname{tr}Y_N.(UN​⊗UN​)XN​(UN​⊗UN​)∗=YN​,trXN​=trYN​.

Whenever this trace pNp_NpN​ is positive, XN/pNX_N/p_NXN​/pN​ and YN/pNY_N/p_NYN​/pN​ are normalized densities related by the same local unitary. This is an exact algebraic branch identification, with no Gaussianity or fidelity-improvement hypothesis. At N=0N=0N=0 the identification still holds but gives no nontrivial entangled target.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intake100_P62
Formal statement
noncomputable section

open scoped BigOperators ComplexOrder

namespace QAlgorithms.Papers.Independent.Intake100.P62

attribute [local instance] Classical.propDecidable Classical.decEq

open QAlgorithms.RealRegisters (Hilbert)

open QAlgorithms.Papers.Independent.Dependency50.P33
  (State IsDensity IsSeparable productCoeff)

open QAlgorithms.Papers.Independent.Claimed50.P19
  (Cov FockIndex GaussianWithCovariance standardFormCovariance
   multimodeWeylTrace covarianceCharacteristicValue)

open QAlgorithms.Papers.Independent.Frontier30.P14
  (conjugateKernel partialRight boundedUnitaryConjugation)

open QAlgorithms.Papers.Independent.Bridge50.P18
  (HasCoefficients realizeCoefficients)

open QAlgorithms.Papers.Independent.Support50.P39 (noisyResourceCopies)

/-- arXiv:quant-ph/0007061v2, PDF p.4: exact equality of the two selected
branches after the local isometry |k,N-k> -> |k,N>, extended to a full unitary.
The equality also holds unnormalized and preserves success probability. Only
positive-probability branches are normalized. N=0 is allowed and distills no entanglement. -/
theorem photon_number_xor_equivalence
    (rho : State (ℕ × ℕ)) (N : ℕ) :
    ∃ U : Hilbert (ℕ × ℕ) ≃ₗᵢ[ℂ] Hilbert (ℕ × ℕ),
      (∀ k : ℕ, k ≤ N → U (lp.single 2 (k,N-k) 1) = lp.single 2 (k,N) 1) ∧
      bilocalConjugation U U (numberBranch N rho.coefficients) = xorBranch N rho.coefficients ∧
      branchTrace (numberBranch N rho.coefficients) = branchTrace (xorBranch N rho.coefficients) ∧
      (0 < branchTrace (numberBranch N rho.coefficients) →
        IsDensity (normalizeBranch (numberBranch N rho.coefficients)) ∧
        IsDensity (normalizeBranch (xorBranch N rho.coefficients)) ∧
        bilocalConjugation U U (normalizeBranch (numberBranch N rho.coefficients)) =
          normalizeBranch (xorBranch N rho.coefficients)) := by sorry

end QAlgorithms.Papers.Independent.Intake100.P62

end
Source
All inseparable two-mode Gaussian continuous variable states are distillable, arXiv:quant-ph/0007061v2, PDF p. 4, Two-copy total-number measurement equals finite truncation and XOR branch up to local relabeling
Read-back

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

For every state ρ\rhoρ on N×N\mathbb N\times\mathbb NN×N, write AAA for its coefficient matrix, so AAA admits an expansion Aij=∑rur(i)vr(j)‾A_{ij}=\sum_r u_r(i)\overline{v_r(j)}Aij​=∑r​ur​(i)vr​(j)​ with ur,vr∈ℓ2(N×N;C)u_r,v_r\in\ell^2(\mathbb N\times\mathbb N;\mathbb C)ur​,vr​∈ℓ2(N×N;C) and ∑r∥ur∥∥vr∥<∞\sum_r\|u_r\|\|v_r\|<\infty∑r​∥ur​∥∥vr​∥<∞, all finite quadratic forms of AAA are real and nonnegative, and its real diagonal is summable with sum 111. For every natural number NNN, including N=0N=0N=0, form the regrouped two-copy matrix

R(x,y),(x′,y′)=A(x1,y1),(x1′,y1′)A(x2,y2),(x2′,y2′),x,y,x′,y′∈N2,R_{(x,y),(x',y')} =A_{(x_1,y_1),(x'_1,y'_1)} A_{(x_2,y_2),(x'_2,y'_2)}, \qquad x,y,x',y'\in\mathbb N^2,R(x,y),(x′,y′)​=A(x1​,y1​),(x1′​,y1′​)​A(x2​,y2​),(x2′​,y2′​)​,x,y,x′,y′∈N2,

and define PPP by retaining precisely those entries of RRR for which

x1+x2=y1+y2=x1′+x2′=y1′+y2′=Nx_1+x_2=y_1+y_2=x'_1+x'_2=y'_1+y'_2=Nx1​+x2​=y1​+y2​=x1′​+x2′​=y1′​+y2′​=N

and setting all other entries to zero. To define another matrix QQQ, first restrict RRR to the finite indices x,y∈{0,…,N}2x,y\in\{0,\ldots,N\}^2x,y∈{0,…,N}2, obtaining RNR_NRN​; let SNS_NSN​ be the permutation matrix sending the coordinate vector at (a,b)(a,b)(a,b) to that at (a,(b+a) mod (N+1))(a,(b+a)\bmod(N+1))(a,(b+a)mod(N+1)), and put ZN=(SN⊗SN)RN(SN⊗SN)∗Z_N=(S_N\otimes S_N)R_N(S_N\otimes S_N)^*ZN​=(SN​⊗SN​)RN​(SN​⊗SN​)∗. Set

Q(x,y),(x′,y′)={(ZN)(x,y),(x′,y′),x1,y1,x1′,y1′≤N and x2=y2=x2′=y2′=N,0,otherwise.Q_{(x,y),(x',y')} =\begin{cases} (Z_N)_{(x,y),(x',y')}, &x_1,y_1,x'_1,y'_1\le N \ \text{and }x_2=y_2=x'_2=y'_2=N,\\ 0,&\text{otherwise}. \end{cases}Q(x,y),(x′,y′)​={(ZN​)(x,y),(x′,y′)​,0,​x1​,y1​,x1′​,y1′​≤N and x2​=y2​=x2′​=y2′​=N,otherwise.​

Then there exists a surjective complex linear isometry U:ℓ2(N2;C)→ℓ2(N2;C)U:\ell^2(\mathbb N^2;\mathbb C)\to\ell^2(\mathbb N^2;\mathbb C)U:ℓ2(N2;C)→ℓ2(N2;C) such that Ue(k,N−k)=e(k,N)Ue_{(k,N-k)}=e_{(k,N)}Ue(k,N−k)​=e(k,N)​ for every natural number k≤Nk\le Nk≤N, and such that CU(P)=Q\mathcal C_U(P)=QCU​(P)=Q and T(P)=T(Q)T(P)=T(Q)T(P)=T(Q), where T(X)=∑iRe⁡XiiT(X)=\sum_i\operatorname{Re}X_{ii}T(X)=∑i​ReXii​ and the bilocal conjugation used here is explicitly

CU(X)pq=∑aKpa(∑bXabKqb‾),K(x,y),(a,b)=(Uea)x(Ueb)y.\mathcal C_U(X)_{pq} =\sum_a K_{pa}\left(\sum_b X_{ab}\overline{K_{qb}}\right), \qquad K_{(x,y),(a,b)}=(Ue_a)_x(Ue_b)_y.CU​(X)pq​=a∑​Kpa​(b∑​Xab​Kqb​​),K(x,y),(a,b)​=(Uea​)x​(Ueb​)y​.

If T(P)>0T(P)>0T(P)>0, then both P/T(P)P/T(P)P/T(P) and Q/T(Q)Q/T(Q)Q/T(Q) are density kernels, meaning that each has a summable nuclear expansion, real nonnegative finite quadratic forms, and summable real diagonal of sum 111, and furthermore

CU ⁣(PT(P))=QT(Q).\mathcal C_U\!\left(\frac{P}{T(P)}\right)=\frac{Q}{T(Q)}.CU​(T(P)P​)=T(Q)Q​.

The density and normalized-conjugation conclusions are conditional on strictly positive branch trace. Natural subtraction N−kN-kN−k occurs only under k≤Nk\le Nk≤N; the finite permutation is also defined at N=0N=0N=0, where its modulus is 111.

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