Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Supported inverse-square-root overlaps in a port signal basis

Open
QAlgorithms.Papers.Independent.Extend50.P38.inverse_sqrt_overlaps

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

prove2quantum

Use N≥1N\geq1N≥1 singlet signals σi=2−(N−1)PBAi−⊗IAˉi\sigma_i=2^{-(N-1)}P^-_{BA_i}\otimes I_{\bar A_i}σi​=2−(N−1)PBAi​−​⊗IAˉi​​ and ρ=∑iσi\rho=\sum_i\sigma_iρ=∑i​σi​. Fix a port iii. For the sequentially coupled basis of the other N−1N-1N−1 Alice spins, define ∣ξ(i)(s,m,α)⟩=∣ψ−⟩BAi∣Φ[N−1](s,m,α)⟩Aˉi|\xi^{(i)}(s,m,\alpha)\rangle=|\psi^-\rangle_{BA_i}|\Phi^{[N-1]}(s,m,\alpha)\rangle_{\bar A_i}∣ξ(i)(s,m,α)⟩=∣ψ−⟩BAi​​∣Φ[N−1](s,m,α)⟩Aˉi​​, with all allowed spins, magnetic indices, and multiplicity paths. The inverse square root is spectral, with value zero on the kernel. With λj−=(N/2−j)/2N\lambda_j^-=(N/2-j)/2^Nλj−​=(N/2−j)/2N and λj+=(N/2+j+1)/2N\lambda_j^+=(N/2+j+1)/2^Nλj+​=(N/2+j+1)/2N,

⟨ξ(i)(s,m,α)∣ρ−1/2∣ξ(i)(s′,m′,α′)⟩=δs,s′δm,m′δα,α′[s2s+1(λs−1/2−)−1/2+s+12s+1(λs+1/2+)−1/2].\langle\xi^{(i)}(s,m,\alpha)|\rho^{-1/2}|\xi^{(i)}(s',m',\alpha')\rangle=\delta_{s,s'}\delta_{m,m'}\delta_{\alpha,\alpha'}\left[\frac{s}{2s+1}(\lambda^-_{s-1/2})^{-1/2}+\frac{s+1}{2s+1}(\lambda^+_{s+1/2})^{-1/2}\right].⟨ξ(i)(s,m,α)∣ρ−1/2∣ξ(i)(s′,m′,α′)⟩=δs,s′​δm,m′​δα,α′​[2s+1s​(λs−1/2−​)−1/2+2s+1s+1​(λs+1/2+​)−1/2].

At s=0s=0s=0 the absent lower-spin branch has weight zero. The formula is a compression to the indicated port basis and supplies the scalar overlaps needed for fidelity and optimality. Define rhoMinus and rhoPlus by Eq.(B1), summing the eigenvalue-weighted projectors of the constructed coupled vectors in the total-spin j+1/2 and j−1/2 branches respectively. The same fixed-port overlap with rhoMinus^(-1/2) equals the Kronecker delta times the first summand above; with rhoPlus^(-1/2) it equals the delta times the second summand, as in (B3) and (B4).

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Extend50_P38
Formal statement
noncomputable section

open scoped Matrix ComplexConjugate ComplexOrder

open Filter MeasureTheory

namespace QAlgorithms.Papers.Independent.Extend50.P38

attribute [local instance] Classical.propDecidable Classical.decEq

-- Pinned accepted definitions; neither is re-declared in this module.

open QAlgorithms.Papers.Independent.Frontier18.P14 (singlet)

open QAlgorithms.Papers.Independent.Renew46.P01 (SpinPath)

