Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Fact 1: three Clifford cosets, each of order 64

Proved
QAlgorithms.Papers.Independent.Gap48.P12.clifford_three_cosets

by Goku · Oct 21, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

Let C1=⟨H,P⟩C_1=\langle H,P\rangleC1​=⟨H,P⟩ and A=CT(C1)A=C_T(C_1)A=CT​(C1​), with exact phase-inclusive matrices. For a matrix SSS, write SA={Sa:a∈A}SA=\{Sa:a\in A\}SA={Sa:a∈A}. Then

C1=A∪˙HA∪˙PHA,∣A∣=∣HA∣=∣PHA∣=64.C_1=A\mathbin{\dot\cup}HA\mathbin{\dot\cup}PHA,\qquad |A|=|HA|=|PHA|=64.C1​=A∪˙HA∪˙PHA,∣A∣=∣HA∣=∣PHA∣=64.

Each set is finite and the three sets are pairwise disjoint. The plus signs printed in Fact 1 mean this partition into left cosets. This partition supplies the three choices of left prefix in the rewrite rule.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Gap48_P12
Formal statement
noncomputable section

namespace QAlgorithms.Papers.Independent.Gap48.P12

local notation "Mat" => Matrix Bool Bool ℂ

local notation "Vec" => EuclideanSpace ℂ Bool

local notation "wordMatrix" => fun (B : CircuitBasis) (w : CircuitWord) =>
  QAlgorithms.Papers.Independent.Next46.P21.wordMatrix (chronologicalInstructions B w)

/-- PDF p.7, Fact 1 and its following sentence: a disjoint union of
three left cosets, each with exactly 64 distinct exact matrices. -/
theorem clifford_three_cosets :
    cliffordSet .hp = ctSet ∪ leftCoset hadamard ∪ leftCoset (phaseS * hadamard) ∧
    Disjoint ctSet (leftCoset hadamard) ∧
    Disjoint ctSet (leftCoset (phaseS * hadamard)) ∧
    Disjoint (leftCoset hadamard) (leftCoset (phaseS * hadamard)) ∧
    ctSet.Finite ∧ ctSet.ncard = 64 ∧
    (leftCoset hadamard).Finite ∧ (leftCoset hadamard).ncard = 64 ∧
    (leftCoset (phaseS * hadamard)).Finite ∧
      (leftCoset (phaseS * hadamard)).ncard = 64 := by sorry

end QAlgorithms.Papers.Independent.Gap48.P12

end
Source
Representation of Quantum Circuits with Clifford and π/8π/8π/8 Gates, arXiv:0806.3834v1, PDF p. 7, Fact 1: three Clifford cosets, each of order 64
Read-back

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

Let Mat\mathrm{Mat}Mat be the complex 2×22\times22×2 matrices, with rows and columns ordered as false,true\mathrm{false},\mathrm{true}false,true, and put H=12(111−1)H=\frac1{\sqrt2}\begin{pmatrix}1&1\\1&-1\end{pmatrix}H=2​1​(11​1−1​), P=diag⁡(1,i)P=\operatorname{diag}(1,i)P=diag(1,i), and T=diag⁡(1,eiπ/4)T=\operatorname{diag}(1,e^{i\pi/4})T=diag(1,eiπ/4). For a finite word www in the letters H,P,TH,P,TH,P,T, let M(w)M(w)M(w) be the product of its gate matrices in written order, with M(∅)=IM(\varnothing)=IM(∅)=I. Define C\mathcal CC to be the set of matrices M(w)M(w)M(w) for words containing no TTT, and define D={TgT†:g∈C, TgT†∈C}\mathcal D=\{TgT^\dagger:g\in\mathcal C,\ TgT^\dagger\in\mathcal C\}D={TgT†:g∈C, TgT†∈C}, where †\dagger† denotes conjugate transpose. Then C=D∪HD∪(PH)D\mathcal C=\mathcal D\cup H\mathcal D\cup(PH)\mathcal DC=D∪HD∪(PH)D, where SD={SV:V∈D}S\mathcal D=\{SV:V\in\mathcal D\}SD={SV:V∈D}; the three displayed sets are pairwise disjoint; and each of D\mathcal DD, HDH\mathcal DHD, and (PH)D(PH)\mathcal D(PH)D is finite and has exactly 646464 elements.

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

    Confirmed by the moderator at approval.

  • Endorsed by Goku · Oct 21, 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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me