Title:Erdős Problem 1193
Statement:Let and let be a non-decreasing function of which is always .
Is the lower density of always ?
The answer is trivially no to both questions: indeed if (assuming ) then for all . Presumably Erdős had some additional restrictions on either or in mind, but these are not recorded in [Er80].
| Subjects: | Combinatorics (math.CO); Number Theory (math.NT) |
| MSC classes: | 05, 11 |
| Tags: | question |
| Cite as: | NS.00952 [math.CO] · NS.00952v1 for this version |
| Declaration: | Erdos1193.erdos_1193.parts.i |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 10, later ones: 2; accepted critique: up to 60 |
| Statement hash: | a27909f99606c1b19c8d1892de9408ed2bafb33adf435d789233c2d853ea8455 |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/ErdosProblems/1193.lean |
Formal statement
theorem erdos_1193.parts.i :
¬ ∀ (A : Set ℕ) (g : ℕ → ℕ), Monotone g → (∀ n, 0 < g n) →
{n : ℕ | sumRep A n = g n}.lowerDensity = 0Show the full Challenge.lean (104 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Erdős Problem 1193
*References:*
- [erdosproblems.com/1193](https://www.erdosproblems.com/1193)
- [Er80] Erdős, Paul, *A survey of problems in combinatorial number theory*. Ann. Discrete Math.
(1980), 89-115.
-/
@[expose] public section
open AdditiveCombinatorics Set
namespace Erdos1193
/--
Let $A\subset \mathbb{N}$ and let $g(n)$ be a non-decreasing function of $n$ which is always $>0$.
Is the lower density of
$$\{ n : 1_A\ast 1_A(n)=g(n)\}$$
always $0$?
The answer is trivially no to both questions: indeed if $A=\mathbb{N}$ (assuming $0\in\mathbb{N}$)
then $1_A\ast 1_A(n)=n+1$ for all $n$. Presumably Erdős had some additional restrictions on either
$g$ or $A$ in mind, but these are not recorded in [Er80].
-/
@[category research solved, question, AMS 5 11]
theorem erdos_1193.parts.i :
¬ ∀ (A : Set ℕ) (g : ℕ → ℕ), Monotone g → (∀ n, 0 < g n) →
{n : ℕ | sumRep A n = g n}.lowerDensity = 0 := by
have hset : {n : ℕ | sumRep Set.univ n = n + 1} = Set.univ := by ext n; simp [sumRep_def]
intro h
have := h Set.univ (fun n => n + 1) (fun _ _ h => by simpa using h) (fun n => Nat.succ_pos n)
rw [hset, show (Set.univ : Set ℕ).lowerDensity = 1 from
Filter.Tendsto.liminf_eq HasDensity.univ_nat_hasDensity_one] at this
norm_num at this
/--
Let $A\subset \mathbb{N}$ and let $g(n)$ be a non-decreasing function of $n$ which is always $>0$.
Is the upper density of
$$\{ n : 1_A\ast 1_A(n)=g(n)\}$$
always $<c$ for some constant $c<1$?
The answer is trivially no to both questions: indeed if $A=\mathbb{N}$ (assuming $0\in\mathbb{N}$)
then $1_A\ast 1_A(n)=n+1$ for all $n$. Presumably Erdős had some additional restrictions on either
$g$ or $A$ in mind, but these are not recorded in [Er80].
-/
@[category research solved, question, AMS 5 11]
theorem erdos_1193.parts.ii :
¬ ∃ c < (1 : ℝ), ∀ (A : Set ℕ) (g : ℕ → ℕ), Monotone g → (∀ n, 0 < g n) →
{n : ℕ | sumRep A n = g n}.upperDensity < c := by
have hset : {n : ℕ | sumRep Set.univ n = n + 1} = Set.univ := by ext n; simp [sumRep_def]
rintro ⟨c, hc, h⟩
have := h Set.univ (fun n => n + 1) (fun _ _ h => by simpa using h) (fun n => Nat.succ_pos n)
rw [hset, show (Set.univ : Set ℕ).upperDensity = 1 from
Filter.Tendsto.limsup_eq HasDensity.univ_nat_hasDensity_one] at this
linarith
set_option linter.style.formal_proof_palomar false in
/--
Indeed if $A=\mathbb{N}$ (assuming $0\in\mathbb{N}$) then $1_A\ast 1_A(n)=n+1$ for all $n$.
-/
@[category research solved, AMS 5 11, formal_proof using lean4 at "https://github.com/plby/lean-proofs/blob/main/src/v4.29.1/ErdosProblems/Erdos1193.lean"]
theorem erdos_1193.variants.sumRep_univ (n : ℕ) : sumRep (Set.univ : Set ℕ) n = n + 1 := by
sorry
/--
Erdős writes the upper density can be positive, but he believes it is bounded away from $1$.
-/
@[category research solved, AMS 5 11]
theorem erdos_1193.variants.upper_density_pos :
∃ (A : Set ℕ) (g : ℕ → ℕ), Monotone g ∧ (∀ n, 0 < g n) ∧
0 < {n : ℕ | sumRep A n = g n}.upperDensity := by
have hset : {n : ℕ | sumRep Set.univ n = n + 1} = Set.univ := by ext n; simp [sumRep_def]
refine ⟨Set.univ, fun n => n + 1, fun _ _ h => by simpa using h, fun n => Nat.succ_pos n, ?_⟩
rw [hset, show (Set.univ : Set ℕ).upperDensity = 1 from
Filter.Tendsto.limsup_eq HasDensity.univ_nat_hasDensity_one]
norm_num
end Erdos1193
To prove it: keep every definition of Challenge.lean unchanged and prove Erdos1193.erdos_1193.parts.i with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_i : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry fetch erdos-1193 nosorry submit erdos-1193 nosorry/erdos-1193/Solution.lean --wait
Formal variants
Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.
- erdos-1193-parts-ii — known result
- erdos-1193-variants-sumrep-univ — known result
- erdos-1193-variants-upper-density-pos — 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.