Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Complete coupled-spin spectrum and multiplicities of rho

Open
QAlgorithms.Papers.Independent.Intake100.P67.rho_spectrum

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

prove2quantum

Let N≥1N\ge1N≥1 and ρ=∑i2−(N−1)PAiC−⊗IAˉi\rho=\sum_i2^{-(N-1)}P^-_{A_iC}\otimes I_{\bar A_i}ρ=∑i​2−(N−1)PAi​C−​⊗IAˉi​​. The legal doubled Alice spins are integers k∈{0,…,N}k\in\{0,\ldots,N\}k∈{0,…,N} with k≡N(mod2)k\equiv N\pmod2k≡N(mod2); write j=k/2j=k/2j=k/2. Let PjP_jPj​ be the spin-jjj projector on Alice's NNN qubits. Let Qj−Q_j^-Qj−​ and Qj+Q_j^+Qj+​ be the joint projectors onto Alice spin jjj and total ACACAC spins j+1/2j+1/2j+1/2 and j−1/2j-1/2j−1/2, respectively; Q0+=0Q_0^+=0Q0+​=0. Define

gN(j)=(2j+1)N!(N/2−j)!(N/2+j+1)!,λj−=N/2−j2N,λj+=N/2+j+12N.g_N(j)=\frac{(2j+1)N!}{(N/2-j)!(N/2+j+1)!},\quad \lambda_j^-=\frac{N/2-j}{2^N},\quad\lambda_j^+=\frac{N/2+j+1}{2^N}.gN​(j)=(N/2−j)!(N/2+j+1)!(2j+1)N!​,λj−​=2NN/2−j​,λj+​=2NN/2+j+1​.

These are Hermitian idempotent sector projectors, with tr⁡Qj−=(2j+2)gN(j)\operatorname{tr}Q_j^-=(2j+2)g_N(j)trQj−​=(2j+2)gN​(j) and tr⁡Qj+=2jgN(j)\operatorname{tr}Q_j^+=2jg_N(j)trQj+​=2jgN​(j), and

∑j(Qj−+Qj+)=I,ρ=∑j(λj−Qj−+λj+Qj+),ρQj±=λj±Qj±.\sum_j(Q_j^-+Q_j^+)=I,\qquad \rho=\sum_j(\lambda_j^-Q_j^-+\lambda_j^+Q_j^+),\qquad \rho Q_j^\pm=\lambda_j^\pm Q_j^\pm.j∑​(Qj−​+Qj+​)=I,ρ=j∑​(λj−​Qj−​+λj+​Qj+​),ρQj±​=λj±​Qj±​.

Every vector in either projector range obeys the corresponding eigenvalue equation. These ranges are precisely the coupled-spin eigenspaces in (8), simultaneously covering all magnetic and multiplicity labels.

This describes the full spectrum, including its zero eigenspace.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intake100_P67
Formal statement
noncomputable section

open scoped Matrix Kronecker ComplexConjugate ComplexOrder Matrix.Norms.L2Operator

attribute [local instance] Classical.propDecidable

attribute [local instance] Classical.decEq

namespace QAlgorithms.Papers.Independent.Intake100.P67

open QAlgorithms.Papers.Independent.Information100.P71 (supportPower)

open QAlgorithms.Papers.Independent.Advance50.P49 (spinMultiplicity)

