Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Unnumbered generalized W-state covariant code, Eqs.(55)–(58)

Open
QAlgorithms.Papers.Independent.Extend50.P22.generalized_w_code

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

prove2quantum

Let an isometry V:L→⨂i=1nAiV:L\to\bigotimes_{i=1}^n A_iV:L→⨂i=1n​Ai​ encode a logical system of dimension d≥1d\ge1d≥1 into n≥1n\ge1n≥1 finite subsystems of positive dimensions did_idi​. A located erasure replaces erased sites by fixed pure states and supplies an orthogonal location flag. Write ϵworst=1−fworst2\epsilon_{\rm worst}=\sqrt{1-f_{\rm worst}^2}ϵworst​=1−fworst2​​, where one CPTP recovery is optimized before minimizing root entanglement fidelity over all unit vectors on L⊗RL\otimes RL⊗R, with R≃LR\simeq LR≃L. Write ϵe=1−fe2\epsilon_e=\sqrt{1-f_e^2}ϵe​=1−fe2​​ for optimal root entanglement fidelity at the normalized maximally entangled input. Unless specified otherwise, single-site erasure is uniform. For each d,n≥1d,n\ge1d,n≥1, give every physical site one extra orthogonal basis vector ∣⊥⟩|\perp\rangle∣⊥⟩. The fixed normalized encoding is

∣ψ⟩⟼1n∑i=1n∣⊥,…,ψi,…,⊥⟩.|\psi\rangle\longmapsto\frac1{\sqrt n}\sum_{i=1}^n|\perp,\ldots,\psi_i,\ldots,\perp\rangle.∣ψ⟩⟼n​1​i=1∑n​∣⊥,…,ψi​,…,⊥⟩.

It is isometric and covariant under the full logical U(d)U(d)U(d) group by the local action U⊕1U\oplus1U⊕1, with

ϵworst≤2+dn.\epsilon_{\rm worst}\le\frac{\sqrt2+d}{\sqrt n}.ϵworst​≤n​2​+d​.

The error is worst-case over entangled inputs, not an average over logical states.

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.16, (55)–(58): the actual W isometry, full unitary covariance, and worst-case
bound (sqrt(2)+d)/sqrt(n). The code witness supplies the isometry proof for this fixed matrix. -/
theorem generalized_w_code (d n : ℕ) (hd : 0 < d) (hn : 0 < n) :
    ∃ c : CovariantErasureCodeData d n, c.dims = (fun _ => d + 1) ∧ HEq c.V (wEncoding d n) ∧
      Nonempty (FullAction c) ∧
      errorWorst c.uniformNoise ≤ (Real.sqrt 2 + d) / Real.sqrt n := by sorry

end QAlgorithms.Papers.Independent.Extend50.P22

end
Source
Continuous symmetries and approximate quantum error correction, arXiv:1902.07714v1, PDF p. 16, Unnumbered generalized W-state covariant code, Eqs.(55)–(58)
Read-back

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

For every pair of positive natural numbers d,nd,nd,n, there exists code data ccc with logical dimension ddd, nnn sites, positive site dimensions di=d+1d_i=d+1di​=d+1, and an encoding matrix V:Cd→C∏i{0,…,di−1}V:\mathbb C^d\to\mathbb C^{\prod_i\{0,\ldots,d_i-1\}}V:Cd→C∏i​{0,…,di​−1} satisfying V†V=IV^\dagger V=IV†V=I, such that, after identifying these site dimensions with d+1d+1d+1, Vy,x=n−1/2∑i1{yi=x}∏j≠i1{yj=d}V_{y,x}=n^{-1/2}\sum_i\mathbf 1_{\{y_i=x\}}\prod_{j\ne i}\mathbf 1_{\{y_j=d\}}Vy,x​=n−1/2∑i​1{yi​=x}​∏j=i​1{yj​=d}​. There also exist, for every site iii, continuous group homomorphisms ri:U(d)→U(di)r_i:U(d)\to U(d_i)ri​:U(d)→U(di​) satisfying (⨂iri(U))V=VU(\bigotimes_i r_i(U))V=VU(⨂i​ri​(U))V=VU for every U∈U(d)U\in U(d)U∈U(d), and the following recovery error bound holds:

1−Fworst(C)2≤2+dn.\sqrt{1-F_{\mathrm{worst}}(\mathcal C)^2}\le \frac{\sqrt2+d}{\sqrt n}.1−Fworst​(C)2​≤n​2​+d​.

Here C\mathcal CC outputs a classical site flag together with the physical register, with matrix entries C(X)(i,y),(j,z)=1{i=j} n−1Ei(VXV†)y,z\mathcal C(X)_{(i,y),(j,z)}=\mathbf 1_{\{i=j\}}\,n^{-1}\mathcal E_i(VXV^\dagger)_{y,z}C(X)(i,y),(j,z)​=1{i=j}​n−1Ei​(VXV†)y,z​, where Ei(Y)y,z=0\mathcal E_i(Y)_{y,z}=0Ei​(Y)y,z​=0 unless yi=zi=0y_i=z_i=0yi​=zi​=0, and otherwise equals ∑a=0di−1Yy[i:=a],z[i:=a]\sum_{a=0}^{d_i-1}Y_{y[i:=a],z[i:=a]}∑a=0di​−1​Yy[i:=a],z[i:=a]​. Precisely,

Fworst(C)=sup⁡R channelinf⁡ψ∈Cd⊗Cd∥ψ∥=1f(ψ,R∘C),f(ψ,K)=Re⁡tr⁡ρψ (id⁡⊗K)(ρψ) ρψ,ρψ=ψψ†.F_{\mathrm{worst}}(\mathcal C)= \sup_{\mathcal R\ \mathrm{channel}} \inf_{\substack{\psi\in\mathbb C^d\otimes\mathbb C^d\\\|\psi\|=1}} f(\psi,\mathcal R\circ\mathcal C), \qquad f(\psi,\mathcal K)= \operatorname{Re}\operatorname{tr} \sqrt{\sqrt{\rho_\psi}\, (\operatorname{id}\otimes\mathcal K)(\rho_\psi)\, \sqrt{\rho_\psi}}, \quad \rho_\psi=\psi\psi^\dagger.Fworst​(C)=R channelsup​ψ∈Cd⊗Cd∥ψ∥=1​inf​f(ψ,R∘C),f(ψ,K)=Retrρψ​​(id⊗K)(ρψ​)ρψ​​​,ρψ​=ψψ†.

The square roots are given by continuous functional calculus, and (id⁡⊗K)(Y)(a,b),(a′,b′)=K(Y(a,⋅),(a′,⋅))b,b′(\operatorname{id}\otimes\mathcal K)(Y)_{(a,b),(a',b')}=\mathcal K(Y_{(a,\cdot),(a',\cdot)})_{b,b'}(id⊗K)(Y)(a,b),(a′,b′)​=K(Y(a,⋅),(a′,⋅)​)b,b′​. The recovery maps R\mathcal RR go from the flagged physical register to the logical register; a channel means a finite Kraus sum Y↦∑jKjYKj†Y\mapsto\sum_jK_jYK_j^\daggerY↦∑j​Kj​YKj†​ with ∑jKj†Kj=I\sum_jK_j^\dagger K_j=I∑j​Kj†​Kj​=I. The statement specifies a supremum over recovery channels, without asserting its attainment; d=1d=1d=1 and n=1n=1n=1 are included.

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