{
  "id": "1480",
  "ident": "NS.01480",
  "slug": "erdos-26",
  "title": "Erdős Problem 26",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Let $A\\subset\\mathbb{N}$ be infinite such that $\\sum_{a \\in A} \\frac{1}{a} = \\infty$. Must\nthere exist some $k\\geq 1$ such that almost all integers have a divisor of the form $a+k$\nfor some $a\\in A$?\n\nThis was formalized in Lean by Alexeev using Aristotle.",
  "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": "Erdos26.erdos_26",
  "statement_lean": "theorem erdos_26 : ¬ ∀ A : ℕ → ℕ, StrictMono A → IsThick A →\n    ∃ k, IsBehrend (A · + k)",
  "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 26\n\n*References:*\n- [erdosproblems.com/26](https://www.erdosproblems.com/26)\n- [Te19](https://arxiv.org/pdf/1908.00488) G. Tenenbaum,\n  _Some of Erdős' unconventional problems in number theory, thirty-four years later_,\n  arXiv:1908.00488 [math.NT] (2019)\n-/\n\n@[expose] public section\n\nnamespace Erdos26\n\n/-- A sequence of naturals $(a_i)$ is _thick_ if their sum of reciprocals diverges:\n$$\n  \\sum_i \\frac{1}{a_i} = \\infty\n$$-/\ndef IsThick {ι : Type*} (A : ι → ℕ) : Prop := ¬Summable (fun i ↦ (1 : ℝ) / A i)\n\n@[category test, AMS 11]\ntheorem not_isThick_of_finite {ι : Type*} [Finite ι] (A : ι → ℕ) : ¬IsThick A := by\n  simpa [IsThick] using .of_finite\n\n@[category test, AMS 11]\ntheorem not_isThick_of_geom_one_lt (r : ℕ) (hr : r > 1) : ¬IsThick fun n : ℕ ↦ r ^ n := by\n  simpa [IsThick] using summable_geometric_of_lt_one (r := 1 / r) (by aesop)\n    (div_lt_self zero_lt_one (mod_cast hr))\n\n@[category test, AMS 11]\ntheorem isThick_const {ι : Type*} [Infinite ι] (r : ℕ) (h : r > 0) : IsThick fun _ : ι ↦ r := by\n  simp only [IsThick, one_div, summable_const_iff, inv_eq_zero, Nat.cast_eq_zero]\n  exact Nat.ne_zero_of_lt h\n\n/-- The set of multiples of a sequence $(a_i)$ is $\\{na_i | n \\in \\mathbb{N}, i\\}$. -/\ndef MultiplesOf {ι : Type*} (A : ι → ℕ) : Set ℕ := Set.range fun (n, i) ↦ n * A i\n\n@[category test, AMS 11]\ntheorem multiplesOf_eq_univ {ι : Type*} (A : ι → ℕ) (h : 1 ∈ Set.range A) :\n    MultiplesOf A = Set.univ := by\n  obtain ⟨i, hi⟩ := h\n  exact top_unique fun n hn ↦ ⟨(n, i), by simp [hi]⟩\n\n/-- A sequence of naturals $(a_i)$ is _Behrend_ if almost all integers are a multiple of\nsome $a_i$. In other words, if the set of multiples has natural density $1$. -/\ndef IsBehrend {ι : Type*} (A : ι → ℕ) : Prop := (MultiplesOf A).HasDensity 1\n\n/-- A sequence of naturals $(a_i)$ is _weakly Behrend_ with respect to $\\varepsilon \\in \\mathbb{R}$\nif at least $1 - \\varepsilon$ density of all numbers are a multiple of $A$. -/\ndef IsWeaklyBehrend {ι : Type*} (A : ι → ℕ) (ε : ℝ) : Prop := 1 - ε ≤ (MultiplesOf A).lowerDensity\n\n@[category test, AMS 11]\ntheorem isBehrend_of_contains_one {ι : Type*} (A : ι → ℕ) (h : 1 ∈ Set.range A) :\n    IsBehrend A := by\n  rw [IsBehrend, Set.HasDensity]\n  exact tendsto_atTop_of_eventually_const (i₀ := 1) fun n hn ↦ by\n    simp [multiplesOf_eq_univ A h, Set.partialDensity]\n    lia\n\n@[category test, AMS 11]\ntheorem isWeaklyBehrend_of_ge_one {ι : Type*} (A : ι → ℕ) {ε : ℝ} (hε : 1 ≤ ε) :\n    IsWeaklyBehrend A ε := by\n  exact (sub_nonpos.2 hε).trans (Set.lowerDensity_nonneg _)\n\n@[category test, AMS 11]\ntheorem not_isWeaklyBehrend_of_neg {ι : Type*} (A : ι → ℕ) {ε : ℝ} (hε : ε < 0) :\n    ¬IsWeaklyBehrend A ε := by\n  norm_num [IsWeaklyBehrend]\n  exact (add_lt_of_neg_right _ hε).trans_le (Set.lowerDensity_le_one _)\n\nset_option linter.style.formal_proof_palomar false in\n/--\nLet $A\\subset\\mathbb{N}$ be infinite such that $\\sum_{a \\in A} \\frac{1}{a} = \\infty$. Must\nthere exist some $k\\geq 1$ such that almost all integers have a divisor of the form $a+k$\nfor some $a\\in A$?\n\nThis was formalized in Lean by Alexeev using Aristotle.\n-/\n@[category research solved, question, AMS 11, formal_proof using lean4 at \"https://github.com/plby/lean-proofs/blob/main/src/v4.24.0/ErdosProblems/Erdos26.lean\"]\ntheorem erdos_26 : ¬ ∀ A : ℕ → ℕ, StrictMono A → IsThick A →\n    ∃ k, IsBehrend (A · + k) := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\nIf we allow for $\\sum_{a\\in A} \\frac{1}{a} < \\infty$ then Rusza has found a counter-example.\n-/\n@[category research solved, AMS 11, formal_proof using lean4 at\n  \"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos26.lean#L752\"]\ntheorem erdos_26.variants.rusza : ∃ A : ℕ → ℕ,\n    StrictMono A ∧ ¬IsThick A ∧ ∀ k, ¬IsBehrend (A · + k) := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\nTenenbaum asked the weaker variant where for every $\\epsilon>0$ there is\nsome $k=k(\\epsilon)$ such that at least $1-\\epsilon$ density of all integers have a\ndivisor of the form $a+k$ for some $a\\in A$.\n\nThe DeepMind prover agent has found a formal disproof of this statement.\n-/\n@[category research solved, question, AMS 11,\nformal_proof using formal_conjectures at \"https://github.com/mo271/formal-conjectures/blob/09c54540aa51cb40dff73660c94a82e2631386f8/FormalConjectures/ErdosProblems/26.lean#L625\"]\ntheorem erdos_26.variants.tenenbaum : ¬ ∀ᵉ (A : ℕ → ℕ), StrictMono A → IsThick A →\n    (∀ ε > (0 : ℝ), ∃ k, IsWeaklyBehrend (A · + k) ε) := by\n  sorry\n\nend Erdos26\n",
  "statement_hash": "f6efaf1ccd732593bf74523c9029da5ed537f62992f65581d440b41304477c7f",
  "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."
}