Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

New permutation-sum basis B_m, Eqs.(H5)–(H11)

Open
QAlgorithms.Papers.Independent.Advance50.P49.permutation_sum_basis

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

prove2quantum

Use the physical register Hn=(C2)⊗n\mathcal H_n=(\mathbb C^2)^{\otimes n}Hn​=(C2)⊗n. Rotational invariance means commuting with U⊗nU^{\otimes n}U⊗n for every one-qubit unitary UUU. The legal spins are j=n/2−rj=n/2-rj=n/2−r, r=0,…,⌊n/2⌋r=0,\ldots,\lfloor n/2\rfloorr=0,…,⌊n/2⌋, and Πj\Pi_jΠj​ is the actual spectral projector of J2J^2J2 at j(j+1)j(j+1)j(j+1). Write Rab=(XaXb+YaYb+ZaZb)/2R_{ab}=(X_aX_b+Y_aY_b+Z_aZ_b)/2Rab​=(Xa​Xb​+Ya​Yb​+Za​Zb​)/2 and Vk,vk\mathcal V_k,\mathfrak v_kVk​,vk​ for the group of finite compositions of kkk-local invariant gates and its generated real Lie algebra, including scalar phases. Exchange-only circuits contain finite products of e−itRabe^{-itR_{ab}}e−itRab​ with real ttt. Set C0=IC_0=IC0​=I and, for even l>0l>0l>0, Cl=(l/2)!−1∑i1,…,il distinctRi1i2⋯Ril−1ilC_l=(l/2)!^{-1}\sum_{i_1,\ldots,i_l\ \mathrm{distinct}}R_{i_1i_2}\cdots R_{i_{l-1}i_l}Cl​=(l/2)!−1∑i1​,…,il​ distinct​Ri1​i2​​⋯Ril−1​il​​. Extend Cl=0C_l=0Cl​=0 above 2⌊n/2⌋2\lfloor n/2\rfloor2⌊n/2⌋. Its sector eigenvalue is cl(j)=Tr⁡(ClΠj)/Tr⁡(Πj)c_l(j)=\operatorname{Tr}(C_l\Pi_j)/\operatorname{Tr}(\Pi_j)cl​(j)=Tr(Cl​Πj​)/Tr(Πj​). All body-index sums below are over even indices.

Set B0=IB_0=IB0​=I and for physical even m>0m>0m>0 let Bm=(m/2)!−1∑i1,…,im distinctPi1i2⋯Pim−1imB_m=(m/2)!^{-1}\sum_{i_1,\ldots,i_m\ \mathrm{distinct}}P_{i_1i_2}\cdots P_{i_{m-1}i_m}Bm​=(m/2)!−1∑i1​,…,im​ distinct​Pi1​i2​​⋯Pim−1​im​​. Then the BmB_mBm​ form another basis of the same complex central space, with

Bm=∑l=0m2(l−m)/2(n−l)!(n−m)!((m−l)/2)!Cl=∑jbm(j)Πj,B_m=\sum_{l=0}^{m}2^{(l-m)/2}\frac{(n-l)!}{(n-m)!((m-l)/2)!}C_l=\sum_jb_m(j)\Pi_j,Bm​=l=0∑m​2(l−m)/2(n−m)!((m−l)/2)!(n−l)!​Cl​=j∑​bm​(j)Πj​,

where bm(j)b_m(j)bm​(j) is the same linear combination of the cl(j)c_l(j)cl​(j). Terms with l>ml>ml>m are absent. The identity convention supplies the dimension omitted by the paragraph that introduces only m≥2m\ge2m≥2.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Advance50_P49
Formal statement
noncomputable section

namespace QAlgorithms.Papers.Independent.Advance50.P49

open scoped Classical Matrix ComplexConjugate Matrix.Norms.Frobenius

open MeasureTheory

attribute [local instance 100] LieRing.ofAssociativeRing

-- Specialize the frozen generic aliases without declaring new aliases.

local notation "Op" => (fun n : ℕ => QAlgorithms.Papers.Independent.Information100.P21.Op (Qubits n))

local notation "Vec" => (fun n : ℕ => QAlgorithms.Papers.Independent.Information100.P21.Vec (Qubits n))

-- The frozen support predicate takes the support before the operator.

local notation "WireSupported" => QAlgorithms.Papers.Independent.Information100.P69.Supported

/-- PDF pp.29–30, H5–H11: permutation-sum basis, including the missing identity
B_0 supplied by the empty-product convention. -/
theorem permutation_sum_basis (n : ℕ) :
    swapSum n 0 = 1 ∧
    LinearIndependent ℂ (fun r : Spin n => swapSum n (2*r.val)) ∧
    Submodule.span ℂ (Set.range fun r : Spin n => swapSum n (2*r.val)) =
      Submodule.span ℂ (Set.range fun r : Spin n => central n (2*r.val)) ∧
    ∀ m : ℕ, ValidBody n m →
      swapSum n m = ∑ r : Fin (m/2+1),
        (permutationSumCoefficient n m (2*r.val) : ℂ) • central n (2*r.val) ∧
      swapSum n m = ∑ j : Spin n,
        ((∑ r : Fin (m/2+1), permutationSumCoefficient n m (2*r.val)*centralEigenvalue n (2*r.val) j) : ℂ) •
          spinProjector n j := by sorry

