Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Exact U(1) qubit codimension

Open
QAlgorithms.Papers.Independent.Extend50.P14.u1_codimension

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

prove2quantum

Let 2≤k≤n and let h_k be the real Lie algebra generated by k-local skew-Hermitian operators on n qubits commuting with total Z. The full invariant algebra is h_n. Then

dim⁡Rhn−dim⁡Rhk=n−k.\dim_{\mathbb R}h_n-\dim_{\mathbb R}h_k=n-k.dimR​hn​−dimR​hk​=n−k.

These are also the dimensions of the associated connected matrix groups. The locality range is inherited from Theorem 9.

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.24, C8: the k≥2 range is inherited from Theorem 9. All dimensions
are real; subtraction is in ℤ rather than truncated natural subtraction. -/
theorem u1_codimension (n k : ℕ) (hk : 2 ≤ k) (hkn : k ≤ n) :
    (Module.finrank ℝ (u1Lie n n) : ℤ) - (Module.finrank ℝ (u1Lie n k) : ℤ) =
      (n : ℤ) - (k : ℤ) := 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. 3, II.B / IV.C / Eq.(C8): exact U(1)-qubit codimension
Read-back

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

For natural numbers n,kn,kn,k satisfying 2≤k≤n2\le k\le n2≤k≤n, let Hn=C{0,1}n\mathcal H_n=\mathbb C^{\{0,1\}^n}Hn​=C{0,1}n, let ∣x∣|x|∣x∣ denote the number of ones in a bit string xxx, and set Zn=diag⁡x(n−2∣x∣)Z_n=\operatorname{diag}_x(n-2|x|)Zn​=diagx​(n−2∣x∣). For a natural number qqq, define gn,q\mathfrak g_{n,q}gn,q​ to be the smallest real Lie algebra of matrices on Hn\mathcal H_nHn​ containing every matrix AAA such that A+A†=0A+A^\dagger=0A+A†=0, AAA commutes with eiθZne^{i\theta Z_n}eiθZn​ for every real θ\thetaθ, and AAA acts on at most qqq sites. Here the last condition means that there exist a set s⊆{0,…,n−1}s\subseteq\{0,\ldots,n-1\}s⊆{0,…,n−1} with ∣s∣≤q|s|\le q∣s∣≤q and a matrix BBB on the bit strings indexed by sss such that

Axy=Bx∣s,y∣s∏j∉s1{xj=yj};A_{xy}=B_{x|_s,y|_s}\prod_{j\notin s}\mathbf 1_{\{x_j=y_j\}};Axy​=Bx∣s​,y∣s​​j∈/s∏​1{xj​=yj​}​;

the empty set sss is allowed, and the Lie bracket is AB−BAAB-BAAB−BA. Then the real dimensions satisfy the following equality, with subtraction performed in the integers:

dim⁡Rgn,n−dim⁡Rgn,k=n−k.\dim_{\mathbb R}\mathfrak g_{n,n}-\dim_{\mathbb R}\mathfrak g_{n,k}=n-k.dimR​gn,n​−dimR​gn,k​=n−k.
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