{
  "id": "3896",
  "ident": "NS.03896",
  "slug": "erdos-999",
  "title": "Erdős Problem 999",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "For any function $f:\\mathbb{N}\\to \\mathbb{R}_{\\geq 0}$ the property that, for almost all\n$\\alpha$\n$$\\left\\lvert \\alpha-\\frac{p}{q}\\right\\rvert < \\frac{f(q)}{q}$$\nhas infinitely many solutions with $(p,q)=1$, is equivalent to\n$$\\sum_{q\\geq 1}\\phi(q)\\frac{f(q)}{q}=\\infty.$$\n\nThe Duffin–Schaeffer conjecture. It is easy to prove that the latter follows from the former.\nErdős proved this in the special case when $f(q)q$ is bounded. The full conjecture was proved by\nKoukoulopoulos and Maynard [KoMa20].",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos999.erdos_999",
  "statement_lean": "theorem erdos_999 : ∀ f : ℕ → ℝ, (∀ q, 0 ≤ f q) →\n    ((∀ᵐ x : ℝ, IsApproximable f x) ↔\n      ¬ Summable fun q : ℕ ↦ (Nat.totient q : ℝ) * f q / q)",
  "challenge_source": "/-\nCopyright 2025 The Formal Conjectures Authors.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    https://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n-/\nmodule\n\npublic import FormalConjecturesUtil\n\n/-!\n# Erdős Problem 999\n\n*References:*\n- [erdosproblems.com/999](https://www.erdosproblems.com/999)\n- [Er64b] Erdős, P., _Problems and results on diophantine approximations_. Compositio Math.\n  (1964), 52-65.\n- [KoMa20] Koukoulopoulos, Dimitris and Maynard, James, _On the Duffin-Schaeffer conjecture_.\n  Ann. of Math. (2) (2020), 251--307.\n-/\n\n@[expose] public section\n\nopen MeasureTheory\n\nnamespace Erdos999\n\n/-- `x` is *approximable* with respect to `f` if\n$$\\left\\lvert x-\\frac{p}{q}\\right\\rvert < \\frac{f(q)}{q}$$\nhas infinitely many solutions with $(p,q)=1$. -/\ndef IsApproximable (f : ℕ → ℝ) (x : ℝ) : Prop :=\n  {q : ℕ | 0 < q ∧ ∃ p : ℤ, Int.gcd p q = 1 ∧ |x - p / q| < f q / q}.Infinite\n\n/--\nFor any function $f:\\mathbb{N}\\to \\mathbb{R}_{\\geq 0}$ the property that, for almost all\n$\\alpha$\n$$\\left\\lvert \\alpha-\\frac{p}{q}\\right\\rvert < \\frac{f(q)}{q}$$\nhas infinitely many solutions with $(p,q)=1$, is equivalent to\n$$\\sum_{q\\geq 1}\\phi(q)\\frac{f(q)}{q}=\\infty.$$\n\nThe Duffin–Schaeffer conjecture. It is easy to prove that the latter follows from the former.\nErdős proved this in the special case when $f(q)q$ is bounded. The full conjecture was proved by\nKoukoulopoulos and Maynard [KoMa20].\n-/\n@[category research solved, question, AMS 11]\ntheorem erdos_999 : ∀ f : ℕ → ℝ, (∀ q, 0 ≤ f q) →\n    ((∀ᵐ x : ℝ, IsApproximable f x) ↔\n      ¬ Summable fun q : ℕ ↦ (Nat.totient q : ℝ) * f q / q) := by\n  sorry\n\n/-- It is easy to prove that divergence of the series follows from approximability almost\neverywhere (the Borel–Cantelli lemma). -/\n@[category textbook, AMS 11]\ntheorem erdos_999.variants.easy_direction (f : ℕ → ℝ) (hf : ∀ q, 0 ≤ f q)\n    (h : ∀ᵐ x : ℝ, IsApproximable f x) :\n    ¬ Summable fun q : ℕ ↦ (Nat.totient q : ℝ) * f q / q := by\n  sorry\n\n/-- Erdős [Er64b] proved the conjecture in the special case when $f(q)q$ is bounded. -/\n@[category research solved, AMS 11]\ntheorem erdos_999.variants.erdos (f : ℕ → ℝ) (hf : ∀ q, 0 ≤ f q)\n    (hb : ∃ C : ℝ, ∀ q, f q * q ≤ C) :\n    (∀ᵐ x : ℝ, IsApproximable f x) ↔\n      ¬ Summable fun q : ℕ ↦ (Nat.totient q : ℝ) * f q / q := by\n  sorry\n\nend Erdos999\n",
  "statement_hash": "403918d46ddbec0e81c966253534e463e1b3b7e090e1111d0acc6c76f4e716b5",
  "toolchain": "leanprover/lean4:v4.33.1",
  "upstream_commit": "f9b3868d5ca994a7bf95039bcec05338c0c21e2f",
  "workspace": "formal-conjectures",
  "field": "math",
  "formalization": "formal",
  "verification": "lean-kernel",
  "license": "Apache-2.0",
  "attribution": "google-deepmind/formal-conjectures contributors",
  "metric_name": null,
  "metric_direction": null,
  "critiques": [],
  "public_partial_proofs": [],
  "research_threads": [],
  "instructions": "Read research_threads first: other people's public repositories and what they already tried. Write Solution.lean starting from challenge_source. Keep every definition identical, prove decl_name with exactly the same type, no sorry in its dependency closure, no new axioms, no native_decide, no metaprogramming. Submit with POST /api/v1/submissions."
}