end QAlgorithms.Papers.Independent.Advance50.P49

end
Source
Rotationally-Invariant Circuits: Universality with the exchange interaction and two ancilla qubits, arXiv:2202.01963v1, PDF p. 29, New permutation-sum basis B_m, Eqs.(H5)–(H11)
Read-back

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

For every natural number nnn, including 000, work on Hn=C{0,1}n\mathcal H_n=\mathbb C^{\{0,1\}^n}Hn​=C{0,1}n. Let SabS_{ab}Sab​ swap wires a,ba,ba,b, so its xyxyxy-entry is 111 exactly when xq=yπ−1(q)x_q=y_{\pi^{-1}(q)}xq​=yπ−1(q)​ for all qqq, with π\piπ that transposition, and zero otherwise. For even mmm, define An,m=1(m/2)!∑ι:{0,…,m−1}↪{0,…,n−1}∏q=0m/2−1Sι(2q),ι(2q+1)A_{n,m}=\frac1{(m/2)!}\sum_{\iota:\{0,\ldots,m-1\}\hookrightarrow\{0,\ldots,n-1\}}\prod_{q=0}^{m/2-1}S_{\iota(2q),\iota(2q+1)}An,m​=(m/2)!1​∑ι:{0,…,m−1}↪{0,…,n−1}​∏q=0m/2−1​Sι(2q),ι(2q+1)​, with products ordered by increasing qqq, and set An,m=0A_{n,m}=0An,m​=0 for odd mmm. Using standard Pauli matrices on individual wires, put Eab=12∑α=X,Y,Zσα(a)σα(b)E_{ab}=\frac12\sum_{\alpha=X,Y,Z}\sigma_\alpha^{(a)}\sigma_\alpha^{(b)}Eab​=21​∑α=X,Y,Z​σα(a)​σα(b)​, and define Cn,mC_{n,m}Cn,m​ by the same injection sum with each swap replaced by EabE_{ab}Eab​, again setting it to zero for odd mmm. Let Sn={0,…,⌊n/2⌋}S_n=\{0,\ldots,\lfloor n/2\rfloor\}Sn​={0,…,⌊n/2⌋}, sj=n/2−js_j=n/2-jsj​=n/2−j, Jα=12∑qσα(q)J_\alpha=\frac12\sum_q\sigma_\alpha^{(q)}Jα​=21​∑q​σα(q)​, Ctot=∑αJα2C_{\mathrm{tot}}=\sum_\alpha J_\alpha^2Ctot​=∑α​Jα2​, and Pj=∏h∈Sn, h≠j(sj(sj+1)−sh(sh+1))−1(Ctot−sh(sh+1)I)P_j=\prod_{h\in S_n,\ h\ne j}(s_j(s_j+1)-s_h(s_h+1))^{-1}(C_{\mathrm{tot}}-s_h(s_h+1)I)Pj​=∏h∈Sn​, h=j​(sj​(sj​+1)−sh​(sh​+1))−1(Ctot​−sh​(sh​+1)I), in increasing hhh. Put cn,ℓ,j=Re⁡(tr⁡(Cn,ℓPj)/tr⁡Pj)c_{n,\ell,j}=\operatorname{Re}\bigl(\operatorname{tr}(C_{n,\ell}P_j)/\operatorname{tr}P_j\bigr)cn,ℓ,j​=Re(tr(Cn,ℓ​Pj​)/trPj​), using total division, and, for the even indices occurring below, put

γn,m,ℓ=2ℓ/2−m/2(n−ℓ)!(n−m)! ((m−ℓ)/2)!,\gamma_{n,m,\ell} =2^{\ell/2-m/2}\frac{(n-\ell)!}{(n-m)!\,((m-\ell)/2)!},γn,m,ℓ​=2ℓ/2−m/2(n−m)!((m−ℓ)/2)!(n−ℓ)!​,

with integer exponent on 222. Then An,0=IA_{n,0}=IAn,0​=I; the family (An,2r)r∈Sn(A_{n,2r})_{r\in S_n}(An,2r​)r∈Sn​​ is linearly independent over C\mathbb CC; its complex linear span equals that of (Cn,2r)r∈Sn(C_{n,2r})_{r\in S_n}(Cn,2r​)r∈Sn​​; and, for every even natural number m≤2⌊n/2⌋m\le2\lfloor n/2\rfloorm≤2⌊n/2⌋,

An,m=∑r=0m/2γn,m,2r Cn,2r=∑j∈Sn(∑r=0m/2γn,m,2r cn,2r,j)Pj.A_{n,m} =\sum_{r=0}^{m/2}\gamma_{n,m,2r}\,C_{n,2r} =\sum_{j\in S_n} \left(\sum_{r=0}^{m/2}\gamma_{n,m,2r}\,c_{n,2r,j}\right)P_j.An,m​=r=0∑m/2​γn,m,2r​Cn,2r​=j∈Sn​∑​​r=0∑m/2​γn,m,2r​cn,2r,j​​Pj​.

Real coefficients in these matrix identities are embedded into C\mathbb CC; empty products are identities, so the definitions also cover n=m=0n=m=0n=m=0.

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