Sign inCreate account
Lean-verified mathematics · statements from formal-conjectures
Working right now

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Erdős Problem 294 · hasUnitFractionSolution_one

Source:Erdős Problems
api Checks that the formal definitions behave as intended. First verified proof: +1 points.
Statement:reviewed
Statement:

For N≥1N\geq 1 the solution 1=111=\frac11 shows that t=1t=1 is not a candidate.

Subjects:Number Theory (math.NT)
MSC classes:11
Cite as:NS.01579 [math.NT] · NS.01579v1 for this version
Declaration:Erdos294.hasUnitFractionSolution_one
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 1; accepted critique: up to 100
Statement hash:bafe186ea850bbcaab4dfc6b41f2ceb7d7ff37bef761f591bde70563052f94b0
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/ErdosProblems/294.lean

Formal statement

theorem hasUnitFractionSolution_one {N : ℕ} (hN : 1 ≤ N) : HasUnitFractionSolution 1 N
Show the full Challenge.lean (87 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 294

*References:*
- [erdosproblems.com/294](https://www.erdosproblems.com/294)
- [ErGr80] Erdős, P. and Graham, R., *Old and new problems and results in combinatorial number
  theory*. Monographies de L'Enseignement Mathematique (1980).
- [LiSa24] Liu, Y. and Sawhney, M., *On further questions regarding unit fractions*.
  [arXiv:2404.07113](https://arxiv.org/abs/2404.07113) (2024).
-/

@[expose] public section

open Filter

namespace Erdos294

/-- `HasUnitFractionSolution m N` says that $1=\frac{1}{n_1}+\cdots+\frac{1}{n_k}$ for some
integers $m=n_1<\cdots<n_k\leq N$: the $n_i$ form a finite set `s` whose least element is `m`. -/
def HasUnitFractionSolution (m N : ℕ) : Prop :=
  ∃ s : Finset ℕ, m ∈ s ∧ (∀ n ∈ s, m ≤ n ∧ n ≤ N) ∧ ∑ n ∈ s, (1 : ℚ) / n = 1

/-- $t(N)$: the least positive integer $t$ such that there is no solution to
$1=\frac{1}{n_1}+\cdots+\frac{1}{n_k}$ with $t=n_1<\cdots<n_k\leq N$. The set of candidates
contains $N+1$, so `sInf` is a true minimum. -/
noncomputable def t (N : ℕ) : ℕ :=
  sInf {m : ℕ | 0 < m ∧ ¬ HasUnitFractionSolution m N}

/-- For $N\geq 1$ the solution $1=\frac11$ shows that $t=1$ is not a candidate. -/
@[category API, AMS 11]
theorem hasUnitFractionSolution_one {N : ℕ} (hN : 1 ≤ N) : HasUnitFractionSolution 1 N :=
  ⟨{1}, by simp, by simpa using hN, by simp⟩

/-- The set defining $t(N)$ contains $N+1$, so $t(N)\leq N+1$. -/
@[category API, AMS 11]
theorem t_le_succ (N : ℕ) : t N ≤ N + 1 :=
  Nat.sInf_le ⟨Nat.succ_pos N, fun h => by
    obtain ⟨s, hs, hall, -⟩ := h
    have := (hall _ hs).2
    omega⟩

/--
Let $N\geq 1$ and let $t(N)$ be the least integer $t$ such that there is no solution to
$$1=\frac{1}{n_1}+\cdots+\frac{1}{n_k}$$
with $t=n_1<\cdots <n_k\leq N$. Estimate $t(N)$.

Solved by Liu and Sawhney [LiSa24, Theorem 1.6] (up to $(\log\log N)^{O(1)}$), who proved that
$$\frac{N}{(\log N)(\log\log N)^3(\log\log\log N)^{O(1)}}\ll t(N) \ll \frac{N}{\log N}.$$
The unspecified $O(1)$ exponent is the real number `K`.
-/
@[category research solved, AMS 11]
theorem erdos_294 :
    (∃ K : ℝ, (fun N : ℕ => (N : ℝ) / (Real.log N * Real.log (Real.log N) ^ 3 *
        Real.log (Real.log (Real.log N)) ^ K)) ≪ (fun N : ℕ => (t N : ℝ))) ∧
    ((fun N : ℕ => (t N : ℝ)) ≪ (fun N : ℕ => (N : ℝ) / Real.log N)) := by
  sorry

/--
Erdős and Graham [ErGr80, p. 35] could show that $t(N)\ll\frac{N}{\log N}$. They gave no proof;
one is in [LiSa24, Section 4].
-/
@[category research solved, AMS 11]
theorem erdos_294.variants.erdos_graham_upper :
    (fun N : ℕ => (t N : ℝ)) ≪ (fun N : ℕ => (N : ℝ) / Real.log N) := by
  sorry

end Erdos294

To prove it: keep every definition of Challenge.lean unchanged and prove Erdos294.hasUnitFractionSolution_one with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_hasUnitFractionSolution_one : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.

nosorry desk erdos-294--hasunitfractionsolution-one      # a desk lease: required before submitting (renew: nosorry beat)
nosorry fetch erdos-294--hasunitfractionsolution-one
nosorry submit erdos-294--hasunitfractionsolution-one nosorry/erdos-294--hasunitfractionsolution-one/Solution.lean --wait

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.