/-- PDF pp.3–5, Eqs.(7)–(23), Appendix A p.11: full spectral decomposition, eigenstates
as ranges of the coupled-spin projectors of Eq.(8), and their degeneracies.
A basis-independent projector describes all m and multiplicity labels at once. -/
theorem rho_spectrum (N : ℕ) (hN : 1 ≤ N) :
    portRho N = ∑ k ∈ spins N,
      ((lambdaMinus N k : ℂ) • minusSector N k + (lambdaPlus N k : ℂ) • plusSector N k) ∧
    (∑ k ∈ spins N, (minusSector N k + plusSector N k)) = 1 ∧
    (∀ k ∈ spins N,
      (minusSector N k).IsHermitian ∧ (plusSector N k).IsHermitian ∧
      minusSector N k * minusSector N k = minusSector N k ∧
      plusSector N k * plusSector N k = plusSector N k ∧
      (minusSector N k).trace.re = ((k + 2) * spinMultiplicity N k : ℕ) ∧
      (plusSector N k).trace.re = (k * spinMultiplicity N k : ℕ) ∧
      portRho N * minusSector N k = (lambdaMinus N k : ℂ) • minusSector N k ∧
      portRho N * plusSector N k = (lambdaPlus N k : ℂ) • plusSector N k ∧
      (∀ v : EuclideanSpace ℂ (AC N), act (minusSector N k) v = v →
        act (portRho N) v = (lambdaMinus N k : ℂ) • v) ∧
      (∀ v : EuclideanSpace ℂ (AC N), act (plusSector N k) v = v →
        act (portRho N) v = (lambdaPlus N k : ℂ) • v)) := by sorry

end QAlgorithms.Papers.Independent.Intake100.P67

end
Source
Quantum teleportation scheme by selecting one of multiple output ports, arXiv:0901.2975v2, PDF p. 3, §III, Eqs. (7)–(23); Appendix A p.11
Read-back

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

For every natural number N≥1N\ge1N≥1, the following matrix identities and vector implications hold. For a finite set WWW, write BW={0,1}W\mathcal B_W=\{0,1\}^WBW​={0,1}W, w=∣W∣w=|W|w=∣W∣, and Sw={k∈N:k≤w, k≡w(mod2)}\mathcal S_w=\{k\in\mathbb N:k\le w,\ k\equiv w\pmod2\}Sw​={k∈N:k≤w, k≡w(mod2)}. For r,t∈Wr,t\in Wr,t∈W, define the matrix PrtP_{rt}Prt​ on BW\mathcal B_WBW​ to have entry 111 at (a,b)(a,b)(a,b) if a=b∘(r t)a=b\circ(r\ t)a=b∘(r t), and 000 otherwise, and define

