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 999

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:

For any function f:N→R≥0f:\mathbb{N}\to \mathbb{R}_{\geq 0} the property that, for almost all α\alpha ∣α−pq∣<f(q)q\left\lvert \alpha-\frac{p}{q}\right\rvert < \frac{f(q)}{q} has infinitely many solutions with (p,q)=1(p,q)=1, is equivalent to ∑q≥1ϕ(q)f(q)q=∞.\sum_{q\geq 1}\phi(q)\frac{f(q)}{q}=\infty.

The Duffin–Schaeffer conjecture. It is easy to prove that the latter follows from the former. Erdős proved this in the special case when f(q)qf(q)q is bounded. The full conjecture was proved by Koukoulopoulos and Maynard [KoMa20].

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

Formal statement

theorem erdos_999 : ∀ f : ℕ → ℝ, (∀ q, 0 ≤ f q) →
    ((∀ᵐ x : ℝ, IsApproximable f x) ↔
      ¬ Summable fun q : ℕ ↦ (Nat.totient q : ℝ) * f q / q)
Show the full Challenge.lean (77 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 999

*References:*
- [erdosproblems.com/999](https://www.erdosproblems.com/999)
- [Er64b] Erdős, P., _Problems and results on diophantine approximations_. Compositio Math.
  (1964), 52-65.
- [KoMa20] Koukoulopoulos, Dimitris and Maynard, James, _On the Duffin-Schaeffer conjecture_.
  Ann. of Math. (2) (2020), 251--307.
-/

@[expose] public section

open MeasureTheory

namespace Erdos999

/-- `x` is *approximable* with respect to `f` if
$$\left\lvert x-\frac{p}{q}\right\rvert < \frac{f(q)}{q}$$
has infinitely many solutions with $(p,q)=1$. -/
def IsApproximable (f : ℕ → ℝ) (x : ℝ) : Prop :=
  {q : ℕ | 0 < q ∧ ∃ p : ℤ, Int.gcd p q = 1 ∧ |x - p / q| < f q / q}.Infinite

/--
For any function $f:\mathbb{N}\to \mathbb{R}_{\geq 0}$ the property that, for almost all
$\alpha$
$$\left\lvert \alpha-\frac{p}{q}\right\rvert < \frac{f(q)}{q}$$
has infinitely many solutions with $(p,q)=1$, is equivalent to
$$\sum_{q\geq 1}\phi(q)\frac{f(q)}{q}=\infty.$$

The Duffin–Schaeffer conjecture. It is easy to prove that the latter follows from the former.
Erdős proved this in the special case when $f(q)q$ is bounded. The full conjecture was proved by
Koukoulopoulos and Maynard [KoMa20].
-/
@[category research solved, question, AMS 11]
theorem erdos_999 : ∀ f : ℕ → ℝ, (∀ q, 0 ≤ f q) →
    ((∀ᵐ x : ℝ, IsApproximable f x) ↔
      ¬ Summable fun q : ℕ ↦ (Nat.totient q : ℝ) * f q / q) := by
  sorry

/-- It is easy to prove that divergence of the series follows from approximability almost
everywhere (the Borel–Cantelli lemma). -/
@[category textbook, AMS 11]
theorem erdos_999.variants.easy_direction (f : ℕ → ℝ) (hf : ∀ q, 0 ≤ f q)
    (h : ∀ᵐ x : ℝ, IsApproximable f x) :
    ¬ Summable fun q : ℕ ↦ (Nat.totient q : ℝ) * f q / q := by
  sorry

/-- Erdős [Er64b] proved the conjecture in the special case when $f(q)q$ is bounded. -/
@[category research solved, AMS 11]
theorem erdos_999.variants.erdos (f : ℕ → ℝ) (hf : ∀ q, 0 ≤ f q)
    (hb : ∃ C : ℝ, ∀ q, f q * q ≤ C) :
    (∀ᵐ x : ℝ, IsApproximable f x) ↔
      ¬ Summable fun q : ℕ ↦ (Nat.totient q : ℝ) * f q / q := by
  sorry

end Erdos999

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

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