Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Sector average energy and locality, Eq.(7), Appendix E

Open
QAlgorithms.Papers.Independent.Advance50.P49.sector_average_energy

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.

Fix 0≤k≤n0\le k\le n0≤k≤n. For Hermitian HHH, put Ej=Tr⁡(HΠj)/Tr⁡(Πj)E_j=\operatorname{Tr}(H\Pi_j)/\operatorname{Tr}(\Pi_j)Ej​=Tr(HΠj​)/Tr(Πj​) and ql=Tr⁡(HCl)/Tr⁡(Cl2)q_l=\operatorname{Tr}(HC_l)/\operatorname{Tr}(C_l^2)ql​=Tr(HCl​)/Tr(Cl2​). If HHH is a finite sum of terms supported on at most kkk wires, without any symmetry assumption, then

Ej=∑l=02⌊k/2⌋qlcl(j).E_j=\sum_{l=0}^{2\lfloor k/2\rfloor}q_lc_l(j).Ej​=l=0∑2⌊k/2⌋​ql​cl​(j).

Thus EjE_jEj​ is the restriction of a real polynomial of degree at most ⌊k/2⌋\lfloor k/2\rfloor⌊k/2⌋ in j(j+1)j(j+1)j(j+1). For invariant Hermitian HHH and k≥2k\ge2k≥2, reachability of e−itHe^{-itH}e−itH for every real ttt is equivalent to the existence of real coefficients in this expansion; in that case the displayed canonical coefficients work. The sector-energy functions obtained from kkk-local Hermitian sums comprise every function on the legal spins exactly when ⌊k/2⌋=⌊n/2⌋\lfloor k/2\rfloor=\lfloor n/2\rfloor⌊k/2⌋=⌊n/2⌋.

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,22, E3–E6: the first assertion has no symmetry hypothesis.
For invariant Hamiltonians the expansion is equivalent to every-time reachability. -/
theorem sector_average_energy (n k : ℕ) (hk : k ≤ n) :
    (∀ H : Op n, H.IsHermitian → H ∈ localSum n k →
      (∀ j : Spin n, sectorMeanEnergy H j =
        ∑ r : Fin (k/2+1), energyCoeff H (2*r.val)*centralEigenvalue n (2*r.val) j) ∧
      ∃ p : Polynomial ℝ, p.natDegree ≤ k/2 ∧
        ∀ j : Spin n, sectorMeanEnergy H j = p.eval (spin n j*(spin n j+1))) ∧
    (2 ≤ k → ∀ H : Op n, H.IsHermitian → RotationInvariant H →
      ((∀ t : ℝ, evolve H t ∈ localGroup n k) ↔
        ∃ q : Fin (k/2+1) → ℝ, ∀ j : Spin n,
          sectorMeanEnergy H j = ∑ r : Fin (k/2+1), q r * centralEigenvalue n (2*r.val) j) ∧
      ((∀ t : ℝ, evolve H t ∈ localGroup n k) →
        ∀ j : Spin n, sectorMeanEnergy H j =
          ∑ r : Fin (k/2+1), energyCoeff H (2*r.val)*centralEigenvalue n (2*r.val) j)) ∧
    ((∀ f : Spin n → ℝ, ∃ H : Op n, H.IsHermitian ∧ H ∈ localSum n k ∧ sectorMeanEnergy H=f) ↔
      k/2=n/2) := 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, Sector average energy and locality, Eq.(7), Appendix E
Read-back

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

For natural numbers n,kn,kn,k with k≤nk\le nk≤n, use matrices on {0,1}n\{0,1\}^n{0,1}n, and let Sn,k\mathcal S_{n,k}Sn,k​ be the complex span of matrices AAA for which some wire set SSS, ∣S∣≤k|S|\le k∣S∣≤k, satisfies W(S,A)\mathcal W(S,A)W(S,A), where W\mathcal WW is WireSupported, whose definition is not supplied. With 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)) and 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, summing over injections of lll wires into nnn with increasing product order. 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, Π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 define

