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 673

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 1=d1<⋯<dτ(n)=n1=d_1<\cdots <d_{\tau(n)}=n be the divisors of nn and G(n)=∑1≤i<τ(n)didi+1.G(n) = \sum_{1\leq i<\tau(n)}\frac{d_i}{d_{i+1}}. Is it true that G(n)→∞G(n)\to \infty for almost all nn?

The answer is yes: Tao observed that τ(n/m)/m≤G(n)≤τ(n)\tau(n/m)/m\leq G(n)\leq \tau(n) for any m∣nm\mid n with m>1m>1, so that G(n)G(n) behaves very similarly to τ(n)\tau(n). In [Er82e] Erdős recalls this conjecture and observes that it is indeed trivial that G(n)→∞G(n)\to \infty for almost all nn.

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

Formal statement

theorem erdos_673.parts.i : ∀ C : ℝ, {n : ℕ | C < G n}.HasDensity 1
Show the full Challenge.lean (85 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 673

*References:*
- [erdosproblems.com/673](https://www.erdosproblems.com/673)
- [Er79e] Erdős, Paul, _Some unconventional problems in number theory_. Astérisque (1979), 73-82.
- [Er82e] Erdős, Paul, _Some of my favourite problems which recently have been solved_. (1982),
  59--79.
-/

@[expose] public section

open Filter Asymptotics Real

namespace Erdos673

/-- If $1=d_1<\cdots <d_{\tau(n)}=n$ are the divisors of $n$ (here `Nat.nth (· ∣ n) i` is
$d_{i+1}$), then
$$G(n) = \sum_{1\leq i<\tau(n)}\frac{d_i}{d_{i+1}}.$$ -/
noncomputable def G (n : ℕ) : ℝ :=
  ∑ i : Fin (n.divisors.card - 1), (Nat.nth (· ∣ n) i : ℝ) / Nat.nth (· ∣ n) (i + 1)

set_option linter.style.formal_proof_palomar false in
/--
Let $1=d_1<\cdots <d_{\tau(n)}=n$ be the divisors of $n$ and
$$G(n) = \sum_{1\leq i<\tau(n)}\frac{d_i}{d_{i+1}}.$$
Is it true that $G(n)\to \infty$ for almost all $n$?

The answer is yes: Tao observed that $\tau(n/m)/m\leq G(n)\leq \tau(n)$ for any $m\mid n$ with
$m>1$, so that $G(n)$ behaves very similarly to $\tau(n)$. In [Er82e] Erdős recalls this
conjecture and observes that it is indeed trivial that $G(n)\to \infty$ for almost all $n$.
-/
@[category research solved, question, AMS 11, formal_proof using lean4 at
  "https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos673.lean#L914"]
theorem erdos_673.parts.i : ∀ C : ℝ, {n : ℕ | C < G n}.HasDensity 1 := by
  sorry

set_option linter.style.formal_proof_palomar false in
/--
Can one prove an asymptotic formula for $\sum_{n\leq X}G(n)$?

Indeed $\sum_{n\leq X}G(n)\sim X\log X$.
-/
@[category research solved, AMS 11, formal_proof using lean4 at
  "https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos673.lean#L914"]
theorem erdos_673.parts.ii :
    (fun X : ℕ ↦ ∑ n ∈ Finset.Icc 1 X, G n) ~[atTop] fun X : ℕ ↦ (X : ℝ) * log X := by
  sorry

set_option linter.style.formal_proof_palomar false in
/-- Erdős writes it is 'easy' to prove $\frac{1}{X}\sum_{n\leq X}G(n)\to \infty$. -/
@[category research solved, AMS 11, formal_proof using lean4 at
  "https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos673.lean#L914"]
theorem erdos_673.variants.average :
    Tendsto (fun X : ℕ ↦ (∑ n ∈ Finset.Icc 1 X, G n) / X) atTop atTop := by
  sorry

/-- Tao observed that, for any divisor $m\mid n$ with $m>1$,
$\frac{\tau(n/m)}{m} \leq G(n) \leq \tau(n)$. -/
@[category textbook, AMS 11]
theorem erdos_673.variants.tao (n m : ℕ) (hn : 0 < n) (hm : 1 < m) (hmn : m ∣ n) :
    ((n / m).divisors.card : ℝ) / m ≤ G n ∧ G n ≤ n.divisors.card := by
  sorry

end Erdos673

To prove it: keep every definition of Challenge.lean unchanged and prove Erdos673.erdos_673.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-673
nosorry submit erdos-673 nosorry/erdos-673/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.