{
  "id": "2832",
  "ident": "NS.02832",
  "slug": "erdos-678",
  "title": "Erdős Problem 678",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Write $M(n, k)$ be the least common multiple of $\\{n+1, \\dotsc, n+k\\}$.\nLet $k$ be sufficiently large. Are there infinitely many $m, n$ with $m \\geq n + k$ such that\n$$\nM(n, k) > M(m, k + 1)\n$$?\nThe answer is yes, as proved in a strong form by Cambie [Ca24].\n[Ca24] S. Cambie, Resolution of an Erdős' problem on least common multiples. arXiv:2410.09138 (2024).\n\nThis was formalized in Lean by Alexeev using Aristotle, on top of the PNT+ project.\n\nFor a fixed $k$ there are only finitely many such pairs, so \"infinitely many\" is read here as\nranging over $k$ as well: for every sufficiently large $k$ at least one pair $(m, n)$ occurs.\nSee `erdos_678.variants.infinitely_many_triples` for the reading in which the infinitude is\nstated directly, and `erdos_678.variants.not_infinitely_many_pairs` for why it cannot be asked\nof a single $k$.",
  "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": "Erdos678.erdos_678",
  "statement_lean": "theorem erdos_678 :\n    ∀ᶠ k in atTop, {(m, n) | n + k ≤ m ∧ lcmInterval m (k + 1) < lcmInterval n k}.Nonempty",
  "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 678\n*References:*\n- [erdosproblems.com/678](https://www.erdosproblems.com/678)\n- [Ca24] S. Cambie, Resolution of an Erdős' problem on least common multiples. arXiv:2410.09138\n  (2024).\n- [Er79] Erdős, Paul, Some unconventional problems in number theory. Math. Mag. (1979), 67-70.\n- [Er92e] Erdős, Pál, Some Unsolved problems in Geometry, Number Theory and Combinatorics. Eureka\n  (1992), 44-48.\n-/\n\n@[expose] public section\n\nopen Asymptotics Filter Finset\n\nnamespace Erdos678\n\n/--\nThe referee of [Er79] found the example $M(96, 7) > M(104, 8)$, showing that there are cases where\n$M(n, k) > M(m, k + 1)$ with $m \\geq n + k$.\n[Er79] Erdős, Paul, Some unconventional problems in number theory. Math. Mag. (1979), 67-70.\n-/\n@[category test, AMS 11]\nlemma lcmInterval_lt_example1 : lcmInterval 104 8 < lcmInterval 96 7 := by decide\n\n/--\nThe referee of [Er79] found the example $M(132, 7) > M(139, 8)$, showing that there are cases where\n$M(n, k) > M(m, k + 1)$ with $m \\geq n + k$.\n[Er79] Erdős, Paul, Some unconventional problems in number theory. Math. Mag. (1979), 67-70.\n-/\n@[category test, AMS 11]\nlemma lcmInterval_lt_example2 : lcmInterval 139 8 < lcmInterval 132 7 := by decide\n\n/--\nCambie [Ca24] found the example $M(52, 7) > M(62, 8)$.\n[Ca24] S. Cambie, Resolution of an Erdős' problem on least common multiples. arXiv:2410.09138 (2024).\n-/\n@[category test, AMS 11]\nlemma lcmInterval_lt_example3 : lcmInterval 62 8 < lcmInterval 52 7 := by decide\n\n/--\nCambie [Ca24] found the example $M(36, 8) > M(48, 9)$.\n[Ca24] S. Cambie, Resolution of an Erdős' problem on least common multiples. arXiv:2410.09138 (2024).\n-/\n@[category test, AMS 11]\nlemma lcmInterval_lt_example4 : lcmInterval 47 9 < lcmInterval 36 8 := by decide\n\nset_option linter.style.formal_proof_palomar false in\n/--\nWrite $M(n, k)$ be the least common multiple of $\\{n+1, \\dotsc, n+k\\}$.\nLet $k$ be sufficiently large. Are there infinitely many $m, n$ with $m \\geq n + k$ such that\n$$\nM(n, k) > M(m, k + 1)\n$$?\nThe answer is yes, as proved in a strong form by Cambie [Ca24].\n[Ca24] S. Cambie, Resolution of an Erdős' problem on least common multiples. arXiv:2410.09138 (2024).\n\nThis was formalized in Lean by Alexeev using Aristotle, on top of the PNT+ project.\n\nFor a fixed $k$ there are only finitely many such pairs, so \"infinitely many\" is read here as\nranging over $k$ as well: for every sufficiently large $k$ at least one pair $(m, n)$ occurs.\nSee `erdos_678.variants.infinitely_many_triples` for the reading in which the infinitude is\nstated directly, and `erdos_678.variants.not_infinitely_many_pairs` for why it cannot be asked\nof a single $k$.\n-/\n@[category research solved, question, AMS 11, formal_proof using lean4 at \"https://github.com/plby/lean-proofs/blob/68da20b96673899166e94638f5a7fffeb7231d35/src/latest/ErdosProblems/Erdos678.lean\"]\ntheorem erdos_678 :\n    ∀ᶠ k in atTop, {(m, n) | n + k ≤ m ∧ lcmInterval m (k + 1) < lcmInterval n k}.Nonempty := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\nThe pairs $(m, n)$ with $m \\geq n + k$ and $M(n, k) > M(m, k + 1)$ are infinite in number once\n$k$ is allowed to vary, which is the sense in which Cambie's result answers the question.\n-/\n@[category research solved, AMS 11, formal_proof using lean4 at \"https://github.com/plby/lean-proofs/blob/68da20b96673899166e94638f5a7fffeb7231d35/src/latest/ErdosProblems/Erdos678.lean\"]\ntheorem erdos_678.variants.infinitely_many_triples :\n    {(k, m, n) | 3 ≤ k ∧ n + k ≤ m ∧ lcmInterval m (k + 1) < lcmInterval n k}.Infinite := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\nFor a fixed sufficiently large $k$ only finitely many pairs occur: $M(m, k + 1) \\geq m + 1$\nbounds $m$ by $M(n, k)$, and for large $n$ the inequality reverses. So the question cannot be\nread as asking for infinitely many pairs at a single $k$.\n-/\n@[category research solved, AMS 11, formal_proof using lean4 at \"https://github.com/plby/lean-proofs/blob/68da20b96673899166e94638f5a7fffeb7231d35/src/latest/ErdosProblems/Erdos678.lean\"]\ntheorem erdos_678.variants.not_infinitely_many_pairs :\n    ¬ ∀ᶠ k in atTop, {(m, n) | n + k ≤ m ∧ lcmInterval m (k + 1) < lcmInterval n k}.Infinite := by\n  sorry\n\nend Erdos678\n",
  "statement_hash": "1d751c6bdb599c8cfa63a9c9f81e6a21341a3e2c4489939a4087cb5b3011ac24",
  "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."
}