Title:Riesel Problem
Statement:It is conjectured that the integer is the smallest Riesel number, that is, the first such that is .
| Subjects: | Number Theory (math.NT) |
| MSC classes: | 11 |
| Cite as: | NS.04586 [math.NT] · NS.04586v1 for this version |
| Declaration: | OeisA108129.conjecture |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 100, later ones: 10; accepted critique: up to 60 |
| Statement hash: | e7d0447d688f1b318e4addb85a5d904151876bbbfd0aae47abb0d1e804de529a |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/OEIS/108129.lean |
Formal statement
theorem conjecture :
a 254602 = -1 ∧ (∀ n : ℕ, 1 ≤ n ∧ n < 254602 → a n ≠ -1)Show the full Challenge.lean (78 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Riesel Problem
Riesel problem: let $k=2n-1$; then $a(n)$ is the smallest $m \ge 1$ such that
$k \cdot 2^m-1$ is prime, or $-1$ if no such prime exists.
*References:*
- [A108129](https://oeis.org/A108129)
-/
@[expose] public section
namespace OeisA108129
variable {m n : ℕ}
open Nat
open Classical in
/-- The primary defining sequence `a`.
Riesel problem: let $k=2n-1$; then $a(n)$ is the smallest $m \ge 1$ such that
$k \cdot 2^m-1$ is prime, or $-1$ if no such prime exists. -/
noncomputable def a (n : ℕ) : ℤ :=
if n = 0 then 0
-- Use classical choice to find the minimum, or return -1 if no such prime exists.
else if h : ∃ m, m ≠ 0 ∧ ((2 * n - 1) * 2 ^ m - 1).Prime then
Nat.find h
else
-1
@[category API, AMS 11]
lemma a_of_isLeast (hm : IsLeast {m | m ≠ 0 ∧ ((2 * n - 1) * 2 ^ m - 1).Prime} m) : a n = m := by
have hn : n ≠ 0 := by
rintro rfl
simpa using hm.1
rw [a, if_neg hn, dif_pos ⟨m, hm.1⟩, find_of_isLeast hm]
@[category test, AMS 11]
theorem a_1 : a 1 = 2 := a_of_isLeast <| by decide
@[category test, AMS 11]
theorem a_2 : a 2 = 1 := a_of_isLeast <| by decide
@[category test, AMS 11]
theorem a_3 : a 3 = 2 := a_of_isLeast <| by decide
@[category test, AMS 11]
theorem a_4 : a 4 = 1 := a_of_isLeast <| by decide
/--
It is conjectured that the integer $k = 509203$ is the smallest Riesel number,
that is, the first $n$ such that $a(n) = -1$ is $254602$.
-/
@[category research open, AMS 11]
theorem conjecture :
a 254602 = -1 ∧ (∀ n : ℕ, 1 ≤ n ∧ n < 254602 → a n ≠ -1) := by
sorry
end OeisA108129
To prove it: keep every definition of Challenge.lean unchanged and prove OeisA108129.conjecture with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_conjecture : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry fetch oeis-108129 nosorry submit oeis-108129 nosorry/oeis-108129/Solution.lean --wait
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.