{
  "id": "1031",
  "ident": "NS.01031",
  "slug": "erdos-1217",
  "title": "Erdős Problem 1217",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Let $A=\\{a_1<a_2<\\cdots\\}$ be an infinite sequence of positive integers with positive lower\nlogarithmic density.\n\nMust there exist a sequence $n_1<\\cdots$ such that\n$$a_{n_i}\\mid a_{n_{i+1}}$$\nfor all $i\\geq 1$ and\n$$\\limsup_{x\\to \\infty}\\frac{1}{\\log\\log x}\\sum_{a_{n_i}<x}1 \\geq\n  \\limsup_{x\\to \\infty} \\frac{1}{\\log\\log x}\\sum_{a_n<x}\\frac{1}{a_n\\log a_n}?$$\n\nA problem of Erdős, Sárközi, and Szemerédi [ESS66, p. 432, (5)]. The answer is yes, proved by\nAlexeev, Barreto, Li, Lichtman, Price, Shah, Tang, and Tao [ABLLPSTT26, Theorem 1.6]. Sequences\nare indexed from $0$ here.",
  "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": "Erdos1217.erdos_1217",
  "statement_lean": "theorem erdos_1217 :\n    ∀ a : ℕ → ℕ, StrictMono a → (∀ i, 0 < a i) → 0 < lowerLogDensity (Set.range a) →\n      ∃ n : ℕ → ℕ, StrictMono n ∧ (∀ i, a (n i) ∣ a (n (i + 1))) ∧\n        weightedRate (Set.range a) ≤ chainRate (a ∘ 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 1217\n\n*References:*\n- [erdosproblems.com/1217](https://www.erdosproblems.com/1217)\n- [ABLLPSTT26] B. Alexeev, K. Barreto, Y. Li, J. D. Lichtman, L. Price, J. I. Shah, Q. Tang, and\n  T. Tao, *Primitive sets and von Mangoldt chains: Erdős Problem #1196 and beyond*.\n  arXiv:2605.00301 (2026).\n- [DaEr51] Davenport, H. and Erdős, P., *On sequences of positive integers*. J. Indian Math.\n  Soc. (N.S.) (1951), 19--24. [PDF](https://www.renyi.hu/~p_erdos/1951-07.pdf)\n- [ESS66] Erdős, P. and Sárközi, A. and Szemerédi, E., *On divisibility properties of sequences of\n  integers*. Studia Sci. Math. Hungar. (1966), 431--435.\n  [PDF](https://www.renyi.hu/~p_erdos/1966-09.pdf)\n-/\n\n@[expose] public section\n\nopen Filter\nopen scoped ENNReal\n\nnamespace Erdos1217\n\n/-- The weight $\\frac{1}{n\\log n}$ for $n \\geq 2$, and $0$ for $n \\in \\{0, 1\\}$. The value at\n$n = 1$ is a convention (the quotient is undefined as $\\log 1 = 0$); it changes the sums below by\nat most a constant, which does not affect any $\\limsup$ after division by $\\log\\log x \\to \\infty$.\n-/\nnoncomputable def doublyHarmonicWeight (n : ℕ) : ℝ :=\n  if 2 ≤ n then ((n : ℝ) * Real.log n)⁻¹ else 0\n\n/-- The lower logarithmic density\n$$\\liminf_{x\\to\\infty}\\frac{1}{\\log x}\\sum_{n\\in A,\\ n<x}\\frac{1}{n}$$\nof a set `A` of natural numbers, with a real cutoff `x`. The sum runs over the positive integers\n`n < x` in `A`, written as `1 ≤ n < ⌈x⌉₊`. The `liminf` is taken in `ℝ≥0∞`, and `ENNReal.ofReal`\nonly changes the (irrelevant) values at small `x`. -/\nnoncomputable def lowerLogDensity (A : Set ℕ) : ℝ≥0∞ :=\n  open scoped Classical in\n  liminf (fun x : ℝ ↦ ENNReal.ofReal\n    ((∑ n ∈ (Finset.Ico 1 ⌈x⌉₊).filter (· ∈ A), (n : ℝ)⁻¹) / Real.log x)) atTop\n\n/-- The right-hand side of the problem,\n$$\\limsup_{x\\to\\infty}\\frac{1}{\\log\\log x}\\sum_{n\\in A,\\ n<x}\\frac{1}{n\\log n},$$\nwith a real cutoff `x`, the sum running over the positive integers `n < x` in `A`, and the\n`limsup` taken in `ℝ≥0∞` (values at small `x`, where `log (log x) ≤ 0`, are irrelevant). -/\nnoncomputable def weightedRate (A : Set ℕ) : ℝ≥0∞ :=\n  open scoped Classical in\n  limsup (fun x : ℝ ↦ ENNReal.ofReal\n    ((∑ n ∈ (Finset.Ico 1 ⌈x⌉₊).filter (· ∈ A), doublyHarmonicWeight n) /\n      Real.log (Real.log x))) atTop\n\n/-- The left-hand side of the problem for a sequence `c`,\n$$\\limsup_{x\\to\\infty}\\frac{1}{\\log\\log x}\\sum_{c_i<x}1,$$\nwhere the sum counts the positive integers `n < x` that are values of `c`; for a strictly\nincreasing sequence of positive integers this is the number of indices `i` with `c i < x`. The\n`limsup` is taken in `ℝ≥0∞` because it can be `⊤` (for $c_i = 2^i$). -/\nnoncomputable def chainRate (c : ℕ → ℕ) : ℝ≥0∞ :=\n  open scoped Classical in\n  limsup (fun x : ℝ ↦ ENNReal.ofReal\n    ((((Finset.Ico 1 ⌈x⌉₊).filter (· ∈ Set.range c)).card : ℝ) /\n      Real.log (Real.log x))) atTop\n\nset_option linter.style.formal_proof_palomar false in\n/--\nLet $A=\\{a_1<a_2<\\cdots\\}$ be an infinite sequence of positive integers with positive lower\nlogarithmic density.\n\nMust there exist a sequence $n_1<\\cdots$ such that\n$$a_{n_i}\\mid a_{n_{i+1}}$$\nfor all $i\\geq 1$ and\n$$\\limsup_{x\\to \\infty}\\frac{1}{\\log\\log x}\\sum_{a_{n_i}<x}1 \\geq\n  \\limsup_{x\\to \\infty} \\frac{1}{\\log\\log x}\\sum_{a_n<x}\\frac{1}{a_n\\log a_n}?$$\n\nA problem of Erdős, Sárközi, and Szemerédi [ESS66, p. 432, (5)]. The answer is yes, proved by\nAlexeev, Barreto, Li, Lichtman, Price, Shah, Tang, and Tao [ABLLPSTT26, Theorem 1.6]. Sequences\nare indexed from $0$ here.\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/Erdos1217.lean#L86\"]\ntheorem erdos_1217 :\n    ∀ a : ℕ → ℕ, StrictMono a → (∀ i, 0 < a i) → 0 < lowerLogDensity (Set.range a) →\n      ∃ n : ℕ → ℕ, StrictMono n ∧ (∀ i, a (n i) ∣ a (n (i + 1))) ∧\n        weightedRate (Set.range a) ≤ chainRate (a ∘ n) := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\nThe answer to `erdos_1217` is yes even without the assumption that $A$ has positive lower\nlogarithmic density [ABLLPSTT26]: it suffices that the doubly harmonic rate on the right-hand\nside is positive, which holds whenever the lower logarithmic density is positive.\n-/\n@[category research solved, AMS 11, formal_proof using lean4 at\n    \"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos1217.lean#L66\"]\ntheorem erdos_1217.variants.without_density :\n    ∀ a : ℕ → ℕ, StrictMono a → 0 < weightedRate (Set.range a) →\n      ∃ n : ℕ → ℕ, StrictMono n ∧ (∀ i, a (n i) ∣ a (n (i + 1))) ∧\n        weightedRate (Set.range a) ≤ chainRate (a ∘ n) := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\nThe set form of [ABLLPSTT26, Theorem 1.6]: if $A \\subseteq \\mathbb{N}$ has positive upper doubly\nlogarithmic density\n$$\\Delta=\\limsup_{x\\to\\infty}\\frac{1}{\\log\\log x}\\sum_{n\\in A,\\ n<x}\\frac{1}{n\\log n},$$\nthen $A$ contains a strictly increasing infinite divisibility chain $d_0\\mid d_1\\mid\\cdots$ with\n$$\\limsup_{x\\to\\infty}\\frac{1}{\\log\\log x}\\sum_{d_i<x}1\\geq\\Delta.$$\n-/\n@[category research solved, AMS 11, formal_proof using lean4 at\n    \"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos1217/Resolution.lean#L451\"]\ntheorem erdos_1217.variants.abllpstt (A : Set ℕ) (hA : 0 < weightedRate A) :\n    ∃ d : ℕ → ℕ, StrictMono d ∧ (∀ i, d i ∈ A) ∧ (∀ i, d i ∣ d (i + 1)) ∧\n      weightedRate A ≤ chainRate d := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\nDavenport and Erdős [DaEr51] proved that (assuming $A$ has positive lower logarithmic density)\nthere exists a sequence $n_1<\\cdots$ such that $a_{n_i}\\mid a_{n_{i+1}}$ for all $i\\geq 1$\n(as stated in [ESS66, p. 431]). This also follows from `erdos_1217`.\n-/\n@[category research solved, AMS 11, formal_proof using lean4 at\n    \"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos1217.lean#L86\"]\ntheorem erdos_1217.variants.davenport_erdos :\n    ∀ a : ℕ → ℕ, StrictMono a → (∀ i, 0 < a i) → 0 < lowerLogDensity (Set.range a) →\n      ∃ n : ℕ → ℕ, StrictMono n ∧ ∀ i, a (n i) ∣ a (n (i + 1)) := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\nErdős, Sárközi, and Szemerédi [ESS66, Theorem 2] proved that if\n$$\\limsup_{x\\to \\infty}\\frac{1}{\\log\\log x}\\sum_{a_n<x}\\frac{1}{a_n\\log a_n}=c>0,$$\nthen there exists such a sequence with\n$$\\limsup_{x\\to \\infty}\\frac{1}{\\log\\log x}\\sum_{a_{n_i}<x}1\\gg_c 1.$$\nHere $\\gg_c 1$ means a lower bound $\\kappa>0$ depending only on $c$.\n-/\n@[category research solved, AMS 11, formal_proof using lean4 at\n    \"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos1217.lean#L66\"]\ntheorem erdos_1217.variants.erdos_sarkozi_szemeredi :\n    ∀ c : ℝ, 0 < c → ∃ κ : ℝ, 0 < κ ∧ ∀ a : ℕ → ℕ, StrictMono a →\n      weightedRate (Set.range a) = ENNReal.ofReal c →\n        ∃ n : ℕ → ℕ, StrictMono n ∧ (∀ i, a (n i) ∣ a (n (i + 1))) ∧\n          ENNReal.ofReal κ ≤ chainRate (a ∘ n) := by\n  sorry\n\nend Erdos1217\n",
  "statement_hash": "626670964a16e237ac0a308a1eccd0ca0c4b3a65d9fd6a9ffbad3d4c1c8a51a6",
  "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."
}