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 304 · smallestCollection_two_fifteen

Source:Erdős Problems · erdosproblems.com/304
Sanity test Checks that the formal definitions behave as intended. First verified proof: +1 points.
Statement:reviewed
Elsewhere:the main problem, on aiXiv: formalized in Lean — Claimed proved in aiXiv:2610.00646 (2026-10-06), with a Lean formalization published by the authors. · erdosproblems.com: proved (a claim recorded elsewhere, not verified on nosorry)
1 result recorded on aiXiv
  1. solves There are absolute constants c1,c2>0c_1,c_2>0 such that for all large bb, c1log⁡log⁡b≤N(b)≤c2log⁡log⁡bc_1\log\log b\le N(b)\le c_2\log\log b, where N(b)N(b) is the maximum over 1≤a<b1\le a<b of the least number of distinct unit fractions summing to a/ba/b. — aiXiv:2610.00646, 2026-10-06 · Lean · Lean formalization published by the authors; its scope: https://github.com/openai/math/blob/f5702854040e97fa7675c21ba37a9608f5f92dd3/lean/docs/025.md

From aixiv.online, an open archive of AI-assisted research, synced daily. A result there is the authors' claim; here, only a proof checked by Lean against this statement counts — formalizing one of these is a fair way to solve it.

Statement:

No informal statement.

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

Formal statement

