Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Geometric series: ∑j=0r−1ωrjk=0\sum_{j=0}^{r-1}\omega_r^{jk} = 0∑j=0r−1​ωrjk​=0 for 1≤k≤r−11 \le k \le r-11≤k≤r−1

Proved
ShorWiki.sum_omega_pow_mul_eq_zero

by Lucas · Oct 13, 2026 · Mathlib 0df444a (Lean v4.33.1)

quantum-computingshor-algorithm

Let rrr be a positive integer, ωr=e2πi/r\omega_r = e^{2\pi i/r}ωr​=e2πi/r, and 1≤k≤r−11 \le k \le r-11≤k≤r−1. Then

∑j=0r−1ωrjk=0.\sum_{j=0}^{r-1} \omega_r^{jk} = 0 .j=0∑r−1​ωrjk​=0.

This is the cancellation used to show that the uniform superposition of the eigenstates ∣ψj⟩|\psi_j\rangle∣ψj​⟩ collapses to the single basis state ∣1⟩|1\rangle∣1⟩.

Preamble
import Mathlib
import Definitions.Def_ShorWiki_Defs

open Matrix Kronecker
Formal statement
namespace ShorWiki

theorem sum_omega_pow_mul_eq_zero (r k : ℕ) (hk : 1 ≤ k) (hkr : k ≤ r - 1) :
    ∑ j ∈ Finset.range r, omega r ^ (j * k) = 0 := by sorry

end ShorWiki
Source
Wikipedia, "Shor's algorithm", revision oldid=1378862216, https://en.wikipedia.org/w/index.php?title=Shor%27s_algorithm&oldid=1378862216, section "Quantum phase estimation" (PDF p. 5)
Human review
  • Endorsed by Shuze Chen · Oct 13, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Lucas · Oct 13, 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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me