Title:Ordered ways to write with and both prime · conjecture_2
Statement:In particular, we may take in the conjecture.
| Subjects: | Number Theory (math.NT) |
| MSC classes: | 11 |
| Cite as: | NS.05733 [math.NT] · NS.05733v1 for this version |
| Declaration: | OeisA237348.conjecture_2 |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 100, later ones: 10; accepted critique: up to 60 |
| Statement hash: | b6bf3924c10adaa209af755b81656f34a50f2ebe4eddafabfb9d74552522cf7c |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/OEIS/237348.lean |
Formal statement
theorem conjecture_2 (d : Fin 10) (n : ℕ)
(hn : ![2, 11, 4, 15, 31, 4, 2, 77, 4, 7] d < n) :
∃ k m : ℕ, 0 < k ∧ 0 < m ∧ n = k + m ∧
(Nat.nth Nat.Prime (k - 1) + 2 * (d.val + 1)).Prime ∧
(Nat.nth Nat.Prime (Nat.nth Nat.Prime (m - 1) - 1) + 2 * (d.val + 1)).PrimeShow the full Challenge.lean (103 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Ordered ways to write $n = k + m$ with $p_k + 4$ and $p_{p_m} + 4$ both prime
Let $p_j$ denote the $j$-th prime number. The sequence $a(n)$ counts the number of ordered ways to
write $n = k + m$ with $k > 0$ and $m > 0$ such that $p_k + 4$ and $p_{p_m} + 4$ are both prime.
*References:*
- [A237348](https://oeis.org/A237348)
-/
@[expose] public section
namespace OeisA237348
/-- $a(n)$ is the number of ordered ways to write $n = k + m$ with $k > 0$ and $m > 0$ such that
$p_k + 4$ and $p_{p_m} + 4$ are both prime. -/
noncomputable def a (n : ℕ) : ℕ :=
∑ k ∈ Finset.Ico 1 n,
if (Nat.nth Nat.Prime (k - 1) + 4).Prime ∧
(Nat.nth Nat.Prime (Nat.nth Nat.Prime (n - k - 1) - 1) + 4).Prime then 1 else 0
@[category test, AMS 11]
theorem a_1 : a 1 = 0 := by
simp [a]
@[category test, AMS 11]
theorem a_2 : a 2 = 0 := by
have h : Finset.Ico 1 2 = {1} := by decide
simp only [a, h, Finset.sum_singleton, Nat.reduceSub, Nat.nth_prime_zero_eq_two]
decide
@[category test, AMS 11]
theorem a_3 : a 3 = 1 := by
have h : Finset.Ico 1 3 = {1, 2} := by decide
simp only [a, h, Finset.sum_insert, Finset.mem_singleton, OfNat.one_ne_ofNat,
not_false_eq_true, Finset.sum_singleton, Nat.reduceSub, Nat.nth_prime_zero_eq_two,
Nat.nth_prime_one_eq_three]
decide
@[category test, AMS 11]
theorem a_4 : a 4 = 0 := by
have h : Finset.Ico 1 4 = {1, 2, 3} := by decide
simp only [a, h, Finset.sum_insert, Finset.mem_insert, Finset.mem_singleton,
OfNat.one_ne_ofNat, Nat.reduceEqDiff, or_self, not_false_eq_true, Finset.sum_singleton,
Nat.reduceSub, Nat.nth_prime_zero_eq_two, Nat.nth_prime_one_eq_three,
Nat.nth_prime_two_eq_five]
decide
@[category test, AMS 11]
theorem a_5 : a 5 = 1 := by
have h : Finset.Ico 1 5 = {1, 2, 3, 4} := by decide
simp only [a, h, Finset.sum_insert, Finset.mem_insert, Finset.mem_singleton,
OfNat.one_ne_ofNat, Nat.reduceEqDiff, or_self, not_false_eq_true, Finset.sum_singleton,
Nat.reduceSub, Nat.nth_prime_zero_eq_two, Nat.nth_prime_one_eq_three,
Nat.nth_prime_two_eq_five, Nat.nth_prime_three_eq_seven, Nat.nth_prime_four_eq_eleven]
decide
/--
Conjecture: For each $d = 1, 2, 3, \dots$ there is a positive integer $N(d)$ for which any integer
$n > N(d)$ can be written as $k + m$ with $k > 0$ and $m > 0$ such that
$p_k + 2d$ and $p_{p_m} + 2d$ are both prime.
-/
@[category research open, AMS 11]
theorem conjecture_1 (d : ℕ) (hd : 1 ≤ d) :
∃ N : ℕ, 0 < N ∧ ∀ n : ℕ, N < n →
∃ k m : ℕ, 0 < k ∧ 0 < m ∧ n = k + m ∧
(Nat.nth Nat.Prime (k - 1) + 2 * d).Prime ∧
(Nat.nth Nat.Prime (Nat.nth Nat.Prime (m - 1) - 1) + 2 * d).Prime := by
sorry
/--
In particular, we may take $(N(1), N(2), \dots, N(10)) = (2, 11, 4, 15, 31, 4, 2, 77, 4, 7)$
in the conjecture.
-/
@[category research open, AMS 11]
theorem conjecture_2 (d : Fin 10) (n : ℕ)
(hn : ![2, 11, 4, 15, 31, 4, 2, 77, 4, 7] d < n) :
∃ k m : ℕ, 0 < k ∧ 0 < m ∧ n = k + m ∧
(Nat.nth Nat.Prime (k - 1) + 2 * (d.val + 1)).Prime ∧
(Nat.nth Nat.Prime (Nat.nth Nat.Prime (m - 1) - 1) + 2 * (d.val + 1)).Prime := by
sorry
end OeisA237348
To prove it: keep every definition of Challenge.lean unchanged and prove OeisA237348.conjecture_2 with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_conjecture_2 : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry fetch oeis-237348--conjecture-2 nosorry submit oeis-237348--conjecture-2 nosorry/oeis-237348--conjecture-2/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.