Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Unnumbered odd/even cyclic-group secret-sharing comparison, Eq.(72)

Open
QAlgorithms.Papers.Independent.Extend50.P22.cyclic_secret_sharing

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

prove2quantum

Let N≥1N\ge1N≥1 and perform all arithmetic modulo NNN. Define

V∣g⟩=N−1/2∑h∈ZN∣h,g−h,g−2h⟩.V|g\rangle=N^{-1/2}\sum_{h\in\mathbb Z_N}|h,g-h,g-2h\rangle.V∣g⟩=N−1/2h∈ZN​∑​∣h,g−h,g−2h⟩.

This is an isometry. If NNN is odd, every single-site erasure has an exact CPTP recovery chosen independently of the logical input. If NNN is even, erasure of the third site is not correctable: multiplication by two is not invertible and the lost site reveals logical parity. The statement concerns normalized finite cyclic codes; continuous idealizations are separately deferred.

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.19: odd cyclic orders correct any one erasure; even positive orders leak parity
through the third site. The continuous/non-normalizable idealizations are deferred separately. -/
theorem cyclic_secret_sharing (N : ℕ) [NeZero N] :
    (cyclicEncoding N)ᴴ * cyclicEncoding N = 1 ∧
    (Odd N → ∀ i : Fin 3,
      ∃ R : Superop (Fin 3 → ZMod N) (ZMod N), IsChannel R ∧
        ∀ X, R (uniformErase {i} (fun _ => (0 : ZMod N)) (conjSuperop (cyclicEncoding N) X)) = X) ∧
    (Even N → ¬ ∃ R : Superop (Fin 3 → ZMod N) (ZMod N), IsChannel R ∧
      ∀ X, R (uniformErase {2} (fun _ => (0 : ZMod N)) (conjSuperop (cyclicEncoding N) X)) = X) := by sorry

end QAlgorithms.Papers.Independent.Extend50.P22

end
Source
Continuous symmetries and approximate quantum error correction, arXiv:1902.07714v1, PDF p. 19, Unnumbered odd/even cyclic-group secret-sharing comparison, Eq.(72)
Read-back

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

For every nonzero natural number NNN, let VVV be the matrix from CZ/NZ\mathbb C^{\mathbb Z/N\mathbb Z}CZ/NZ to C(Z/NZ)3\mathbb C^{(\mathbb Z/N\mathbb Z)^3}C(Z/NZ)3 whose entry Vy,gV_{y,g}Vy,g​ is N−1/2∑h1{y=(h,g−h,g−2h)}N^{-1/2}\sum_h\mathbf 1_{\{y=(h,g-h,g-2h)\}}N−1/2∑h​1{y=(h,g−h,g−2h)}​, with arithmetic modulo NNN. Then V†V=IV^\dagger V=IV†V=I. Moreover, if NNN is odd, then for every coordinate i∈{0,1,2}i\in\{0,1,2\}i∈{0,1,2} there exists a channel Ri\mathcal R_iRi​ from matrices on triples to matrices on Z/NZ\mathbb Z/N\mathbb ZZ/NZ such that Ri(Ei(VXV†))=X\mathcal R_i(\mathcal E_i(VXV^\dagger))=XRi​(Ei​(VXV†))=X for every complex matrix XXX. Here Ei\mathcal E_iEi​ erases coordinate iii and resets it to zero: its entry at y,zy,zy,z is zero unless yi=zi=0y_i=z_i=0yi​=zi​=0, and otherwise is ∑a∈Z/NZYy[i:=a],z[i:=a]\sum_{a\in\mathbb Z/N\mathbb Z}Y_{y[i:=a],z[i:=a]}∑a∈Z/NZ​Yy[i:=a],z[i:=a]​ when applied to YYY. If NNN is even, there is no such channel recovering every XXX after erasing coordinate 222. A channel here means a map of the form Y↦∑j=0r−1KjYKj†Y\mapsto\sum_{j=0}^{r-1}K_jYK_j^\daggerY↦∑j=0r−1​Kj​YKj†​ for some natural number rrr, with ∑jKj†Kj=I\sum_jK_j^\dagger K_j=I∑j​Kj†​Kj​=I on its input space. Recovery is required on all matrices, not just density matrices. The odd case includes N=1N=1N=1; the even case, together with N≠0N\ne0N=0, has N≥2N\ge2N≥2.

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