Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

∣ψj⟩|\psi_j\rangle∣ψj​⟩ is an eigenvector of UUU with eigenvalue ωrj\omega_r^jωrj​

Proved
ShorWiki.mulModGate_mulVec_eigState

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

quantum-computingshor-algorithm

Let 1<a<N1 < a < N1<a<N with gcd⁡(a,N)=1\gcd(a,N)=1gcd(a,N)=1, r=ord⁡N(a)r = \operatorname{ord}_N(a)r=ordN​(a), n=⌈log⁡2N⌉n = \lceil\log_2 N\rceiln=⌈log2​N⌉, and let UUU be the modular-multiplication gate. For every integer j≥0j \ge 0j≥0 the state

∣ψj⟩=1r∑k=0r−1ωr−kj ∣ak mod N⟩|\psi_j\rangle = \frac{1}{\sqrt r}\sum_{k=0}^{r-1} \omega_r^{-kj}\,|a^k \bmod N\rangle∣ψj​⟩=r​1​k=0∑r−1​ωr−kj​∣akmodN⟩

is nonzero and satisfies

U∣ψj⟩=ωrj ∣ψj⟩.U|\psi_j\rangle = \omega_r^{j}\,|\psi_j\rangle .U∣ψj​⟩=ωrj​∣ψj​⟩.

These are the eigenstates to which phase estimation is applied; the eigenvalue ωrj=e2πij/r\omega_r^j = e^{2\pi i j/r}ωrj​=e2πij/r carries the phase j/rj/rj/r.

Preamble
import Mathlib
import Definitions.Def_ShorWiki_Defs

open Matrix Kronecker
Formal statement
namespace ShorWiki

theorem mulModGate_mulVec_eigState (N a : ℕ) (ha : 1 < a) (haN : a < N)
    (hcop : Nat.Coprime a N) (j : ℕ) :
    eigState N a (regBits N) j ≠ 0 ∧
      mulModGate N a (regBits N) *ᵥ eigState N a (regBits N) j
        = omega (ord N a) ^ j • eigState N a (regBits N) j := 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. 4)
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