Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Binary anti-permutations are stochastic isometries

Open
QAlgorithms.Papers.Independent.Extend50.P30.antiPermutationOrthogonal

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

prove2quantum

Let t≡2(mod4)t\equiv2\pmod4t≡2(mod4) and let π\piπ be any permutation of the ttt coordinates. Over F2\mathbb F_2F2​, its binary complement is a stochastic isometry for the quadratic form valued modulo four. The local dimension is two.

π‾=1t1tT−π∈Ot(2).\overline\pi=\mathbf1_t\mathbf1_t^T-\pi\in O_t(2).π=1t​1tT​−π∈Ot​(2).

This gives the source's binary anti-permutations are stochastic isometries 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.44, Lemma 4.30: the anti-permutation construction is binary. -/
theorem antiPermutationOrthogonal (t : ℕ) (ht : t % 4 = 2) (p : Equiv.Perm (Fin t)) :
    IsStochasticOrthogonal (antiPermutation p) := 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. 44, lemma-4.30
Read-back

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

For every natural number ttt satisfying t mod 4=2t\bmod4=2tmod4=2, and every permutation π\piπ of {0,…,t−1}\{0,\ldots,t-1\}{0,…,t−1}, define the t×tt\times tt×t matrix AAA over Z/2Z\mathbb Z/2\mathbb ZZ/2Z by Aij=1−1{i=π(j)}A_{ij}=1-\mathbf1_{\{i=\pi(j)\}}Aij​=1−1{i=π(j)}​. Then A1=1A\mathbf1=\mathbf1A1=1, and for every x∈(Z/2Z)tx\in(\mathbb Z/2\mathbb Z)^tx∈(Z/2Z)t,

∑j=0t−1(Ax)j~ 2=∑j=0t−1xj~ 2in Z/4Z,\sum_{j=0}^{t-1}\widetilde{(Ax)_j}^{\,2} =\sum_{j=0}^{t-1}\widetilde{x_j}^{\,2} \quad\text{in }\mathbb Z/4\mathbb Z,j=0∑t−1​(Ax)j​​2=j=0∑t−1​xj​​2in Z/4Z,

where every tilde is the canonical representative 000 or 111 of a residue modulo 222. The condition on ttt includes t=2t=2t=2 and excludes t=0t=0t=0.

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