Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Unnumbered [[2m,2m−2,2]]G construction, Eqs.(68)–(70)

Open
QAlgorithms.Papers.Independent.Extend50.P22.group_even_length

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

prove2quantum

Let GGG be finite and m≥2m\ge2m≥2. For logical labels g1,…,g2m−2g_1,\ldots,g_{2m-2}g1​,…,g2m−2​, form the alternating word (1,g1,g2g1,g2g3,…,g2m−2g2m−3,g2m−2)(1,g_1,g_2g_1,g_2g_3,\ldots,g_{2m-2}g_{2m-3},g_{2m-2})(1,g1​,g2​g1​,g2​g3​,…,g2m−2​g2m−3​,g2m−2​) and average its collective left translates with coefficient ∣G∣−1/2|G|^{-1/2}∣G∣−1/2. This is an isometry and corrects every one-site erasure. The m−1m-1m−1 independent right actions on odd-numbered logical labels are implemented on adjacent physical pairs, using inverse parameters. Consequently,

[[2m,2m−2,2]]Ghas transversal symmetry Gm−1.[[2m,2m-2,2]]_G\quad\text{has transversal symmetry }G^{m-1}.[[2m,2m−2,2]]G​has transversal symmetry Gm−1.

The degenerate m=1m=1m=1 member is also retained as the two-site, one-dimensional-logical orbit code.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Extend50_P22
Formal statement
noncomputable section

open scoped Matrix ComplexConjugate ComplexOrder

namespace QAlgorithms.Papers.Independent.Extend50.P22

attribute [local instance] Classical.propDecidable Classical.decEq

open QAlgorithms.Papers.Independent.Information100.P22 (bell)

open QAlgorithms.Papers.Independent.Support21.P09 (Irreducible)

open QAlgorithms.Papers.Independent.Renew46.P45 (symmetricWeight)

/-- PDF pp.18–19: [[2m,2m-2,2]]_G for every m>=2, with m-1 independent transversal factors. -/
theorem group_even_length (G : Type*) [Group G] [Fintype G] :
    (let V0 : Matrix (Fin 2 → G) Unit ℂ := orbitEncoding (fun g _ _ => g)
     V0ᴴ * V0 = 1 ∧ ∀ i : Fin 2, CorrectsGroupErasure V0 {i}) ∧
    ∀ k : ℕ, let V := evenEncoding G k
    Vᴴ * V = 1 ∧ (∀ i : Fin (2 * (k + 2)), CorrectsGroupErasure V {i}) ∧
    (∀ l : G, basisMapMatrix (fun y : Fin (2 * (k + 2)) → G => fun i => l * y i) * V = V) ∧
    ∀ r : Fin (k + 1) → G,
      basisMapMatrix (evenPhysical k r) * V = V * basisMapMatrix (evenLogical k r) := by sorry

end QAlgorithms.Papers.Independent.Extend50.P22

end
Source
Continuous symmetries and approximate quantum error correction, arXiv:1902.07714v1, PDF p. 19, Unnumbered [[2m,2m−2,2]]G construction, Eqs.(68)–(70)
Read-back

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

For every finite group GGG, including the trivial group, define V0:C{∗}→CG2V_0:\mathbb C^{\{\ast\}}\to\mathbb C^{G^2}V0​:C{∗}→CG2 by (V0)y,∗=∣G∣−1/2(V_0)_{y,\ast}=|G|^{-1/2}(V0​)y,∗​=∣G∣−1/2 if y0=y1y_0=y_1y0​=y1​, and 000 otherwise. Then V0†V0=IV_0^\dagger V_0=IV0†​V0​=I, and erasure of either coordinate is recoverable. Furthermore, for every natural number kkk, including 000, put N=2k+4N=2k+4N=2k+4, L=2k+2L=2k+2L=2k+2, and define V:CGL→CGNV:\mathbb C^{G^L}\to\mathbb C^{G^N}V:CGL→CGN by

Vy,x=∣G∣−1/2∑g∈G1{yj=g wj(x) ∀j},wj(x)={1G,j=0,xN−3,j=N−1,x0,j=1,xj−1xj−2,2≤j<N−1, j even,xj−2xj−1,2≤j<N−1, j odd.V_{y,x}=|G|^{-1/2}\sum_{g\in G}\mathbf 1_{\{y_j=g\,w_j(x)\ \forall j\}}, \quad w_j(x)= \begin{cases} 1_G,&j=0,\\ x_{N-3},&j=N-1,\\ x_0,&j=1,\\ x_{j-1}x_{j-2},&2\le j<N-1,\ j\text{ even},\\ x_{j-2}x_{j-1},&2\le j<N-1,\ j\text{ odd}. \end{cases}Vy,x​=∣G∣−1/2g∈G∑​1{yj​=gwj​(x) ∀j}​,wj​(x)=⎩⎨⎧​1G​,xN−3​,x0​,xj−1​xj−2​,xj−2​xj−1​,​j=0,j=N−1,j=1,2≤j<N−1, j even,2≤j<N−1, j odd.​

Then V†V=IV^\dagger V=IV†V=I, and erasure of each individual physical coordinate is recoverable. In both assertions, recoverability of coordinate iii for a matrix WWW means that there exist finitely many matrices KaK_aKa​, from the physical space to the corresponding logical space, satisfying ∑aKa†Ka=I\sum_aK_a^\dagger K_a=I∑a​Ka†​Ka​=I, such that, for every complex logical matrix XXX,

∑aKa Ei(WXW†) Ka†=X.\sum_a K_a\,\mathcal E_i(WXW^\dagger)\,K_a^\dagger=X.a∑​Ka​Ei​(WXW†)Ka†​=X.

The erasure map is explicitly

Ei(Z)y,z={∑h∈GZy[i←h], z[i←h],yi=zi=1G,0,otherwise,\mathcal E_i(Z)_{y,z}= \begin{cases} \displaystyle\sum_{h\in G}Z_{y[i\leftarrow h],\,z[i\leftarrow h]},&y_i=z_i=1_G,\\ 0,&\text{otherwise}, \end{cases}Ei​(Z)y,z​=⎩⎨⎧​h∈G∑​Zy[i←h],z[i←h]​,0,​yi​=zi​=1G​,otherwise,​

where y[i←h]y[i\leftarrow h]y[i←h] replaces coordinate iii by hhh. Finally, writing BfB_fBf​ for the matrix with entry (Bf)u,v=1{u=f(v)}(B_f)_{u,v}=\mathbf1_{\{u=f(v)\}}(Bf​)u,v​=1{u=f(v)}​, one has

B y↦(lyj)jV=V(l∈G),BFrV=VBHr(r∈Gk+1),B_{\,y\mapsto(l y_j)_j}V=V\quad(l\in G), \qquad B_{F_r}V=VB_{H_r}\quad(r\in G^{k+1}),By↦(lyj​)j​​V=V(l∈G),BFr​​V=VBHr​​(r∈Gk+1),

where (Fr(y))j=yjr⌊(j−1)/2⌋−1(F_r(y))_j=y_jr_{\lfloor(j-1)/2\rfloor}^{-1}(Fr​(y))j​=yj​r⌊(j−1)/2⌋−1​ for 0<j<N−10<j<N-10<j<N−1 and equals yjy_jyj​ at the endpoints, while (Hr(x))j=xjrj/2−1(H_r(x))_j=x_jr_{j/2}^{-1}(Hr​(x))j​=xj​rj/2−1​ for even jjj and equals xjx_jxj​ for odd jjj.

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