/-- PDF p.3 Eqs.(4)–(5), with the separate rhoMinus/rhoPlus contributions
(B3)–(B4) in Appendix B, PDF p.6. The branch operators are the constructed
spectral sums (B1). These are fixed-port compressions, not global blocks in xi. -/
theorem inverse_sqrt_overlaps (n : ℕ) (i : Fin (n + 1))
    (p p' : SpinPath n) (m m' : ℤ)
    (hm : ValidMagnetic (finalSpin p) m) (hm' : ValidMagnetic (finalSpin p') m') :
    let s := (finalSpin p : ℝ) / 2
    (inner ℂ (xi i p m)
      (act (supportedInvSqrt (∑ j, singletSignals (n + 1) j)) (xi i p' m')) =
      if p = p' ∧ m = m' then (overlapCoefficient (n + 1) s : ℂ) else 0) ∧
    (inner ℂ (xi i p m)
      (act (supportedInvSqrt (singletSpinBranch (n + 1) false)) (xi i p' m')) =
      if p = p' ∧ m = m' then
        (((Real.sqrt (lambdaMinus (n + 1) (s - 1 / 2)))⁻¹ * s / (2 * s + 1) : ℝ) : ℂ)
      else 0) ∧
    (inner ℂ (xi i p m)
      (act (supportedInvSqrt (singletSpinBranch (n + 1) true)) (xi i p' m')) =
      if p = p' ∧ m = m' then
        (((Real.sqrt (lambdaPlus (n + 1) (s + 1 / 2)))⁻¹ * (s + 1) / (2 * s + 1) : ℝ) : ℂ)
      else 0) := by sorry

end QAlgorithms.Papers.Independent.Extend50.P38

end
Source
Asymptotic teleportation scheme as a universal programmable quantum processor, arXiv:0807.4568v2, PDF p. 3, Eqs. (4)–(5); Appendix B p.6
Read-back

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

For every natural number nnn, every port index i∈{0,…,n}i\in\{0,\ldots,n\}i∈{0,…,n}, every two paths p,p′p,p'p,p′ of length nnn, and every two integers m,m′m,m'm,m′, assume that mmm is admissible for the endpoint r=pnr=p_nr=pn​ and m′m'm′ is admissible for r′=pn′r'=p'_nr′=pn′​, where a path is a sequence p0,…,pn∈{0,…,n}p_0,\ldots,p_n\in\{0,\ldots,n\}p0​,…,pn​∈{0,…,n} starting at zero and changing by one at each step, and admissibility for hhh means −h≤M≤h-h\le M\le h−h≤M≤h and M+h≡0(mod2)M+h\equiv0\pmod2M+h≡0(mod2). The following definitions specify all three asserted overlaps. Put σ(0)=−1\sigma(0)=-1σ(0)=−1, σ(1)=1\sigma(1)=1σ(1)=1. Define C(h,M;q,b)=0C(h,M;q,b)=0C(h,M;q,b)=0 unless MMM is admissible for hhh and M+σ(b)M+\sigma(b)M+σ(b) is admissible for qqq; when both conditions hold, set

