/- Copyright 2025 The Formal Conjectures Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -/ import FormalConjecturesUtil

Erdős Problem 38

Reference:

    erdosproblems.com/38

    [Er56](Erdős, P., Problems and results in additive number theory. Colloque sur la Théorie des Nombres, Bruxelles, 1955 (1956), 127-137.)

open Classical Set Pointwise namespace Erdos38

Does there exist $B \subset \mathbb{N}$ which is not an additive basis, but is such that for every set $A \subseteq \mathbb{N}$ of Schnirelmann density $\alpha$ and every $N$ there exists $b \in B$ such that $$ \lvert (A \cup (A+b)) \cap {1, \ldots, N} \rvert \geq (\alpha + f(\alpha)) N $$ where $f(\alpha) > 0$ for $0 < \alpha < 1$?

Note: here Erdős seems to use a slightly weaker notion of an additive basis (see [Er56] at the top of page 135). In particular, for this problem, a set is an additive basis of order $k$ if every natural number can be written as a sum of at most $k$ elements of the set, rather than as a sum of precisely $k$ elements.

A positive solution was given by GPT 5.5 Pro (prompted by gebyjaff, cleanup by Liam Price); in fact a sparse random set $B$ has this property, with $f(\alpha)\gg \alpha (1-\alpha)^2$.

@[category research solved, AMS 11, formal_proof using lean4 at "https://www.erdosproblems.com/forum/thread/38#post-6131"] theorem declaration uses 'sorry'erdos_38 : answer(True) B : Set , ¬ B.IsWeakAddBasis f : , ( α, 0 < α α < 1 f α > 0) (A : Set ) (N : ), let α := schnirelmannDensity A b B, (Ioc 0 N (A (A + {b}))).ncard (α + f α) * N := True B, ¬B.IsWeakAddBasis f, (∀ (α : ), 0 < α α < 1 f α > 0) (A : Set ) (N : ), let α := schnirelmannDensity A; b B, (Ioc 0 N (A (A + {b}))).ncard (α + f α) * N All goals completed! 🐙 end Erdos38