Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 8: full Hilbert-space overlap

Open
QAlgorithms.Papers.Independent.Extend50.P04.full_overlap

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

prove2quantum

Let N≥1N\ge1N≥1 be the number of ports and d≥2d\ge2d≥2 their local dimension. Each initial port is the normalized Bell vector d−1/2∑i=1d∣ii⟩d^{-1/2}\sum_{i=1}^d|ii\rangled−1/2∑i=1d​∣ii⟩. On Alice's NNN ports and input, let σa=d−(N−1)Iaˉ⊗Pa0+\sigma_a=d^{-(N-1)}I_{\bar a}\otimes P^+_{a0}σa​=d−(N−1)Iaˉ​⊗Pa0+​, ρ=∑aσa\rho=\sum_a\sigma_aρ=∑a​σa​, Πa=ρ−1/2σaρ−1/2\Pi_a=\rho^{-1/2}\sigma_a\rho^{-1/2}Πa​=ρ−1/2σa​ρ−1/2 (inverse zero on the kernel), Δ=I−∑aΠa\Delta=I-\sum_a\Pi_aΔ=I−∑a​Πa​, and Π~a=Πa+Δ/N\widetilde\Pi_a=\Pi_a+\Delta/NΠa​=Πa​+Δ/N. Write Va′V_a^\primeVa′​ for the swap of port aaa and input, transposed only on input in the computational basis. For a Young diagram λ\lambdaλ, write dλd_\lambdadλ​ for its symmetric-group irrep dimension and mλm_\lambdamλ​ for its Schur–Weyl multiplicity at dimension ddd. Every summed diagram is physical (height at most ddd). For α⊢N−1\alpha\vdash N-1α⊢N−1, put Sα=∑ν⊃α, ν⊢NmνdνS_\alpha=\sum_{\nu\supset\alpha,\,\nu\vdash N}\sqrt{m_\nu d_\nu}Sα​=∑ν⊃α,ν⊢N​mν​dν​​ and let dθd_\thetadθ​ be the dimension of its unique height-(d+1)(d+1)(d+1) successor when h(α)=dh(\alpha)=dh(α)=d, zero otherwise. Define

TN,d=∑h(α)<dSα2N+∑h(α)=ddαSα2Ndα−dθN.T_{N,d}=\sum_{h(\alpha)<d}\frac{S_\alpha^2}{N}+\sum_{h(\alpha)=d}\frac{\sqrt{d_\alpha}S_\alpha^2}{\sqrt{Nd_\alpha-d_\theta}\sqrt N}.TN,d​=h(α)<d∑​NSα2​​+h(α)=d∑​Ndα​−dθ​​N​dα​​Sα2​​.

For every a∈{1,…,N}a\in\{1,\ldots,N\}a∈{1,…,N}, on the full Hilbert space H=(Cd)⊗(N+1)H=(\mathbb C^d)^{\otimes(N+1)}H=(Cd)⊗(N+1),

Tr⁡H(ΠaVa′)=TN,d.\operatorname{Tr}_H(\sqrt{\Pi_a}V_a^\prime)=T_{N,d}.TrH​(Πa​​Va′​)=TN,d​.

The trace includes all physical multiplicity copies.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Extend50_P04
Formal statement
noncomputable section

namespace QAlgorithms.Papers.Independent.Extend50.P04

open QAlgorithms

open scoped Matrix ComplexConjugate ComplexOrder

attribute [local instance] Classical.propDecidable

/-- PDF p.12, Theorem 8, (57): overlap on the full N+1-factor Hilbert space. -/
theorem full_overlap (d n : ℕ) (hd : 2 ≤ d) (a : Fin (n + 1)) :
    (positiveRoot (supportEffect d (n + 1) a) * transposedSwap d (n + 1) a).trace =
      (overlapFormula d n : ℂ) := by sorry

end QAlgorithms.Papers.Independent.Extend50.P04

end
Source
Square-root measurements and degradation of the resource state in port-based teleportation scheme, arXiv:2105.14886v4, PDF p. 12, Theorem 8: full Hilbert-space overlap
Read-back

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

For every pair of natural numbers d,nd,nd,n with d≥2d\ge2d≥2, and every a∈{0,…,n}a\in\{0,\ldots,n\}a∈{0,…,n}, put N=n+1N=n+1N=n+1 and index matrices by pairs (x,u)(x,u)(x,u), where x:{0,…,N−1}→{0,…,d−1}x:\{0,\ldots,N-1\}\to\{0,\ldots,d-1\}x:{0,…,N−1}→{0,…,d−1} and u∈{0,…,d−1}u\in\{0,\ldots,d-1\}u∈{0,…,d−1}. Define