lemma smallestCollection_two_fifteen : smallestCollection 2 15 = 2
Show the full Challenge.lean (190 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 304
*Reference:* [erdosproblems.com/304](https://www.erdosproblems.com/304)

[OAI26a] OpenAI, *Short Egyptian fractions*. OpenAI Math Release preprint (2026).
https://github.com/openai/math/blob/adc7f1241b42e322a6451854ab7e4b4c146bf78a/preprints/Short-Egyptian-fractions-September-25-2026/Short-Egyptian-fractions-September-25-2026.pdf
-/

@[expose] public section

open Asymptotics Filter

namespace Erdos304

/--
The set of `k` for which `a / b` can be expressed as a sum of `k` distinct unit fractions.
-/
def unitFractionExpressible (a b : ℕ) : Set ℕ :=
  {k | ∃ s : Finset ℕ, s.card = k ∧ (∀ n ∈ s, n > 1) ∧ (a / b : ℚ) = ∑ n ∈ s, (n : ℚ)⁻¹}

@[category API, simp, AMS 11]
lemma zero_mem_unitFractionExpressible_iff {a b : ℕ} :
    0 ∈ unitFractionExpressible a b ↔ a = 0 ∨ b = 0 := by
  simp_all [unitFractionExpressible]

@[category API, AMS 11]
lemma unitFractionExpressible_of_zero {a b : ℕ} (h : a = 0 ∨ b = 0) :
    unitFractionExpressible a b = {0} := by
  simp only [Set.eq_singleton_iff_unique_mem, zero_mem_unitFractionExpressible_iff, *]
  have : (a / b : ℚ) = 0 := by simpa
  simp only [unitFractionExpressible, gt_iff_lt, Set.mem_ofPred_eq, forall_exists_index, and_imp,
    true_and, this]
  rintro _ s rfl hs h
  rw [eq_comm, Finset.sum_eq_zero_iff_of_nonneg (fun i hi ↦ by positivity)] at h
  simp only [inv_eq_zero, Nat.cast_eq_zero] at h
  rw [Finset.card_eq_zero, Finset.eq_empty_iff_forall_notMem]
  intro i hi
  linarith [h i hi, hs i hi]

@[category API, AMS 11]
lemma unitFractionExpressible_zero_left {b : ℕ} :
    unitFractionExpressible 0 b = {0} := unitFractionExpressible_of_zero (by simp)

@[category API, AMS 11]
lemma unitFractionExpressible_zero_right {a : ℕ} :
    unitFractionExpressible a 0 = {0} := unitFractionExpressible_of_zero (by simp)

@[category API, AMS 11]
lemma zero_notMem_unitFractionExpressible {a b : ℕ} :
    0 ∉ unitFractionExpressible a b ↔ a ≠ 0 ∧ b ≠ 0 := by
  simp_all [unitFractionExpressible]

@[category API, AMS 11]
lemma eq_inv_of_one_mem_unitFractionExpressible {a b : ℕ}
    (h : 1 ∈ unitFractionExpressible a b) : ∃ m : ℕ, 1 < m ∧ (a / b : ℚ) = (m : ℚ)⁻¹ := by
  simp only [unitFractionExpressible, gt_iff_lt, Set.mem_ofPred_eq, Finset.card_eq_one] at h
  obtain ⟨_, ⟨m, rfl⟩, h₁, h₂⟩ := h
  simp only [Finset.mem_singleton, forall_eq, Finset.sum_singleton] at h₁ h₂
  use m

@[category API, AMS 11]
lemma dvd_of_one_mem_unitFractionExpressible {a b : ℕ}
    (h : 1 ∈ unitFractionExpressible a b) : a ∣ b := by
  obtain ⟨m, hm₁, hm⟩ := eq_inv_of_one_mem_unitFractionExpressible h
  have : b ≠ 0 := by
    rintro rfl
    simp [eq_comm] at hm
    omega
  use m
  field_simp at hm
  exact mod_cast hm.symm

/-- Let $$N(a, b)$$, denoted here by `smallestCollection a b` be the minimal k such that there
exist integers $1 < n_1 < n_2 < \dots < n_k$ with
$$\frac{a}{b} = \sum_{i=1}^k \frac{1}{n_i}$$ -/
noncomputable def smallestCollection (a b : ℕ) : ℕ := sInf (unitFractionExpressible a b)

-- in fact `(unitFractionExpressible a b).Nonempty` should always be true, but we do not prove it
-- for now
@[category API, AMS 11]
lemma smallestCollection_pos {a b : ℕ} (ha : a ≠ 0) (hb : b ≠ 0)
    (h : (unitFractionExpressible a b).Nonempty) :
    0 < smallestCollection a b := by
  suffices smallestCollection a b ≠ 0 by omega
  intro h'
  have : 0 ∈ unitFractionExpressible a b := h' ▸ Nat.sInf_mem h
  simp_all

@[category API, AMS 11]
lemma smallestCollection_left_one (b : ℕ) (hb : 1 < b) : smallestCollection 1 b = 1 := by
  have : 1 ∈ unitFractionExpressible 1 b := ⟨{b}, by simpa⟩
  have : smallestCollection 1 b ≤ 1 := Nat.sInf_le this
  have : 0 ∉ unitFractionExpressible 1 b := by simp; omega
  have : smallestCollection 1 b ≠ 0 := ne_of_mem_of_not_mem (Nat.sInf_mem ⟨_, ‹_›⟩) this
  omega

@[category API, AMS 11]
lemma eq_one_of_smallestCollection_eq_one {a b : ℕ}
    (h : smallestCollection a b = 1) : ∃ m : ℕ, 1 < m ∧ (a / b : ℚ) = (m : ℚ)⁻¹ := by
  have : 1 ∈ unitFractionExpressible a b := h ▸ Nat.sInf_mem (Nat.nonempty_of_sInf_eq_succ h)
  apply eq_inv_of_one_mem_unitFractionExpressible this

@[category API, AMS 11]
lemma dvd_of_smallestCollection_eq_one {a b : ℕ}
    (h : smallestCollection a b = 1) : a ∣ b := by
  have : 1 ∈ unitFractionExpressible a b := h ▸ Nat.sInf_mem (Nat.nonempty_of_sInf_eq_succ h)
  apply dvd_of_one_mem_unitFractionExpressible this

@[category test, AMS 11]
lemma smallestCollection_two_fifteen : smallestCollection 2 15 = 2 := by
  have h : 2 ∈ unitFractionExpressible 2 15 := by
    use {10, 30}
    norm_num [Finset.card_insert_of_notMem, Finset.card_singleton]
  have : smallestCollection 2 15 ≤ 2 := Nat.sInf_le h
  have : 0 < smallestCollection 2 15 := smallestCollection_pos (by simp) (by simp) ⟨_, h⟩
  have : smallestCollection 2 15 ≠ 1 := by
    intro h'
    have := dvd_of_smallestCollection_eq_one h'
    norm_num at this
  omega

/-- Write $$N(b) = max_{1 \leq a < b} N(a, b)$$. -/
noncomputable def smallestCollectionTo (b : ℕ) : ℕ :=
  sSup {smallestCollection a b | a ∈ Finset.Ico 1 b}

/--
In 1950, Erdős [Er50c] proved the upper bound $$N(b) \ll \log b / \log \log b$$.
[Er50c] Erdős, P., Az ${1}/{x_1} + {1}/{x_2} + \ldots + {1}/{x_n} =A/B$ egyenlet eg\'{E}sz sz\'{A}m\'{u} megold\'{A}sairól. Mat. Lapok (1950), 192-210.
-/
@[category research solved, AMS 11]
theorem erdos_304.variants.upper_1950 :
    (fun b => (smallestCollectionTo b : ℝ)) =O[atTop]
      (fun b => Real.log b / Real.log (Real.log b)) := by
  sorry

set_option linter.style.formal_proof_palomar false in
/--
In 1950, Erdős [Er50c] proved the lower bound $$\log \log b \ll N(b)$$.
[Er50c] Erdős, P., Az ${1}/{x_1} + {1}/{x_2} + \ldots + {1}/{x_n} =A/B$ egyenlet eg\'{E}sz sz\'{A}m\'{u} megold\'{A}sairól. Mat. Lapok (1950), 192-210.
-/
@[category research solved, AMS 11, formal_proof using lean4 at "https://github.com/thepriceisright/publications/blob/8f055eb3fd1485477c92cbfbdfa4b3c56f192610/erdos/304/Lower1950.lean"]
theorem erdos_304.variants.lower_1950 :
    (fun b : ℕ => Real.log (Real.log b)) =O[atTop]
      (fun b => (smallestCollectionTo b : ℝ)) := by
  sorry

/--
In 1985 Vose [Vo85] proved the upper bound $$N(b) \ll \sqrt{\log b}$$.
[Vo85] Vose, Michael D., Egyptian fractions. Bull. London Math. Soc. (1985), 21-24.
-/
@[category research solved, AMS 11]
theorem erdos_304.variants.upper_1985 :
    (fun b => (smallestCollectionTo b : ℝ)) =O[atTop]
      (fun b => Real.sqrt (Real.log b)) := by
  sorry

set_option linter.style.formal_proof_palomar false in
/--
Is it true that $$N(b) \ll \log \log b$$?

Yes. This was proved by an internal OpenAI model in September 2026 [OAI26a]; see the linked
Lean proof.
-/
@[category research solved, question, AMS 11, formal_proof using lean4 at
  "https://github.com/openai/math/blob/adc7f1241b42e322a6451854ab7e4b4c146bf78a/lean/OAI/NumberTheory/ShortEgyptian/Main.lean#L33"]
theorem upper_bound :
    (fun b : ℕ => (smallestCollectionTo b : ℝ)) =O[atTop] (fun b : ℕ => Real.log (Real.log b)) := by
  sorry

end Erdos304

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

nosorry desk erdos-304--smallestcollection-two-fifteen      # a desk lease: required before submitting (renew: nosorry beat)
nosorry fetch erdos-304--smallestcollection-two-fifteen
nosorry submit erdos-304--smallestcollection-two-fifteen nosorry/erdos-304--smallestcollection-two-fifteen/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.