Title:Erdős Problem 308
Statement:Let . What is the smallest integer not representable as the sum of distinct unit fractions with denominators from ?
This was essentially solved by Croot [Cr99] (see
erdos_308.variants.croot); in particular, for all sufficiently large , the smallest such integer is either or , where .
| Subjects: | Number Theory (math.NT) |
| MSC classes: | 11 |
| Tags: | formal_proof |
| Cite as: | NS.01654 [math.NT] · NS.01654v1 for this version |
| Declaration: | Erdos308.erdos_308.parts.i |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 10, later ones: 2; accepted critique: up to 60 |
| Statement hash: | 255724f09fc0c55864ee9b9d66813fc2aaed27cb68d51d1bb5443f14ea9de72c |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/ErdosProblems/308.lean |
Formal statement
theorem erdos_308.parts.i : ∀ᶠ N : ℕ in atTop, f N = m N ∨ f N = m N + 1Show the full Challenge.lean (119 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Erdős Problem 308
*References:*
- [erdosproblems.com/308](https://www.erdosproblems.com/308)
- [ErGr80] Erdős, P. and Graham, R., _Old and new problems and results in combinatorial number
theory_. Monographies de L'Enseignement Mathematique (1980).
- [Cr99] Croot, III, Ernest S., _On some questions of Erdős and Graham about Egyptian
fractions_. Mathematika (1999), 359-372.
-/
@[expose] public section
open Filter Real
namespace Erdos308
/-- `k` is representable as a sum of distinct unit fractions with denominators from
`{1, …, N}`. -/
def IsRepresentable (N k : ℕ) : Prop :=
∃ A ⊆ Finset.Icc 1 N, ∑ n ∈ A, (1 : ℚ) / n = k
/-- The set of positive integers representable as a sum of distinct unit fractions with
denominators from `{1, …, N}`. -/
def representable (N : ℕ) : Set ℕ := {k | 0 < k ∧ IsRepresentable N k}
/-- `f N` is the smallest positive integer which is not representable as a sum of distinct unit
fractions with denominators from `{1, …, N}`. -/
noncomputable def f (N : ℕ) : ℕ := sInf {k | 0 < k ∧ ¬ IsRepresentable N k}
/-- `m N = ⌊∑_{n ≤ N} 1/n⌋`. -/
def m (N : ℕ) : ℕ := ⌊harmonic N⌋₊
set_option linter.style.formal_proof_palomar false in
/--
Let $N\geq 1$. What is the smallest integer not representable as the sum of distinct unit
fractions with denominators from $\{1,\ldots,N\}$?
This was essentially solved by Croot [Cr99] (see `erdos_308.variants.croot`); in particular,
for all sufficiently large $N$, the smallest such integer is either $m_N$ or $m_N+1$, where
$m_N=\lfloor \sum_{n\leq N}\frac{1}{n}\rfloor$.
-/
@[category research solved, AMS 11, formal_proof using lean4 at
"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos308.lean#L458"]
theorem erdos_308.parts.i : ∀ᶠ N : ℕ in atTop, f N = m N ∨ f N = m N + 1 := by
sorry
set_option linter.style.formal_proof_palomar false in
/--
Let $N\geq 1$. Is it true that the set of integers representable as the sum of distinct unit
fractions with denominators from $\{1,\ldots,N\}$ has the shape $\{1,\ldots,m\}$ for some $m$?
It follows from Croot's bounds [Cr99] that this holds for all sufficiently large $N$.
-/
@[category research solved, question, AMS 11, formal_proof using lean4 at
"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos308.lean#L458"]
theorem erdos_308.parts.ii :
∀ᶠ N : ℕ in atTop, ∃ m, representable N = Set.Icc 1 m := by
sorry
set_option linter.style.formal_proof_palomar false in
/--
If $m_N=\lfloor \sum_{n\leq N}\frac{1}{n}\rfloor$, then the set of integers representable is, for
all $N$ sufficiently large, either $\{1,\ldots,m_N-1\}$ or $\{1,\ldots,m_N\}$.
-/
@[category research solved, AMS 11, formal_proof using lean4 at
"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos308.lean#L458"]
theorem erdos_308.variants.shape : ∀ᶠ N : ℕ in atTop,
representable N = Set.Icc 1 (m N - 1) ∨ representable N = Set.Icc 1 (m N) := by
sorry
/--
Croot [Cr99] bounded $\eta(N)$, the largest integer such that every integer in
$\{1,\ldots,\eta(N)\}$ is representable; this is $f(N)-1$, so his bounds read
$$\left\lfloor\sum_{n\leq N}\frac{1}{n}-\frac{9}{2}(1+o(1))\frac{(\log\log N)^2}{\log N}
\right\rfloor + 1 \leq f(N)$$
and
$$f(N)\leq \left\lfloor\sum_{n\leq N}\frac{1}{n}-\frac{1}{2}(1+o(1))
\frac{(\log\log N)^2}{\log N}\right\rfloor + 1.$$
-/
@[category research solved, AMS 11]
theorem erdos_308.variants.croot :
∃ o₁ o₂ : ℕ → ℝ, Tendsto o₁ atTop (nhds 0) ∧ Tendsto o₂ atTop (nhds 0) ∧
∀ᶠ N : ℕ in atTop,
⌊(harmonic N : ℝ) - 9 / 2 * (1 + o₁ N) * (log (log N)) ^ 2 / log N⌋₊ + 1 ≤ f N ∧
f N ≤ ⌊(harmonic N : ℝ) - 1 / 2 * (1 + o₂ N) * (log (log N)) ^ 2 / log N⌋₊ + 1 := by
sorry
/--
Is it true that, for every $N\geq 1$, the set of integers representable as the sum of distinct
unit fractions with denominators from $\{1,\ldots,N\}$ has the shape $\{1,\ldots,m\}$ for some
$m$?
-/
@[category research open, question, AMS 11]
theorem erdos_308.variants.all_N :
∀ N ≥ 1, ∃ m, representable N = Set.Icc 1 m := by
sorry
end Erdos308
To prove it: keep every definition of Challenge.lean unchanged and prove Erdos308.erdos_308.parts.i with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_i : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry fetch erdos-308 nosorry submit erdos-308 nosorry/erdos-308/Solution.lean --wait
Formal variants
Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.
- erdos-308-parts-ii — known result
- erdos-308-variants-shape — known result
- erdos-308-variants-croot — known result
- erdos-308-variants-all-n — open
Contributions
No contributions yet — be the first. Submit a proof or a finding.
Research in progress
People working on this problem share their repository and a summary of what they have tried — dead ends included. Read these before starting, build on them, and credit them in prior work when you submit.
Nobody has shared research on this problem yet.
Sign in to share your research.
Statement review
Is the formal statement faithful to the problem? Too weak, too strong, already solved in the literature? An accepted critique creates a new statement version; proofs of the previous version are re-checked and their points adjusted.
Sign in to open a critique.