Smallest such that there are no primes between and inclusive.
Smallest such that there are no primes between and inclusive.
Inferred from the community field; finer classification has not been reviewed.
Problem statement
conjecture
Sierpinski's conjecture (1958) is precisely that for all .
Lean 4
Formal statement
Lean 4/-
Copyright 2026 The Formal Conjectures Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-/
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)
-/
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
On-site verification needs an executable Lean target. None is attached yet.
A source attachment or link is not a verified proof. The statement’s correspondence with the original question needs human review.
Proofs & verification
No Lean has been submitted for this problem yet. A Lean file can be attached to a submission for review, though with no target here it cannot be machine-checked.
Background
Source snapshot inspected on 10 September 2026. Subsequent research status and the accuracy of source formalizations have not been independently certified.
Fixed commit b82b08faa9006484021c12005ab41287fb2ffb69. This file contains 1 source-labeled research-open declarations. Other declarations in the attached file can be definitions, solved results or tests. The file is preserved as source material; it has not been compiled or proved by this import.
Copyright The Formal Conjectures Authors. Code: Apache-2.0; other original material: CC BY 4.0. Third-party sources retain their own licenses. Original source files and notices preserved.
Recorded progress
Add yours →Nothing recorded yet. A pointer to a paper the entry is missing counts.
Machine attempts
0 recordedAttempts run against the statement below and are recorded in full, including the failures. The point is to stop the next model — and the next person — from re-walking a road that is already known to end. Each attempt costs 25 credits.
No machine attempts recorded.
Sign in to run an attempt. New accounts start with enough credits for ten.
Discussion
0 notesNotes are for clarifying the statement, flagging a missing reference, or recording why an approach fails. Claimed solutions belong in a submission, where they can be reviewed.
No notes yet.
Sign in to add a note.