Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Transitivity on compatible defect subspaces

Open
QAlgorithms.Papers.Independent.Extend50.P30.defectOrbitTransitivity

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

prove2quantum

For prime ddd and t≥1t\geq1t≥1, let N,M⊆FdtN,M\subseteq\mathbb F_d^tN,M⊆Fdt​ be totally quadratic-isotropic, co-stochastic defect subspaces. If they have equal dimension and contain 1t\mathbf1_t1t​ simultaneously, a stochastic isometry maps NNN onto MMM.

dim⁡N=dim⁡M,(1t∈N  ⟺  1t∈M) ⟹ ∃O∈Ot(d):ON=M.\dim N=\dim M,\quad(\mathbf1_t\in N\iff\mathbf1_t\in M)\ \Longrightarrow\ \exists O\in O_t(d):ON=M.dimN=dimM,(1t​∈N⟺1t​∈M) ⟹ ∃O∈Ot​(d):ON=M.

This gives the source's transitivity on compatible defect subspaces 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, Lemma 4.18: both defect invariants are needed. -/
theorem defectOrbitTransitivity (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) :
    ∃ O : StochasticOrthogonal d t, (fun x => O.val.mulVec x) '' (N : Set _) = (M : Set _) := 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, lemma-4.18
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, define D=2dD=2dD=2d when ddd is even and D=dD=dD=d otherwise, and define q(x)=∑j=0t−1xj~ 2q(x)=\sum_{j=0}^{t-1}\widetilde{x_j}^{\,2}q(x)=∑j=0t−1​xj​​2 in Z/DZ\mathbb Z/D\mathbb ZZ/DZ, where xj~∈{0,…,d−1}\widetilde{x_j}\in\{0,\ldots,d-1\}xj​​∈{0,…,d−1} is the canonical representative of xjx_jxj​. Write 1=(1,…,1)\mathbf1=(1,\ldots,1)1=(1,…,1) and N⊥={x∈V:∑jxjyj=0 for every y∈N}N^\perp=\{x\in V:\sum_jx_jy_j=0\text{ for every }y\in N\}N⊥={x∈V:∑j​xj​yj​=0 for every y∈N}, and similarly for MMM. Assume q(x)=0q(x)=0q(x)=0 for every x∈Nx\in Nx∈N and every x∈Mx\in Mx∈M, that 1∈N⊥∩M⊥\mathbf1\in N^\perp\cap M^\perp1∈N⊥∩M⊥, that NNN and MMM have equal dimension 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 t×tt\times tt×t matrix OOO over Z/dZ\mathbb Z/d\mathbb ZZ/dZ such that q(Ox)=q(x)q(Ox)=q(x)q(Ox)=q(x) for every x∈Vx\in Vx∈V, O1=1O\mathbf1=\mathbf1O1=1, and {Ox:x∈N}=M\{Ox:x\in N\}=M{Ox:x∈N}=M. The assumptions allow NNN and MMM to be zero subspaces.

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