{
  "id": "2713",
  "ident": "NS.02713",
  "slug": "erdos-648",
  "title": "Erdős Problem 648",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Let $g(n)$ denote the largest $t$ such that there exist integers $2\\leq a_1<a_2<\\cdots <a_t <n$\nsuch that $$P(a_1)>P(a_2)>\\cdots >P(a_t)$$ where $P(m)$ is the greatest prime factor of $m$.\nEstimate $g(n)$.\n\nStijn Cambie has proved [Ca25b] $$g(n) \\asymp \\left(\\frac{n}{\\log n}\\right)^{1/2}.$$\nCambie further asks whether there exists a constant $c$ such that\n$$g(n) \\sim c \\left(\\frac{n}{\\log n}\\right)^{1/2}.$$\nCambie's proof shows that such a $c$ must satisfy $2\\leq c\\leq 2\\sqrt{2}$.\n\nThe sequence $a_1<a_2<\\cdots<a_t$ is packaged as a strictly monotone map `a : Fin t → ℕ`\nwith $2\\leq a_i<n$, the greatest prime factor $P$ is `Nat.maxPrimeFac`, and $g(n)$ is the\nsupremum in `ℕ` of the achievable lengths $t$.",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "formal_proof"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos648.erdos_648",
  "statement_lean": "theorem erdos_648 :\n    (fun n => (g n : ℝ)) =Θ[atTop] fun n => Real.sqrt ((n : ℝ) / Real.log (n : ℝ))",
  "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 648\n\n*References:*\n- [erdosproblems.com/648](https://www.erdosproblems.com/648)\n- [Er95c] Erdős, Paul, *Some problems in number theory*. Octogon Math. Mag. (1995), 3-5.\n- [Ca25b] S. Cambie, *On Erdős problem #648*. arXiv:2503.22691 (2025).\n-/\n\n@[expose] public section\n\nopen Filter Asymptotics\n\nnamespace Erdos648\n\n/-\nDivergences from the hosted theorems (details in statements/648/draft.json):\n- the sequence range follows the problem text, `2 ≤ a_1 < ⋯ < a_t < n` (`Set.Ico 2 n`);\n  both hosted theorems allow `0 < m ≤ n` (`Set.Ioc 0 n`), which admits `1` and `n`.\n- `P` is the FC-house `Nat.maxPrimeFac`; the hosted files define\n  `P n = (n.primeFactors.max).getD 1`. The two agree on `2 ≤ m`.\n- the sequence is a strictly monotone `a : Fin t → ℕ` (FC house shape); the hosted\n  theorems use a `List ℕ` with `IsChain`.\n-/\n\n/--\n`g n` is the largest `t` such that there exist integers `2 ≤ a 0 < a 1 < ⋯ < a (t - 1) < n`\nwhose greatest prime factors are strictly decreasing. -/\nnoncomputable def g (n : ℕ) : ℕ :=\n  sSup {t | ∃ a : Fin t → ℕ, StrictMono a ∧ (∀ i, a i ∈ Set.Ico 2 n) ∧\n    StrictAnti fun i => (a i).maxPrimeFac}\n\nset_option linter.style.formal_proof_palomar false in\n/--\nLet $g(n)$ denote the largest $t$ such that there exist integers $2\\leq a_1<a_2<\\cdots <a_t <n$\nsuch that $$P(a_1)>P(a_2)>\\cdots >P(a_t)$$ where $P(m)$ is the greatest prime factor of $m$.\nEstimate $g(n)$.\n\nStijn Cambie has proved [Ca25b] $$g(n) \\asymp \\left(\\frac{n}{\\log n}\\right)^{1/2}.$$\nCambie further asks whether there exists a constant $c$ such that\n$$g(n) \\sim c \\left(\\frac{n}{\\log n}\\right)^{1/2}.$$\nCambie's proof shows that such a $c$ must satisfy $2\\leq c\\leq 2\\sqrt{2}$.\n\nThe sequence $a_1<a_2<\\cdots<a_t$ is packaged as a strictly monotone map `a : Fin t → ℕ`\nwith $2\\leq a_i<n$, the greatest prime factor $P$ is `Nat.maxPrimeFac`, and $g(n)$ is the\nsupremum in `ℕ` of the achievable lengths $t$.\n-/\n@[category research solved, AMS 11, formal_proof using lean4 at \"https://github.com/plby/lean-proofs/blob/68da20b96673899166e94638f5a7fffeb7231d35/src/latest/ErdosProblems/Erdos648.lean\"]\ntheorem erdos_648 :\n    (fun n => (g n : ℝ)) =Θ[atTop] fun n => Real.sqrt ((n : ℝ) / Real.log (n : ℝ)) := by\n  sorry\n\nend Erdos648\n",
  "statement_hash": "b88fdeebb7c8dfe718413a499345f5b3a4fec5723d81bf2c759104ac95ea5c6c",
  "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."
}