Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

U(1) body-phase laws and calibration

Open
QAlgorithms.Papers.Independent.Extend50.P14.body_phase_laws

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

prove2quantum

For n≥1 qubits let Π_m project onto Hamming weight m, let C_l be the sum of all weight-l Pauli Z strings, and let c_l(m) be its integer eigenvalue on sector m. For a U(1)-invariant unitary V define Φ_l(V)=∑_m c_l(m)arg det(V_m), in the angle group ℝ/(2πℤ). For 0≤l≤n and invariant unitaries V,W,

Φl(WV)=Φl(W)+Φl(V),Φl(V†)=−Φl(V).\Phi_l(WV)=\Phi_l(W)+\Phi_l(V),\qquad\Phi_l(V^\dagger)=-\Phi_l(V).Φl​(WV)=Φl​(W)+Φl​(V),Φl​(V†)=−Φl​(V).

Positive-body phases are invariant under V↦e^{iα}V. For every bit mask b and real α, Φ_l(e^{iαZ^b})=2^nα if l=w(b), and zero otherwise, modulo 2π. Every V in V_k has Φ_l(V)=0 for k<l≤n. Finally an integrable invariant Hermitian Hamiltonian H with its absolutely continuous propagator V on [0,T] satisfies

Φl(V(T))=−∫0TTr⁡(H(t)Cl) dt(mod2π).\Phi_l(V(T))=-\int_0^T\operatorname{Tr}(H(t)C_l)\,dt\pmod{2\pi}.Φl​(V(T))=−∫0T​Tr(H(t)Cl​)dt(mod2π).

These identities calibrate the phases as locality observables.

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 pp.3,32, D7: composition, adjoint, positive-body global-phase
invariance, Pauli-string calibration, and locality, all modulo 2π. -/
theorem body_phase_laws (n : ℕ) (hn : 1 ≤ n) :
    (∀ (V W : QMat n), U1Unitary V → U1Unitary W → ∀ l ≤ n,
      u1BodyPhase (W*V) l = u1BodyPhase W l + u1BodyPhase V l ∧
      u1BodyPhase Vᴴ l = -u1BodyPhase V l) ∧
    (∀ (V : QMat n), U1Unitary V → ∀ (l : ℕ) (alpha : ℝ), 1 ≤ l → l ≤ n →
      u1BodyPhase (Complex.exp (Complex.I*alpha) • V) l = u1BodyPhase V l) ∧
    (∀ (b : Qubits n) (alpha : ℝ) (l : ℕ), l ≤ n →
      u1BodyPhase (schrodingerEvolution (zString b) (-alpha)) l =
        if l = qubitWeight b then (((2 : ℝ)^n * alpha : ℝ) : Real.Angle) else 0) ∧
    (∀ (k : ℕ) (V : QMat n), 1 ≤ k → k ≤ n → V ∈ u1Group n k →
      ∀ l : ℕ, k < l → l ≤ n → u1BodyPhase V l = 0) ∧
    (∀ (H V : ℝ → QMat n) (T : ℝ), Propagator H V T →
      (∀ t ∈ Set.Icc 0 T, U1Invariant (H t)) → ∀ l : ℕ, l ≤ n →
      u1BodyPhase (V T) l =
        ((-∫ t in (0 : ℝ)..T, (Matrix.trace (H t * u1Central n l)).re : ℝ) : Real.Angle)) := 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 / D.1: l-body phases, additivity, global phase and locality
Read-back

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

For every natural number n≥1n\ge1n≥1, use matrices indexed by nnn-bit strings, write ∣x∣|x|∣x∣ for the number of ones in xxx, and set Zn=diag⁡x(n−2∣x∣)Z_n=\operatorname{diag}_x(n-2|x|)Zn​=diagx​(n−2∣x∣). Call VVV an invariant unitary when it is unitary and VZn=ZnVVZ_n=Z_nVVZn​=Zn​V. Define

Pm=diag⁡x1{∣x∣=m},Zb=diag⁡x(−1)∑jbjxj,Cl=∑∣b∣=lZb,P_m=\operatorname{diag}_x\mathbf1_{\{|x|=m\}},\qquad Z_b=\operatorname{diag}_x(-1)^{\sum_j b_jx_j},\qquad C_l=\sum_{|b|=l}Z_b,Pm​=diagx​1{∣x∣=m}​,Zb​=diagx​(−1)∑j​bj​xj​,Cl​=∣b∣=l∑​Zb​,

