Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Unnumbered [[4,2,2]]G code, Eqs.(65)–(66)

Open
QAlgorithms.Papers.Independent.Extend50.P22.group_four

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

prove2quantum

Let GGG be any finite group. The normalized isometry is

V∣a,b⟩=∣G∣−1/2∑g∈G∣g,g−1a,gb,g−1ab⟩.V|a,b\rangle=|G|^{-1/2}\sum_{g\in G}|g,g^{-1}a,gb,g^{-1}ab\rangle.V∣a,b⟩=∣G∣−1/2g∈G∑​∣g,g−1a,gb,g−1ab⟩.

Every one-site erasure has an exact CPTP recovery for all logical states. The logical action (a,b)↦(la,br−1)(a,b)\mapsto(la,br^{-1})(a,b)↦(la,br−1) is implemented by the physical site actions (y1,y2,y3,y4)↦(ly1,y2,ly3r−1,y4r−1)(y_1,y_2,y_3,y_4)\mapsto(ly_1,y_2,ly_3r^{-1},y_4r^{-1})(y1​,y2​,y3​,y4​)↦(ly1​,y2​,ly3​r−1,y4​r−1). This exhibits the transversal G×GG\times GG×G symmetry, with the required noncommutative product order.

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, (65),(66): exact single erasures and transversal G x G symmetry.
The right multiplier uses r^-1 so this is a representation of G rather than G^op. -/
theorem group_four (G : Type*) [Group G] [Fintype G] :
    let V := groupFourEncoding G
    Vᴴ * V = 1 ∧ (∀ i : Fin 4, CorrectsGroupErasure V {i}) ∧
    ∀ l r : G,
      basisMapMatrix (fun y : Fin 4 → G =>
        ![l * y 0, y 1, l * y 2 * r⁻¹, y 3 * r⁻¹]) * V =
      V * basisMapMatrix (fun x : G × G => (l * x.1, x.2 * r⁻¹)) := by sorry

end QAlgorithms.Papers.Independent.Extend50.P22

end
Source
Continuous symmetries and approximate quantum error correction, arXiv:1902.07714v1, PDF p. 18, Unnumbered [[4,2,2]]G code, Eqs.(65)–(66)
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

Vy,(a,b)=1∣G∣∑g∈G1{y=(g,g−1a,gb,g−1ab)},y∈G4.V_{y,(a,b)} =\frac1{\sqrt{|G|}}\sum_{g\in G} \mathbf1_{\{y=(g,g^{-1}a,gb,g^{-1}ab)\}}, \qquad y\in G^4.Vy,(a,b)​=∣G∣​1​g∈G∑​1{y=(g,g−1a,gb,g−1ab)}​,y∈G4.

Then V†V=IV^\dagger V=IV†V=I; for every i∈{0,1,2,3}i\in\{0,1,2,3\}i∈{0,1,2,3}, there exists a recovery function RiR_iRi​ from matrices on G4G^4G4 to matrices on G2G^2G2, of the form Ri(Y)=∑αKi,αYKi,α†R_i(Y)=\sum_\alpha K_{i,\alpha}YK_{i,\alpha}^\daggerRi​(Y)=∑α​Ki,α​YKi,α†​ for a finite family satisfying ∑αKi,α†Ki,α=I\sum_\alpha K_{i,\alpha}^\dagger K_{i,\alpha}=I∑α​Ki,α†​Ki,α​=I, such that Ri(Ei(VXV†))=XR_i(\mathcal E_i(VXV^\dagger))=XRi​(Ei​(VXV†))=X for every matrix XXX on G2G^2G2, where

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

Moreover, for every l,r∈Gl,r\in Gl,r∈G,

Pfl,rV=VPhl,r,fl,r(y)=(ly0,y1,ly2r−1,y3r−1),hl,r(a,b)=(la,br−1),P_{f_{l,r}}V=VP_{h_{l,r}}, \quad f_{l,r}(y)=(ly_0,y_1,ly_2r^{-1},y_3r^{-1}), \quad h_{l,r}(a,b)=(la,br^{-1}),Pfl,r​​V=VPhl,r​​,fl,r​(y)=(ly0​,y1​,ly2​r−1,y3​r−1),hl,r​(a,b)=(la,br−1),

where (Pf)y,x=1(P_f)_{y,x}=1(Pf​)y,x​=1 if y=f(x)y=f(x)y=f(x) and is zero otherwise. No commutativity of GGG is assumed.

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