Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Denominator exponent pattern with beta

Open
QAlgorithms.Papers.Independent.Intakenext100.P03.denominator_pattern_beta

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).

For an axis p∈{x,y,z}p\in\{x,y,z\}p∈{x,y,z} with Pauli matrix PPP, write Up(θ)=1+eiθ2I+1−eiθ2PU_p(\theta)=\frac{1+e^{i\theta}}2I+\frac{1-e^{i\theta}}2PUp​(θ)=21+eiθ​I+21−eiθ​P. A canonical pair consists of an ordered finite list (pi,ai)i=1m(p_i,a_i)_{i=1}^m(pi​,ai​)i=1m​ and an actual matrix DDD, with consecutive axes distinct, 1≤ai<n/21\le a_i<n/21≤ai​<n/2, DDD proportional to an element of CCC, and U=(∏i=1mUpi(aiπ/n))DU=(\prod_{i=1}^m U_{p_i}(a_i\pi/n))DU=(∏i=1m​Upi​​(ai​π/n))D. Products have the printed left-to-right order, and the empty list is permitted.

Write n=2ksn=2^ksn=2ks with k≥1k\ge1k≥1 and positive odd sss. Define qa=2k−1−2k−jq_a=2^{k-1}-2^{k-j}qa​=2k−1−2k−j if n/gcd⁡(a,n)=2jn/\gcd(a,n)=2^jn/gcd(a,n)=2j, and qa=2k−1q_a=2^{k-1}qa​=2k−1 otherwise. Set α=21/2k−1\alpha=2^{1/2^{k-1}}α=21/2k−1 and β=2\beta=2β=2 for k=1k=1k=1, β=2cos⁡(π/2k)\beta=2\cos(\pi/2^k)β=2cos(π/2k) for k≥2k\ge2k≥2.

Use ordered Pauli axes X,Y,ZX,Y,ZX,Y,Z and the homomorphic Bloch matrix B(U)ij=12Re⁡tr⁡(PiUPjU†)B(U)_{ij}=\frac12\operatorname{Re}\operatorname{tr}(P_iUP_jU^\dagger)B(U)ij​=21​Retr(Pi​UPj​U†). This transposes printed equation (9), as required by the source's left-cancellation proof and row patterns.

Let U∈GnU\in G_nU∈Gn​ with B(U)∉B(C)B(U)\notin B(C)B(U)∈/B(C), take any canonical pair, and set N=∑iqaiN=\sum_iq_{a_i}N=∑i​qai​​. Work in the ring of integers OF\mathcal O_FOF​ of F=Frac⁡(Rn∩R)F=\operatorname{Frac}(R_n\cap\mathbb R)F=Frac(Rn​∩R). A reduced exponent of a nonzero entry zzz means z=w/βrz=w/\beta^rz=w/βr, with r∈Nr\in\mathbb Nr∈N, w∈OFw\in\mathcal O_Fw∈OF​, and www not divisible by β\betaβ. Coprimality means that the principal ideals sum to OF\mathcal O_FOF​.

  1. Every nonzero entry has a reduced exponent.
  2. The global maximum is attained and satisfies
max⁡i,j:B(U)ij≠0rij=N.\max_{i,j:B(U)_{ij}\ne0}r_{ij}=N.i,j:B(U)ij​=0max​rij​=N.

Exactly two rows contain an entry at exponent NNN with numerator coprime to β\betaβ. 3. Exactly one row has no entry at exponent NNN. It is the row indexed by the first axis p1p_1p1​, and its attained maximum is

max⁡j:B(U)p1j≠0rp1j=N−qa1.\max_{j:B(U)_{p_1j}\ne0}r_{p_1j}=N-q_{a_1}.j:B(U)p1​j​=0max​rp1​j​=N−qa1​​.

That row contains an entry at this exponent with numerator coprime to β\betaβ. The non-Clifford premise guarantees a nonempty list.

