{
  "id": "2152",
  "ident": "NS.02152",
  "slug": "erdos-440",
  "title": "Erdős Problem 440",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Let $A=\\{a_1<a_2<\\cdots\\}\\subseteq \\mathbb{N}$ be infinite and let $A(x)$ count the number of\nindices for which $\\mathrm{lcm}(a_i,a_{i+1})\\leq x$. Is it true that $A(x) \\ll x^{1/2}$?\n\nThe answer is yes: Tao has given a simple proof, and Erdős and Szemerédi [ErSz80] proved the\nsharp bound $A(x)\\leq (c+o(1))x^{1/2}$ (see `erdos_440.variants.erdos_szemeredi`).",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "question",
    "formal_proof"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos440.erdos_440.parts.i",
  "statement_lean": "theorem erdos_440.parts.i :\n    ∀ a : ℕ → ℕ, StrictMono a → (∀ i, 0 < a i) →\n      (fun x : ℕ ↦ (count a x : ℝ)) =O[atTop] fun x : ℕ ↦ √x",
  "challenge_source": "/-\nCopyright 2026 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 440\n\n*References:*\n- [erdosproblems.com/440](https://www.erdosproblems.com/440)\n- [ErGr80] Erdős, P. and Graham, R., _Old and new problems and results in combinatorial number\n  theory_. Monographies de L'Enseignement Mathematique (1980).\n- [ErSz80] Erdős, Pál and Szemerédi, Endre, _Remarks on a problem of the American Mathematical\n  Monthly_. Mat. Lapok (1980), 121-124.\n-/\n\n@[expose] public section\n\nopen Filter Real\n\nnamespace Erdos440\n\n/-- For a strictly increasing sequence `a` of positive integers, `count a x` is the number of\nindices `i` with `lcm(aᵢ, aᵢ₊₁) ≤ x`. -/\nnoncomputable def count (a : ℕ → ℕ) (x : ℕ) : ℕ :=\n  {i | Nat.lcm (a i) (a (i + 1)) ≤ x}.ncard\n\nset_option linter.style.formal_proof_palomar false in\n/--\nLet $A=\\{a_1<a_2<\\cdots\\}\\subseteq \\mathbb{N}$ be infinite and let $A(x)$ count the number of\nindices for which $\\mathrm{lcm}(a_i,a_{i+1})\\leq x$. Is it true that $A(x) \\ll x^{1/2}$?\n\nThe answer is yes: Tao has given a simple proof, and Erdős and Szemerédi [ErSz80] proved the\nsharp bound $A(x)\\leq (c+o(1))x^{1/2}$ (see `erdos_440.variants.erdos_szemeredi`).\n-/\n@[category research solved, question, AMS 11, formal_proof using lean4 at\n  \"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos440.lean#L602\"]\ntheorem erdos_440.parts.i :\n    ∀ a : ℕ → ℕ, StrictMono a → (∀ i, 0 < a i) →\n      (fun x : ℕ ↦ (count a x : ℝ)) =O[atTop] fun x : ℕ ↦ √x := by\n  sorry\n\ndef erdos_440.parts.ii.answer : ℝ := 1\n\nset_option linter.style.formal_proof_palomar false in\n/--\nHow large can\n$$\\liminf \\frac{A(x)}{x^{1/2}}$$\nbe?\n\nTaking $A=\\mathbb{N}$ shows that $\\liminf A(x)/x^{1/2}=1$ is possible. Erdős and Szemerédi\n[ErSz80] proved that it is always $\\leq 1$.\n-/\n@[category research solved, question value, AMS 11, formal_proof using lean4 at\n  \"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos440.lean#L602\"]\ntheorem erdos_440.parts.ii :\n    IsGreatest {l : ℝ | ∃ a : ℕ → ℕ, StrictMono a ∧ (∀ i, 0 < a i) ∧\n      l = liminf (fun x : ℕ ↦ (count a x : ℝ) / √x) atTop} erdos_440.parts.ii.answer := by\n  sorry\n\n/-- The Erdős–Szemerédi constant $c=\\sum_{n\\geq 1}\\frac{1}{n^{1/2}(n+1)}\\approx 1.86$\n(summed here over $n = m + 1$, $m \\geq 0$). -/\nnoncomputable def erdosSzemerediConstant : ℝ := ∑' m : ℕ, 1 / (√(m + 1 : ℝ) * (m + 2))\n\nset_option linter.style.formal_proof_palomar false in\n/--\nErdős and Szemerédi [ErSz80] proved that $A(x)\\leq (c+o(1))x^{1/2}$ where\n$$c=\\sum_{n\\geq 1}\\frac{1}{n^{1/2}(n+1)}\\approx 1.86,$$\nand that this constant is best possible (this was later rediscovered by van Doorn).\n-/\n@[category research solved, AMS 11, formal_proof using lean4 at\n  \"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos440.lean#L602\"]\ntheorem erdos_440.variants.erdos_szemeredi :\n    IsGreatest {l : ℝ | ∃ a : ℕ → ℕ, StrictMono a ∧ (∀ i, 0 < a i) ∧\n      l = limsup (fun x : ℕ ↦ (count a x : ℝ) / √x) atTop} erdosSzemerediConstant := by\n  sorry\n\nend Erdos440\n",
  "statement_hash": "aa9000a29fef346d74172a6ea4d26d77d7b48c04e8cf77ce6d80e5d531945476",
  "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."
}