and, for 0≤m≤n0\le m\le n0≤m≤n, define the integer

wl,m=∑0≤s≤ms≤l(−1)s(ms)(n−ml−s).w_{l,m}=\sum_{\substack{0\le s\le m\\s\le l}} (-1)^s\binom ms\binom{n-m}{l-s}.wl,m​=0≤s≤ms≤l​∑​(−1)s(sm​)(l−sn−m​).

For any matrix VVV, define its angle

Φl(V)=∑m=0nwl,m[arg⁡det⁡(VPm+I−Pm)]∈R/(2πZ),\Phi_l(V)=\sum_{m=0}^n w_{l,m} \left[\arg\det(VP_m+I-P_m)\right]\in\mathbb R/(2\pi\mathbb Z),Φl​(V)=m=0∑n​wl,m​[argdet(VPm​+I−Pm​)]∈R/(2πZ),

where brackets mean reduction modulo 2π2\pi2π. The following five assertions all hold: for every pair of invariant unitaries V,WV,WV,W and every natural l≤nl\le nl≤n, Φl(WV)=Φl(W)+Φl(V)\Phi_l(WV)=\Phi_l(W)+\Phi_l(V)Φl​(WV)=Φl​(W)+Φl​(V) and Φl(V†)=−Φl(V)\Phi_l(V^\dagger)=-\Phi_l(V)Φl​(V†)=−Φl​(V); for every invariant unitary VVV, real α\alphaα, and 1≤l≤n1\le l\le n1≤l≤n, Φl(eiαV)=Φl(V)\Phi_l(e^{i\alpha}V)=\Phi_l(V)Φl​(eiαV)=Φl​(V); for every bit string bbb, real α\alphaα, and natural l≤nl\le nl≤n,

Φl(eiαZb)={[2nα],l=∣b∣,0,l≠∣b∣;\Phi_l(e^{i\alpha Z_b})= \begin{cases} [2^n\alpha],&l=|b|,\\ 0,&l\ne|b|; \end{cases}Φl​(eiαZb​)={[2nα],0,​l=∣b∣,l=∣b∣;​

for every 1≤k≤n1\le k\le n1≤k≤n and every VVV in the submonoid generated by unitary matrices that commute with every eiθZne^{i\theta Z_n}eiθZn​ and act on at most kkk sites, Φl(V)=0\Phi_l(V)=0Φl​(V)=0 whenever k<l≤nk<l\le nk<l≤n; and the following integral identity holds. For all matrix-valued functions H,VH,VH,V on R\mathbb RR and all real TTT, suppose T≥0T\ge0T≥0, every entry of H(t)H(t)H(t) and of −iH(t)V(t)-iH(t)V(t)−iH(t)V(t) is integrable on [0,T][0,T][0,T], H(t)H(t)H(t) is Hermitian and V(t)V(t)V(t) is unitary for every t∈[0,T]t\in[0,T]t∈[0,T],

V(t)xy=Ixy+∫0t(−iH(s)V(s))xy ds(t∈[0,T], x,y∈{0,1}n),V(t)_{xy}=I_{xy}+\int_0^t(-iH(s)V(s))_{xy}\,ds \quad(t\in[0,T],\ x,y\in\{0,1\}^n),V(t)xy​=Ixy​+∫0t​(−iH(s)V(s))xy​ds(t∈[0,T], x,y∈{0,1}n),

and H(t)Zn=ZnH(t)H(t)Z_n=Z_nH(t)H(t)Zn​=Zn​H(t) throughout that interval. Then for every natural l≤nl\le nl≤n,

Φl(V(T))=[−∫0TRe⁡tr⁡(H(t)Cl) dt].\Phi_l(V(T))= \left[-\int_0^T\operatorname{Re}\operatorname{tr}(H(t)C_l)\,dt\right].Φl​(V(T))=[−∫0T​Retr(H(t)Cl​)dt].

In the submonoid assertion, acting on at most kkk sites means having entries Bx∣s,y∣s∏j∉s1{xj=yj}B_{x|_s,y|_s}\prod_{j\notin s}\mathbf1_{\{x_j=y_j\}}Bx∣s​,y∣s​​∏j∈/s​1{xj​=yj​}​ for some ∣s∣≤k|s|\le k∣s∣≤k; the submonoid consists of finite products, including the empty product. The first, third, and integral assertions include l=0l=0l=0, and the integral assertion includes T=0T=0T=0.

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