Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 5: diagonal sector-traceless operators

Open
QAlgorithms.Papers.Independent.Extend50.P14.diagonal_traceless_generation

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

prove2quantum

For n≥2 the diagonal skew-Hermitian matrices with zero trace in every Hamming-weight sector are exactly the matrices

A=i∑b∈{0,1}nabZb,ab∈R,∑w(b)=lab=0(0≤l≤n).A=i\sum_{b\in\{0,1\}^n}a_b Z^b,\qquad a_b\in\mathbb R,\qquad\sum_{w(b)=l}a_b=0\quad(0\le l\le n).A=ib∈{0,1}n∑​ab​Zb,ab​∈R,w(b)=l∑​ab​=0(0≤l≤n).

This common set is contained in the real Lie algebra generated by iR_{rs} and iZ_r. The constraints at l=0 and l=n are included.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Extend50_P14
Formal statement
noncomputable section

namespace QAlgorithms.Papers.Independent.Extend50.P14

open scoped Classical Matrix ComplexConjugate Matrix.Norms.Frobenius

open MeasureTheory

-- Exact accepted aliases and physical operators, without local redeclarations.

open QAlgorithms.Papers.Independent.Information100.P60 (Mat)

open QAlgorithms.Papers.Independent.Advance50.P49 (onWire multiSwap)

attribute [local instance 100] LieRing.ofAssociativeRing

/-- PDF p.26, Lemma 5/C24: equality of the two diagonal sets, followed by
inclusion in the exchange/Z algebra; all weights, including 0 and n, are constrained. -/
theorem diagonal_traceless_generation (n : ℕ) (hn : 2 ≤ n) :
    {A : QMat n | A + Aᴴ = 0 ∧ Matrix.IsDiag A ∧
      ∀ m : Fin (n+1), Matrix.trace (A * chargeSector n m.val) = 0} =
    {A : QMat n | ∃ a : Qubits n → ℝ,
      A = Complex.I • ∑ b : Qubits n, (a b : ℂ) • zString b ∧
      ∀ l : Fin (n+1), ∑ b ∈ Finset.univ.filter (fun b => qubitWeight b = l.val), a b = 0} ∧
    {A : QMat n | A + Aᴴ = 0 ∧ Matrix.IsDiag A ∧
      ∀ m : Fin (n+1), Matrix.trace (A * chargeSector n m.val) = 0} ⊆
      (xyZLie n : Set (QMat n)) := by sorry

end QAlgorithms.Papers.Independent.Extend50.P14

end
Source
Restrictions on realizable unitary operations imposed by symmetry and locality, arXiv:2003.05524v3, PDF p. 26, Lemma 5: diagonal sector-traceless operators and their generation
Read-back

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

For every natural number n≥2n\ge2n≥2, consider matrices indexed by nnn-bit strings, write ∣x∣|x|∣x∣ for the number of ones in xxx, and define Pm=diag⁡x1{∣x∣=m}P_m=\operatorname{diag}_x\mathbf1_{\{|x|=m\}}Pm​=diagx​1{∣x∣=m}​ and Zb=diag⁡x(−1)∑jbjxjZ_b=\operatorname{diag}_x(-1)^{\sum_jb_jx_j}Zb​=diagx​(−1)∑j​bj​xj​. Let

Dn={A:A+A†=0, A is diagonal, tr⁡(APm)=0 for every m=0,…,n}.\mathcal D_n=\{A:A+A^\dagger=0,\ A\text{ is diagonal},\ \operatorname{tr}(AP_m)=0\text{ for every }m=0,\ldots,n\}.Dn​={A:A+A†=0, A is diagonal, tr(APm​)=0 for every m=0,…,n}.

Then

Dn={A:∃a:{0,1}n→R, A=i∑b∈{0,1}na(b)Zb, ∑∣b∣=la(b)=0 for every l=0,…,n},\mathcal D_n= \left\{A:\exists a:\{0,1\}^n\to\mathbb R,\ A=i\sum_{b\in\{0,1\}^n}a(b)Z_b,\ \sum_{|b|=l}a(b)=0\text{ for every }l=0,\ldots,n\right\},Dn​=⎩⎨⎧​A:∃a:{0,1}n→R, A=ib∈{0,1}n∑​a(b)Zb​, ∣b∣=l∑​a(b)=0 for every l=0,…,n⎭⎬⎫​,

and Dn\mathcal D_nDn​ is contained in the smallest real Lie algebra generated by iZiZiZ on each individual site and by i2(XaXb+YaYb)\tfrac i2(X_aX_b+Y_aY_b)2i​(Xa​Xb​+Ya​Yb​) on every pair of distinct sites, with identities elsewhere. Here the Lie bracket is AB−BAAB-BAAB−BA, and the single-site matrices are

X=(0110),Y=(0−ii0),Z=(100−1).X=\begin{pmatrix}0&1\\1&0\end{pmatrix},\quad Y=\begin{pmatrix}0&-i\\i&0\end{pmatrix},\quad Z=\begin{pmatrix}1&0\\0&-1\end{pmatrix}.X=(01​10​),Y=(0i​−i0​),Z=(10​0−1​).

The trace conditions are complex equalities, and both the zero-weight and the weight-nnn coefficient sums are included.

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

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 30, 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