Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Realizing compatible left and right defects

Open
QAlgorithms.Papers.Independent.Extend50.P30.defectPairRealization

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

prove2quantum

Let ddd be prime and t≥1t\geq1t≥1. Any two defect subspaces N,MN,MN,M of equal dimension, with 1t∈N\mathbf1_t\in N1t​∈N if and only if 1t∈M\mathbf1_t\in M1t​∈M, occur as the left and right kernels of a stochastic Lagrangian relation.

∃T∈Σt,t(d):TLD=N,TRD=M.\exists T\in\Sigma_{t,t}(d):\quad T_{LD}=N,\quad T_{RD}=M.∃T∈Σt,t​(d):TLD​=N,TRD​=M.

This gives the source's realizing compatible left and right defects 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.19: every compatible pair occurs as actual relation defects. -/
theorem defectPairRealization (d t : ℕ) [NeZero d] [Fact (Nat.Prime d)] (ht : 1 ≤ t)
    (N M : Submodule (ZMod d) (ResidueRegister d t)) (hN : IsDefect N) (hM : IsDefect M)
    (hdim : Module.finrank (ZMod d) N = Module.finrank (ZMod d) M)
    (hone : (fun _ => 1) ∈ N ↔ (fun _ => 1) ∈ M) :
    ∃ T : Lagrangian d t, leftDefect T.val = N ∧ rightDefect T.val = M := 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.19
Read-back

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

For every nonzero prime natural number ddd, every natural number t≥1t\ge1t≥1, and subspaces N,MN,MN,M of V=(Z/dZ)tV=(\mathbb Z/d\mathbb Z)^tV=(Z/dZ)t, let D=2dD=2dD=2d for even ddd and D=dD=dD=d otherwise, let q(x)=∑jxj~ 2∈Z/DZq(x)=\sum_j\widetilde{x_j}^{\,2}\in\mathbb Z/D\mathbb Zq(x)=∑j​xj​​2∈Z/DZ using canonical representatives modulo ddd, and let 1\mathbf11 denote the all-ones vector. Assume that qqq vanishes on both NNN and MMM, that ∑jyj=0\sum_jy_j=0∑j​yj​=0 for every yyy in either subspace, that dim⁡N=dim⁡M\dim N=\dim MdimN=dimM over Z/dZ\mathbb Z/d\mathbb ZZ/dZ, and that 1∈N\mathbf1\in N1∈N if and only if 1∈M\mathbf1\in M1∈M. Then there exists a subspace T⊆V×VT\subseteq V\times VT⊆V×V having exactly dtd^tdt elements, containing (1,1)(\mathbf1,\mathbf1)(1,1), and satisfying q(x)=q(y)q(x)=q(y)q(x)=q(y) whenever (x,y)∈T(x,y)\in T(x,y)∈T, such that {x:(x,0)∈T}=N\{x:(x,0)\in T\}=N{x:(x,0)∈T}=N and {y:(0,y)∈T}=M\{y:(0,y)\in T\}=M{y:(0,y)∈T}=M. Zero subspaces are included among the possible NNN and MMM.

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