C(h,M;q,b)={h−M+22(h+1),q=h+1, b=0,h+M+22(h+1),q=h+1, b=1,h+M2(h+1),h=q+1, b=0,−h−M2(h+1),h=q+1, b=1,0,otherwise.C(h,M;q,b)= \begin{cases} \sqrt{\dfrac{h-M+2}{2(h+1)}},&q=h+1,\ b=0,\\ \sqrt{\dfrac{h+M+2}{2(h+1)}},&q=h+1,\ b=1,\\ \sqrt{\dfrac{h+M}{2(h+1)}},&h=q+1,\ b=0,\\ -\sqrt{\dfrac{h-M}{2(h+1)}},&h=q+1,\ b=1,\\ 0,&\text{otherwise}. \end{cases}C(h,M;q,b)=⎩⎨⎧​2(h+1)h−M+2​​,2(h+1)h+M+2​​,2(h+1)h+M​​,−2(h+1)h−M​​,0,​q=h+1, b=0,q=h+1, b=1,h=q+1, b=0,h=q+1, b=1,otherwise.​

For any length LLL, path ttt, integer MMM, and a∈{0,1}La\in\{0,1\}^La∈{0,1}L, put Mk(a)=∑j<kσ(aj)M_k(a)=\sum_{j<k}\sigma(a_j)Mk​(a)=∑j<k​σ(aj​) and

vt,M(a)={∏k=0L−1C(tk,Mk(a);tk+1,ak),ML(a)=M,0,otherwise,wt,q,M(a,b)=vt,M−σ(b)(a) C(tL,M−σ(b);q,b).v_{t,M}(a)= \begin{cases} \displaystyle\prod_{k=0}^{L-1}C(t_k,M_k(a);t_{k+1},a_k),&M_L(a)=M,\\ 0,&\text{otherwise}, \end{cases} \qquad w_{t,q,M}(a,b)=v_{t,M-\sigma(b)}(a)\,C(t_L,M-\sigma(b);q,b).vt,M​(a)=⎩⎨⎧​k=0∏L−1​C(tk​,Mk​(a);tk+1​,ak​),0,​ML​(a)=M,otherwise,​wt,q,M​(a,b)=vt,M−σ(b)​(a)C(tL​,M−σ(b);q,b).

Let ϵ(0,1)=1/2\epsilon(0,1)=1/\sqrt2ϵ(0,1)=1/2​, ϵ(1,0)=−1/2\epsilon(1,0)=-1/\sqrt2ϵ(1,0)=−1/2​, and let its other two values be zero. On AL={0,1}L×{0,1}\mathcal A_L=\{0,1\}^L\times\{0,1\}AL​={0,1}L×{0,1}, for L≥1L\ge1L≥1, define

SL,j((a,b),(a′,b′))={2−(L−1)ϵ(b,aj)ϵ(b′,aj′)‾,ak=ak′ for all k≠j,0,otherwise,SL=∑j=0L−1SL,j.S_{L,j}\bigl((a,b),(a',b')\bigr)= \begin{cases} 2^{-(L-1)}\epsilon(b,a_j)\overline{\epsilon(b',a'_j)}, &a_k=a'_k\text{ for all }k\ne j,\\ 0,&\text{otherwise}, \end{cases} \qquad S_L=\sum_{j=0}^{L-1}S_{L,j}.SL,j​((a,b),(a′,b′))={2−(L−1)ϵ(b,aj​)ϵ(b′,aj′​)​,0,​ak​=ak′​ for all k=j,otherwise,​SL​=j=0∑L−1​SL,j​.

For paths ttt of length LLL, write h=tLh=t_Lh=tL​ and define the two branch matrices

BLfalse=∑tL−h2L+1∑k=0h+1wt,h+1, 2k−(h+1)wt,h+1, 2k−(h+1)∗,BLtrue=∑th>0L+h+22L+1∑k=0h−1wt,h−1, 2k−(h−1)wt,h−1, 2k−(h−1)∗,B_L^{\mathrm{false}} =\sum_t\frac{L-h}{2^{L+1}}\sum_{k=0}^{h+1} w_{t,h+1,\,2k-(h+1)}w_{t,h+1,\,2k-(h+1)}^*, \qquad B_L^{\mathrm{true}} =\sum_{\substack{t\\h>0}}\frac{L+h+2}{2^{L+1}}\sum_{k=0}^{h-1} w_{t,h-1,\,2k-(h-1)}w_{t,h-1,\,2k-(h-1)}^*,BLfalse​=t∑​2L+1L−h​k=0∑h+1​wt,h+1,2k−(h+1)​wt,h+1,2k−(h+1)∗​,BLtrue​=th>0​∑​2L+1L+h+2​k=0∑h−1​wt,h−1,2k−(h−1)​wt,h−1,2k−(h−1)∗​,

where ww∗(x,y)=w(x)w(y)‾ww^*(x,y)=w(x)\overline{w(y)}ww∗(x,y)=w(x)w(y)​. Define ξi,p,m∈CAn+1\xi_{i,p,m}\in\mathbb C^{\mathcal A_{n+1}}ξi,p,m​∈CAn+1​ by

ξi,p,m(a,b)=ϵ(b,ai) vp,m(ai^),\xi_{i,p,m}(a,b)=\epsilon(b,a_i)\,v_{p,m}(a_{\widehat i}),ξi,p,m​(a,b)=ϵ(b,ai​)vp,m​(ai​),

where ai^a_{\widehat i}ai​ lists the port entries other than iii in increasing index order. For a matrix AAA, write F(A)F(A)F(A) for its continuous functional calculus with the real function t↦(t)−1t\mapsto(\sqrt t)^{-1}t↦(t​)−1, using the total real conventions t=0\sqrt t=0t​=0 for t≤0t\le0t≤0 and 0−1=00^{-1}=00−1=0. Finally, put

L=n+1,s=r2,μL(t)=L/2−t2L,νL(t)=L/2+t+12L,L=n+1,\qquad s=\frac r2,\qquad \mu_L(t)=\frac{L/2-t}{2^L},\qquad \nu_L(t)=\frac{L/2+t+1}{2^L},L=n+1,s=2r​,μL​(t)=2LL/2−t​,νL​(t)=2LL/2+t+1​, AL(s)=(μL(s−12))−1s2s+1,DL(s)=(νL(s+12))−1(s+1)2s+1.A_L(s)=\frac{(\sqrt{\mu_L(s-\tfrac12)})^{-1}s}{2s+1}, \qquad D_L(s)=\frac{(\sqrt{\nu_L(s+\tfrac12)})^{-1}(s+1)}{2s+1}.AL​(s)=2s+1(μL​(s−21​)​)−1s​,DL​(s)=2s+1(νL​(s+21​)​)−1(s+1)​.

With the standard complex inner product, conjugate-linear in its first argument, all three equalities hold:

⟨ξi,p,m,F(SL)ξi,p′,m′⟩={AL(s)+DL(s),p=p′ and m=m′,0,otherwise,⟨ξi,p,m,F(BLfalse)ξi,p′,m′⟩={AL(s),p=p′ and m=m′,0,otherwise,⟨ξi,p,m,F(BLtrue)ξi,p′,m′⟩={DL(s),p=p′ and m=m′,0,otherwise.\begin{aligned} \left\langle\xi_{i,p,m},F(S_L)\xi_{i,p',m'}\right\rangle &= \begin{cases} A_L(s)+D_L(s),&p=p'\text{ and }m=m',\\ 0,&\text{otherwise}, \end{cases}\\ \left\langle\xi_{i,p,m},F(B_L^{\mathrm{false}})\xi_{i,p',m'}\right\rangle &= \begin{cases} A_L(s),&p=p'\text{ and }m=m',\\ 0,&\text{otherwise}, \end{cases}\\ \left\langle\xi_{i,p,m},F(B_L^{\mathrm{true}})\xi_{i,p',m'}\right\rangle &= \begin{cases} D_L(s),&p=p'\text{ and }m=m',\\ 0,&\text{otherwise}. \end{cases} \end{aligned}⟨ξi,p,m​,F(SL​)ξi,p′,m′​⟩⟨ξi,p,m​,F(BLfalse​)ξi,p′,m′​⟩⟨ξi,p,m​,F(BLtrue​)ξi,p′,m′​⟩​={AL​(s)+DL​(s),0,​p=p′ and m=m′,otherwise,​={AL​(s),0,​p=p′ and m=m′,otherwise,​={DL​(s),0,​p=p′ and m=m′,otherwise.​​

The real values on the right are embedded in C\mathbb CC. The quantification includes n=0n=0n=0: then both paths are the unique zero-length path, admissibility forces m=m′=0m=m'=0m=m′=0, and i=0i=0i=0; the empty products defining the path vectors equal one.

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