Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Unnumbered sharp-cutoff three-rotor code, Eqs.(36)–(38), (D.9)

Open
QAlgorithms.Papers.Independent.Extend50.P22.sharp_rotor_code

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

prove2quantum

Let h,mh,mh,m be nonnegative integers with h≤mh\le mh≤m. The normalized isometry V∣x⟩=(2m+1)−1/2∑y=−mm∣−3y,y−x,2(x+y)⟩V|x\rangle=(2m+1)^{-1/2}\sum_{y=-m}^m|-3y,y-x,2(x+y)\rangleV∣x⟩=(2m+1)−1/2∑y=−mm​∣−3y,y−x,2(x+y)⟩, −h≤x≤h-h\le x\le h−h≤x≤h, is embedded in finite coordinate intervals containing its entire support. For uniform located single erasure, let eee be the optimal worst-case entanglement error. Then

e≤4h2m+1,2h≤6max⁡{6m,2(m+h),4(m+h)} e.e\le\sqrt{\frac{4h}{2m+1}},\qquad 2h\le6\max\{6m,2(m+h),4(m+h)\}\,e.e≤2m+14h​​,2h≤6max{6m,2(m+h),4(m+h)}e.

Thus the source’s upper asymptotic estimate has leading form 2h/m\sqrt{2h/m}2h/m​ when mmm grows. The exact expression includes h=m=0h=m=0h=m=0 without division by zero. For the explicit diagonal charges TL|x>=x|x> and Ti|a>=a|a> in these centered interval coordinates, the code also satisfies (sum_i Ti)V=V TL; this is the source’s natural U(1) covariance, now an explicit conclusion.

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.11,41, (36)–(38),(D.9): the fixed sharp code conserves the natural
integer total charge and has the stated recovery bounds.
SOURCE CORRECTION: p.11 says every physical dimension is 2m+1; (36) and
(D.11) instead require charge intervals [-3m,3m], [-m-h,m+h], and
[-2(m+h),2(m+h)]. We use these explicit interval embeddings without deleting
amplitudes. D.2 prints min_i, whereas D.8–D.9 use the common upper bound
sqrt(4h/(2m+1)); the latter is retained. The m=h=0 singleton is included. -/
theorem sharp_rotor_code (h m : ℕ) (hm : h ≤ m) :
    let TL : Matrix (Fin (2 * h + 1)) (Fin (2 * h + 1)) ℂ :=
      Matrix.diagonal (fun x => (x.val : ℂ) - (h : ℂ))
    let Ti : (i : Fin 3) → Matrix (Fin (sharpDims h m i)) (Fin (sharpDims h m i)) ℂ :=
      fun i => Matrix.diagonal (fun y => (y.val : ℂ) -
        ((![3 * m, m + h, 2 * (m + h)] i : ℕ) : ℂ))
    (∑ i : Fin 3, liftLocal i (Ti i)) * sharpEncoding h m = sharpEncoding h m * TL ∧
    ∃ c : CovariantErasureCodeData (2 * h + 1) 3, c.dims = sharpDims h m ∧ HEq c.V (sharpEncoding h m) ∧
      errorWorst c.uniformNoise ≤ Real.sqrt (4 * (h : ℝ) / (2 * m + 1)) ∧
      (2 * (h : ℝ)) ≤
        6 * max (6 * (m : ℝ)) (max (2 * (m + h : ℝ)) (4 * (m + h : ℝ))) *
          errorWorst c.uniformNoise := by sorry

end QAlgorithms.Papers.Independent.Extend50.P22

end
Source
Continuous symmetries and approximate quantum error correction, arXiv:1902.07714v1, PDF p. 11, Unnumbered sharp-cutoff three-rotor code, Eqs.(36)–(38), (D.9)
Read-back

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

For every pair of natural numbers h,mh,mh,m with h≤mh\le mh≤m, set d=2h+1d=2h+1d=2h+1, (D0,D1,D2)=(6m+1, 2(m+h)+1, 4(m+h)+1)(D_0,D_1,D_2)=(6m+1,\,2(m+h)+1,\,4(m+h)+1)(D0​,D1​,D2​)=(6m+1,2(m+h)+1,4(m+h)+1), and (o0,o1,o2)=(3m, m+h, 2(m+h))(o_0,o_1,o_2)=(3m,\,m+h,\,2(m+h))(o0​,o1​,o2​)=(3m,m+h,2(m+h)). Index logical basis vectors by x∈{0,…,d−1}x\in\{0,\ldots,d-1\}x∈{0,…,d−1} and physical basis vectors by triples y=(y0,y1,y2)y=(y_0,y_1,y_2)y=(y0​,y1​,y2​) with 0≤yi<Di0\le y_i<D_i0≤yi​<Di​. Define the rectangular matrix EEE by

