{
  "id": "2047",
  "ident": "NS.02047",
  "slug": "erdos-413",
  "title": "Erdős Problem 413",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "Are there infinitely many barriers for `ω`?",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos413.erdos_413.parts.i",
  "statement_lean": "theorem erdos_413.parts.i :\n    { n | IsBarrier (fun m => ω m) n }.Infinite",
  "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 413\n\n*References:*\n- [erdosproblems.com/413](https://www.erdosproblems.com/413)\n- [A5236](https://oeis.org/A5236)\n- [La26] Lau, C. F., *On the Number of Prime Factors of Consecutive Integers*.\n  [arXiv:2604.15042](https://arxiv.org/abs/2604.15042) (2026).\n\nErdős called a natural number `n` a *barrier* for `ω`, the number of distinct prime divisors,\nif `m + ω(m) ≤ n` for all `m < n`. He believed there should be infinitely many such barriers, and\neven posed a relaxed variant asking whether there is some `ε > 0` for which infinitely many `n`\nsatisfy `m + ε · ω(m) ≤ n` for every `m < n`.\n-/\n\n@[expose] public section\n\nopen ArithmeticFunction\nopen scoped omega Omega\n\nnamespace Erdos413\n\n/-- `IsBarrier f n` means `n` is a barrier for the real-valued function `f`,\ni.e. `(m : ℝ) + f m ≤ (n : ℝ)` for all `m < n`. -/\ndef IsBarrier (f : ℕ → ℝ) (n : ℕ) : Prop :=\n  ∀ m < n, (m : ℝ) + f m ≤ n\n\n/-- Are there infinitely many barriers for `ω`? -/\n@[category research open, question, AMS 11]\ntheorem erdos_413.parts.i :\n    { n | IsBarrier (fun m => ω m) n }.Infinite := by\n  sorry\n\n/-- `expProd n` is `∏ kᵢ` when `n = ∏ pᵢ ^ kᵢ`, i.e. the product of the prime exponents of `n`. -/\ndef expProd (n : ℕ) : ℕ :=\n  n.factorization.prod fun _ e => e\n\n/-- Erdős proved that the barrier set for `expProd` is infinite and even has positive density.\n\n`HasPosDensity` is the right reading rather than positive lower density. In [Er79d] this is\nTheorem 1, \"the density of integers satisfying (2) is positive\", where `d₀(n) = ∏ αᵢ` is\n`expProd`. The averaging argument there bounds the density below, but Erdős states the existence\nseparately on the last page: \"With a little more trouble, I can prove that the density of\nintegers `n` for which `n` is a barrier for `d₀(n)` exists.\" He goes further, that if `αᵢ` is the\ndensity of `n` with `max_{m<n} (m + d₀(m)) = n + i`, then every `αᵢ` exists and they sum to `1`.\n\n[Er79d] Erdős, P., *Some unconventional problems in number theory*.\nActa Math. Acad. Sci. Hungar. (1979), 71-80. -/\n@[category research solved, AMS 11]\ntheorem erdos_413.variants.hasPosDensity_barrier_expProd :\n    { n | IsBarrier (fun m => expProd m) n }.HasPosDensity := by\n  sorry\n\n/-- Erdős believed there should be infinitely many barriers for `Ω`, the total prime multiplicity. -/\n@[category research open, question, AMS 11]\ntheorem erdos_413.variants.bigOmega :\n    { n | IsBarrier (fun m => Ω m) n }.Infinite := by\n  sorry\n\n/-- Selfridge computed that the largest `Ω`-barrier below `10^5` is `99840`. -/\n@[category research solved, AMS 11]\ntheorem erdos_413.variants.bigOmega_largest_barrier_lt_100k :\n    IsGreatest {n : ℕ | n < 10 ^ 5 ∧ IsBarrier (fun m => Ω m) n} 99840 := by\n  sorry\n\n/-- Does there exist some $\\epsilon > 0$ such that there are infinitely many\n$\\epsilon$-barriers for $\\omega$? Lau [La26, Theorem 1.3] gives a positive answer. -/\n@[category research solved, question, AMS 11]\ntheorem erdos_413.parts.ii :\n    (∃ ε > (0 : ℝ), { n | IsBarrier (fun n => ε * ω n) n }.Infinite) := by\n  sorry\n\nend Erdos413\n",
  "statement_hash": "ccfb6b9d2e905279b56d251b25e00afb7640e12887e09d1d389977b3f203f4b5",
  "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."
}