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 440

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 A={a1<a2<⋯ }⊆NA=\{a_1<a_2<\cdots\}\subseteq \mathbb{N} be infinite and let A(x)A(x) count the number of indices for which lcm(ai,ai+1)≤x\mathrm{lcm}(a_i,a_{i+1})\leq x. Is it true that A(x)≪x1/2A(x) \ll x^{1/2}?

The answer is yes: Tao has given a simple proof, and Erdős and Szemerédi [ErSz80] proved the sharp bound A(x)≤(c+o(1))x1/2A(x)\leq (c+o(1))x^{1/2} (see erdos_440.variants.erdos_szemeredi).

Subjects:Number Theory (math.NT)
MSC classes:11
Tags:question, formal_proof
Cite as:NS.02152 [math.NT] · NS.02152v1 for this version
Declaration:Erdos440.erdos_440.parts.i
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 10, later ones: 2; accepted critique: up to 60
Statement hash:aa9000a29fef346d74172a6ea4d26d77d7b48c04e8cf77ce6d80e5d531945476
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/ErdosProblems/440.lean

Formal statement

theorem erdos_440.parts.i :
    ∀ a : ℕ → ℕ, StrictMono a → (∀ i, 0 < a i) →
      (fun x : ℕ ↦ (count a x : ℝ)) =O[atTop] fun x : ℕ ↦ √x
Show the full Challenge.lean (93 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 440

*References:*
- [erdosproblems.com/440](https://www.erdosproblems.com/440)
- [ErGr80] Erdős, P. and Graham, R., _Old and new problems and results in combinatorial number
  theory_. Monographies de L'Enseignement Mathematique (1980).
- [ErSz80] Erdős, Pál and Szemerédi, Endre, _Remarks on a problem of the American Mathematical
  Monthly_. Mat. Lapok (1980), 121-124.
-/

@[expose] public section

open Filter Real

namespace Erdos440

/-- For a strictly increasing sequence `a` of positive integers, `count a x` is the number of
indices `i` with `lcm(aᵢ, aᵢ₊₁) ≤ x`. -/
noncomputable def count (a : ℕ → ℕ) (x : ℕ) : ℕ :=
  {i | Nat.lcm (a i) (a (i + 1)) ≤ x}.ncard

set_option linter.style.formal_proof_palomar false in
/--
Let $A=\{a_1<a_2<\cdots\}\subseteq \mathbb{N}$ be infinite and let $A(x)$ count the number of
indices for which $\mathrm{lcm}(a_i,a_{i+1})\leq x$. Is it true that $A(x) \ll x^{1/2}$?

The answer is yes: Tao has given a simple proof, and Erdős and Szemerédi [ErSz80] proved the
sharp bound $A(x)\leq (c+o(1))x^{1/2}$ (see `erdos_440.variants.erdos_szemeredi`).
-/
@[category research solved, question, AMS 11, formal_proof using lean4 at
  "https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos440.lean#L602"]
theorem erdos_440.parts.i :
    ∀ a : ℕ → ℕ, StrictMono a → (∀ i, 0 < a i) →
      (fun x : ℕ ↦ (count a x : ℝ)) =O[atTop] fun x : ℕ ↦ √x := by
  sorry

def erdos_440.parts.ii.answer : ℝ := 1

set_option linter.style.formal_proof_palomar false in
/--
How large can
$$\liminf \frac{A(x)}{x^{1/2}}$$
be?

Taking $A=\mathbb{N}$ shows that $\liminf A(x)/x^{1/2}=1$ is possible. Erdős and Szemerédi
[ErSz80] proved that it is always $\leq 1$.
-/
@[category research solved, question value, AMS 11, formal_proof using lean4 at
  "https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos440.lean#L602"]
theorem erdos_440.parts.ii :
    IsGreatest {l : ℝ | ∃ a : ℕ → ℕ, StrictMono a ∧ (∀ i, 0 < a i) ∧
      l = liminf (fun x : ℕ ↦ (count a x : ℝ) / √x) atTop} erdos_440.parts.ii.answer := by
  sorry

/-- The Erdős–Szemerédi constant $c=\sum_{n\geq 1}\frac{1}{n^{1/2}(n+1)}\approx 1.86$
(summed here over $n = m + 1$, $m \geq 0$). -/
noncomputable def erdosSzemerediConstant : ℝ := ∑' m : ℕ, 1 / (√(m + 1 : ℝ) * (m + 2))

set_option linter.style.formal_proof_palomar false in
/--
Erdős and Szemerédi [ErSz80] proved that $A(x)\leq (c+o(1))x^{1/2}$ where
$$c=\sum_{n\geq 1}\frac{1}{n^{1/2}(n+1)}\approx 1.86,$$
and that this constant is best possible (this was later rediscovered by van Doorn).
-/
@[category research solved, AMS 11, formal_proof using lean4 at
  "https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos440.lean#L602"]
theorem erdos_440.variants.erdos_szemeredi :
    IsGreatest {l : ℝ | ∃ a : ℕ → ℕ, StrictMono a ∧ (∀ i, 0 < a i) ∧
      l = limsup (fun x : ℕ ↦ (count a x : ℝ) / √x) atTop} erdosSzemerediConstant := by
  sorry

end Erdos440

To prove it: keep every definition of Challenge.lean unchanged and prove Erdos440.erdos_440.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-440
nosorry submit erdos-440 nosorry/erdos-440/Solution.lean --wait

Formal variants

Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.

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.