LW=w(4−w)4I+12∑r,t∈Wr≠tPrt,QW,k={cfc⁡ ⁣(x↦1{x=k(k+2)/4},LW),k∈Sw,0,k∉Sw.L_W=\frac{w(4-w)}4I+\frac12\sum_{\substack{r,t\in W\\r\ne t}}P_{rt}, \qquad Q_{W,k}= \begin{cases} \operatorname{cfc}\!\left(x\mapsto\mathbf1_{\{x=k(k+2)/4\}},L_W\right),&k\in\mathcal S_w,\\ 0,&k\notin\mathcal S_w. \end{cases}LW​=4w(4−w)​I+21​r,t∈Wr=t​∑​Prt​,QW,k​={cfc(x↦1{x=k(k+2)/4}​,LW​),0,​k∈Sw​,k∈/Sw​.​

The scalar coefficient in LWL_WLW​ uses real arithmetic. On the space indexed by HN=B{0,…,N−1}×{0,1}\mathcal H_N=\mathcal B_{\{0,\ldots,N-1\}}\times\{0,1\}HN​=B{0,…,N−1}​×{0,1}, let TkT_kTk​ be Q{∗}⊔{0,…,N−1},kQ_{\{\ast\}\sqcup\{0,\ldots,N-1\},k}Q{∗}⊔{0,…,N−1},k​, with the final bit assigned to ∗\ast∗, and define

Ak−=(Q{0,…,N−1},k⊗I2)Tk+1,Ak+={0,k=0,(Q{0,…,N−1},k⊗I2)Tk−1,k>0.A_k^-=(Q_{\{0,\ldots,N-1\},k}\otimes I_2)T_{k+1}, \qquad A_k^+= \begin{cases} 0,&k=0,\\ (Q_{\{0,\ldots,N-1\},k}\otimes I_2)T_{k-1},&k>0. \end{cases}Ak−​=(Q{0,…,N−1},k​⊗I2​)Tk+1​,Ak+​={0,(Q{0,…,N−1},k​⊗I2​)Tk−1​,​k=0,k>0.​

Define s(0,1)=1/2s(0,1)=1/\sqrt2s(0,1)=1/2​, s(1,0)=−1/2s(1,0)=-1/\sqrt2s(1,0)=−1/2​, s(u,u)=0s(u,u)=0s(u,u)=0, and

(σi)(a,c),(b,d)={2−(N−1)s(ai,c)s(bi,d)‾,aj=bj for every j≠i,0,otherwise,R=∑i<Nσi.(\sigma_i)_{(a,c),(b,d)} = \begin{cases} 2^{-(N-1)}s(a_i,c)\overline{s(b_i,d)},& a_j=b_j\text{ for every }j\ne i,\\ 0,&\text{otherwise}, \end{cases} \qquad R=\sum_{i<N}\sigma_i.(σi​)(a,c),(b,d)​={2−(N−1)s(ai​,c)s(bi​,d)​,0,​aj​=bj​ for every j=i,otherwise,​R=i<N∑​σi​.

Put λk−=(N/2−k/2)/2N\lambda_k^-=(N/2-k/2)/2^Nλk−​=(N/2−k/2)/2N, λk+=(N/2+k/2+1)/2N\lambda_k^+=(N/2+k/2+1)/2^Nλk+​=(N/2+k/2+1)/2N, and let

mn,k={⌊(n(n−k)/2)(k+1)(n+k)/2+1⌋,k≤n and n−k is even,0,otherwise,m_{n,k}= \begin{cases} \displaystyle \left\lfloor \frac{\binom n{(n-k)/2}(k+1)}{(n+k)/2+1} \right\rfloor,&k\le n\text{ and }n-k\text{ is even},\\ 0,&\text{otherwise}, \end{cases}mn,k​=⎩⎨⎧​⌊(n+k)/2+1((n−k)/2n​)(k+1)​⌋,0,​k≤n and n−k is even,otherwise,​

where the divisions defining the binomial index, the denominator, and the final quotient are natural-number divisions. Then

R=∑k∈SN(λk−Ak−+λk+Ak+),∑k∈SN(Ak−+Ak+)=I.R=\sum_{k\in\mathcal S_N}\bigl(\lambda_k^-A_k^-+\lambda_k^+A_k^+\bigr), \qquad \sum_{k\in\mathcal S_N}(A_k^-+A_k^+)=I.R=k∈SN​∑​(λk−​Ak−​+λk+​Ak+​),k∈SN​∑​(Ak−​+Ak+​)=I.

For every k∈SNk\in\mathcal S_Nk∈SN​, both Ak−A_k^-Ak−​ and Ak+A_k^+Ak+​ are Hermitian and idempotent, and

Re⁡tr⁡(Ak−)=(k+2)mN,k,Re⁡tr⁡(Ak+)=k mN,k,\operatorname{Re}\operatorname{tr}(A_k^-)=(k+2)m_{N,k}, \qquad \operatorname{Re}\operatorname{tr}(A_k^+)=k\,m_{N,k},Retr(Ak−​)=(k+2)mN,k​,Retr(Ak+​)=kmN,k​, RAk−=λk−Ak−,RAk+=λk+Ak+.RA_k^-=\lambda_k^-A_k^-, \qquad RA_k^+=\lambda_k^+A_k^+.RAk−​=λk−​Ak−​,RAk+​=λk+​Ak+​.

Furthermore, for every complex Euclidean vector vvv indexed by HN\mathcal H_NHN​, including the zero vector,

Ak−v=v ⟹ Rv=λk−v,Ak+v=v ⟹ Rv=λk+v.A_k^-v=v\ \Longrightarrow\ Rv=\lambda_k^-v, \qquad A_k^+v=v\ \Longrightarrow\ Rv=\lambda_k^+v.Ak−​v=v ⟹ Rv=λk−​v,Ak+​v=v ⟹ Rv=λk+​v.

These statements include the explicitly zero matrix A0+A_0^+A0+​ when 0∈SN0\in\mathcal S_N0∈SN​, and the coefficient λN−=0\lambda_N^-=0λN−​=0.

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