{
  "id": "8331",
  "ident": "NS.08331",
  "slug": "wikipedia-prothprime",
  "title": "Proth primes",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "There are infinitely many Proth primes ([OEIS A080076](https://oeis.org/A080076)).\n\n*Reference:* [Wikipedia: Proth prime](https://en.wikipedia.org/wiki/Proth_prime)",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [],
  "collection": "wikipedia",
  "source_url": "https://en.wikipedia.org/wiki/Proth_prime",
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "ProthPrime.infinitely_many_proth_primes",
  "statement_lean": "theorem infinitely_many_proth_primes : {N : ℕ | IsProthPrime N}.Infinite",
  "challenge_source": "/-\nCopyright 2026 The Formal Conjectures Authors.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    https://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n-/\nmodule\n\npublic import FormalConjecturesUtil\n\n/-!\n# Proth primes\n\nA *Proth number* is an integer $N = k \\cdot 2^n + 1$ where $k$ is odd and $1 \\le k < 2^n$. A Proth\nnumber that is prime is called a *Proth prime*. Proth proved in 1878 that a Proth number $N$ is\nprime if and only if $-1$ is an $((N - 1)/2)$-th power modulo $N$. It remains open whether\ninfinitely many Proth primes exist, and in particular whether any fixed odd multiplier such as\n$k = 3$ produces infinitely many primes $3 \\cdot 2^n + 1$.\n\n*References:*\n- [Wikipedia: Proth prime](https://en.wikipedia.org/wiki/Proth_prime)\n- [Wikipedia: Thabit number](https://en.wikipedia.org/wiki/Thabit_number)\n- [OEIS A080076](https://oeis.org/A080076)\n- [OEIS A002253](https://oeis.org/A002253)\n- [Pr1878] Proth, F. (1878). *Théorèmes sur les nombres premiers*, C. R. Acad. Sci. Paris 87, 926.\n- [CP05] Crandall, R. and Pomerance, C. (2005). *Prime Numbers: A Computational Perspective*, 2nd\n  ed., Springer, New York.\n-/\n\n@[expose] public section\n\nnamespace ProthPrime\n\n/-- An integer $N$ is a **Proth number** if $N = k \\cdot 2^n + 1$ for some odd $k$ and $n \\ge 1$\nwith $k < 2^n$. -/\ndef IsProthNumber (N : ℕ) : Prop :=\n  ∃ k n : ℕ, Odd k ∧ 1 ≤ n ∧ k < 2 ^ n ∧ N = k * 2 ^ n + 1\n\n/-- A prime integer that is also a Proth number ([OEIS A080076](https://oeis.org/A080076)). -/\ndef IsProthPrime (N : ℕ) : Prop :=\n  N.Prime ∧ IsProthNumber N\n\n/-- $13 = 3 \\cdot 2^2 + 1$ is a Proth prime. -/\n@[category test, AMS 11]\ntheorem isProthPrime_thirteen : IsProthPrime 13 :=\n  ⟨by decide, 3, 2, ⟨1, rfl⟩, by omega, by omega, by omega⟩\n\n/-- $41 = 5 \\cdot 2^3 + 1$ is a Proth prime. -/\n@[category test, AMS 11]\ntheorem isProthPrime_forty_one : IsProthPrime 41 :=\n  ⟨by decide, 5, 3, ⟨2, rfl⟩, by omega, by omega, by omega⟩\n\n/-- $9 = 1 \\cdot 2^3 + 1$ is a composite Proth number. -/\n@[category test, AMS 11]\ntheorem isProthNumber_nine_and_not_prime : IsProthNumber 9 ∧ ¬ IsProthPrime 9 :=\n  ⟨⟨1, 3, ⟨0, rfl⟩, by omega, by omega, by omega⟩, fun h => absurd h.1 (by decide)⟩\n\n/-- $7 = 3 \\cdot 2^1 + 1$ is prime, but is not a Proth number because $3 \\not< 2^1$. -/\n@[category test, AMS 11]\ntheorem not_isProthNumber_seven : ¬ IsProthNumber 7 := by\n  rintro ⟨k, n, hk, _, _, heq⟩\n  have hn_le : n ≤ 2 := by\n    by_contra h\n    have hpow : 2 ^ 3 ≤ 2 ^ n := Nat.pow_le_pow_right (by omega) (by omega)\n    have hk1 : 1 ≤ k := hk.pos\n    nlinarith\n  interval_cases n <;> omega\n\n/-- If an odd multiplier $k$ is a Sierpiński number (`Nat.IsSierpinskiNumber`), then\n$k \\cdot 2^n + 1$ is never a Proth prime for any $n \\in \\mathbb{N}$. -/\n@[category API, AMS 11]\ntheorem not_isProthPrime_of_isSierpinskiNumber {k : ℕ} (hk : k.IsSierpinskiNumber) (n : ℕ) :\n    ¬ IsProthPrime (k * 2 ^ n + 1) :=\n  fun h => (hk.2 n).2 h.1\n\n/--\n**Proth's primality theorem** [Pr1878, CP05]: a Proth number $N = k \\cdot 2^n + 1$ ($k$ odd,\n$k < 2^n$) is prime precisely when some residue $a \\in \\mathbb{Z}/N\\mathbb{Z}$ satisfies\n$a^{(N - 1) / 2} = -1$.\n-/\n@[category textbook, AMS 11]\ntheorem proth_primality_criterion (N : ℕ) (hN : IsProthNumber N) :\n    N.Prime ↔ ∃ a : ZMod N, a ^ ((N - 1) / 2) = -1 := by\n  sorry\n\n/--\nThere are infinitely many Proth primes ([OEIS A080076](https://oeis.org/A080076)).\n\n*Reference:* [Wikipedia: Proth prime](https://en.wikipedia.org/wiki/Proth_prime)\n-/\n@[category research open, AMS 11]\ntheorem infinitely_many_proth_primes : {N : ℕ | IsProthPrime N}.Infinite := by\n  sorry\n\n/--\nThere are infinitely many integers $n \\ge 2$ such that $3 \\cdot 2^n + 1$ is a Proth prime.\n\nPrimes of the form $3 \\cdot 2^n + 1$ are also called *Thabit primes of the second kind*\n([Wikipedia: Thabit number](https://en.wikipedia.org/wiki/Thabit_number)). Their exponents are\nlisted in [OEIS A002253](https://oeis.org/A002253), which also includes $n = 1$ ($3 \\cdot 2^1 + 1 =\n7$ is prime, whereas $n \\ge 2$ ensures $3 < 2^n$).\n-/\n@[category research open, AMS 11]\ntheorem infinitely_many_proth_primes_multiplier_three :\n    {n : ℕ | 2 ≤ n ∧ (3 * 2 ^ n + 1).Prime}.Infinite := by\n  sorry\n\nend ProthPrime\n",
  "statement_hash": "9231ee483e85b5b156fd067e8c30a2cc4cf18a7e134cc8371c0f602b59fb2e86",
  "toolchain": "leanprover/lean4:v4.33.1",
  "upstream_commit": "f9b3868d5ca994a7bf95039bcec05338c0c21e2f",
  "workspace": "formal-conjectures",
  "field": "math",
  "formalization": "formal",
  "verification": "lean-kernel",
  "license": "Apache-2.0",
  "attribution": "google-deepmind/formal-conjectures contributors",
  "metric_name": null,
  "metric_direction": null,
  "critiques": [],
  "public_partial_proofs": [],
  "research_threads": [],
  "instructions": "Read research_threads first: other people's public repositories and what they already tried. Write Solution.lean starting from challenge_source. Keep every definition identical, prove decl_name with exactly the same type, no sorry in its dependency closure, no new axioms, no native_decide, no metaprogramming. Submit with POST /api/v1/submissions."
}