Title:Erdős Problem 10
Statement:Is there some such that every large integer is the sum of a prime and at most powers of ?
| Subjects: | Combinatorics (math.CO); Number Theory (math.NT) |
| MSC classes: | 05, 11 |
| Tags: | question |
| Cite as: | NS.00328 [math.CO] · NS.00328v1 for this version |
| Declaration: | Erdos10.erdos_10 |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 100, later ones: 10; accepted critique: up to 60 |
| Statement hash: | 2773c5d6cad2239a161ec65db337984dad2a4356c0c5662dc904a58458ca5dc8 |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/ErdosProblems/10.lean |
Formal statement
theorem erdos_10 : ∃ k, ∀ᶠ n : ℕ in atTop, n ∈ sumPrimeAndTwoPows kShow the full Challenge.lean (131 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Erdős Problem 10
*References:*
- [erdosproblems.com/10](https://www.erdosproblems.com/10)
- [Cr71] Crocker, R., On the sum of a prime and of two powers of two. Pacific J. Math. 36 (1971),
103-107.
- [Ga75] Gallagher, P. X., Primes and powers of 2. Acta Arith. 29 (1976), 353-370.
- [GrSo98] Granville, A. and Soundararajan, K., A binary additive problem of Erdős and the
order of $2$ mod $p^2$. Ramanujan J. 2 (1998), 283-298.
-/
@[expose] public section
open Filter
namespace Erdos10
/--
The set of natural numbers that can be written as a sum
of a prime and at most $k$ powers of $2$.
-/
abbrev sumPrimeAndTwoPows (k : ℕ) : Set ℕ :=
{ p + (pows.map (2 ^ ·)).sum | (p : ℕ) (pows : Multiset ℕ) (_ : p.Prime)
(_ : pows.card ≤ k)}
/-- A prime is the sum of a prime and no powers of $2$. -/
@[category test, AMS 5 11]
theorem two_mem_sumPrimeAndTwoPows_zero : 2 ∈ sumPrimeAndTwoPows 0 :=
⟨2, 0, Nat.prime_two, by simp, by simp⟩
/-- $1$ is smaller than every prime, so it lies in no `sumPrimeAndTwoPows k`. -/
@[category test, AMS 5 11]
theorem one_not_mem_sumPrimeAndTwoPows (k : ℕ) : 1 ∉ sumPrimeAndTwoPows k := by
rintro ⟨p, pows, hp, -, h⟩
have : 2 ≤ p := hp.two_le
omega
/--
Is there some $k$ such that every large integer is the sum of a prime and at most $k$
powers of $2$?
-/
@[category research open, question, AMS 5 11]
theorem erdos_10 : ∃ k, ∀ᶠ n : ℕ in atTop, n ∈ sumPrimeAndTwoPows k := by
sorry
/--
Gallagher [Ga75] has shown that for any $ϵ > 0$ there exists $k(ϵ)$
such that the set of integers which are the sum of a prime and at most $k(ϵ)$
many powers of $2$ has lower density at least $1 - ϵ$.
Ref: Gallagher, P. X., _Primes and powers of 2_.
-/
@[category research solved, AMS 5 11]
theorem erdos_10.variants.gallagher (ε : ℝ)
(hε : 0 < ε) : ∃ k, 1 - ε ≤ (sumPrimeAndTwoPows k).lowerDensity := by
sorry
/--
Granville and Soundararajan [GrSo98] have conjectured that at most $3$
powers of $2$ suffice for all odd integers, and hence at most $4$ powers of $2$
suffice for all even integers.
Ref: Granville, A. and Soundararajan, K., _A Binary Additive Problem of Erdős and the Order of $2$ mod $p^2$_
-/
@[category research open, AMS 5 11]
theorem erdos_10.variants.granville_soundararajan_odd :
{n : ℕ | Odd n ∧ 1 < n} ⊆ sumPrimeAndTwoPows 3 ∧
{n : ℕ | Even n ∧ n ≠ 0} ⊆ sumPrimeAndTwoPows 4 := by
sorry
set_option linter.style.formal_proof_palomar false in
/--
Bogdan Grechuk has observed that `1117175146` is not the sum of a prime
and at most $3$ powers of $2$.
-/
@[category research solved, AMS 5 11, formal_proof using lean4 at
"https://github.com/linrock/math-proofs/blob/bed1ae569eaac7109327f644fa149b902b562873/erdos-10/Solution.lean#L36"]
theorem erdos_10.variants.grechuk_example :
1117175146 ∉ sumPrimeAndTwoPows 3 := by
sorry
set_option linter.style.formal_proof_palomar false in
/--
There are infinitely many even integers not the sum of a prime and $2$ powers of $2$
-/
@[category research solved, AMS 5 11, formal_proof using lean4 at "https://github.com/anatoliiohorodnyk/lean-fc-proofs/blob/5da9642575b26c2c816a49bcb56b33fed5456619/Proofs/T_Erdos10_erdos_10_variants_two_pows.lean#L340"]
theorem erdos_10.variants.two_pows :
Set.Infinite <| {n : ℕ | Even n} \ sumPrimeAndTwoPows 2 := by
sorry
set_option linter.style.formal_proof_palomar false in
/--
Bogdan Grechuk has observed that $1117175146$ is not the sum of a prime and at most $3$
powers of $2$, and pointed out that parity considerations, coupled with the fact that there
are many integers not the sum of a prime and $2$ powers of $2$ suggest that there exist
infinitely many even integers which are not the sum of a prime and at most $3$ powers of $2$.
This follows from Crocker's construction [Cr71] of infinitely many odd $t \equiv 15 \pmod{16}$
which are not the sum of a prime and $2$ powers of $2$: each such $t + 1$ is even and not the
sum of a prime and at most $3$ powers of $2$.
The linked Lean formalisation is by Daryxx, see comment section.
-/
@[category research solved, AMS 5 11, formal_proof using lean4 at
"https://gist.github.com/DaryxXx/e112c74cc648b08a420b0959315cf65f/4b347897ff1811f1db1d82594c581f54b8f31b7d#file-main-lean-L2287"]
theorem erdos_10.variants.grechuk :
Set.Infinite <| {n : ℕ | Even n} \ sumPrimeAndTwoPows 3 := by
sorry
end Erdos10
To prove it: keep every definition of Challenge.lean unchanged and prove Erdos10.erdos_10 with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_erdos_10 : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry fetch erdos-10 nosorry submit erdos-10 nosorry/erdos-10/Solution.lean --wait
Formal variants
Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.
- erdos-10-variants-gallagher — known result
- erdos-10-variants-granville-soundararajan-odd — open
- erdos-10-variants-grechuk-example — known result
- erdos-10-variants-two-pows — known result
- erdos-10-variants-grechuk — known result
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.