Title:Least prime · a_1
Statement:Value of the sequence
aat 1.
| Subjects: | Number Theory (math.NT) |
| MSC classes: | 11 |
| Cite as: | NS.06861 [math.NT] · NS.06861v1 for this version |
| Declaration: | OeisA7918.a_1 |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 1; accepted critique: up to 100 |
| Statement hash: | 3a95278030dc2c8a0d19069d8622e772026f5a1e3eaaacf8a5b5c0efb6f3ee61 |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/OEIS/7918.lean |
Formal statement
theorem a_1 : a 1 = 2Show the full Challenge.lean (96 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Least prime $\ge n$
Least prime $\ge n$ (version 1 of the "next prime" function).
*References:*
- [A007918](https://oeis.org/A007918)
-/
@[expose] public section
namespace OeisA7918
/-- Least prime $\ge n$ (version 1 of the "next prime" function). -/
noncomputable def a (n : ℕ) : ℕ :=
sInf { p : ℕ | p.Prime ∧ n ≤ p }
/-- Value of the sequence `a` at 0. -/
@[category test, AMS 11]
theorem a_0 : a 0 = 2 := by
dsimp [a]
have h : IsLeast { p : ℕ | p.Prime ∧ 0 ≤ p } 2 :=
⟨⟨Nat.prime_two, Nat.zero_le 2⟩, fun p hp ↦ hp.1.two_le⟩
exact h.csInf_eq
/-- Value of the sequence `a` at 1. -/
@[category test, AMS 11]
theorem a_1 : a 1 = 2 := by
dsimp [a]
have h : IsLeast { p : ℕ | p.Prime ∧ 1 ≤ p } 2 :=
⟨⟨Nat.prime_two, by decide⟩, fun p hp ↦ hp.1.two_le⟩
exact h.csInf_eq
/-- Value of the sequence `a` at 2. -/
@[category test, AMS 11]
theorem a_2 : a 2 = 2 := by
dsimp [a]
have h : IsLeast { p : ℕ | p.Prime ∧ 2 ≤ p } 2 :=
⟨⟨Nat.prime_two, le_rfl⟩, fun p hp ↦ hp.1.two_le⟩
exact h.csInf_eq
/-- Value of the sequence `a` at 3. -/
@[category test, AMS 11]
theorem a_3 : a 3 = 3 := by
dsimp [a]
have h : IsLeast { p : ℕ | p.Prime ∧ 3 ≤ p } 3 :=
⟨⟨Nat.prime_three, le_rfl⟩, fun p hp ↦ hp.2⟩
exact h.csInf_eq
/--
The initial term $p_0$ and common difference $d$ form an arithmetic progression of
length $n$ consisting entirely of prime numbers with $d > 0$.
-/
def isApOfNPrimes (n p0 d : ℕ) : Prop :=
d > 0 ∧ ∀ k < n, (p0 + k * d).Prime
/--
According to the "k-tuple" conjecture, $a(n)$ is the initial term of the
lexicographically earliest increasing arithmetic progression of $n$ primes;
the corresponding common differences are given by A061558.
-/
@[category research open, AMS 11]
theorem conjecture1 (n : ℕ) (hn : 0 < n) :
a n = sInf { p0 : ℕ | ∃ d : ℕ, isApOfNPrimes n p0 d } := by
sorry
/--
If $n > 1$, then $a(n) < n^{n^{1/n}}$.
- Thomas Ordowski, Feb 23 2023
-/
@[category research open, AMS 11]
theorem conjecture2 (n : ℕ) (hn : 1 < n) :
(a n : ℝ) < (n : ℝ) ^ ((n : ℝ) ^ (1 / (n : ℝ))) := by
sorry
end OeisA7918
To prove it: keep every definition of Challenge.lean unchanged and prove OeisA7918.a_1 with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_a_1 : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry desk oeis-7918--a-1 # a desk lease: required before submitting (renew: nosorry beat) nosorry fetch oeis-7918--a-1 nosorry submit oeis-7918--a-1 nosorry/oeis-7918--a-1/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.