Classical reduction: if then it is a nontrivial factor of
ProvedShorWiki.gcd_ne_one_nontrivial_factorquantum-computingshor-algorithm
Let be integers and let . If , then is a nontrivial factor of :
This is step 3 of the article's restated algorithm: before any quantum computation, a lucky choice of sharing a factor with already splits as .
Preamble
import Mathlib import Definitions.Def_ShorWiki_Defs open Matrix Kronecker
Formal statement
namespace ShorWiki
theorem gcd_ne_one_nontrivial_factor (N a : ℕ) (ha : 1 < a) (haN : a < N)
(hK : Nat.gcd a N ≠ 1) :
Nat.gcd a N ∣ N ∧ 1 < Nat.gcd a N ∧ Nat.gcd a N < N := 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 "Classical reduction", restated algorithm, steps 1–3 (PDF p. 3)
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.