Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Eq.(33): local quadratic symmetry algebra

Open
QAlgorithms.Papers.Independent.Advance50.P50.local_quadratic_commutant

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

prove2quantum

Let L=⨂j=1nU(2)L=\bigotimes_{j=1}^n U(2)L=⨂j=1n​U(2) denote the represented local unitary group. Fix n≥0n\ge0n≥0, and let SQS_QSQ​ swap the two copies at precisely the sites in Q⊆S={1,…,n}Q\subseteq S=\{1,\ldots,n\}Q⊆S={1,…,n}. Then

C(2)(L)=span⁡C{SQ:Q⊆S}.C^{(2)}(L)=\operatorname{span}_{\mathbb C}\{S_Q:Q\subseteq S\}.C(2)(L)=spanC​{SQ​:Q⊆S}.

Copy-major indices are explicitly transposed into paired-site indices in each generator. This identifies the physical quadratic symmetry algebra and includes the identity at Q=∅Q=\varnothingQ=∅.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Advance50_P50
Formal statement
noncomputable section

namespace QAlgorithms.Papers.Independent.Advance50.P50

open MeasureTheory ProbabilityTheory

open scoped ComplexConjugate ENNReal

-- Exact accepted primitives; no paper-local redeclarations.

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

open QAlgorithms.Papers.Independent.Gap48.P20 (Copies)

open QAlgorithms.Papers.Independent.Gap48.P38 (subsystemReduction)

open QAlgorithms.Papers.Independent.Information100.P32 (purity)

open QAlgorithms.Papers.Independent.Information100.P08 (IsPure)

-- Matrices carry the associative commutator bracket X*Y-Y*X.

attribute [local instance 100] LieRing.ofAssociativeRing

/-- PDF p.13, Eq.(33): the complex quadratic tensorCommutant is spanned by the
2^n physical products of site swaps and site identities. -/
theorem local_quadratic_commutant (n : ℕ) :
    tensorCommutant 2 (localUnitaryMatrices n) =
      (Submodule.span ℂ (Set.range (fun Q : Finset (Fin n) => subsystemSwap Q)) :
        Set (Mat (Copies (Qubits n) 2))) := by sorry

end QAlgorithms.Papers.Independent.Advance50.P50

end
Source
Group-Invariant Quantum Machine Learning, arXiv:2205.02261v2, PDF p. 13, Eq.(33): local quadratic symmetry algebra
Read-back

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

For every integer n≥0n\ge0n≥0, consider matrices on two copies of the nnn-qubit space. The set of matrices commuting with V⊗VV\otimes VV⊗V for every matrix VVV of the form Vx,y=∏j<n(uj)xj,yjV_{x,y}=\prod_{j<n}(u_j)_{x_j,y_j}Vx,y​=∏j<n​(uj​)xj​,yj​​, where each uju_juj​ is an arbitrary single-qubit unitary, is exactly

span⁡C{SQ:Q⊆{0,…,n−1}}.\operatorname{span}_{\mathbb C}\{S_Q:Q\subseteq\{0,\ldots,n-1\}\}.spanC​{SQ​:Q⊆{0,…,n−1}}.

Here SQS_QSQ​ exchanges the two copies’ bits at each site in QQQ and leaves all other bits unchanged: its (y,x)(y,x)(y,x)-entry is 111 precisely when y0,j=x1,jy_{0,j}=x_{1,j}y0,j​=x1,j​ and y1,j=x0,jy_{1,j}=x_{0,j}y1,j​=x0,j​ for j∈Qj\in Qj∈Q, and yc,j=xc,jy_{c,j}=x_{c,j}yc,j​=xc,j​ for j∉Qj\notin Qj∈/Q, and is 000 otherwise. The empty subset is included and gives the identity. When n=0n=0n=0, the underlying space is one dimensional and the displayed span consists of all its matrices.

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