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

References:

    erdosproblems.com/298

    [Bl21] Bloom, T. F., On a density conjecture about unit fractions. arXiv:2112.03726 (2021).

namespace Erdos298

Does every set $A \subseteq \mathbb{N}$ of positive density contain some finite $S \subset A$ such that $\sum_{n \in S} \frac{1}{n} = 1$?

The answer is yes, proved by Bloom [Bl21].

This was formalized in Lean 3 by Bloom and Mehta.

@[category research solved, AMS 11, formal_proof using other_system at "https://github.com/b-mehta/unit-fractions/blob/master/src/final_results.lean"] theorem declaration uses 'sorry'erdos_298 : answer(True) ( (A : Set ), 0 A A.HasPosDensity (S : Finset ), S A n S, (1 / n : ) = 1) := True (A : Set ), 0 A A.HasPosDensity S, S A n S, 1 / n = 1 All goals completed! 🐙

In [Bl21] it is proved under the weaker assumption that A only has positive upper density.

@[category research solved, AMS 11] theorem declaration uses 'sorry'erdos_298.variants.upper_density : answer(True) ( (A : Set ), 0 A 0 < A.upperDensity (S : Finset ), S A n S, (1 / n : ) = 1) := True (A : Set ), 0 A 0 < A.upperDensity S, S A n S, 1 / n = 1 All goals completed! 🐙 end Erdos298