{
  "id": "3719",
  "ident": "NS.03719",
  "slug": "erdos-945",
  "title": "Erdős Problem 945",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "Is it true that $F(x) \\leq (\\log x)^{O(1)}$?",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos945.erdos_945",
  "statement_lean": "theorem erdos_945 : Erdos945Prop",
  "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 945\n\n*References:*\n - [erdosproblems.com/945](https://www.erdosproblems.com/945)\n - [ErMi52] Erdős, P. and Mirsky, L., The distribution of values of the divisor function {$d(n)$}. Proc. London Math. Soc. (3) (1952), 257--271.\n-/\n\n@[expose] public section\n\nopen Filter Real\n\nnamespace Erdos945\n\nabbrev τ  := fun (n : ℕ) => n.divisors.card\n\n/--\nLet $F(x)$ be the maximal $k$ such that there exist $n+1, \\dots, n+k \\le x$\nwith $τ(n+1), \\dots, τ(n+k)$ all distinct, where $τ(m)$ counts the divisors of $m$. -/\nnoncomputable def F (x : ℝ) : ℕ :=\n  sSup {k | ∃ (n : ℕ), n + k ≤ x ∧ (Set.Ioc n (n + k)).InjOn τ}\n\n-- Implementation note: we define a Prop here and below to be able to easily formulate\n-- the equivalence between the two variants. Because the theorems have an unknown `answer` we\n-- can't handle this with `type_of%`.\ndef Erdos945Prop : Prop := ∃ O : ℝ → ℝ, O =O[atTop] (1 : ℝ → ℝ) ∧ ∀ᶠ x in atTop, F x ≤ log x ^ O x\n\n/--\nIs it true that $F(x) \\leq (\\log x)^{O(1)}$?\n-/\n@[category research open, question, AMS 11]\ntheorem erdos_945 : Erdos945Prop := by\n  sorry\n\ndef Erdos945Constant : Prop :=\n  ∃ C > (0 : ℝ),  ∀ᶠ x : ℝ in atTop,\n    ∃ a b : ℕ, a ≠ b ∧\n    ↑a ∈ Set.Icc x (x + log x ^ C) ∧\n    ↑b ∈ Set.Icc x (x + log x ^ C) ∧\n    τ a = τ b\n\n/--\nIs there a constant $C > 0$ such that, for all large $x$, every interval $[x, x+(\\log x)C]$\ncontains two integers with the same number of divisors?\n-/\n@[category research open, question, AMS 11]\ntheorem erdos_945.variants.constant : Erdos945Constant := by\n  sorry\n\n-- TODO(firsching): show equivalence\n/--\nThe two ways of phrasing the conjecture are equivalent.\n-/\n@[category textbook, AMS 11]\ntheorem erdos_945.variants.equivalence : Erdos945Prop ↔ Erdos945Constant := by\n  sorry\n\n/--\nErdős and Mirsky [ErMi52] proved that $\\frac{(\\log x)^{1/2}}{\\log\\log x}\\ll F(x)$.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_945.variants.lower_bound :\n    (fun (x : ℕ) => (log x).sqrt /(log x).log) =O[atTop] fun (n : ℕ) => (F n : ℝ) := by\n  sorry\n\n/--\nErdős and Mirsky [ErMi52] proved that $\\log F(x) \\ll \\frac{(\\log x)^{1/2}}{\\log\\log x}$.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_945.variants.upper_bound :\n    (fun (n : ℕ) => (F n : ℝ).log) =O[atTop] fun (x : ℕ) => (log x).sqrt /(log x).log := by\n  sorry\n\n-- TODO(firsching): add observations what follows from Cramér's conjecture and if every sufficient\n-- interval contains a squarefree number.\n\nend Erdos945\n",
  "statement_hash": "176802d4a3238dad1dce61e98ad3d70627bb25e47beaf6433ed0a890815cb83d",
  "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."
}