Title:Tug of war score between prime gap increases and decreases · conjecture2
Statement:Is the score bounded from below?
| Subjects: | Number Theory (math.NT) |
| MSC classes: | 11 |
| Tags: | question |
| Cite as: | NS.06968 [math.NT] · NS.06968v1 for this version |
| Declaration: | OeisA92243.conjecture2 |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 100, later ones: 10; accepted critique: up to 60 |
| Statement hash: | e22221cf29ff6c02b04292dc4543f3e86377990d5fd3e735c7a5e7a75e428bab |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/OEIS/92243.lean |
Formal statement
theorem conjecture2 : ∃ B : ℤ, ∀ n : ℕ, B ≤ a nShow the full Challenge.lean (116 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Tug of war score between prime gap increases and decreases
Score at stage $n$ in "tug of war" between prime gap increases vs. prime gap decreases:
start with score $= 0$ at $n = 1$ and at stage $k > 1$, increase (resp. decrease) the score by $1$
if the $k$-th prime gap is greater (resp. less) than the previous prime gap.
*References:*
- [A092243](https://oeis.org/A092243)-/
@[expose] public section
namespace OeisA92243
/-- The $n$-th prime gap $g(n) = p_n - p_{n-1}$ for $n \ge 1$,
where $p_i$ is the $i$-th prime (0-indexed). -/
noncomputable def primeGap (n : ℕ) : ℕ :=
Nat.nth Nat.Prime n - Nat.nth Nat.Prime (n - 1)
/-- Score at stage $n$ in "tug of war" between prime gap increases vs. prime gap decreases. -/
noncomputable def a (n : ℕ) : ℤ :=
if n ≤ 1 then 0
else
∑ k ∈ Finset.Icc 2 n,
((primeGap k : ℤ) - (primeGap (k - 1) : ℤ)).sign
/-- Value of the sequence `a` at 0. -/
@[category test, AMS 11]
theorem a_0 : a 0 = 0 := by rfl
/-- Value of the sequence `a` at 1. -/
@[category test, AMS 11]
theorem a_1 : a 1 = 0 := by rfl
/-- Value of the sequence `a` at 2. -/
@[category test, AMS 11]
theorem a_2 : a 2 = 1 := by
unfold a
have h2 : ¬ 2 ≤ 1 := by decide
rw [if_neg h2]
have h_icc : Finset.Icc 2 2 = {2} := by decide
rw [h_icc, Finset.sum_singleton]
unfold primeGap
have h_zero : Nat.nth Nat.Prime 0 = 2 := Nat.nth_prime_zero_eq_two
have h_one : Nat.nth Nat.Prime 1 = 3 := Nat.nth_prime_one_eq_three
have h_two : Nat.nth Nat.Prime 2 = 5 := Nat.nth_prime_two_eq_five
rw [h_zero, h_one, h_two]
decide
/-- Value of the sequence `a` at 3. -/
@[category test, AMS 11]
theorem a_3 : a 3 = 1 := by
unfold a
have h3 : ¬ 3 ≤ 1 := by decide
rw [if_neg h3]
have h_icc : Finset.Icc 2 3 = {2, 3} := by decide
rw [h_icc, Finset.sum_pair (by decide)]
unfold primeGap
have h_zero : Nat.nth Nat.Prime 0 = 2 := Nat.nth_prime_zero_eq_two
have h_one : Nat.nth Nat.Prime 1 = 3 := Nat.nth_prime_one_eq_three
have h_two : Nat.nth Nat.Prime 2 = 5 := Nat.nth_prime_two_eq_five
have h_three : Nat.nth Nat.Prime 3 = 7 := Nat.nth_prime_three_eq_seven
rw [h_zero, h_one, h_two, h_three]
decide
/--
Is the score $a(n) > 0$ for some $n > 250000$?-/
@[category research open, question, AMS 11]
theorem conjecture1 : ∃ n > 250000, a n > 0 := by
sorry
/--
Is the score $a(n)$ bounded from below?-/
@[category research open, question, AMS 11]
theorem conjecture2 : ∃ B : ℤ, ∀ n : ℕ, B ≤ a n := by
sorry
/--
Is the score $a(n)$ bounded from above?-/
@[category research open, question, AMS 11]
theorem conjecture3 : ∃ B : ℤ, ∀ n : ℕ, a n ≤ B := by
sorry
/--
Is the score $a(n) > 0$ for infinitely many values of $n$?-/
@[category research open, question, AMS 11]
theorem conjecture4 : Set.Infinite {n : ℕ | a n > 0} := by
sorry
/--
Is the score $a(n) < 0$ for infinitely many values of $n$?-/
@[category research open, question, AMS 11]
theorem conjecture5 : Set.Infinite {n : ℕ | a n < 0} := by
sorry
end OeisA92243
To prove it: keep every definition of Challenge.lean unchanged and prove OeisA92243.conjecture2 with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_conjecture2 : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry fetch oeis-92243--conjecture2 nosorry submit oeis-92243--conjecture2 nosorry/oeis-92243--conjecture2/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.