Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 9: qubit overlap as a finite binomial sum

Open
QAlgorithms.Papers.Independent.Extend50.P04.qubit_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 d=2d=2d=2, let k=⌊(N−1)/2⌋k=\lfloor(N-1)/2\rfloork=⌊(N−1)/2⌋ and

BN,l=(N−2l+1)(N+1l)N+1+(N−2l−1)(N+1l+1)N+1,QN=∑l=0k(N+1−l)(l+1)N+1BN,l2.B_{N,l}=(N-2l+1)\sqrt{\frac{\binom{N+1}{l}}{N+1}}+(N-2l-1)\sqrt{\frac{\binom{N+1}{l+1}}{N+1}},\qquad Q_N=\sum_{l=0}^k\sqrt{\frac{(N+1-l)(l+1)}{N+1}}B_{N,l}^2.BN,l​=(N−2l+1)N+1(lN+1​)​​+(N−2l−1)N+1(l+1N+1​)​​,QN​=l=0∑k​N+1(N+1−l)(l+1)​​BN,l2​.

All subtractions in these coefficients are real subtractions. For every selected port aaa,

Tr⁡H(ΠaVa′)=QN/N.\operatorname{Tr}_H(\sqrt{\Pi_a}V_a^\prime)=Q_N/N.TrH​(Πa​​Va′​)=QN​/N.

This is the finite binomial form of the full overlap.

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 pp.12-13, Lemma 9, (58),(72): k=floor((N-1)/2), including the terminal zero successor. -/
theorem qubit_overlap (n : ℕ) (a : Fin (n + 1)) :
    (positiveRoot (supportEffect 2 (n + 1) a) * transposedSwap 2 (n + 1) a).trace =
      (qubitOverlapSum n / (n + 1 : ℝ) : ℂ) := 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, Lemma 9: qubit overlap as a finite binomial sum
Read-back

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

For every natural number nnn and every port a∈{0,…,n}a\in\{0,\ldots,n\}a∈{0,…,n}, put N=n+1N=n+1N=n+1 and index matrices by (x,u)(x,u)(x,u), where x:{0,…,N−1}→{0,1}x:\{0,\ldots,N-1\}\to\{0,1\}x:{0,…,N−1}→{0,1} and u∈{0,1}u\in\{0,1\}u∈{0,1}. Define

(Tb)(x,u),(y,v)=1{x(b)=u, y(b)=v, ∀i≠b, x(i)=y(i)},Sb=2−(N−1)(2−1Tb),(T_b)_{(x,u),(y,v)} =\mathbf1_{\{x(b)=u,\ y(b)=v,\ \forall i\ne b,\ x(i)=y(i)\}}, \qquad S_b=2^{-(N-1)}(2^{-1}T_b),(Tb​)(x,u),(y,v)​=1{x(b)=u, y(b)=v, ∀i=b, x(i)=y(i)}​,Sb​=2−(N−1)(2−1Tb​), H=∑bSb,R=f(H),Eb=RSbR,H=\sum_bS_b,\qquad R=f(H),\qquad E_b=RS_bR,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 asserts

tr⁡ ⁣(Ea Ta)=1n+1∑l=0⌊n/2⌋(n+2−l)(l+1)n+2 [(n+2−2l)(n+2l)n+2+(n−2l)(n+2l+1)n+2]2,\operatorname{tr}\!\left(\sqrt{E_a}\,T_a\right) = \frac1{n+1}\sum_{l=0}^{\lfloor n/2\rfloor} \sqrt{\frac{(n+2-l)(l+1)}{n+2}}\, \left[ (n+2-2l)\sqrt{\frac{\binom{n+2}{l}}{n+2}} + (n-2l)\sqrt{\frac{\binom{n+2}{l+1}}{n+2}} \right]^2,tr(Ea​​Ta​)=n+11​l=0∑⌊n/2⌋​n+2(n+2−l)(l+1)​​​(n+2−2l)n+2(ln+2​)​​+(n−2l)n+2(l+1n+2​)​​​2,

with the real right-hand side embedded in C\mathbb CC and Ea\sqrt{E_a}Ea​​ defined by continuous functional calculus with the real square-root function. The differences displayed outside the summation bound are real differences, and the summation includes both endpoints. In particular, n=0n=0n=0 is included.

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