(Tb)(x,u),(y,v)=1{x(b)=u, y(b)=v, ∀i≠b, x(i)=y(i)},Sb=d−(N−1)(d−1Tb),H=∑bSb,R=f(H),Eb=RSbR,(T_b)_{(x,u),(y,v)} =\mathbf1_{\{x(b)=u,\ y(b)=v,\ \forall i\ne b,\ x(i)=y(i)\}}, \quad S_b=d^{-(N-1)}(d^{-1}T_b), \quad H=\sum_bS_b,\quad R=f(H),\quad E_b=RS_bR,(Tb​)(x,u),(y,v)​=1{x(b)=u, y(b)=v, ∀i=b, x(i)=y(i)}​,Sb​=d−(N−1)(d−1Tb​),H=b∑​Sb​,R=f(H),Eb​=RSb​R,

where f(t)=(t)−1f(t)=(\sqrt t)^{-1}f(t)=(t​)−1 is applied by real continuous functional calculus, with square root zero on negative arguments and reciprocal zero at zero. The theorem states the complex equality

tr⁡ ⁣(Ea Ta)=∑α∈Pd(n){Aα2n+1,hα<d,mα Aα2(n+1)mα−Fαn+1,hα≥d,\operatorname{tr}\!\left(\sqrt{E_a}\,T_a\right) = \sum_{\alpha\in\mathcal P_d(n)} \begin{cases} \displaystyle\frac{A_\alpha^2}{n+1}, &h_\alpha<d,\\[3mm] \displaystyle \frac{\sqrt{m_\alpha}\,A_\alpha^2} {\sqrt{(n+1)m_\alpha-F_\alpha}\sqrt{n+1}}, &h_\alpha\ge d, \end{cases}tr(Ea​​Ta​)=α∈Pd​(n)∑​⎩⎨⎧​n+1Aα2​​,(n+1)mα​−Fα​​n+1​mα​​Aα2​​,​hα​<d,hα​≥d,​

where the real right-hand side is embedded in C\mathbb CC, Ea\sqrt{E_a}Ea​​ means continuous functional calculus with the real square-root function, Pe(k)\mathcal P_e(k)Pe​(k) is the set of Young diagrams with kkk cells and first-column length at most eee, and hαh_\alphahα​ is that first-column length. The quantities on the right are

Aα=∑ν∈Pd(n+1)α⊆νsνmν,Fα=∑θ∈Pd+1(n+1)α⊆θ, hθ=d+1mθ.A_\alpha=\sum_{\substack{\nu\in\mathcal P_d(n+1)\\\alpha\subseteq\nu}} \sqrt{s_\nu m_\nu}, \qquad F_\alpha=\sum_{\substack{\theta\in\mathcal P_{d+1}(n+1)\\ \alpha\subseteq\theta,\ h_\theta=d+1}}m_\theta.Aα​=ν∈Pd​(n+1)α⊆ν​∑​sν​mν​​,Fα​=θ∈Pd+1​(n+1)α⊆θ, hθ​=d+1​∑​mθ​.

For any diagram λ\lambdaλ with kkk cells, sλs_\lambdasλ​ is the number of fillings of its cells by 0,…,d−10,\ldots,d-10,…,d−1 that weakly increase along each row and strictly increase down each column when λ∈Pd(k)\lambda\in\mathcal P_d(k)λ∈Pd​(k). To define mλm_\lambdamλ​, use the fixed bijection from the cells of λ\lambdaλ to {0,…,k−1}\{0,\ldots,k-1\}{0,…,k−1} chosen from their equal finite cardinalities; let Rλ,Cλ\mathcal R_\lambda,\mathcal C_\lambdaRλ​,Cλ​ be the permutations preserving, respectively, every numbered cell’s row and column coordinate, and form the matrix on the permutation group Sk\mathfrak S_kSk​

(Yλ)g,h=∑r∈Rλ∑c∈Cλsgn⁡(c) 1{g=hrc}.(Y_\lambda)_{g,h} =\sum_{r\in\mathcal R_\lambda}\sum_{c\in\mathcal C_\lambda} \operatorname{sgn}(c)\,\mathbf1_{\{g=hrc\}}.(Yλ​)g,h​=r∈Rλ​∑​c∈Cλ​∑​sgn(c)1{g=hrc}​.

Then mλm_\lambdamλ​ is the complex dimension of the range of YλY_\lambdaYλ​. All diagram coordinates start at zero, the inclusion conditions mean cell-set inclusion, and the sums include every indicated diagram. No assumption n>0n>0n>0 is imposed. All real square roots and quotients use their total conventions, including a zero quotient when the denominator is zero.

Human review
  • Endorsed by Shuze Chen · Oct 29, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 29, 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