Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Coset expansion and rank of a relation operator

Open
QAlgorithms.Papers.Independent.Extend50.P30.relationPartialIsometry

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

prove2quantum

Let ddd be prime, t≥1t\geq1t≥1, and let TTT have left defect NNN, right defect MMM, and its canonically induced map TJ:M⊥/M→N⊥/NT_J:M^\perp/M\to N^\perp/NTJ​:M⊥/M→N⊥/N. The ket ∣N,[x]⟩|N,[x]\rangle∣N,[x]⟩ is the normalized uniform superposition on x+Nx+Nx+N. The normalized relation operator is a partial isometry, with rank equal to either defect-quotient cardinality.

r(T)∣N∣=∑[y]∈M⊥/M∣N,TJ[y]⟩⟨M,[y]∣,rank⁡r(T)=∣N⊥/N∣=∣M⊥/M∣.\frac{r(T)}{|N|}=\sum_{[y]\in M^\perp/M}|N,T_J[y]\rangle\langle M,[y]|,\qquad\operatorname{rank}r(T)=|N^\perp/N|=|M^\perp/M|.∣N∣r(T)​=[y]∈M⊥/M∑​∣N,TJ​[y]⟩⟨M,[y]∣,rankr(T)=∣N⊥/N∣=∣M⊥/M∣.

This gives the source's coset expansion and rank of a relation operator 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.39, Lemma 4.23: r(T)/|left defect| is a partial isometry; rank is the quotient cardinality.
The quotient direction corrects the reversed type in the introductory sentence of the lemma. -/
theorem relationPartialIsometry (d t : ℕ) [NeZero d] [Fact (Nat.Prime d)]
    (ht : 1 ≤ t) (T : Lagrangian d t) :
    let B := (Nat.card (leftDefect T.val) : ℂ)⁻¹ • relationOperator T.val
    B = ∑ q : defectQuotient (rightDefect T.val),
      ketBra (cosetState (leftDefect T.val) (canonicalDefectMap T.val q))
        (cosetState (rightDefect T.val) q) ∧
    B * Bᴴ * B = B ∧
    Matrix.rank (relationOperator T.val) = Nat.card (defectQuotient (leftDefect T.val)) ∧
    Matrix.rank (relationOperator T.val) = Nat.card (defectQuotient (rightDefect T.val)) := 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. 39, lemma-4.23
Read-back

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

For every nonzero prime natural number ddd, natural number t≥1t\ge1t≥1, and subspace T⊆V×VT\subseteq V\times VT⊆V×V, where V=(Z/dZ)tV=(\mathbb Z/d\mathbb Z)^tV=(Z/dZ)t, assume ∣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) on TTT, with 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. Put L={x:(x,0)∈T}L=\{x:(x,0)\in T\}L={x:(x,0)∈T}, R={y:(0,y)∈T}R=\{y:(0,y)\in T\}R={y:(0,y)∈T}, N⊥={x:∑jxjzj=0 for every z∈N}N^\perp=\{x:\sum_jx_jz_j=0\text{ for every }z\in N\}N⊥={x:∑j​xj​zj​=0 for every z∈N}, and QN={x+N:x∈N⊥}⊆V/NQ_N=\{x+N:x\in N^\perp\}\subseteq V/NQN​={x+N:x∈N⊥}⊆V/N. For each a∈QNa\in Q_Na∈QN​, choose a representative rN(a)∈N⊥r_N(a)\in N^\perprN​(a)∈N⊥, and define the vector cN(a)∈CVc_N(a)\in\mathbb C^VcN​(a)∈CV by cN(a)(x)=∣N∣−1/2c_N(a)(x)=|N|^{-1/2}cN​(a)(x)=∣N∣−1/2 if x−rN(a)∈Nx-r_N(a)\in Nx−rN​(a)∈N, and 000 otherwise. Define JT:QR→QLJ_T:Q_R\to Q_LJT​:QR​→QL​ by taking the chosen representative y=rR(a)y=r_R(a)y=rR​(a), choosing an x∈L⊥x\in L^\perpx∈L⊥ with (x,y)∈T(x,y)\in T(x,y)∈T if one exists, and returning x+Lx+Lx+L; if none exists, return the zero element of QLQ_LQL​. Let AT(x,y)=1A_T(x,y)=1AT​(x,y)=1 when (x,y)∈T(x,y)\in T(x,y)∈T and 000 otherwise, and set B=∣L∣−1ATB=|L|^{-1}A_TB=∣L∣−1AT​. Then

B=∑a∈QRcL(JT(a)) cR(a)†,BB†B=B,rank⁡AT=∣QL∣,rank⁡AT=∣QR∣.B=\sum_{a\in Q_R}c_L(J_T(a))\,c_R(a)^\dagger,\qquad BB^\dagger B=B,\qquad \operatorname{rank}A_T=|Q_L|,\qquad \operatorname{rank}A_T=|Q_R|.B=a∈QR​∑​cL​(JT​(a))cR​(a)†,BB†B=B,rankAT​=∣QL​∣,rankAT​=∣QR​∣.

Here uv†uv^\daggeruv† has entry u(x)v(y)‾u(x)\overline{v(y)}u(x)v(y)​, and †\dagger† denotes conjugate transpose.

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