/-
Copyright 2026 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 FormalConjecturesUtilErdős Problem 206
[ErGr80] Erdős, P. and Graham, R.,
[Cu22] Curtiss, D. R.,
[Er50b] Erdős, Pál,
[Na23] Nathanson, M.,
[Ch23b] Chu, H. V.,
[Ko24b] Kovač, V.,
open MeasureTheory
namespace Erdos206
The Egyptian fraction sum: ∑_{m ∈ S} 1/m for a finset of natural numbers.
noncomputable def egyptianSum (S : Finset ℕ) : ℝ :=
∑ m ∈ S, (1 : ℝ) / m
S is an Egyptian underapproximation of x: valid denominators (all positive) and sum < x.
def IsUnderapprox (S : Finset ℕ) (x : ℝ) : Prop :=
(∀ m ∈ S, 0 < m) ∧ egyptianSum S < x
S achieves the best n-term Egyptian underapproximation of x,
i.e. egyptianSum S realises $R_n(x)$.
def IsBestNTerm (S : Finset ℕ) (n : ℕ) (x : ℝ) : Prop :=
S.card = n ∧ IsUnderapprox S x ∧
∀ T : Finset ℕ, T.card = n → IsUnderapprox T x → egyptianSum T ≤ egyptianSum S
x has eventually greedy best Egyptian underapproximations: from some n₀ on, the best
n-term underapproximations of x are the prefixes of a single strictly increasing sequence
of denominators, so each is obtained from the previous by appending the minimal admissible
denominator.
def EventuallyGreedy (x : ℝ) : Prop :=
x > 0 ∧ ∃ (m : ℕ → ℕ), StrictMono m ∧ (∀ k, 0 < m k) ∧
∃ n₀ : ℕ, ∀ n ≥ n₀,
IsBestNTerm (Finset.image m (Finset.range n)) n x
Let $x>0$ be a real number. For any $n\geq 1$ let $$R_n(x) = \sum_{i=1}^n\frac{1}{m_i}<x$$ be the maximal sum of $n$ distinct unit fractions which is $<x$.
Is it true that, for almost all $x$, for sufficiently large $n$, we have $$R_{n+1}(x)=R_n(x)+\frac{1}{m},$$ where $m$ is minimal such that $m$ does not appear in $R_n(x)$ and the right-hand side is $<x$? (That is, are the best underapproximations eventually always constructed in a 'greedy' fashion?)
Kovač [Ko24b] has proved that this is false - in fact as false as possible: the set of $x\in (0,\infty)$ for which the best underapproximations are eventually 'greedy' has Lebesgue measure zero.
@[category research solved, AMS 11]
theorem erdos_206 : answer(False) ↔
∀ᵐ x ∂(volume.restrict (Set.Ioi (0 : ℝ))), EventuallyGreedy x := ⊢ False ↔ ∀ᵐ (x : ℝ) ∂volume.restrict (Set.Ioi 0), EventuallyGreedy x
All goals completed! 🐙
end Erdos206