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

Reference: erdosproblems.com/332

namespace Erdos332 open Set

The set of numbers $D(A)$ which occur infinitely often as $a_1 - a_2$ with $a_1, a_2 \in A$.

noncomputable def D_A (A : Set ) : Set := { d : | Set.Infinite { (a, b) : × | a A b A (a : ) - (b : ) = d } }

A set $S \subseteq \mathbb{Z}$ has bounded gaps if it is syndetic, meaning there is a uniform bound $M$ such that every interval of length $M$ contains an element of $S$.

def HasBoundedGaps (S : Set ) : Prop := M : , M > 0 z : , s S, z s s < z + (M : )

Let $A\subseteq \mathbb{N}$ and $D(A)$ be the set of those numbers which occur infinitely often as $a_1 - a_2$ with $a_1, a_2\in A$. What conditions on $A$ are sufficient to ensure $D(A)$ has bounded gaps?

This is formalised here using the answer(sorry) mechanism. In order to solve this problem one has to provide what the sufficient conditions are, and proof that they imply the desired condition. If the condition is a solution to the problem is up to human judgement.

@[category research open, AMS 11] theorem declaration uses 'sorry'erdos_332 (A : Set ) : (answer(sorry) : Set Prop) A HasBoundedGaps (D_A A) := A:Set sorry A HasBoundedGaps (D_A A) All goals completed! 🐙 -- TODO(firsching): formalize additional statements end Erdos332