The pattern exposes the leading canonical axis while retaining the stronger coprimality conclusion.

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 4.1(a)-(c), PDF pp.9-10, proof p.18. The homomorphic Bloch
correction in homomorphicBloch transposes printed (9), justified by row cancellation
on pp.11,17; independent moderation is required. -/
theorem denominator_pattern_beta (n k s : ℕ) (hk : 1 ≤ k) (hs : 0 < s)
    (hodd : Odd s) (hfactor : n = 2 ^ k * s)
    (U : Mat) (hU : U ∈ cyclotomicGroup n) (hnot : homomorphicBloch U ∉ blochCliffords)
    (d : CanonicalData) (hd : IsCyclotomicCanonical n U d) :
    ∃ p a rest, d.1 = (p, a) :: rest ∧
      DenominatorPattern (realCyclotomicField n) (denominatorBeta k) (homomorphicBloch U)
        (canonicalTotalWeight n k d) (denominatorWeight n k a) p := 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. 10, Theorem 4.1
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 with k≥1k\ge1k≥1, s>0s>0s>0, sss odd, and n=2ksn=2^k sn=2ks, let UUU be a complex 2×22\times22×2 matrix in the submonoid GnG_nGn​ generated by C\mathcal CC, Z(π/n)Z(\pi/n)Z(π/n), and Z(π/n)∗Z(\pi/n)^*Z(π/n)∗, where Z(θ)=diag⁡(1,eiθ)Z(\theta)=\operatorname{diag}(1,e^{i\theta})Z(θ)=diag(1,eiθ), and C\mathcal CC is generated by 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​), S=diag⁡(1,i)S=\operatorname{diag}(1,i)S=diag(1,i), and their adjoints. Write σX=(0110)\sigma_X=\begin{pmatrix}0&1\\1&0\end{pmatrix}σX​=(01​10​), σY=(0−ii0)\sigma_Y=\begin{pmatrix}0&-i\\i&0\end{pmatrix}σY​=(0i​−i0​), σZ=diag⁡(1,−1)\sigma_Z=\operatorname{diag}(1,-1)σZ​=diag(1,−1), and define the real matrix MMM by Mij=12Re⁡tr⁡(σiUσjU∗)M_{ij}=\frac12\operatorname{Re}\operatorname{tr}(\sigma_iU\sigma_jU^*)Mij​=21​Retr(σi​Uσj​U∗). Assume MMM is unequal to every matrix (12Re⁡tr⁡(σiCσjC∗))ij\bigl(\frac12\operatorname{Re}\operatorname{tr}(\sigma_iC\sigma_jC^*)\bigr)_{ij}(21​Retr(σi​Cσj​C∗))ij​ with C∈CC\in\mathcal CC∈C. Let d=(L,C0)d=(L,C_0)d=(L,C0​) be any pair such that every (p,a)∈L(p,a)\in L(p,a)∈L satisfies 1≤a<⌊n/2⌋1\le a<\lfloor n/2\rfloor1≤a<⌊n/2⌋, successive coordinates in LLL differ, eiϕC0∈Ce^{i\phi}C_0\in\mathcal CeiϕC0​∈C for some real ϕ\phiϕ, and U=(∏(p,a) in LRp(aπ/n))C0U=(\prod_{(p,a)\text{ in }L}R_p(a\pi/n))C_0U=(∏(p,a) in L​Rp​(aπ/n))C0​, where Rp(θ)=1+eiθ2I+1−eiθ2σpR_p(\theta)=\frac{1+e^{i\theta}}2 I+\frac{1-e^{i\theta}}2\sigma_pRp​(θ)=21+eiθ​I+21−eiθ​σp​ and products follow list order. Then there exist a coordinate ppp, a natural number aaa, and a list L′L'L′ such that L=(p,a)::L′L=(p,a)::L'L=(p,a)::L′ and the following denominator conditions hold. Set

β={2,k=1,2cos⁡(π/2k),k≠1,w(b)={2k−1−2 k−⌊log⁡2(n/gcd⁡(b,n))⌋,n/gcd⁡(b,n)=2j for some j∈N,2k−1,otherwise,N=∑(r,b) in Lw(b),q=w(a),\beta=\begin{cases}2,&k=1,\\2\cos(\pi/2^k),&k\ne1,\end{cases} \qquad w(b)= \begin{cases} 2^{k-1}-2^{\,k-\lfloor\log_2(n/\gcd(b,n))\rfloor}, &n/\gcd(b,n)=2^j\text{ for some }j\in\mathbb N,\\ 2^{k-1},&\text{otherwise}, \end{cases} \qquad N=\sum_{(r,b)\text{ in }L}w(b),\quad q=w(a),β={2,2cos(π/2k),​k=1,k=1,​w(b)={2k−1−2k−⌊log2​(n/gcd(b,n))⌋,2k−1,​n/gcd(b,n)=2j for some j∈N,otherwise,​N=(r,b) in L∑​w(b),q=w(a),

where all divisions and subtractions in the definition of www are natural number operations, so subtraction is truncated at zero. Let FFF be the smallest subfield of C\mathbb CC containing every real element of the subring generated by exp⁡(2πi/(2n))\exp(2\pi i/(2n))exp(2πi/(2n)) and 1/21/21/2, and put OF={z∈F:z is integral over Z}O_F=\{z\in F:z\text{ is integral over }\mathbb Z\}OF​={z∈F:z is integral over Z}. Say that a real number zzz has a reduced representation at exponent rrr if z≠0z\ne0z=0 and z=w/βrz=w/\beta^rz=w/βr for some w∈OFw\in O_Fw∈OF​ for which it is false that β∈OF\beta\in O_Fβ∈OF​, β≠0\beta\ne0β=0, and w=βvw=\beta vw=βv for some v∈OFv\in O_Fv∈OF​. Say that row iii has exponent rrr if one of its entries has such a representation, and that row iii has a coprime representation at exponent rrr if some nonzero entry is w/βrw/\beta^rw/βr, where w,β∈OFw,\beta\in O_Fw,β∈OF​ and there exist u,v∈OFu,v\in O_Fu,v∈OF​ with uw+vβ=1uw+v\beta=1uw+vβ=1. Every nonzero entry of MMM has a reduced representation at some natural exponent; every reduced representation of every entry has exponent at most NNN; some row has exponent NNN; exactly two rows have a coprime representation at exponent NNN; exactly one row lacks exponent NNN; and every row lacking exponent NNN has all its reduced exponents at most N−qN-qN−q, has both an exponent-(N−q)(N-q)(N−q) representation and a coprime representation at that exponent, and is row ppp. Here N−qN-qN−q is also truncated natural subtraction.

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