Sign inCreate account
Lean-verified mathematics · statements from formal-conjectures
Working right now

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Erdős Problem 337

Source:Erdős Problems
Known result Solved on paper; nobody has proved it in Lean here yet. First verified proof: +10 points.
Statement:reviewed
Statement:

Let A⊆NA\subseteq \mathbb{N} be an additive basis (of any finite order) such that ∣A∩{1,…,N}∣=o(N)\lvert A\cap \{1,\ldots,N\}\rvert=o(N). Is it true that lim⁡N→∞∣(A+A)∩{1,…,N}∣∣A∩{1,…,N}∣=∞? \lim_{N\to \infty}\frac{\lvert (A+A)\cap \{1,\ldots,N\}\rvert} {\lvert A\cap \{1,\ldots,N\}\rvert}=\infty?

The answer is no, and a counterexample was provided by Turjányi [Tu84]. This was generalised (to the replacement of A+AA+A by the hh-fold sumset hAhA for any h≥2h\geq 2) by Ruzsa and Turjányi [RT85].

"Additive basis" is Set.IsAsymptoticAddBasis: some finite hh has hAhA containing every sufficiently large integer. The exact notion Set.IsAddBasis, which asks that hAhA be all of N\mathbb{N}, would force 0,1∈A0, 1 \in A and is not the class these results are about.

The linked file states the basis hypothesis as ∃ N₀, Set.Ici N₀ ⊆ iterated_sumset A k and indexes both counting functions by a real xx through ⌊x⌋\lfloor x\rfloor, where the counting functions here are indexed by N:NN : \mathbb{N}.

Subjects:Combinatorics (math.CO); Number Theory (math.NT)
MSC classes:05, 11
Tags:question, formal_proof
Cite as:NS.01731 [math.CO] · NS.01731v1 for this version
Declaration:Erdos337.erdos_337
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 10, later ones: 2; accepted critique: up to 60
Statement hash:112669026145f0eaa9d429763679d0fa26a1212fa541776cb0dabaadc367bd88
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/ErdosProblems/337.lean

Formal statement

theorem erdos_337 :
    ¬ ∀ A : Set ℕ, A.IsAsymptoticAddBasis →
      (fun N : ℕ ↦ ((A ∩ Icc 1 N).ncard : ℝ)) =o[atTop] (fun N : ℕ ↦ (N : ℝ)) →
      Tendsto (fun N : ℕ ↦ (((A + A) ∩ Icc 1 N).ncard : ℝ) / ((A ∩ Icc 1 N).ncard : ℝ))
        atTop atTop