λl,j=Re⁡tr⁡(ClΠj)tr⁡Πj,el(H)=Re⁡tr⁡(HCl)tr⁡(Cl2),mj(H)=Re⁡tr⁡(HΠj)tr⁡Πj,\lambda_{l,j}=\operatorname{Re}\frac{\operatorname{tr}(C_l\Pi_j)}{\operatorname{tr}\Pi_j}, \qquad e_l(H)=\operatorname{Re}\frac{\operatorname{tr}(HC_l)}{\operatorname{tr}(C_l^2)}, \qquad m_j(H)=\operatorname{Re}\frac{\operatorname{tr}(H\Pi_j)}{\operatorname{tr}\Pi_j},λl,j​=RetrΠj​tr(Cl​Πj​)​,el​(H)=Retr(Cl2​)tr(HCl​)​,mj​(H)=RetrΠj​tr(HΠj​)​,

where j,r∈{0,…,⌊n/2⌋}j,r\in\{0,\ldots,\lfloor n/2\rfloor\}j,r∈{0,…,⌊n/2⌋} and division is the total complex division used in the code, so division by zero yields zero. Let Gn,kG_{n,k}Gn,k​ be the multiplicative submonoid generated by unitary matrices commuting with every U⊗nU^{\otimes n}U⊗n, for every 2×22\times22×2 unitary UUU, and admitting a set SSS as above. First, every Hermitian H∈Sn,kH\in\mathcal S_{n,k}H∈Sn,k​, without any rotation-invariance hypothesis, satisfies mj(H)=∑r=0⌊k/2⌋e2r(H)λ2r,jm_j(H)=\sum_{r=0}^{\lfloor k/2\rfloor}e_{2r}(H)\lambda_{2r,j}mj​(H)=∑r=0⌊k/2⌋​e2r​(H)λ2r,j​ for all jjj, and there exists a real polynomial ppp of natural degree at most ⌊k/2⌋\lfloor k/2\rfloor⌊k/2⌋ with mj(H)=p(sj(sj+1))m_j(H)=p(s_j(s_j+1))mj​(H)=p(sj​(sj​+1)) for all jjj. Second, if k≥2k\ge2k≥2, every Hermitian HHH commuting with every U⊗nU^{\otimes n}U⊗n satisfies

(∀t∈R, e−itH∈Gn,k)  ⟺  (∃q0,…,q⌊k/2⌋∈R, ∀j, mj(H)=∑r=0⌊k/2⌋qrλ2r,j);\left(\forall t\in\mathbb R,\ e^{-itH}\in G_{n,k}\right) \iff \left(\exists q_0,\ldots,q_{\lfloor k/2\rfloor}\in\mathbb R,\ \forall j,\ m_j(H)=\sum_{r=0}^{\lfloor k/2\rfloor}q_r\lambda_{2r,j}\right);(∀t∈R, e−itH∈Gn,k​)⟺​∃q0​,…,q⌊k/2⌋​∈R, ∀j, mj​(H)=r=0∑⌊k/2⌋​qr​λ2r,j​​;

whenever its left side holds, mj(H)=∑re2r(H)λ2r,jm_j(H)=\sum_r e_{2r}(H)\lambda_{2r,j}mj​(H)=∑r​e2r​(H)λ2r,j​ for every jjj. Finally, every real-valued function fff on {0,…,⌊n/2⌋}\{0,\ldots,\lfloor n/2\rfloor\}{0,…,⌊n/2⌋} equals j↦mj(H)j\mapsto m_j(H)j↦mj​(H) for some Hermitian H∈Sn,kH\in\mathcal S_{n,k}H∈Sn,k​ if and only if ⌊k/2⌋=⌊n/2⌋\lfloor k/2\rfloor=\lfloor n/2\rfloor⌊k/2⌋=⌊n/2⌋. The cases n=0n=0n=0 and k=0,1k=0,1k=0,1 are included wherever compatible with the stated hypotheses; the polynomial in the first assertion may be zero, whose natural degree is zero.

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