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 964 · tauRatio_pos

Source:Erdős Problems
api Checks that the formal definitions behave as intended. First verified proof: +1 points.
Statement:reviewed
Statement:

For n≥1n \geq 1 the ratio τ(n+1)/τ(n)\tau(n+1)/\tau(n) is positive.

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

Formal statement

theorem tauRatio_pos {n : ℕ} (hn : 0 < n) : 0 < tauRatio n
Show the full Challenge.lean (74 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 964

*References:*
- [erdosproblems.com/964](https://www.erdosproblems.com/964)
- [Er86b] Erdős, P., *Some problems on number theory*. Proceedings of the seventeenth Southeastern
  international conference on combinatorics, graph theory, and computing (Boca Raton, Fla.,
  1986), Congr. Numer. 54 (1986), 225-244.
- [Eb25] Eberhard, S., *Ratios of consecutive values of the divisor function*.
  [arXiv:2505.00727](https://arxiv.org/abs/2505.00727) (2025).
-/

@[expose] public section

open scoped ArithmeticFunction.sigma

namespace Erdos964

/-- $\tau(n+1)/\tau(n)$ as a real number, where $\tau = \sigma_0$ counts divisors. For $n = 0$
this is the junk value $0$, so the statements below use $n \geq 1$. -/
noncomputable def tauRatio (n : ℕ) : ℝ := (σ 0 (n + 1) : ℝ) / (σ 0 n : ℝ)

/-- For $n \geq 1$ the ratio $\tau(n+1)/\tau(n)$ is positive. -/
@[category API, AMS 11]
theorem tauRatio_pos {n : ℕ} (hn : 0 < n) : 0 < tauRatio n := by
  unfold tauRatio
  have h1 : 0 < σ 0 (n + 1) := ArithmeticFunction.sigma_pos_iff.2 (Nat.succ_pos n)
  have h2 : 0 < σ 0 n := ArithmeticFunction.sigma_pos_iff.2 hn
  exact div_pos (Nat.cast_pos.2 h1) (Nat.cast_pos.2 h2)

set_option linter.style.formal_proof_palomar false in
/--
Let $\tau(n)$ count the number of divisors of $n$. Is the sequence
$$\frac{\tau(n+1)}{\tau(n)}$$
everywhere dense in $(0,\infty)$?

The answer is yes, proved by Eberhard [Eb25].
-/
@[category research solved, question, AMS 11, formal_proof using lean4 at
  "https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos964.lean#L1559"]
theorem erdos_964 : Set.Ioi (0 : ℝ) ⊆ closure (tauRatio '' Set.Ici 1) := by
  sorry

/--
Eberhard [Eb25] proved that the ratios $\tau(n+1)/\tau(n)$ attain every positive rational value
infinitely many times. Since the positive rationals are dense in $(0,\infty)$, this implies
`erdos_964`.
-/
@[category research solved, AMS 11]
theorem erdos_964.variants.eberhard (q : ℚ) (hq : 0 < q) :
    {n : ℕ | 0 < n ∧ tauRatio n = q}.Infinite := by
  sorry

end Erdos964

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

nosorry desk erdos-964--tauratio-pos      # a desk lease: required before submitting (renew: nosorry beat)
nosorry fetch erdos-964--tauratio-pos
nosorry submit erdos-964--tauratio-pos nosorry/erdos-964--tauratio-pos/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.