Title:Smallest such that there are no primes between and inclusive.
Statement:Sierpinski's conjecture (1958) is precisely that for all .
| Subjects: | Number Theory (math.NT) |
| MSC classes: | 11 |
| Cite as: | NS.04688 [math.NT] · NS.04688v1 for this version |
| Declaration: | OeisA110835.conjecture |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 100, later ones: 10; accepted critique: up to 60 |
| Statement hash: | 381a21a64346fad438aae01161fbd8e76abb9613c112cd64887ade95829ff364 |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/OEIS/110835.lean |
Formal statement
theorem conjecture : ∀ n > 0, a n ≥ nShow the full Challenge.lean (115 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Smallest $m > 0$ such that there are no primes between $nm$ and $n(m+1)$ inclusive.
Sierpinski's conjecture (1958) is precisely that a(n) >= n for all n.
*References:*
- [A110835](https://oeis.org/A110835)
-/
@[expose] public section
namespace OeisA110835
open Nat Set
/--
The primary defining sequence `a`.
$a(n)$ is the smallest $m > 0$ such that there are no primes between $n \cdot m$
and $n \cdot (m+1)$ inclusive.
-/
noncomputable def a (n : ℕ) : ℕ :=
let IsPrimeFreeInterval (m : ℕ) : Prop :=
∀ p : ℕ, p.Prime → ¬ (n * m ≤ p ∧ p ≤ n * (m + 1))
let s : Set ℕ := {m : ℕ | m > 0 ∧ IsPrimeFreeInterval m}
sInf s
/-- Term theorems verifying the first few values of the sequence against the official OEIS b-file -/
@[category test, AMS 11]
theorem a_1 : a 1 = 8 := by
dsimp [a]
have hleast : IsLeast {m : ℕ | m > 0 ∧ ∀ p : ℕ, p.Prime → ¬ (1 * m ≤ p ∧ p ≤ 1 * (m + 1))} 8 := by
constructor
· simp only [mem_ofPred_eq, one_mul]
refine ⟨by decide, ?_⟩
intro p hp ⟨hge, hle⟩
interval_cases p <;> revert hp <;> decide
· rintro m ⟨hmpos, hfree⟩
by_contra! hlt
simp only [one_mul] at hfree
interval_cases m
· specialize hfree 2 (by decide); revert hfree; decide
· specialize hfree 2 (by decide); revert hfree; decide
· specialize hfree 3 (by decide); revert hfree; decide
· specialize hfree 5 (by decide); revert hfree; decide
· specialize hfree 5 (by decide); revert hfree; decide
· specialize hfree 7 (by decide); revert hfree; decide
· specialize hfree 7 (by decide); revert hfree; decide
exact hleast.csInf_eq
@[category test, AMS 11]
theorem a_2 : a 2 = 4 := by
dsimp [a]
have hleast : IsLeast {m : ℕ | m > 0 ∧ ∀ p : ℕ, p.Prime → ¬ (2 * m ≤ p ∧ p ≤ 2 * (m + 1))} 4 := by
constructor
· simp only [mem_ofPred_eq]
refine ⟨by decide, ?_⟩
intro p hp ⟨hge, hle⟩
interval_cases p <;> revert hp <;> decide
· rintro m ⟨hmpos, hfree⟩
by_contra! hlt
interval_cases m
· specialize hfree 2 (by decide); revert hfree; decide
· specialize hfree 5 (by decide); revert hfree; decide
· specialize hfree 7 (by decide); revert hfree; decide
exact hleast.csInf_eq
@[category test, AMS 11]
theorem a_3 : a 3 = 8 := by
dsimp [a]
have hleast : IsLeast {m : ℕ | m > 0 ∧ ∀ p : ℕ, p.Prime → ¬ (3 * m ≤ p ∧ p ≤ 3 * (m + 1))} 8 := by
constructor
· simp only [mem_ofPred_eq]
refine ⟨by decide, ?_⟩
intro p hp ⟨hge, hle⟩
interval_cases p <;> revert hp <;> decide
· rintro m ⟨hmpos, hfree⟩
by_contra! hlt
interval_cases m
· specialize hfree 3 (by decide); revert hfree; decide
· specialize hfree 7 (by decide); revert hfree; decide
· specialize hfree 11 (by decide); revert hfree; decide
· specialize hfree 13 (by decide); revert hfree; decide
· specialize hfree 17 (by decide); revert hfree; decide
· specialize hfree 19 (by decide); revert hfree; decide
· specialize hfree 23 (by decide); revert hfree; decide
exact hleast.csInf_eq
/--
Sierpinski's conjecture (1958) is precisely that $a(n) >= n$ for all $n$.
-/
@[category research open, AMS 11]
theorem conjecture : ∀ n > 0, a n ≥ n := by
sorry
end OeisA110835
To prove it: keep every definition of Challenge.lean unchanged and prove OeisA110835.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-110835 nosorry submit oeis-110835 nosorry/oeis-110835/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.