Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Unit-modulus elements of the synthesis ring

Open
QAlgorithms.Papers.Independent.Intakenext100.P03.unit_modulus_dichotomy

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

prove2quantum

Let nnn be a positive even integer. Put ζm=e2πi/m\zeta_m=e^{2\pi i/m}ζm​=e2πi/m, Rn=Z[ζ2n,1/2]R_n=\mathbb Z[\zeta_{2n},1/2]Rn​=Z[ζ2n​,1/2], Uz(θ)=diag⁡(1,eiθ)U_z(\theta)=\operatorname{diag}(1,e^{i\theta})Uz​(θ)=diag(1,eiθ), and Gn=⟨C,Uz(π/n)⟩G_n=\langle C,U_z(\pi/n)\rangleGn​=⟨C,Uz​(π/n)⟩, where C=⟨H0,S⟩C=\langle H_0,S\rangleC=⟨H0​,S⟩, H0=1+i2(111−1)H_0=\frac{1+i}{2}\begin{pmatrix}1&1\\1&-1\end{pmatrix}H0​=21+i​(11​1−1​) and S=diag⁡(1,i)S=\operatorname{diag}(1,i)S=diag(1,i). Write n=2ksn=2^ksn=2ks, where k≥1k\ge1k≥1 and sss is positive odd, and set Sn={r∈Rn:∣r∣=1}S_n=\{r\in R_n:|r|=1\}Sn​={r∈Rn​:∣r∣=1}. Both conclusions hold:

(∃t≥1: 2t≡−1(mods))⟹Sn={ζ2n j:0≤j<2n},¬(∃t≥1: 2t≡−1(mods))⟹∃r∈Sn ∀m≥1, rm≠1.\begin{aligned} (\exists t\ge1:\ 2^t\equiv-1\pmod s)&\Longrightarrow S_n=\{\zeta_{2n}^{\,j}:0\le j<2n\},\\ \neg(\exists t\ge1:\ 2^t\equiv-1\pmod s)&\Longrightarrow\exists r\in S_n\ \forall m\ge1,\ r^m\ne1. \end{aligned}(∃t≥1: 2t≡−1(mods))¬(∃t≥1: 2t≡−1(mods))​⟹Sn​={ζ2nj​:0≤j<2n},⟹∃r∈Sn​ ∀m≥1, rm=1.​

The first set is the roots of unity in Q(ζ2n)\mathbb Q(\zeta_{2n})Q(ζ2n​). The case s=1s=1s=1 is included. This determines when the phase subgroup has an element of infinite order.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intakenext100_P03
Formal statement
noncomputable section

namespace QAlgorithms.Papers.Independent.Intakenext100.P03

open scoped BigOperators Classical

-- Reuse the Mathlib matrix type without declaring a second Mat.

local notation "Mat" => Matrix Bool Bool ℂ

/-- Canonical data: the axis/exponent list and the actual residual matrix D,
not a nonunique phase/Clifford witness pair, PDF pp.6-7. -/
local notation "CanonicalData" => List (Fin 3 × ℕ) × Matrix Bool Bool ℂ

/-- Theorem 5.3, PDF p.13, proof pp.23-27: both directions; infinite order
means no positive natural power is 1. Includes odd part s=1. -/
theorem unit_modulus_dichotomy (n k s : ℕ) (hk : 1 ≤ k) (hs : 0 < s)
    (hodd : Odd s) (hfactor : n = 2 ^ k * s) :
    (MinusOneIsTwoPower s → unitPhases n = finitePhases n) ∧
    (¬ MinusOneIsTwoPower s → ∃ r ∈ unitPhases n,
      ∀ m : ℕ, 0 < m → r ^ m ≠ 1) := by sorry

end QAlgorithms.Papers.Independent.Intakenext100.P03

end
Source
Exact synthesis of single-qubit unitaries over Clifford-cyclotomic gate sets, arXiv:1501.04944v2, PDF p. 13, Theorem 5.3
Read-back

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

For all natural numbers n,k,sn,k,sn,k,s satisfying k≥1k\ge1k≥1, s>0s>0s>0, sss odd, and n=2ksn=2^k sn=2ks, put ζ=exp⁡(2πi/(2n))\zeta=\exp(2\pi i/(2n))ζ=exp(2πi/(2n)), let RnR_nRn​ be the smallest subring of C\mathbb CC containing ζ\zetaζ and 1/21/21/2, and let AAA be the condition that there exists a positive natural number ttt with s∣2t+1s\mid 2^t+1s∣2t+1. Both of the following implications hold:

A ⟹ {z∈Rn:∣z∣=1}={ζj:j=0,…,2n−1},A\ \Longrightarrow\ \{z\in R_n:|z|=1\}=\{\zeta^j:j=0,\ldots,2n-1\},A ⟹ {z∈Rn​:∣z∣=1}={ζj:j=0,…,2n−1}, ¬A ⟹ ∃r∈Rn,∣r∣=1and∀m∈N, m>0⟹rm≠1.\neg A\ \Longrightarrow\ \exists r\in R_n,\quad |r|=1 \quad\text{and}\quad \forall m\in\mathbb N,\ m>0\Longrightarrow r^m\ne1.¬A ⟹ ∃r∈Rn​,∣r∣=1and∀m∈N, m>0⟹rm=1.

The assumptions imply that nnn is positive and even. They allow s=1s=1s=1, for which AAA holds.

Human review
  • Endorsed by Shuze Chen · Oct 31, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 31, 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