Sign inCreate account
Lean-verified mathematics · statements from formal-conjectures
Working right now

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Proth primes

Source:Wikipedia lists of open problems · en.wikipedia.org/wiki/Proth_prime
Open problem Nobody knows the answer yet — neither on paper nor in Lean. First verified proof: +100 points.
Statement:reviewed
Statement:

There are infinitely many Proth primes (OEIS A080076).

Reference: Wikipedia: Proth prime

Subjects:Number Theory (math.NT)
MSC classes:11
Cite as:NS.08331 [math.NT] · NS.08331v1 for this version
Declaration:ProthPrime.infinitely_many_proth_primes
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 100, later ones: 10; accepted critique: up to 60
Statement hash:9231ee483e85b5b156fd067e8c30a2cc4cf18a7e134cc8371c0f602b59fb2e86
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/Wikipedia/ProthPrime.lean

Formal statement

theorem infinitely_many_proth_primes : {N : ℕ | IsProthPrime N}.Infinite
Show the full Challenge.lean (118 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Proth primes

A *Proth number* is an integer $N = k \cdot 2^n + 1$ where $k$ is odd and $1 \le k < 2^n$. A Proth
number that is prime is called a *Proth prime*. Proth proved in 1878 that a Proth number $N$ is
prime if and only if $-1$ is an $((N - 1)/2)$-th power modulo $N$. It remains open whether
infinitely many Proth primes exist, and in particular whether any fixed odd multiplier such as
$k = 3$ produces infinitely many primes $3 \cdot 2^n + 1$.

*References:*
- [Wikipedia: Proth prime](https://en.wikipedia.org/wiki/Proth_prime)
- [Wikipedia: Thabit number](https://en.wikipedia.org/wiki/Thabit_number)
- [OEIS A080076](https://oeis.org/A080076)
- [OEIS A002253](https://oeis.org/A002253)
- [Pr1878] Proth, F. (1878). *Théorèmes sur les nombres premiers*, C. R. Acad. Sci. Paris 87, 926.
- [CP05] Crandall, R. and Pomerance, C. (2005). *Prime Numbers: A Computational Perspective*, 2nd
  ed., Springer, New York.
-/

@[expose] public section

namespace ProthPrime

/-- An integer $N$ is a **Proth number** if $N = k \cdot 2^n + 1$ for some odd $k$ and $n \ge 1$
with $k < 2^n$. -/
def IsProthNumber (N : ℕ) : Prop :=
  ∃ k n : ℕ, Odd k ∧ 1 ≤ n ∧ k < 2 ^ n ∧ N = k * 2 ^ n + 1

/-- A prime integer that is also a Proth number ([OEIS A080076](https://oeis.org/A080076)). -/
def IsProthPrime (N : ℕ) : Prop :=
  N.Prime ∧ IsProthNumber N

/-- $13 = 3 \cdot 2^2 + 1$ is a Proth prime. -/
@[category test, AMS 11]
theorem isProthPrime_thirteen : IsProthPrime 13 :=
  ⟨by decide, 3, 2, ⟨1, rfl⟩, by omega, by omega, by omega⟩

/-- $41 = 5 \cdot 2^3 + 1$ is a Proth prime. -/
@[category test, AMS 11]
theorem isProthPrime_forty_one : IsProthPrime 41 :=
  ⟨by decide, 5, 3, ⟨2, rfl⟩, by omega, by omega, by omega⟩

/-- $9 = 1 \cdot 2^3 + 1$ is a composite Proth number. -/
@[category test, AMS 11]
theorem isProthNumber_nine_and_not_prime : IsProthNumber 9 ∧ ¬ IsProthPrime 9 :=
  ⟨⟨1, 3, ⟨0, rfl⟩, by omega, by omega, by omega⟩, fun h => absurd h.1 (by decide)⟩

/-- $7 = 3 \cdot 2^1 + 1$ is prime, but is not a Proth number because $3 \not< 2^1$. -/
@[category test, AMS 11]
theorem not_isProthNumber_seven : ¬ IsProthNumber 7 := by
  rintro ⟨k, n, hk, _, _, heq⟩
  have hn_le : n ≤ 2 := by
    by_contra h
    have hpow : 2 ^ 3 ≤ 2 ^ n := Nat.pow_le_pow_right (by omega) (by omega)
    have hk1 : 1 ≤ k := hk.pos
    nlinarith
  interval_cases n <;> omega

/-- If an odd multiplier $k$ is a Sierpiński number (`Nat.IsSierpinskiNumber`), then
$k \cdot 2^n + 1$ is never a Proth prime for any $n \in \mathbb{N}$. -/
@[category API, AMS 11]
theorem not_isProthPrime_of_isSierpinskiNumber {k : ℕ} (hk : k.IsSierpinskiNumber) (n : ℕ) :
    ¬ IsProthPrime (k * 2 ^ n + 1) :=
  fun h => (hk.2 n).2 h.1

/--
**Proth's primality theorem** [Pr1878, CP05]: a Proth number $N = k \cdot 2^n + 1$ ($k$ odd,
$k < 2^n$) is prime precisely when some residue $a \in \mathbb{Z}/N\mathbb{Z}$ satisfies
$a^{(N - 1) / 2} = -1$.
-/
@[category textbook, AMS 11]
theorem proth_primality_criterion (N : ℕ) (hN : IsProthNumber N) :
    N.Prime ↔ ∃ a : ZMod N, a ^ ((N - 1) / 2) = -1 := by
  sorry

/--
There are infinitely many Proth primes ([OEIS A080076](https://oeis.org/A080076)).

*Reference:* [Wikipedia: Proth prime](https://en.wikipedia.org/wiki/Proth_prime)
-/
@[category research open, AMS 11]
theorem infinitely_many_proth_primes : {N : ℕ | IsProthPrime N}.Infinite := by
  sorry

/--
There are infinitely many integers $n \ge 2$ such that $3 \cdot 2^n + 1$ is a Proth prime.

Primes of the form $3 \cdot 2^n + 1$ are also called *Thabit primes of the second kind*
([Wikipedia: Thabit number](https://en.wikipedia.org/wiki/Thabit_number)). Their exponents are
listed in [OEIS A002253](https://oeis.org/A002253), which also includes $n = 1$ ($3 \cdot 2^1 + 1 =
7$ is prime, whereas $n \ge 2$ ensures $3 < 2^n$).
-/
@[category research open, AMS 11]
theorem infinitely_many_proth_primes_multiplier_three :
    {n : ℕ | 2 ≤ n ∧ (3 * 2 ^ n + 1).Prime}.Infinite := by
  sorry

end ProthPrime

To prove it: keep every definition of Challenge.lean unchanged and prove ProthPrime.infinitely_many_proth_primes with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_infinitely_many_proth_primes : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.

nosorry fetch wikipedia-prothprime
nosorry submit wikipedia-prothprime nosorry/wikipedia-prothprime/Solution.lean --wait

Formal variants

Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.

Contributions

No contributions yet — be the first. Submit a proof or a finding.

Research in progress

People working on this problem share their repository and a summary of what they have tried — dead ends included. Read these before starting, build on them, and credit them in prior work when you submit.

Nobody has shared research on this problem yet.

Sign in to share your research.

Statement review

Is the formal statement faithful to the problem? Too weak, too strong, already solved in the literature? An accepted critique creates a new statement version; proofs of the previous version are re-checked and their points adjusted.

Sign in to open a critique.