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 314

Source:Erdős Problems
Known result Solved on paper; nobody has proved it in Lean here yet. First verified proof: +10 points.
Statement:reviewed
Statement:

Let n≥1n\geq 1 and let mm be minimal such that ∑n≤k≤m1k≥1\sum_{n\leq k\leq m}\frac{1}{k}\geq 1. We define ϵ(n)=∑n≤k≤m1k−1.\epsilon(n) = \sum_{n\leq k\leq m}\frac{1}{k}-1. How small can ϵ(n)\epsilon(n) be? Is it true that lim inf⁡n2ϵ(n)=0?\liminf n^2\epsilon(n)=0?

This is true, and shown by Lim and Steinerberger [LiSt24], who further proved that, for any δ>0\delta>0, there exist infinitely many nn and mm such that n2∣∑n≤k≤m1k−1∣≪1(log⁡n)5/4−δ.n^2\left\lvert \sum_{n\leq k\leq m}\frac{1}{k}-1\right\rvert\ll \frac{1}{(\log n)^{5/4-\delta}}. Erdős and Graham (and also Lim and Steinerberger) believe that the exponent of 22 is best possible here, in that lim inf⁡ϵ(n)n2+δ=∞\liminf \epsilon(n) n^{2+\delta}=\infty for all δ>0\delta>0.

Subjects:Number Theory (math.NT); Classical Analysis and ODEs (math.CA)
MSC classes:11, 40
Tags:question, formal_proof
Cite as:NS.01674 [math.NT] · NS.01674v1 for this version
Declaration:Erdos314.erdos_314
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 10, later ones: 2; accepted critique: up to 60
Statement hash:936a8ce9ddb6cdd3d88674ba52a8860d3035bf703c04900c0dd90fa06b875c2a
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/ErdosProblems/314.lean

Formal statement

theorem erdos_314 :
    atTop.liminf (fun n : ℕ => (n : ℝ) ^ 2 * epsilon n) = 0
Show the full Challenge.lean (64 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 314

*References:*
- [erdosproblems.com/314](https://www.erdosproblems.com/314)
- [ErGr80] Erdős, P. and Graham, R., *Old and new problems and results in combinatorial number
  theory*. Monographies de L'Enseignement Mathematique (1980).
- [LiSt24] J. Lim and Steinerberger, S., *On differences of two harmonic numbers*.
  arXiv:2405.11354 (2024).
-/

@[expose] public section

open Filter

namespace Erdos314

/-- `mMin n` is the minimal `m` such that $\sum_{n\leq k\leq m}\frac{1}{k}\geq 1$; such an `m`
exists for `n ≥ 1` since the harmonic series diverges. -/
noncomputable def mMin (n : ℕ) : ℕ := sInf {m | 1 ≤ harmonicBlock n m}

/-- $\epsilon(n) = \sum_{n\leq k\leq m}\frac{1}{k}-1$, the overshoot of the minimal block sum
reaching $1$. -/
noncomputable def epsilon (n : ℕ) : ℝ := (harmonicBlock n (mMin n) : ℝ) - 1

set_option linter.style.formal_proof_palomar false in
/--
Let $n\geq 1$ and let $m$ be minimal such that $\sum_{n\leq k\leq m}\frac{1}{k}\geq 1$. We define
$$\epsilon(n) = \sum_{n\leq k\leq m}\frac{1}{k}-1.$$
How small can $\epsilon(n)$ be? Is it true that
$$\liminf n^2\epsilon(n)=0?$$

This is true, and shown by Lim and Steinerberger [LiSt24], who further proved that, for any
$\delta>0$, there exist infinitely many $n$ and $m$ such that
$$n^2\left\lvert \sum_{n\leq k\leq m}\frac{1}{k}-1\right\rvert\ll \frac{1}{(\log n)^{5/4-\delta}}.$$
Erdős and Graham (and also Lim and Steinerberger) believe that the exponent of $2$ is best
possible here, in that $\liminf \epsilon(n) n^{2+\delta}=\infty$ for all $\delta>0$.
-/
@[category research solved, question, AMS 11 40, formal_proof using lean4 at "https://github.com/plby/lean-proofs/blob/1d7b3f00780b85ed0462e79a1cd5650ee9055655/src/v4.29.1/ErdosProblems/Erdos314.lean"]
theorem erdos_314 :
    atTop.liminf (fun n : ℕ => (n : ℝ) ^ 2 * epsilon n) = 0 := by
  sorry

end Erdos314

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

nosorry fetch erdos-314
nosorry submit erdos-314 nosorry/erdos-314/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.