Title:Erdős Problem 1054
2 results recorded on aiXiv
- disproves Let be the least such that is the sum of the smallest divisors of for some . The upper density of is (Tao). Hence fails, even for almost all ; whether remains open. — aiXiv:2609.02595, 2026-06-23 · claimed by its authors; no independent check recorded on aiXiv
- partial The problem page records a partial result dated 2026-06-23 on the question of whether or , where is the least such that is a sum of the smallest divisors of . The page does not state the content of that result. — aiXiv:2609.02595, 2026-06-23 · claimed by its authors; no independent check recorded on aiXiv
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:Let be the minimal integer such that is the sum of the smallest divisors of for some . Is it true that ?
The strong claim that was disproved by Tao in the comments to 468, in which he proves that the upper density of is .
| Subjects: | Number Theory (math.NT) |
| MSC classes: | 11 |
| Tags: | question, formal_proof |
| Cite as: | NS.00500 [math.NT] · NS.00500v1 for this version |
| Declaration: | Erdos1054.erdos_1054.parts.i |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 10, later ones: 2; accepted critique: up to 60 |
| Statement hash: | de48a31a24425e4b530d19d631f4e7da1383b69a32bd385766cec25c296c5bfc |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/ErdosProblems/1054.lean |
Formal statement
theorem erdos_1054.parts.i : ¬ (fun n ↦ (f n : ℝ)) =o[atTop] (fun n ↦ (n : ℝ))Show the full Challenge.lean (173 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Erdős Problem 1054
*References:*
- [erdosproblems.com/1054](https://www.erdosproblems.com/1054)
- [PALOMAR-2026-10-05-000005](https://palomar-registry.org/entry.html?id=PALOMAR-2026-10-05-000005&version=1)
-/
@[expose] public section
namespace Erdos1054
open Filter Asymptotics
/-- Let $f(n)$ be the minimal integer $m$ such that $n$ is the sum of the $k$ smallest
divisors of $m$ for some $k\geq 1$. -/
noncomputable def f (n : ℕ) : ℕ :=
open scoped Classical in
if h : ∃ᵉ (m) (k ≥ 1), n = ∑ i < k, Nat.nth (· ∈ m.divisors) i then
Nat.find h
else 0
set_option linter.style.formal_proof_palomar false in
/-- Let $f(n)$ be the minimal integer $m$ such that $n$ is the sum of the $k$ smallest divisors
of $m$ for some $k\geq 1$. Is it true that $f(n)=o(n)$?
The strong claim that $f(n)=o(n)$ was disproved by Tao in the comments to
[468](https://www.erdosproblems.com/468), in which he proves that the upper density of
$\{ n : f(n)\leq \delta n\}$ is $\ll \delta^2$.
-/
@[category research solved, question, AMS 11, formal_proof using lean4 at "https://github.com/linrock/math-proofs/blob/0917cd01090b52088aa82b09c8c84689047b8171/erdos-1054/Solution.lean#L97"]
theorem erdos_1054.parts.i : ¬ (fun n ↦ (f n : ℝ)) =o[atTop] (fun n ↦ (n : ℝ)) := by
sorry
set_option linter.style.formal_proof_palomar false in
/-- Let $f(n)$ be the minimal integer $m$ such that $n$ is the sum of the $k$ smallest divisors
of $m$ for some $k\geq 1$. Is it true that $f(n)=o(n)$ for almost all $n$?
No: combining the Tao–Kovač small-ratio bound $\#\{n \leq X : 0 < f(n) \leq \delta n\} \ll \delta^2 X$
with the fact that almost all odd integers are represented (or via the lower-density bound below),
$f(n)$ is not $o(n)$ along any density-one set $A$. -/
@[category research solved, question, AMS 11, formal_proof using lean4 at "https://github.com/linrock/math-proofs/blob/0917cd01090b52088aa82b09c8c84689047b8171/erdos-1054/Solution.lean#L103"]
theorem erdos_1054.parts.ii : ¬ ∃ (A : Set ℕ), A.HasDensity 1 ∧
(fun (n : A) ↦ (f ↑n : ℝ)) =o[atTop] (fun n ↦ (n : ℝ)) := by
sorry
set_option linter.style.formal_proof_palomar false in
/-- Let $f(n)$ be the minimal integer $m$ such that $n$ is the sum of the $k$ smallest divisors
of $m$ for some $k\geq 1$. Is it true that $\limsup f(n)/n=\infty$?
Yes: for every $A \geq 1$, a positive lower density of odd integers satisfy $f(n) > A n$, so
$\limsup f(n)/n = \infty$. -/
@[category research solved, question, AMS 11, formal_proof using lean4 at "https://github.com/linrock/math-proofs/blob/0917cd01090b52088aa82b09c8c84689047b8171/erdos-1054/Solution.lean#L110"]
theorem erdos_1054.parts.iii : ∃ (A : Set ℕ), A.HasDensity 1 ∧
atTop.limsup (fun n ↦ (f n : EReal) / n) = ⊤ := by
sorry
/-- Let $f(n)$ be the minimal integer $m$ such that $n$ is the sum of the $k$ smallest divisors
of $m$ for some $k\geq 1$. Show that $f$ is undefined at $n=2$, i.e. we get the junk value $0$. -/
@[category textbook, AMS 11]
theorem f_undefined_at_2 : f 2 = 0 := by
rw [f, dif_neg]
rintro ⟨m, k, hk, hsum⟩
rcases eq_or_ne m 0 with rfl | hm
· simp at hsum
· -- For `m ≠ 0` the smallest divisor is `1` and every later term is `≥ 2`, so the sum of the
-- `k` smallest divisors is `1` or `≥ 3`, never `2`.
have hk0 : (0 : ℕ) ∈ Finset.Iio k := Finset.mem_Iio.mpr (by omega)
rw [← Finset.add_sum_erase _ _ hk0, Nat.nth_divisors_zero hm] at hsum
obtain ⟨i, hi_mem, hi_ne⟩ :=
Finset.exists_ne_zero_of_sum_ne_zero (s := (Finset.Iio k).erase 0)
(f := Nat.nth (· ∈ m.divisors)) (by omega)
have h2 := Nat.two_le_nth_divisors hm (Finset.ne_of_mem_erase hi_mem) hi_ne
have := h2.trans (Finset.single_le_sum (fun j _ => Nat.zero_le _) hi_mem)
omega
/-- Let $f(n)$ be the minimal integer $m$ such that $n$ is the sum of the $k$ smallest divisors
of $m$ for some $k\geq 1$. Show that $f$ is undefined at $n=5$, i.e. we get the junk value $0$. -/
@[category textbook, AMS 11]
theorem f_undefined_at_3 : f 5 = 0 := by
rw [f, dif_neg]
rintro ⟨m, k, hk, hsum⟩
rcases eq_or_ne m 0 with rfl | hm
· simp at hsum
· set p : ℕ → Prop := fun x => x ∈ m.divisors with hpdef
have hfin : (Set.ofPred p).Finite := Set.finite_mem_finset m.divisors
have hg0 : Nat.nth p 0 = 1 := Nat.nth_divisors_zero hm
-- The `j`-th smallest divisor is at least `j + 1` (for `j` below the number of divisors).
have hlb : ∀ j, j < hfin.toFinset.card → j + 1 ≤ Nat.nth p j := by
intro j
induction j with
| zero => intro _; omega
| succ n ih =>
intro hj
have h1 := Nat.nth_lt_nth_of_lt_card hfin (show n < n + 1 by omega)
(show n + 1 < hfin.toFinset.card by omega)
have h2 := ih (by omega)
omega
-- The second smallest divisor of `m` is never `4`: if `4 ∣ m` then `2 ∣ m`, so `2` would be
-- the second smallest divisor.
have refute4 : Nat.nth p 1 ≠ 4 := by
intro h
have hne : Nat.nth p 1 ≠ 0 := by rw [h]; norm_num
have hcard1 : 1 < hfin.toFinset.card := by
by_contra! hcon
exact hne (Nat.nth_eq_zero.mpr (Or.inr ⟨hfin, hcon⟩))
have hmem : p (Nat.nth p 1) := Nat.nth_mem_of_lt_card hfin hcard1
rw [h] at hmem
have h4 : (4 : ℕ) ∣ m := (Nat.mem_divisors.mp hmem).1
have h2d : (2 : ℕ) ∣ m := dvd_trans (by norm_num) h4
have h2mem : p 2 := by simp [hpdef, Nat.mem_divisors, h2d, hm]
have hcount : Nat.count p 2 = 1 := by
simp [hpdef, Nat.count_succ, Nat.count_zero, Nat.mem_divisors, hm]
have hnc := Nat.nth_count (p := p) h2mem
rw [hcount, h] at hnc
norm_num at hnc
rcases lt_or_ge k 3 with hk3 | hk3
· -- `k = 1` or `k = 2`.
interval_cases k
· rw [Nat.Iio_eq_range, Finset.sum_range_one, hg0] at hsum
omega
· rw [Nat.Iio_eq_range, Finset.sum_range_succ, Finset.sum_range_one, hg0] at hsum
exact refute4 (by omega)
· -- `k ≥ 3`.
rcases eq_or_ne (Nat.nth p 2) 0 with hg2 | hg2
· -- At most two divisors are involved, so the sum equals `1 + Nat.nth p 1`.
have hz : ∀ i, 2 ≤ i → Nat.nth p i = 0 := by
rcases Nat.nth_eq_zero.mp hg2 with ⟨hp0', _⟩ | ⟨hf, hcle⟩
· exact absurd hp0' (by simp [hpdef, Nat.mem_divisors])
· intro i hi
refine Nat.nth_eq_zero.mpr (Or.inr ⟨hfin, ?_⟩)
have heq : hf.toFinset.card = hfin.toFinset.card := by congr 1
omega
rw [← Finset.sum_subset (s₁ := Finset.Iio 2) (s₂ := Finset.Iio k)] at hsum
· rw [Nat.Iio_eq_range, Finset.sum_range_succ, Finset.sum_range_one, hg0] at hsum
exact refute4 (by omega)
· intro x hx; simp only [Finset.mem_Iio] at *; omega
· intro x hx hx2; simp only [Finset.mem_Iio] at *; exact hz x (by omega)
· -- Three distinct divisors `1 < d₁ < d₂` force the sum to be at least `6`.
have hc3 : 2 < hfin.toFinset.card := by
by_contra! hcon
exact hg2 (Nat.nth_eq_zero.mpr (Or.inr ⟨hfin, hcon⟩))
have hg1 := hlb 1 (by omega)
have hg2' := hlb 2 (by omega)
have hsub : ∑ i ∈ Finset.Iio 3, Nat.nth p i ≤ ∑ i ∈ Finset.Iio k, Nat.nth p i := by
apply Finset.sum_le_sum_of_subset_of_nonneg
· intro x hx; simp only [Finset.mem_Iio] at *; omega
· intros; positivity
rw [Nat.Iio_eq_range, Finset.sum_range_succ, Finset.sum_range_succ,
Finset.sum_range_one, hg0] at hsub
lia
end Erdos1054
To prove it: keep every definition of Challenge.lean unchanged and prove Erdos1054.erdos_1054.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-1054 nosorry submit erdos-1054 nosorry/erdos-1054/Solution.lean --wait
Formal variants
Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.
- erdos-1054-parts-ii — known result
- erdos-1054-parts-iii — known result
- f-undefined-at-2 — textbook
- f-undefined-at-3 — textbook
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.