Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Corollary A.4.

Proved
QAlgorithms.Papers.Independent.Gap48.P23.singlet_chains

by Goku · Oct 21, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

Let d≥1d\ge1d≥1. Vectorization is unnormalized: ∣A⟩=∑i,jAij∣i,j⟩|A\rangle=\sum_{i,j}A_{ij}|i,j\rangle∣A⟩=∑i,j​Aij​∣i,j⟩. In Appendix A only, ⟨A∣=∣A⟩T\langle A|=|A\rangle^T⟨A∣=∣A⟩T is bilinear, without complex conjugation. The formal tensor contractions are independent sums over the internal path indices, in their displayed order. Put S=(01−10)S=\begin{pmatrix}0&1\\-1&0\end{pmatrix}S=(0−1​10​) and ∣Ψ−⟩=∣S⟩/2|\Psi^-\rangle=|S\rangle/\sqrt2∣Ψ−⟩=∣S⟩/2​.

For k≥0k\ge0k≥0, the even open, odd open and closed chains of the unnormalized singlet matrix give

S2k=(−1)kI,∣S2k+1⟩=(−1)k∣S⟩,Tr⁡(S2k+2)=2(−1)k+1.S^{2k}=(-1)^kI,\qquad|S^{2k+1}\rangle=(-1)^k|S\rangle,\qquad\operatorname{Tr}(S^{2k+2})=2(-1)^{k+1}.S2k=(−1)kI,∣S2k+1⟩=(−1)k∣S⟩,Tr(S2k+2)=2(−1)k+1.

Replacing any jjj of the ket factors by their transposes multiplies the corresponding contraction by (−1)j(-1)^j(−1)j.

This fixes the contraction and sign conventions used in the singlet-diagram analysis.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Gap48_P23
Formal statement
noncomputable section

namespace QAlgorithms.Papers.Independent.Gap48.P23

open MeasureTheory

open scoped ComplexConjugate Matrix ComplexOrder

attribute [local instance] Classical.propDecidable

attribute [local instance] Classical.decEq

-- Exact frozen coordinate helpers; no paper-local redeclarations.

open QAlgorithms.Papers.Independent.Information100.P58 (Word)

open QAlgorithms.Papers.Independent.Information100.P21 (Op)

open QAlgorithms.Papers.Independent.Information100.P63 (tensorPower)

/-- PDF p.48, Corollary A.4: all three unnormalized singlet chains and every
allowed ket reversal; the closed contraction includes the final bra. -/
theorem singlet_chains (k : ℕ) :
    networkChain (2*k) (fun _ => singletMatrix) = singletMatrix^(2*k) ∧
    singletMatrix^(2*k) = (-1:ℂ)^k • (1 : Op (Fin 2)) ∧
    bilinearVectorize (networkChain (2*k+1) (fun _ => singletMatrix)) =
      bilinearVectorize ((-1:ℂ)^k • singletMatrix) ∧
    (networkChain (2*k+2) (fun _ => singletMatrix)).trace = 2*(-1:ℂ)^(k+1) ∧
    (∀ (extra : ℕ), extra ≤ 2 → ∀ reverse : Fin (k+1) → Bool,
      networkChain (2*k+extra) (reversedKetFactors k extra singletMatrix reverse) =
        (-1:ℂ)^(reversalCount k extra reverse) • networkChain (2*k+extra) (fun _ => singletMatrix)) := by sorry

end QAlgorithms.Papers.Independent.Gap48.P23

end
Source
Quantum majority vote, arXiv:2211.11729v1, PDF p. 48, Corollary A.4.
Read-back

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

For every natural number kkk, put J=(01−10)J=\begin{pmatrix}0&1\\-1&0\end{pmatrix}J=(0−1​10​), write v(X)(a,b)=Xabv(X)_{(a,b)}=X_{ab}v(X)(a,b)​=Xab​, and define

CL(M)ab=∑z:{0,…,L}→{0,1}z0=a, zL=b∏j=0L−1(Mj)zjzj+1.\mathcal C_L(M)_{ab} =\sum_{\substack{z:\{0,\ldots,L\}\to\{0,1\}\\z_0=a,\ z_L=b}} \prod_{j=0}^{L-1}(M_j)_{z_jz_{j+1}}.CL​(M)ab​=z:{0,…,L}→{0,1}z0​=a, zL​=b​∑​j=0∏L−1​(Mj​)zj​zj+1​​.

Writing CL(J)\mathcal C_L(J)CL​(J) for the constant family with every factor equal to JJJ, the assertions are

C2k(J)=J2k,J2k=(−1)kI2,v(C2k+1(J))=v((−1)kJ),tr⁡(C2k+2(J))=2(−1)k+1.\mathcal C_{2k}(J)=J^{2k},\qquad J^{2k}=(-1)^kI_2,\qquad v(\mathcal C_{2k+1}(J))=v((-1)^kJ),\qquad \operatorname{tr}(\mathcal C_{2k+2}(J))=2(-1)^{k+1}.C2k​(J)=J2k,J2k=(−1)kI2​,v(C2k+1​(J))=v((−1)kJ),tr(C2k+2​(J))=2(−1)k+1.

Moreover, for every natural number e≤2e\le2e≤2 and every Boolean function rrr on {0,…,k}\{0,\ldots,k\}{0,…,k}, set L=2k+eL=2k+eL=2k+e, let Fj=JTF_j=J^{\mathsf T}Fj​=JT when jjj is even and r(j/2)=truer(j/2)=\mathrm{true}r(j/2)=true, and let Fj=JF_j=JFj​=J otherwise; if RRR counts those even indices with true flag, then CL(F)=(−1)RCL(J)\mathcal C_L(F)=(-1)^R\mathcal C_L(J)CL​(F)=(−1)RCL​(J). All assertions include k=0k=0k=0; in particular, the length-zero chain is I2I_2I2​ and its reversal count is zero.

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

    Confirmed by the moderator at approval.

  • Endorsed by Goku · Oct 22, 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