Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Unnumbered concatenated [[m²,1,m]]G code

Open
QAlgorithms.Papers.Independent.Extend50.P22.group_bacon_shor

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

prove2quantum

Let GGG be finite and m≥1m\ge1m≥1. Concatenate the mmm-site phase encoding with an mmm-site bit encoding of each of its outputs. Explicitly,

V∣g⟩=∣G∣−(m−1)/2∑h1⋯hm=g⨂i=1m∣hi⟩⊗m.V|g\rangle=|G|^{-(m-1)/2}\sum_{h_1\cdots h_m=g}\bigotimes_{i=1}^m|h_i\rangle^{\otimes m}.V∣g⟩=∣G∣−(m−1)/2h1​⋯hm​=g∑​i=1⨂m​∣hi​⟩⊗m.

This is an isometry from a ∣G∣|G|∣G∣-dimensional logical system into m2m^2m2 sites of dimension ∣G∣|G|∣G∣, corrects every erasure of at most m−1m-1m−1 sites, and implements logical left multiplication transversally on the first row. The construction is a group code, without a binary-stabilizer assumption.

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 p.18: G-covariant [[m^2,1,m]]_G, protecting every erased set of at most m-1 sites. -/
theorem group_bacon_shor (G : Type*) [Group G] [Fintype G] (k : ℕ) :
    let V := baconShorEncoding G k
    Vᴴ * V = 1 ∧
    (∀ S : Finset (Fin (k + 1) × Fin (k + 1)), S.card ≤ k → CorrectsGroupErasure V S) ∧
    ∀ g : G,
      basisMapMatrix (fun y : (Fin (k + 1) × Fin (k + 1)) → G =>
        fun ij => if ij.1 = 0 then g * y ij else y ij) * V =
      V * basisMapMatrix (fun h => g * h) := by sorry

end QAlgorithms.Papers.Independent.Extend50.P22

end
Source
Continuous symmetries and approximate quantum error correction, arXiv:1902.07714v1, PDF p. 18, Unnumbered concatenated [[m²,1,m]]G code
Read-back

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

For every finite group GGG, including the trivial group, and every natural number kkk, let J={0,…,k}2J=\{0,\ldots,k\}^2J={0,…,k}2 and let V:CG→CGJV:\mathbb C^G\to\mathbb C^{G^J}V:CG→CGJ have entry ∣G∣−k/2|G|^{-k/2}∣G∣−k/2 at (y,g)(y,g)(y,g) when yi,j=yi,0y_{i,j}=y_{i,0}yi,j​=yi,0​ for all i,ji,ji,j and y0,0y1,0⋯yk,0=gy_{0,0}y_{1,0}\cdots y_{k,0}=gy0,0​y1,0​⋯yk,0​=g, and entry 000 otherwise. Then V†V=IV^\dagger V=IV†V=I. For every subset S⊆JS\subseteq JS⊆J with ∣S∣≤k|S|\le k∣S∣≤k, there exist finitely many matrices Ka:CGJ→CGK_a:\mathbb C^{G^J}\to\mathbb C^GKa​:CGJ→CG satisfying ∑aKa†Ka=I\sum_aK_a^\dagger K_a=I∑a​Ka†​Ka​=I such that

∑aKa ES(VXV†) Ka†=Xfor every complex matrix X on G,\sum_aK_a\,\mathcal E_S(VXV^\dagger)\,K_a^\dagger=X \qquad\text{for every complex matrix }X\text{ on }G,a∑​Ka​ES​(VXV†)Ka†​=Xfor every complex matrix X on G,

where erasure resets the coordinates in SSS to the group identity and sums over their former values:

ES(Z)y,z={∑u:S→GZy[S←u], z[S←u],ys=zs=1G for every s∈S,0,otherwise.\mathcal E_S(Z)_{y,z}= \begin{cases} \displaystyle\sum_{u:S\to G}Z_{y[S\leftarrow u],\,z[S\leftarrow u]}, &y_s=z_s=1_G\text{ for every }s\in S,\\ 0,&\text{otherwise}. \end{cases}ES​(Z)y,z​=⎩⎨⎧​u:S→G∑​Zy[S←u],z[S←u]​,0,​ys​=zs​=1G​ for every s∈S,otherwise.​

Finally, for every g∈Gg\in Gg∈G, define Fg(y)i,j=gyi,jF_g(y)_{i,j}=gy_{i,j}Fg​(y)i,j​=gyi,j​ when i=0i=0i=0, and Fg(y)i,j=yi,jF_g(y)_{i,j}=y_{i,j}Fg​(y)i,j​=yi,j​ otherwise, and define Lg(h)=ghL_g(h)=ghLg​(h)=gh. With (Bf)u,v=1{u=f(v)}(B_f)_{u,v}=\mathbf1_{\{u=f(v)\}}(Bf​)u,v​=1{u=f(v)}​, one has BFgV=VBLgB_{F_g}V=VB_{L_g}BFg​​V=VBLg​​. The case k=0k=0k=0 is included: the array has one entry, VVV is the corresponding identity encoding, and the only subset satisfying ∣S∣≤0|S|\le0∣S∣≤0 is empty.

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