{
  "id": "536",
  "ident": "NS.00536",
  "slug": "erdos-1063",
  "title": "Erdős Problem 1063",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "Estimate $n_k$ by finding a better upper bound than Cambie's\n$n_k \\leq k \\cdot \\operatorname{lcm}(1, \\dotsc, k-1)$.\n\nThe comparator takes its least common multiple in `ℕ` and casts the result. Writing the\nascription as `((… ).lcm (fun n : ℕ => n) : ℝ)` instead puts it on the `Finset.lcm`\napplication, so the coercion lands on `n` and the `lcm` is taken in `ℝ`, where `lcm` of\nnon-zero elements is `1` and the whole comparator collapses to `k`.",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos1063.erdos_1063.better_upper",
  "statement_lean": "theorem erdos_1063.better_upper :\n    (fun k => (n k : ℝ)) =O[atTop] erdos_1063.better_upper.answer ∧\n    erdos_1063.better_upper.answer =o[atTop] fun k =>\n      (k : ℝ) * (((Finset.Icc 1 (k - 1)).lcm id : ℕ) : ℝ)",
  "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 1063\n\n*References:*\n * [erdosproblems.com/1063](https://www.erdosproblems.com/1063)\n * [ErSe83] Erdos, P. and Selfridge, J. L., Problem 6447. Amer. Math. Monthly (1983), 710.\n * [Gu04] Guy, Richard K., _Unsolved problems in number theory_. (2004), Problem B31.\n * [Mo85] Monier, Jean-Marie, _Problems and Solutions: Solutions of Advanced Problems: 6447_.\n   Amer. Math. Monthly **92** (1985), 435-436.\n * [Ku+26] Kung, P.-N., Song, L., Hwang, D., Yoon, J., Li, C.-L., Severini, S., Olšák, M.,\n   Lockhart, E., Le, Q. V., Gokturk, B., Luong, T., Pfister, T., & Peng, N. (2026). _LEAP:\n   Supercharging LLMs for Formal Mathematics with Agentic Frameworks_.\n   [arXiv:2606.03303](https://arxiv.org/abs/2606.03303).\n-/\n\n@[expose] public section\n\nopen Filter Real\nopen scoped Nat Topology\n\nnamespace Erdos1063\n\n/--\nLet $n_k$ be the least $n \\ge 2k$ such that all but one of the integers $n - i$ with\n$0 \\le i < k$ divide $\\binom{n}{k}$.\n-/\nnoncomputable def n (k : ℕ) : ℕ :=\n  sInf {m | 2 * k ≤ m ∧ ∃ i0 < k, ¬ (m - i0) ∣ m.choose k ∧\n    ∀ i < k, i ≠ i0 → (m - i) ∣ m.choose k}\n\ndef erdos_1063.better_upper.answer : ℕ → ℝ := sorry\n\n/--\nEstimate $n_k$ by finding a better upper bound than Cambie's\n$n_k \\leq k \\cdot \\operatorname{lcm}(1, \\dotsc, k-1)$.\n\nThe comparator takes its least common multiple in `ℕ` and casts the result. Writing the\nascription as `((… ).lcm (fun n : ℕ => n) : ℝ)` instead puts it on the `Finset.lcm`\napplication, so the coercion lands on `n` and the `lcm` is taken in `ℝ`, where `lcm` of\nnon-zero elements is `1` and the whole comparator collapses to `k`. -/\n@[category research open, question value, AMS 11]\ntheorem erdos_1063.better_upper :\n    (fun k => (n k : ℝ)) =O[atTop] erdos_1063.better_upper.answer ∧\n    erdos_1063.better_upper.answer =o[atTop] fun k =>\n      (k : ℝ) * (((Finset.Icc 1 (k - 1)).lcm id : ℕ) : ℝ) := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\nAn improved upper bound\n$n_k \\ll \\exp\\left(\\frac{k}{\\log k}(\\log \\log k + \\log \\log \\log k + \\log 2)\\right)$,\nwhich is $o\\bigl(k \\cdot \\operatorname{lcm}(1, \\dotsc, k - 1)\\bigr)$, was formally proved in\nLean 4 by the LEAP prover agent [Ku+26] (see the linked `formal_proof`).\nThis is an improvement over another upper bound propsed [here](https://github.com/pw/erdos1063-upper-bound/blob/a28481f5b4bda374086533397269c5b550c759b8/README.md).\n  -/\n@[category research solved, AMS 11,\n  formal_proof using formal_conjectures at\n    \"https://github.com/lfsong-google/formal-conjectures/blob/ff33e501bb78a90ae4703e22e052f8bb38e10146/FormalConjectures/ErdosProblems/1063.lean#L5524\"]\ntheorem erdos_1063.variants.subexponential_upper_bound :\n    let upper_bound : ℕ → ℝ := fun k =>\n      Real.exp ((k : ℝ) / Real.log k *\n        (Real.log (Real.log k) + Real.log (Real.log (Real.log k)) + Real.log 2))\n    (fun k => (n k : ℝ)) =O[atTop] upper_bound ∧\n    upper_bound =o[atTop] fun k =>\n      (k : ℝ) * (((Finset.Icc 1 (k - 1)).lcm id : ℕ) : ℝ) := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\nErdős and Selfridge noted that, for $n \\ge 2k$ with $k \\ge 2$, at least one of the numbers\n$n - i$ for $0 \\le i < k$ fails to divide $\\binom{n}{k}$ ([ErSe83]).\n-/\n@[category research solved, AMS 11,\n  formal_proof using formal_conjectures at\n    \"https://github.com/lfsong-google/formal-conjectures/blob/ff33e501bb78a90ae4703e22e052f8bb38e10146/FormalConjectures/ErdosProblems/1063.lean#L5533\"]\ntheorem erdos_1063.variants.exists_exception {n k : ℕ} (hk : 2 ≤ k) (h : 2 * k ≤ n) :\n    ∃ i < k, ¬ (n - i) ∣ n.choose k := by\n  sorry\n\n/-- The initial values satisfy $n_2 = 4$, $n_3 = 6$, $n_4 = 9$, and $n_5 = 12$ ([Gu04], Problem B31). -/\n@[category research solved, AMS 11]\ntheorem erdos_1063.variants.small_values :\n    n 2 = 4 ∧ n 3 = 6 ∧ n 4 = 9 ∧ n 5 = 12 := by\n  refine ⟨?_, ?_, ?_, ?_⟩\n  · -- n 2 = 4 : every element of the set is ≥ 2 * 2 = 4, and 4 itself lies in the set\n    apply le_antisymm\n    · exact Nat.sInf_le (by decide)\n    · apply le_csInf ⟨4, by decide⟩\n      rintro b hb\n      have : 2 * 2 ≤ b := hb.1\n      omega\n  · -- n 3 = 6\n    apply le_antisymm\n    · exact Nat.sInf_le (by decide)\n    · apply le_csInf ⟨6, by decide⟩\n      rintro b hb\n      have : 2 * 3 ≤ b := hb.1\n      omega\n  · -- n 4 = 9 : the only candidate below 9 is m = 8, where both 8 and 6 fail to divide C(8,4) = 70\n    apply le_antisymm\n    · exact Nat.sInf_le (by decide)\n    · apply le_csInf ⟨9, by decide⟩\n      rintro b hb\n      have hb8 : 8 ≤ b := by have := hb.1; omega\n      by_contra! h\n      interval_cases b\n      · exact absurd hb (by decide)\n  · -- n 5 = 12 : the candidates below 12 are m = 10, 11, both of which fail\n    apply le_antisymm\n    · exact Nat.sInf_le (by decide)\n    · apply le_csInf ⟨12, by decide⟩\n      rintro b hb\n      have hb10 : 10 ≤ b := by have := hb.1; omega\n      by_contra! h\n      interval_cases b\n      · exact absurd hb (by decide)\n      · exact absurd hb (by decide)\n\nset_option linter.style.formal_proof_palomar false in\n/-- Monier observed that $n_k \\le k!$ for $k \\ge 3$ ([Mo85]), since $\\binom{k!}{k}$ is divisible\nby $k! - i$ for $1 \\le i < k$.\n\nThe hypothesis `3 ≤ k` is necessary. At $k = 2$ the bound is false: $n_2 = 4$ and $2! = 2$. -/\n@[category research solved, AMS 11,\n  formal_proof using formal_conjectures at\n    \"https://github.com/lfsong-google/formal-conjectures/blob/ff33e501bb78a90ae4703e22e052f8bb38e10146/FormalConjectures/ErdosProblems/1063.lean#L5537\"]\ntheorem erdos_1063.variants.monier_upper_bound {k : ℕ} (hk : 3 ≤ k) :\n    n k ≤ k ! := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/-- [Cambie observed](https://www.erdosproblems.com/1063) the improved bound\n$n_k \\le k \\cdot \\operatorname{lcm}(1, \\dotsc, k - 1)$.\n\nThe hypothesis `3 ≤ k` is necessary here too. At $k = 2$ the right hand side is\n$2 \\cdot \\operatorname{lcm}(1) = 2$, while $n_2 = 4$.\n\nThe source writes the bound as $k[2, 3, \\dotsc, k-1]$. That agrees with the range used here,\nbecause including $1$ does not change a least common multiple. -/\n@[category research solved, AMS 11,\n  formal_proof using formal_conjectures at\n    \"https://github.com/lfsong-google/formal-conjectures/blob/ff33e501bb78a90ae4703e22e052f8bb38e10146/FormalConjectures/ErdosProblems/1063.lean#L5541\"]\ntheorem erdos_1063.variants.cambie_upper_bound {k : ℕ} (hk : 3 ≤ k) :\n    n k ≤ k * (Finset.Icc 1 (k - 1)).lcm id := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/-- The least common multiple bound implies $n_k \\le \\exp((1 + o(1))k)$. -/\n@[category research solved, AMS 11,\n  formal_proof using formal_conjectures at\n    \"https://github.com/lfsong-google/formal-conjectures/blob/ff33e501bb78a90ae4703e22e052f8bb38e10146/FormalConjectures/ErdosProblems/1063.lean#L5545\"]\ntheorem erdos_1063.variants.exp_upper_bound :\n    ∃ f : ℕ → ℝ, Tendsto f atTop (𝓝 0) ∧\n      ∀ k, (n k : ℝ) ≤ exp ((1 + f k) * k) := by\n  sorry\n\nend Erdos1063\n",
  "statement_hash": "75e6640196c32fcdd015f085cd6046f470382c619f870970dcc20bbcc16ee53a",
  "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."
}