Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Dimension of V_k and v_k, Eq.(6), Appendix D

Open
QAlgorithms.Papers.Independent.Advance50.P49.locality_dimension

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.

For 2≤k≤n2\le k\le n2≤k≤n, let dk=dim⁡Rvkd_k=\dim_{\mathbb R}\mathfrak v_kdk​=dimR​vk​, equivalently the dimension of the connected Lie group Vk\mathcal V_kVk​. Then

dk+⌊n/2⌋=(2nn)n+1+⌊k/2⌋,dim⁡Z(vk)=⌊k/2⌋+1.d_k+\lfloor n/2\rfloor=\frac{\binom{2n}{n}}{n+1}+\lfloor k/2\rfloor,\qquad \dim Z(\mathfrak v_k)=\lfloor k/2\rfloor+1.dk​+⌊n/2⌋=n+1(n2n​)​+⌊k/2⌋,dimZ(vk​)=⌊k/2⌋+1.

Also vk=svn⊕Z(vk)\mathfrak v_k=\mathfrak{sv}_n\oplus Z(\mathfrak v_k)vk​=svn​⊕Z(vk​), with trivial intersection, and dn=∑jm(n,j)2d_n=\sum_jm(n,j)^2dn​=∑j​m(n,j)2, (n+1)dn=(2nn)(n+1)d_n=\binom{2n}{n}(n+1)dn​=(n2n​). Hence Vk=Vn\mathcal V_k=\mathcal V_nVk​=Vn​ exactly when ⌊k/2⌋=⌊n/2⌋\lfloor k/2\rfloor=\lfloor n/2\rfloor⌊k/2⌋=⌊n/2⌋. The subgroup Vk\mathcal V_kVk​ is closed; every invariant unitary outside it has an open neighborhood disjoint from it. The additive dimension equation avoids truncated natural subtraction.

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.3,20–21, Eq.6 and Appendix D: the real Lie dimension (hence the
connected Lie-group dimension), direct sum, and exact universality threshold. -/
theorem locality_dimension (n k : ℕ) (hlo : 2 ≤ k) (hhi : k ≤ n) :
    (Module.finrank ℝ (localLie n k) : ℤ) + (n/2 : ℕ) =
      (Nat.choose (2*n) n : ℤ)/(n+1 : ℕ) + (k/2 : ℕ) ∧
    Module.finrank ℝ (centralSpace n k) = k/2+1 ∧
    Module.finrank ℝ (localLie n n) =
      ∑ j : Spin n, spinMultiplicity n (n-2*j.val)^2 ∧
    Module.finrank ℝ (localLie n n) * (n+1) = Nat.choose (2*n) n ∧
    (localLie n k).toSubmodule = specialLie n n ⊔ centralSpace n k ∧
    Disjoint (specialLie n n) (centralSpace n k) ∧
    ((∀ V : Op n, SymUnitary V → V ∈ localGroup n k) ↔ k/2=n/2) ∧
    IsClosed (localGroup n k : Set (Op n)) ∧
    (∀ V : Op n, SymUnitary V → V ∉ localGroup n k →
      ∃ s : Set (Op n), IsOpen s ∧ V ∈ s ∧ Disjoint s (localGroup n k : Set (Op n))) := 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. 3, Dimension of V_k and v_k, Eq.(6), Appendix D
Read-back

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