Ey,x={(2m+1)−1/2,∃t∈Z: −m≤t≤m,y0−o0=−3t,y1−o1=t−(x−h),y2−o2=2(t+x−h),0,otherwise,E_{y,x}= \begin{cases} (2m+1)^{-1/2},& \exists t\in\mathbb Z:\ -m\le t\le m,\quad y_0-o_0=-3t,\quad y_1-o_1=t-(x-h),\quad y_2-o_2=2(t+x-h),\\ 0,&\text{otherwise}, \end{cases}Ey,x​={(2m+1)−1/2,0,​∃t∈Z: −m≤t≤m,y0​−o0​=−3t,y1​−o1​=t−(x−h),y2​−o2​=2(t+x−h),otherwise,​

where the differences in these conditions are integer differences. Let TL=diag⁡(x−h)T_L=\operatorname{diag}(x-h)TL​=diag(x−h) and Ti=diag⁡(yi−oi)T_i=\operatorname{diag}(y_i-o_i)Ti​=diag(yi​−oi​). If T^i\widehat T_iTi​ denotes the matrix acting as TiT_iTi​ on site iii and as the identity elsewhere, explicitly (T^i)y,z=(Ti)yi,zi∏j≠i1yj=zj(\widehat T_i)_{y,z}=(T_i)_{y_i,z_i}\prod_{j\ne i}\mathbf1_{y_j=z_j}(Ti​)y,z​=(Ti​)yi​,zi​​∏j=i​1yj​=zj​​, then

(∑i=02T^i)E=ETL.\left(\sum_{i=0}^{2}\widehat T_i\right)E=ET_L.(i=0∑2​Ti​)E=ETL​.

Moreover, there exists code data ccc with logical dimension ddd, three sites, positive site dimensions exactly DiD_iDi​, and an encoding matrix VVV satisfying V∗V=IV^*V=IV∗V=I and equal to EEE after identifying its site dimensions with DiD_iDi​, for which

εworst(c)≤4h2m+1,2h≤6max⁡ ⁣(6m,max⁡ ⁣(2(m+h),4(m+h)))εworst(c).\varepsilon_{\mathrm{worst}}(c) \le \sqrt{\frac{4h}{2m+1}}, \qquad 2h\le 6\max\!\left(6m,\max\!\left(2(m+h),4(m+h)\right)\right) \varepsilon_{\mathrm{worst}}(c).εworst​(c)≤2m+14h​​,2h≤6max(6m,max(2(m+h),4(m+h)))εworst​(c).

Here the code’s uniform noise channel CCC records the erased site and resets it to its basis value zero: C(X)(i,y),(j,z)=0C(X)_{(i,y),(j,z)}=0C(X)(i,y),(j,z)​=0 when i≠ji\ne ji=j, and

C(X)(i,y),(i,z)=13 1yi=0, zi=0∑a=0Di−1(VXV∗)y[i←a], z[i←a].C(X)_{(i,y),(i,z)} =\frac13\,\mathbf1_{y_i=0,\ z_i=0} \sum_{a=0}^{D_i-1}(VXV^*)_{y[i\leftarrow a],\,z[i\leftarrow a]}.C(X)(i,y),(i,z)​=31​1yi​=0, zi​=0​a=0∑Di​−1​(VXV∗)y[i←a],z[i←a]​.

Its error is defined literally by

εworst(c)=1−[sup⁡R channelinf⁡ψ∈Cd⊗Cd∥ψ∥=1F ⁣(ψψ∗,(id⁡⊗(R∘C))(ψψ∗))]2,F(A,B)=Re⁡tr⁡cfc⁡ ⁣(⋅,cfc⁡(⋅,A) B cfc⁡(⋅,A)).\varepsilon_{\mathrm{worst}}(c) = \sqrt{1- \left[ \sup_{\mathcal R\ \mathrm{channel}} \inf_{\substack{\psi\in\mathbb C^d\otimes\mathbb C^d\\\|\psi\|=1}} F\!\left( \psi\psi^*, (\operatorname{id}\otimes(\mathcal R\circ C))(\psi\psi^*) \right) \right]^2}, \quad F(A,B)=\operatorname{Re}\operatorname{tr} \operatorname{cfc}\!\left(\sqrt{\cdot}, \operatorname{cfc}(\sqrt{\cdot},A)\,B\,\operatorname{cfc}(\sqrt{\cdot},A)\right).εworst​(c)=1−​R channelsup​ψ∈Cd⊗Cd∥ψ∥=1​inf​F(ψψ∗,(id⊗(R∘C))(ψψ∗))​2​,F(A,B)=Retrcfc(⋅​,cfc(⋅​,A)Bcfc(⋅​,A)).

The supremum ranges over recovery maps from the flagged physical register to the logical register admitting a finite Kraus representation R(Y)=∑ℓKℓYKℓ∗\mathcal R(Y)=\sum_\ell K_\ell YK_\ell^*R(Y)=∑ℓ​Kℓ​YKℓ∗​ with ∑ℓKℓ∗Kℓ=I\sum_\ell K_\ell^*K_\ell=I∑ℓ​Kℓ∗​Kℓ​=I; the identity extension applies this map separately to each reference block. The quantifiers include h=0h=0h=0 and h=m=0h=m=0h=m=0; when h=0h=0h=0, both displayed error inequalities force εworst(c)=0\varepsilon_{\mathrm{worst}}(c)=0εworst​(c)=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