Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Central orthogonal basis, spectral expansion, and locality orthogonality

Open
QAlgorithms.Papers.Independent.Advance50.P49.central_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.

The physical operators ClC_lCl​, 0≤l≤2⌊n/2⌋0\le l\le2\lfloor n/2\rfloor0≤l≤2⌊n/2⌋, form a complex basis of the simultaneous rotation and permutation commutant. They are Hermitian, belong to the span of lll-supported terms, and have Tr⁡(Cl2)>0\operatorname{Tr}(C_l^2)>0Tr(Cl2​)>0. Moreover,

Cl=∑jcl(j)Πj,Tr⁡(ClCs)=∑jTr⁡(Πj)cl(j)cs(j)=δlsTr⁡(Cl2),C_l=\sum_jc_l(j)\Pi_j,\qquad \operatorname{Tr}(C_lC_s)=\sum_j\operatorname{Tr}(\Pi_j)c_l(j)c_s(j)=\delta_{ls}\operatorname{Tr}(C_l^2),Cl​=j∑​cl​(j)Πj​,Tr(Cl​Cs​)=j∑​Tr(Πj​)cl​(j)cs​(j)=δls​Tr(Cl2​), Πj=∑lTr⁡(ΠjCl)Tr⁡(Cl2)Cl.\Pi_j=\sum_l\frac{\operatorname{Tr}(\Pi_j C_l)}{\operatorname{Tr}(C_l^2)}C_l.Πj​=l∑​Tr(Cl2​)Tr(Πj​Cl​)​Cl​.

Every sector has positive trace. If AAA is supported on fewer than lll wires, Tr⁡(ACl)=0\operatorname{Tr}(AC_l)=0Tr(ACl​)=0. For Qs=R12⋯Rs−1,sQ_s=R_{12}\cdots R_{s-1,s}Qs​=R12​⋯Rs−1,s​, including Q0=IQ_0=IQ0​=I,

Tr⁡(QsCl)=δsl(n−s)!(s/2)!n!Tr⁡(Cl2).\operatorname{Tr}(Q_sC_l)=\delta_{sl}\frac{(n-s)!(s/2)!}{n!}\operatorname{Tr}(C_l^2).Tr(Qs​Cl​)=δsl​n!(n−s)!(s/2)!​Tr(Cl2​).

These identities identify the actual central basis and its dual expansion.

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.2,10–12, B3–B6/B25–B27: physical orthogonal central basis,
nonzero norms, spectral expansion and orthogonality to lower support. -/
theorem central_basis (n : ℕ) :
    central n 0 = 1 ∧
    LinearIndependent ℂ (fun r : Spin n => central n (2*r.val)) ∧
    ((Submodule.span ℂ (Set.range fun r : Spin n => central n (2*r.val)) : Set (Op n)) =
      {A | RotationInvariant A ∧ ∀ p : Equiv.Perm (Fin n), A * wirePermutation p = wirePermutation p * A}) ∧
    (∀ l : ℕ, ValidBody n l →
      (central n l).IsHermitian ∧ 0 < (Matrix.trace (central n l ^ 2)).re ∧
      central n l ∈ localSum n l ∧
      central n l = ∑ j : Spin n, (centralEigenvalue n l j : ℂ) • spinProjector n j ∧
      ∀ (A : Op n) (s : Finset (Fin n)), WireSupported s A → s.card < l →
        Matrix.trace (A * central n l) = 0) ∧
    (∀ l s : ℕ, ValidBody n l → ValidBody n s →
      Matrix.trace (central n l * central n s) =
        ∑ j : Spin n, Matrix.trace (spinProjector n j) *
          (centralEigenvalue n l j : ℂ) * (centralEigenvalue n s j : ℂ) ∧
      Matrix.trace (central n l * central n s) =
        if l = s then Matrix.trace (central n l ^ 2) else 0) ∧
    (∀ j : Spin n, 0 < (Matrix.trace (spinProjector n j)).re ∧
      spinProjector n j = ∑ r : Spin n,
        (Matrix.trace (spinProjector n j * central n (2*r.val)) /
          Matrix.trace (central n (2*r.val) ^ 2)) • central n (2*r.val)) ∧
    (∀ s l : ℕ, ValidBody n s → ValidBody n l →
      Matrix.trace (standardQ n s * central n l) =
        if s = l then ((Nat.factorial (n-s) : ℂ) * (Nat.factorial (s/2) : ℂ) /
          (Nat.factorial n : ℂ)) * Matrix.trace (central n l ^ 2) else 0) := 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. 10, Central orthogonal basis, spectral expansion, and locality orthogonality
Read-back

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

