Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Weyl uncertainty relation

Open
QAlgorithms.Papers.Independent.Extend50.P30.weylUncertainty

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

prove2quantum

Let d≥2d\geq2d≥2, without a primality assumption, and let ψ\psiψ be a normalized pure nnn-qudit state. Set δ=1/(2d)\delta=1/(2d)δ=1/(2d). If the squared expectations of both WxW_xWx​ and WyW_yWy​ strictly exceed 1−δ21-\delta^21−δ2, the Weyl operators commute.

∣⟨ψ∣Wx∣ψ⟩∣2,∣⟨ψ∣Wy∣ψ⟩∣2>1−14d2 ⟹ WxWy=WyWx.|\langle\psi|W_x|\psi\rangle|^2,|\langle\psi|W_y|\psi\rangle|^2>1-\frac1{4d^2}\ \Longrightarrow\ W_xW_y=W_yW_x.∣⟨ψ∣Wx​∣ψ⟩∣2,∣⟨ψ∣Wy​∣ψ⟩∣2>1−4d21​ ⟹ Wx​Wy​=Wy​Wx​.

This gives the source's weyl uncertainty relation in the fixed computational-basis and phase conventions.

Formalization Note Pure states carry norm one; stabilizer averages use density matrices to discard global phases. All finite tensor indices are explicitly ordered by copy, then physical qudit.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Extend50_P30
Formal statement
noncomputable section

open scoped BigOperators ComplexConjugate Matrix

namespace QAlgorithms.Papers.Independent.Extend50.P30

open QAlgorithms.Papers.Independent.Information100.P63 (tensorPower)

open QAlgorithms.Papers.Independent.Gap20.P06 (ketBra)

attribute [local instance] Classical.propDecidable

/-- PDF p.24, Lemma 3.10: strict uncertainty thresholds, with delta=1/(2d). -/
theorem weylUncertainty (d n : ℕ) [NeZero d] (hd : 2 ≤ d)
    (v : EuclideanSpace ℂ (ResidueRegister d n)) (hv : ‖v‖ = 1) (x y : DiscretePhaseSpace d n)
    (hx : 1 - (1 / (2 * (d : ℝ))) ^ 2 <
      Complex.normSq (inner ℂ v (QAlgorithms.act (cyclicWeyl d n x) v)))
    (hy : 1 - (1 / (2 * (d : ℝ))) ^ 2 <
      Complex.normSq (inner ℂ v (QAlgorithms.act (cyclicWeyl d n y) v))) :
    cyclicWeyl d n x * cyclicWeyl d n y = cyclicWeyl d n y * cyclicWeyl d n x := by sorry

end QAlgorithms.Papers.Independent.Extend50.P30

end
Source
Schur-Weyl Duality for the Clifford Group with Applications: Property Testing, a Robust Hudson Theorem, and de Finetti Representations, arXiv:1712.08628v3, PDF p. 24, lemma-3.10
Read-back

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

For natural numbers d,nd,nd,n with d≠0d\ne0d=0 and d≥2d\ge2d≥2, let V=(Z/dZ)nV=(\mathbb Z/d\mathbb Z)^nV=(Z/dZ)n, let v∈CVv\in\mathbb C^Vv∈CV have Euclidean norm 111, and let x,y∈V×Vx,y\in V\times Vx,y∈V×V. For z=(p,q)∈V×Vz=(p,q)\in V\times Vz=(p,q)∈V×V, define

Wz(a,b)={((−1)deπi/d)−∑j[pj][qj](e2πi/d)∑j[pj][aj],a=b+q,0,otherwise,W_z(a,b)= \begin{cases} \bigl((-1)^d e^{\pi i/d}\bigr)^{-\sum_j[p_j][q_j]} \bigl(e^{2\pi i/d}\bigr)^{\sum_j[p_j][a_j]},&a=b+q,\\ 0,&\text{otherwise}, \end{cases}Wz​(a,b)={((−1)deπi/d)−∑j​[pj​][qj​](e2πi/d)∑j​[pj​][aj​],0,​a=b+q,otherwise,​

using standard integer representatives of residues. If both strict inequalities

1−(12d)2<∣⟨v,Wxv⟩∣2,1−(12d)2<∣⟨v,Wyv⟩∣21-\left(\frac1{2d}\right)^2<|\langle v,W_xv\rangle|^2, \qquad 1-\left(\frac1{2d}\right)^2<|\langle v,W_yv\rangle|^21−(2d1​)2<∣⟨v,Wx​v⟩∣2,1−(2d1​)2<∣⟨v,Wy​v⟩∣2

hold, where matrix action is ordinary matrix multiplication, then WxWy=WyWxW_xW_y=W_yW_xWx​Wy​=Wy​Wx​. No distinctness assumption is imposed on x,yx,yx,y, and n=0n=0n=0 is included.

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