{
  "id": "1298",
  "ident": "NS.01298",
  "slug": "erdos-206",
  "title": "Erdős Problem 206",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Let $x>0$ be a real number. For any $n\\geq 1$ let\n$$R_n(x) = \\sum_{i=1}^n\\frac{1}{m_i}<x$$\nbe the maximal sum of $n$ distinct unit fractions which is $<x$.\n\nIs it true that, for almost all $x$, for sufficiently large $n$, we have\n$$R_{n+1}(x)=R_n(x)+\\frac{1}{m},$$\nwhere $m$ is minimal such that $m$ does not appear in $R_n(x)$ and the right-hand side is\n$<x$? (That is, are the best underapproximations eventually always constructed in a 'greedy'\nfashion?)\n\nKovač [Ko24b] has proved that this is false - in fact as false as possible: the set of\n$x\\in (0,\\infty)$ for which the best underapproximations are eventually 'greedy' has Lebesgue\nmeasure zero.",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "question",
    "formal_proof"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos206.erdos_206",
  "statement_lean": "theorem erdos_206 :\n    ¬ ∀ᵐ x ∂(volume.restrict (Set.Ioi (0 : ℝ))), EventuallyGreedy x",
  "challenge_source": "/-\nCopyright 2026 The Formal Conjectures Authors.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    https://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n-/\nmodule\n\npublic import FormalConjecturesUtil\n\n/-!\n# Erdős Problem 206\n\n*References:*\n- [erdosproblems.com/206](https://www.erdosproblems.com/206)\n- [ErGr80] Erdős, P. and Graham, R., *Old and new problems and results in combinatorial\n  number theory*. Monographies de L'Enseignement Mathématique (1980).\n- [Cu22] Curtiss, D. R., *On Kellogg's Diophantine Problem*. Amer. Math. Monthly (1922),\n  380-387.\n- [Er50b] Erdős, Pál, *On a Diophantine equation*. Mat. Lapok (1950), 192-210.\n- [Na23] Nathanson, M., *Underapproximation by Egyptian fractions*. J. Number Theory (2023),\n  208-234.\n- [Ch23b] Chu, H. V., *A threshold for the best two-term underapproximation by Egyptian\n  fractions*. arXiv:2306.12564 (2023).\n- [Ko24b] Kovač, V., *On eventually greedy best underapproximations by Egyptian fractions*.\n  arXiv:2406.07218 (2024).\n-/\n\n@[expose] public section\n\nopen MeasureTheory\n\nnamespace Erdos206\n\n/- Formalization notes:\n- The problem's greedy recursion ($R_{n+1}(x)=R_n(x)+1/m$ with $m$ minimal such that $m$ does\n  not appear in $R_n(x)$ and the right-hand side is $<x$) is rendered as `EventuallyGreedy`:\n  from some `n₀` on, the best `n`-term underapproximations form a nested chain given by the\n  prefixes of a single strictly increasing sequence of denominators. The two are equivalent:\n  if `S` is a best `n`-term underapproximation and `S ∪ {m}` a best `(n+1)`-term one, then `m`\n  is forced to be the least `k ∉ S` with `egyptianSum S + 1/k < x` (a smaller admissible `k`\n  would give a strictly larger `(n+1)`-term underapproximation), and conversely the greedy\n  recursion produces exactly such a nested chain, with the appended denominators strictly\n  increasing and exceeding `max S` (else swapping out `max S` would improve `S`).\n- \"for almost all $x$\" is rendered as `∀ᵐ` with respect to Lebesgue measure restricted to\n  $(0,\\infty)$.\n-/\n\n/-- The Egyptian fraction sum: `∑_{m ∈ S} 1/m` for a finset of natural numbers. -/\nnoncomputable def egyptianSum (S : Finset ℕ) : ℝ :=\n  ∑ m ∈ S, (1 : ℝ) / m\n\n/-- `S` is an Egyptian underapproximation of `x`: valid denominators (all positive) and sum < x. -/\ndef IsUnderapprox (S : Finset ℕ) (x : ℝ) : Prop :=\n  (∀ m ∈ S, 0 < m) ∧ egyptianSum S < x\n\n/-- `S` achieves the best `n`-term Egyptian underapproximation of `x`,\ni.e. `egyptianSum S` realises $R_n(x)$. -/\ndef IsBestNTerm (S : Finset ℕ) (n : ℕ) (x : ℝ) : Prop :=\n  S.card = n ∧ IsUnderapprox S x ∧\n    ∀ T : Finset ℕ, T.card = n → IsUnderapprox T x → egyptianSum T ≤ egyptianSum S\n\n/-- `x` has eventually greedy best Egyptian underapproximations: from some `n₀` on, the best\n`n`-term underapproximations of `x` are the prefixes of a single strictly increasing sequence\nof denominators, so each is obtained from the previous by appending the minimal admissible\ndenominator. -/\ndef EventuallyGreedy (x : ℝ) : Prop :=\n  x > 0 ∧ ∃ (m : ℕ → ℕ), StrictMono m ∧ (∀ k, 0 < m k) ∧\n    ∃ n₀ : ℕ, ∀ n ≥ n₀,\n      IsBestNTerm (Finset.image m (Finset.range n)) n x\n\nset_option linter.style.formal_proof_palomar false in\n/--\nLet $x>0$ be a real number. For any $n\\geq 1$ let\n$$R_n(x) = \\sum_{i=1}^n\\frac{1}{m_i}<x$$\nbe the maximal sum of $n$ distinct unit fractions which is $<x$.\n\nIs it true that, for almost all $x$, for sufficiently large $n$, we have\n$$R_{n+1}(x)=R_n(x)+\\frac{1}{m},$$\nwhere $m$ is minimal such that $m$ does not appear in $R_n(x)$ and the right-hand side is\n$<x$? (That is, are the best underapproximations eventually always constructed in a 'greedy'\nfashion?)\n\nKovač [Ko24b] has proved that this is false - in fact as false as possible: the set of\n$x\\in (0,\\infty)$ for which the best underapproximations are eventually 'greedy' has Lebesgue\nmeasure zero.\n-/\n@[category research solved, question, AMS 11, formal_proof using lean4 at \"https://github.com/plby/lean-proofs/blob/68da20b96673899166e94638f5a7fffeb7231d35/src/latest/ErdosProblems/Erdos206.lean\"]\ntheorem erdos_206 :\n    ¬ ∀ᵐ x ∂(volume.restrict (Set.Ioi (0 : ℝ))), EventuallyGreedy x := by\n  sorry\n\nend Erdos206\n",
  "statement_hash": "a4d7112c1de8a3aeb4b312f3e18d7759f59488303bee20501c145adc68ed384b",
  "toolchain": "leanprover/lean4:v4.33.1",
  "upstream_commit": "f9b3868d5ca994a7bf95039bcec05338c0c21e2f",
  "workspace": "formal-conjectures",
  "field": "math",
  "formalization": "formal",
  "verification": "lean-kernel",
  "license": "Apache-2.0",
  "attribution": "google-deepmind/formal-conjectures contributors",
  "metric_name": null,
  "metric_direction": null,
  "critiques": [],
  "public_partial_proofs": [],
  "research_threads": [],
  "instructions": "Read research_threads first: other people's public repositories and what they already tried. Write Solution.lean starting from challenge_source. Keep every definition identical, prove decl_name with exactly the same type, no sorry in its dependency closure, no new axioms, no native_decide, no metaprogramming. Submit with POST /api/v1/submissions."
}