For every natural number nnn, consider matrices on {0,1}n\{0,1\}^n{0,1}n; using the usual Pauli matrices, let A(q)A^{(q)}A(q) act as AAA on wire qqq and as the identity on the other wires, and set Rab=12(X(a)X(b)+Y(a)Y(b)+Z(a)Z(b))R_{ab}=\tfrac12(X^{(a)}X^{(b)}+Y^{(a)}Y^{(b)}+Z^{(a)}Z^{(b)})Rab​=21​(X(a)X(b)+Y(a)Y(b)+Z(a)Z(b)). For even lll, define Cl=1(l/2)!∑w∏r=0l/2−1Rw(2r),w(2r+1)C_l=\frac1{(l/2)!}\sum_w\prod_{r=0}^{l/2-1}R_{w(2r),w(2r+1)}Cl​=(l/2)!1​∑w​∏r=0l/2−1​Rw(2r),w(2r+1)​, where w:{0,…,l−1}↪{0,…,n−1}w:\{0,\ldots,l-1\}\hookrightarrow\{0,\ldots,n-1\}w:{0,…,l−1}↪{0,…,n−1} is injective and the product is ordered by increasing rrr; define Cl=0C_l=0Cl​=0 for odd lll. Put C=∑ν=X,Y,Z(12∑qν(q))2\mathcal C=\sum_{\nu=X,Y,Z}(\tfrac12\sum_q\nu^{(q)})^2C=∑ν=X,Y,Z​(21​∑q​ν(q))2, sj=n/2−js_j=n/2-jsj​=n/2−j, and Πj=∏r≠jC−sr(sr+1)Isj(sj+1)−sr(sr+1)\Pi_j=\prod_{r\ne j}\frac{\mathcal C-s_r(s_r+1)I}{s_j(s_j+1)-s_r(s_r+1)}Πj​=∏r=j​sj​(sj​+1)−sr​(sr​+1)C−sr​(sr​+1)I​, for j,r∈{0,…,⌊n/2⌋}j,r\in\{0,\ldots,\lfloor n/2\rfloor\}j,r∈{0,…,⌊n/2⌋}, with increasing product order, and define λl,j=Re⁡(tr⁡(ClΠj)/tr⁡Πj)\lambda_{l,j}=\operatorname{Re}\bigl(\operatorname{tr}(C_l\Pi_j)/\operatorname{tr}\Pi_j\bigr)λl,j​=Re(tr(Cl​Πj​)/trΠj​). A matrix is rotation invariant here precisely when it commutes with every U⊗nU^{\otimes n}U⊗n for every 2×22\times22×2 unitary UUU; for a permutation ppp of the wires, let (Pp)x,y=1xq=yp−1(q) for all q(P_p)_{x,y}=\mathbf1_{x_q=y_{p^{-1}(q)}\text{ for all }q}(Pp​)x,y​=1xq​=yp−1(q)​ for all q​. Let Sl\mathcal S_lSl​ be the complex span of matrices AAA admitting a wire set SSS of cardinality at most lll with W(S,A)\mathcal W(S,A)W(S,A), where W\mathcal WW is the predicate WireSupported, whose definition is not supplied. Finally, let Qs=∏r=0⌊s/2⌋−1R2r,2r+1Q_s=\prod_{r=0}^{\lfloor s/2\rfloor-1}R_{2r,2r+1}Qs​=∏r=0⌊s/2⌋−1​R2r,2r+1​ if s≤ns\le ns≤n, and Qs=0Q_s=0Qs​=0 otherwise. The declaration asserts that C0=IC_0=IC0​=I; the family (C2r)r=0⌊n/2⌋(C_{2r})_{r=0}^{\lfloor n/2\rfloor}(C2r​)r=0⌊n/2⌋​ is complex-linearly independent; its complex span is exactly the matrices that are rotation invariant and commute with every PpP_pPp​; and, for every even l≤2⌊n/2⌋l\le2\lfloor n/2\rfloorl≤2⌊n/2⌋, ClC_lCl​ is Hermitian, Re⁡tr⁡(Cl2)>0\operatorname{Re}\operatorname{tr}(C_l^2)>0Retr(Cl2​)>0, Cl∈SlC_l\in\mathcal S_lCl​∈Sl​, Cl=∑jλl,jΠjC_l=\sum_j\lambda_{l,j}\Pi_jCl​=∑j​λl,j​Πj​, and tr⁡(ACl)=0\operatorname{tr}(AC_l)=0tr(ACl​)=0 whenever W(S,A)\mathcal W(S,A)W(S,A) and ∣S∣<l|S|<l∣S∣<l. It further asserts, for all even l,s≤2⌊n/2⌋l,s\le2\lfloor n/2\rfloorl,s≤2⌊n/2⌋,

tr⁡(ClCs)=∑jtr⁡(Πj)λl,jλs,j={tr⁡(Cl2),l=s,0,l≠s,tr⁡(QsCl)={(n−s)!(s/2)!n!tr⁡(Cl2),s=l,0,s≠l,\operatorname{tr}(C_lC_s) =\sum_j\operatorname{tr}(\Pi_j)\lambda_{l,j}\lambda_{s,j} =\begin{cases}\operatorname{tr}(C_l^2),&l=s,\\0,&l\ne s,\end{cases} \qquad \operatorname{tr}(Q_sC_l) =\begin{cases} \dfrac{(n-s)!(s/2)!}{n!}\operatorname{tr}(C_l^2),&s=l,\\ 0,&s\ne l, \end{cases}tr(Cl​Cs​)=j∑​tr(Πj​)λl,j​λs,j​={tr(Cl2​),0,​l=s,l=s,​tr(Qs​Cl​)=⎩⎨⎧​n!(n−s)!(s/2)!​tr(Cl2​),0,​s=l,s=l,​

and, for every jjj, Re⁡tr⁡Πj>0\operatorname{Re}\operatorname{tr}\Pi_j>0RetrΠj​>0 and

Πj=∑r=0⌊n/2⌋tr⁡(ΠjC2r)tr⁡(C2r2) C2r.\Pi_j=\sum_{r=0}^{\lfloor n/2\rfloor} \frac{\operatorname{tr}(\Pi_jC_{2r})}{\operatorname{tr}(C_{2r}^2)}\,C_{2r}.Πj​=r=0∑⌊n/2⌋​tr(C2r2​)tr(Πj​C2r​)​C2r​.

All trace identities are complex equalities; n=0n=0n=0 is included, and empty products equal the identity.

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