For natural numbers n,kn,kn,k with 2≤k≤n2\le k\le n2≤k≤n, let rotation invariance mean commutation with every U⊗nU^{\otimes n}U⊗n, for every 2×22\times22×2 unitary UUU. Let Ln,k\mathfrak L_{n,k}Ln,k​ be the real Lie subalgebra generated by skew-Hermitian rotation-invariant matrices AAA admitting a wire set SSS of cardinality at most kkk with W(S,A)\mathcal W(S,A)W(S,A), and let Gn,kG_{n,k}Gn,k​ be the multiplicative submonoid generated by unitary rotation-invariant matrices admitting such a set; W\mathcal WW denotes WireSupported, whose definition is not supplied. Using the usual single-wire Pauli operators, define 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)), 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)​ for even lll, with www ranging over injections of lll wires into nnn, and put Zn,k=span⁡R{iC2r:0≤r≤⌊k/2⌋}\mathfrak Z_{n,k}=\operatorname{span}_{\mathbb R}\{iC_{2r}:0\le r\le\lfloor k/2\rfloor\}Zn,k​=spanR​{iC2r​:0≤r≤⌊k/2⌋}. Set 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, Π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​, and Sn,n=span⁡R{A∈Ln,n:tr⁡(AΠj)=0 for all j}\mathfrak S_{n,n}=\operatorname{span}_{\mathbb R}\{A\in\mathfrak L_{n,n}:\operatorname{tr}(A\Pi_j)=0\text{ for all }j\}Sn,n​=spanR​{A∈Ln,n​:tr(AΠj​)=0 for all j}, where 0≤j,r≤⌊n/2⌋0\le j,r\le\lfloor n/2\rfloor0≤j,r≤⌊n/2⌋. Define M(N,d)M(N,d)M(N,d) to be zero unless d≤Nd\le Nd≤N and N−dN-dN−d is even, and otherwise to be the natural-number quotient (N(N−d)/2)(d+1)/(⌊(N+d)/2⌋+1)\binom N{(N-d)/2}(d+1)/(\lfloor(N+d)/2\rfloor+1)((N−d)/2N​)(d+1)/(⌊(N+d)/2⌋+1), with all natural subtractions truncated at zero. Then

dim⁡RLn,k+⌊n/2⌋=⌊(2nn)n+1⌋+⌊k/2⌋,dim⁡RZn,k=⌊k/2⌋+1,dim⁡RLn,n=∑j=0⌊n/2⌋M(n,n−2j)2,(dim⁡RLn,n)(n+1)=(2nn),Ln,k=Sn,n+Zn,k,Sn,n∩Zn,k={0}.\begin{gathered} \dim_{\mathbb R}\mathfrak L_{n,k}+\lfloor n/2\rfloor =\left\lfloor\frac{\binom{2n}{n}}{n+1}\right\rfloor+\lfloor k/2\rfloor,\qquad \dim_{\mathbb R}\mathfrak Z_{n,k}=\lfloor k/2\rfloor+1,\\ \dim_{\mathbb R}\mathfrak L_{n,n} =\sum_{j=0}^{\lfloor n/2\rfloor}M(n,n-2j)^2,\qquad (\dim_{\mathbb R}\mathfrak L_{n,n})(n+1)=\binom{2n}{n},\\ \mathfrak L_{n,k}=\mathfrak S_{n,n}+\mathfrak Z_{n,k}, \qquad \mathfrak S_{n,n}\cap\mathfrak Z_{n,k}=\{0\}. \end{gathered}dimR​Ln,k​+⌊n/2⌋=⌊n+1(n2n​)​⌋+⌊k/2⌋,dimR​Zn,k​=⌊k/2⌋+1,dimR​Ln,n​=j=0∑⌊n/2⌋​M(n,n−2j)2,(dimR​Ln,n​)(n+1)=(n2n​),Ln,k​=Sn,n​+Zn,k​,Sn,n​∩Zn,k​={0}.​

The first equality is an equality of integers with integer division on its right. Moreover, every unitary rotation-invariant matrix belongs to Gn,kG_{n,k}Gn,k​ if and only if ⌊k/2⌋=⌊n/2⌋\lfloor k/2\rfloor=\lfloor n/2\rfloor⌊k/2⌋=⌊n/2⌋; Gn,kG_{n,k}Gn,k​ is closed in the matrix topology; and every unitary rotation-invariant V∉Gn,kV\notin G_{n,k}V∈/Gn,k​ has an open neighborhood disjoint from Gn,kG_{n,k}Gn,k​. The hypotheses exclude n<2n<2n<2.

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