Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Classification of double cosets

Open
QAlgorithms.Papers.Independent.Extend50.P30.doubleOrbitClassification

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

prove2quantum

For prime ddd, t≥1t\geq1t≥1, and T,T′∈Σt,t(d)T,T^\prime\in\Sigma_{t,t}(d)T,T′∈Σt,t​(d), membership in the same Ot(d)O_t(d)Ot​(d) double coset is equivalent to equality of defect dimension and the all-ones membership invariant. The displayed right defect of T′T^\primeT′ has the same all-ones membership as its left defect. There are at most ttt such double cosets.

T′∈Ot(d)TOt(d)  ⟺  dim⁡TLD=dim⁡TLD′ and (1t∈TLD  ⟺  1t∈TRD′).T^\prime\in O_t(d)TO_t(d)\iff\dim T_{LD}=\dim T^\prime_{LD}\ \text{and}\ (\mathbf1_t\in T_{LD}\iff\mathbf1_t\in T^\prime_{RD}).T′∈Ot​(d)TOt​(d)⟺dimTLD​=dimTLD′​ and (1t​∈TLD​⟺1t​∈TRD′​).

This gives the source's classification of double cosets 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.38, Corollary 4.21: complete double-orbit classification and its number bound. -/
theorem doubleOrbitClassification (d t : ℕ) [NeZero d] [Fact (Nat.Prime d)] (ht : 1 ≤ t) :
    (∀ T S : Lagrangian d t, SameDoubleOrbit T S ↔
      Module.finrank (ZMod d) (leftDefect T.val) = Module.finrank (ZMod d) (leftDefect S.val) ∧
      ((fun _ => 1) ∈ leftDefect T.val ↔ (fun _ => 1) ∈ rightDefect S.val)) ∧
    (doubleClasses d t).card ≤ t := 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. 38, corollary-4.21
Read-back

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

For every nonzero prime natural number ddd and natural number t≥1t\ge1t≥1, let V=(Z/dZ)tV=(\mathbb Z/d\mathbb Z)^tV=(Z/dZ)t, let 1\mathbf11 be its all-ones vector, and define q(x)=∑jxj~ 2q(x)=\sum_j\widetilde{x_j}^{\,2}q(x)=∑j​xj​​2 modulo 2d2d2d for even ddd and modulo ddd otherwise, using canonical representatives modulo ddd. Let L\mathcal LL consist of all subspaces T⊆V×VT\subseteq V\times VT⊆V×V such that ∣T∣=dt|T|=d^t∣T∣=dt, (1,1)∈T(\mathbf1,\mathbf1)\in T(1,1)∈T, and q(x)=q(y)q(x)=q(y)q(x)=q(y) for every (x,y)∈T(x,y)\in T(x,y)∈T. Define LT={x:(x,0)∈T}L_T=\{x:(x,0)\in T\}LT​={x:(x,0)∈T}, RT={y:(0,y)∈T}R_T=\{y:(0,y)\in T\}RT​={y:(0,y)∈T}, and let O\mathcal OO be the set of t×tt\times tt×t matrices OOO over Z/dZ\mathbb Z/d\mathbb ZZ/dZ satisfying q(Ox)=q(x)q(Ox)=q(x)q(Ox)=q(x) for all xxx and O1=1O\mathbf1=\mathbf1O1=1. Then, for all T,S∈LT,S\in\mathcal LT,S∈L, there exist O,P∈OO,P\in\mathcal OO,P∈O with S=span⁡{(Ox,PTy):(x,y)∈T}S=\operatorname{span}\{(Ox,P^{\mathsf T}y):(x,y)\in T\}S=span{(Ox,PTy):(x,y)∈T} if and only if dim⁡LT=dim⁡LS\dim L_T=\dim L_SdimLT​=dimLS​ and (1∈LT  ⟺  1∈RS)(\mathbf1\in L_T\iff\mathbf1\in R_S)(1∈LT​⟺1∈RS​). Moreover, there are at most ttt distinct sets of the form {S∈L:∃O,P∈O, S=span⁡{(Ox,PTy):(x,y)∈T}}\{S\in\mathcal L:\exists O,P\in\mathcal O,\ S=\operatorname{span}\{(Ox,P^{\mathsf T}y):(x,y)\in T\}\}{S∈L:∃O,P∈O, S=span{(Ox,PTy):(x,y)∈T}} as TTT ranges over L\mathcal LL.

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