Show the full Challenge.lean (132 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 337

*References:*
- [erdosproblems.com/337](https://www.erdosproblems.com/337)
- [ErGr80] Erdős, P. and Graham, R., *Old and new problems and results in combinatorial number
  theory*. Monographies de L'Enseignement Mathematique (1980).
- [ErGr80b] Erdős, P. and Graham, R. L., *On bases with an exact order*. Acta Arith. (1980),
  201-207.
- [RT85] Ruzsa, I. Z. and Turjányi, S., *A note on additive bases of integers*. Publ. Math.
  Debrecen (1985), 101-104.
- [Tu84] Turjányi, S., *A note on basis sequences*. Topics in classical number theory, Vol. I, II
  (Budapest, 1981) (1984), 1571-1576.
-/

@[expose] public section

namespace Erdos337

open Filter Set Asymptotics

open scoped Pointwise

set_option linter.style.formal_proof_palomar false in
/--
Let $A\subseteq \mathbb{N}$ be an additive basis (of any finite order) such that
$\lvert A\cap \{1,\ldots,N\}\rvert=o(N)$. Is it true that
$$
\lim_{N\to \infty}\frac{\lvert (A+A)\cap \{1,\ldots,N\}\rvert}
{\lvert A\cap \{1,\ldots,N\}\rvert}=\infty?
$$

The answer is no, and a counterexample was provided by Turjányi [Tu84]. This was generalised (to
the replacement of $A+A$ by the $h$-fold sumset $hA$ for any $h\geq 2$) by Ruzsa and Turjányi
[RT85].

"Additive basis" is `Set.IsAsymptoticAddBasis`: some finite $h$ has $hA$ containing every
sufficiently large integer. The exact notion `Set.IsAddBasis`, which asks that $hA$ be all of
$\mathbb{N}$, would force $0, 1 \in A$ and is not the class these results are about.

The linked file states the basis hypothesis as `∃ N₀, Set.Ici N₀ ⊆ iterated_sumset A k` and
indexes both counting functions by a real $x$ through $\lfloor x\rfloor$, where the counting
functions here are indexed by $N : \mathbb{N}$.
-/
@[category research solved, question, AMS 5 11, formal_proof using lean4 at "https://github.com/plby/lean-proofs/blob/68da20b96673899166e94638f5a7fffeb7231d35/src/latest/ErdosProblems/Erdos337.lean"]
theorem erdos_337 :
    ¬ ∀ A : Set ℕ, A.IsAsymptoticAddBasis →
      (fun N : ℕ ↦ ((A ∩ Icc 1 N).ncard : ℝ)) =o[atTop] (fun N : ℕ ↦ (N : ℝ)) →
      Tendsto (fun N : ℕ ↦ (((A + A) ∩ Icc 1 N).ncard : ℝ) / ((A ∩ Icc 1 N).ncard : ℝ))
        atTop atTop := by
  sorry

/--
This was generalised (to the replacement of $A+A$ by the $h$-fold sumset $hA$ for any $h\geq 2$)
by Ruzsa and Turjányi [RT85].
-/
@[category research solved, AMS 5 11]
theorem erdos_337.variants.h_fold : ∀ h : ℕ, 2 ≤ h →
    ∃ A : Set ℕ, A.IsAsymptoticAddBasis ∧
      (fun N : ℕ ↦ ((A ∩ Icc 1 N).ncard : ℝ)) =o[atTop] (fun N : ℕ ↦ (N : ℝ)) ∧
      ¬ Tendsto (fun N : ℕ ↦
          ((h • A ∩ Icc 1 N).ncard : ℝ) / ((A ∩ Icc 1 N).ncard : ℝ))
        atTop atTop := by
  sorry

set_option linter.style.formal_proof_palomar false in
/--
Ruzsa and Turjányi do prove (under the same hypotheses) that
$$
\lim_{N\to \infty}\frac{\lvert (A+A+A)\cap \{1,\ldots,3N\}\rvert}
{\lvert A\cap \{1,\ldots,N\}\rvert}=\infty,
$$
and conjecture that the same should be true with $(A+A)\cap \{1,\ldots,2N\}$ in the numerator.

This follows from the Plünnecke–Ruzsa inequality applied to $B=A\cap\{0,\ldots,N\}$: if $A$ is a
basis of order $h$ then $hB$ contains every element of $\{N_0,\ldots,N\}$, so
$(\lvert B+B\rvert/\lvert B\rvert)^h\geq \lvert hB\rvert/\lvert B\rvert\gg N/\lvert B\rvert$,
which tends to infinity since $\lvert B\rvert=o(N)$.
-/
@[category research solved, AMS 5 11, formal_proof using formal_conjectures at
"https://github.com/mo271/formal-conjectures/blob/9e4cd5617edacb313fb1da32adb4751f1fa8f603/FormalConjectures/ErdosProblems/337.lean#L95"]
theorem erdos_337.variants.ruzsa_turjanyi :
    ∀ A : Set ℕ, A.IsAsymptoticAddBasis →
      (fun N : ℕ ↦ ((A ∩ Icc 1 N).ncard : ℝ)) =o[atTop] (fun N : ℕ ↦ (N : ℝ)) →
      Tendsto (fun N : ℕ ↦
          (((A + A) ∩ Icc 1 (2 * N)).ncard : ℝ) / ((A ∩ Icc 1 N).ncard : ℝ))
        atTop atTop := by
  sorry

set_option linter.style.formal_proof_palomar false in
/--
Ruzsa and Turjányi do prove (under the same hypotheses) that
$$
\lim_{N\to \infty}\frac{\lvert (A+A+A)\cap \{1,\ldots,3N\}\rvert}
{\lvert A\cap \{1,\ldots,N\}\rvert}=\infty.
$$

This is weaker than `Erdos337.erdos_337.variants.ruzsa_turjanyi`: translating by a fixed
$a\in A$ with $1\leq a\leq N$ embeds $(A+A)\cap\{1,\ldots,2N\}$ into
$(A+A+A)\cap\{1,\ldots,3N\}$.
-/
@[category research solved, AMS 5 11, formal_proof using formal_conjectures at
"https://github.com/mo271/formal-conjectures/blob/9e4cd5617edacb313fb1da32adb4751f1fa8f603/FormalConjectures/ErdosProblems/337.lean#L240"]
theorem erdos_337.variants.three_fold :
    ∀ A : Set ℕ, A.IsAsymptoticAddBasis →
      (fun N : ℕ ↦ ((A ∩ Icc 1 N).ncard : ℝ)) =o[atTop] (fun N : ℕ ↦ (N : ℝ)) →
      Tendsto (fun N : ℕ ↦
          (((A + A + A) ∩ Icc 1 (3 * N)).ncard : ℝ) / ((A ∩ Icc 1 N).ncard : ℝ))
        atTop atTop := by
  sorry

end Erdos337

To prove it: keep every definition of Challenge.lean unchanged and prove Erdos337.erdos_337 with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_erdos_337 : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.

nosorry fetch erdos-337
nosorry submit erdos-337 nosorry/erdos-337/Solution.lean --wait

Formal variants

Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.

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.