/- 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 326

Reference: erdosproblems.com/326

open Filter open scoped Topology namespace Erdos326

Let $A \subset \mathbb{N}$ be an additive basis of order 2.

Must there exist $B = {b_1 < b_2 < \dots} \subseteq A$ which is also a basis such that $\lim_{k\to\infty} \frac{b_k}{k^2}$ does not exist?

@[category research open, AMS 5 11] theorem declaration uses 'sorry'erdos_326 : answer(sorry) (A : Set ), A.IsAddBasisOfOrder 2 (b : ), StrictMono b n, b n A (Set.range b).IsAddBasis (x : ), ¬ Tendsto (fun n (b n : ) / n ^ 2) atTop (𝓝 x) := True (A : Set ), A.IsAddBasisOfOrder 2 b, StrictMono b (n : ), b n A (Set.range b).IsAddBasis (x : ), ¬Tendsto (fun n => (b n) / n ^ 2) atTop (𝓝 x) All goals completed! 🐙

Erdős originally asked whether this was true with A = B, but this was disproved by Cassels.

-- Formalisation note: This is trivially true for `x = 0` by taking `a = id`. Cassels' proof -- shows it for `0 < x` which is more interesting. @[category research solved, AMS 5 11] theorem declaration uses 'sorry'erdos_326.variants.eq : (a : ) (_ : StrictMono a) (_ : Set.range a |>.IsAddBasisOfOrder 2) (x : ) (_ : 0 < x), Tendsto (fun n (a n : ) / n ^ 2) atTop (𝓝 x) := a, (_ : StrictMono a) (_ : (Set.range a).IsAddBasisOfOrder 2), x, (_ : 0 < x), Tendsto (fun n => (a n) / n ^ 2) atTop (𝓝 x) All goals completed! 🐙 end Erdos326