{
  "id": "1075",
  "ident": "NS.01075",
  "slug": "erdos-131",
  "title": "Erdős Problem 131",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Every non-dividing set is non-averaging. Pham and Zakharov [PhZa24] proved that a\nnon-averaging subset of $\\{1, \\dots, N\\}$ has size at most $N^{1/4 + o(1)}$, so\n$F(N) \\le N^{1/4 + o(1)}$.",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos131.erdos_131.variants.pham_zakharov",
  "statement_lean": "theorem erdos_131.variants.pham_zakharov :\n    ∃ f : ℕ → ℝ, Tendsto f atTop (𝓝 0) ∧\n      ∀ᶠ N : ℕ in atTop, (F N : ℝ) ≤ (N : ℝ) ^ ((1 : ℝ) / 4 + f 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 131\n\n*References:*\n- [erdosproblems.com/131](https://www.erdosproblems.com/131)\n- [ELRSS99] Erdős, P. and Lev, V. and Rauzy, G. and Sándor, C. and Sárközy, A., *Greedy\n  algorithm, arithmetic progressions, subset sums and divisibility*. Discrete Math. (1999),\n  119-135.\n- [PhZa24] Pham, H. T. and Zakharov, D., *Sharp bound for the Erdős–Straus non-averaging set\n  problem*. [arXiv:2410.14624](https://arxiv.org/abs/2410.14624) (2024).\n-/\n\n@[expose] public section\n\nopen Filter Topology\n\nnamespace Erdos131\n\n/-- A finite set $A$ of naturals is *non-dividing* if no $a \\in A$ divides the sum of the\nelements of any nonempty subset $S \\subseteq A \\setminus \\{a\\}$. -/\ndef NonDividing (A : Finset ℕ) : Prop :=\n  ∀ a ∈ A, ∀ S ⊆ A.erase a, S.Nonempty → ¬ a ∣ ∑ x ∈ S, x\n\ninstance (A : Finset ℕ) : Decidable (NonDividing A) := by\n  unfold NonDividing; infer_instance\n\n/-- $F(N)$ is the maximal size of a non-dividing subset of $\\{1, \\dots, N\\}$. -/\ndef F (N : ℕ) : ℕ :=\n  (((Finset.Icc 1 N).powerset).filter NonDividing).sup Finset.card\n\n/-- $F(N)$ is attained: some non-dividing $A \\subseteq \\{1, \\dots, N\\}$ has exactly $F(N)$\nelements. -/\n@[category API, AMS 11]\ntheorem exists_card_eq_F (N : ℕ) :\n    ∃ A ⊆ Finset.Icc 1 N, NonDividing A ∧ A.card = F N := by\n  obtain ⟨A, hA, h⟩ := Finset.exists_mem_eq_sup\n    (((Finset.Icc 1 N).powerset).filter NonDividing)\n    ⟨∅, by simp [NonDividing]⟩ Finset.card\n  simp only [Finset.mem_filter, Finset.mem_powerset] at hA\n  exact ⟨A, hA.1, hA.2, h.symm⟩\n\n/-- Every non-dividing $A \\subseteq \\{1, \\dots, N\\}$ has at most $F(N)$ elements. -/\n@[category API, AMS 11]\ntheorem card_le_F {N : ℕ} {A : Finset ℕ} (hA : A ⊆ Finset.Icc 1 N) (hnd : NonDividing A) :\n    A.card ≤ F N :=\n  Finset.le_sup (f := Finset.card) (by simp [hA, hnd])\n\n/-- Trivial upper bound: $F(N) \\le N$. -/\n@[category API, AMS 11]\ntheorem F_le (N : ℕ) : F N ≤ N := by\n  obtain ⟨A, hA, -, h⟩ := exists_card_eq_F N\n  simpa [← h] using Finset.card_le_card hA\n\n/-- $F$ is monotone. -/\n@[category API, AMS 11]\ntheorem F_mono : Monotone F := fun _ _ hMN =>\n  let ⟨_, hA, hnd, h⟩ := exists_card_eq_F _\n  h ▸ card_le_F (hA.trans (Finset.Icc_subset_Icc_right hMN)) hnd\n\n/-- Trivial lower bound: for $N \\ge 1$, the singleton $\\{N\\}$ is non-dividing, so\n$1 \\le F(N)$. -/\n@[category API, AMS 11]\ntheorem one_le_F {N : ℕ} (hN : 1 ≤ N) : 1 ≤ F N := by\n  have h := card_le_F (N := N) (A := {N}) (by simp [hN]) (by\n    intro a ha S hS hne\n    have : S = ∅ := by simpa [Finset.mem_singleton.1 ha] using hS\n    simp [this] at hne)\n  simpa using h\n\n/-- Every non-dividing set is non-averaging. Pham and Zakharov [PhZa24] proved that a\nnon-averaging subset of $\\{1, \\dots, N\\}$ has size at most $N^{1/4 + o(1)}$, so\n$F(N) \\le N^{1/4 + o(1)}$. -/\n@[category research solved, AMS 11]\ntheorem erdos_131.variants.pham_zakharov :\n    ∃ f : ℕ → ℝ, Tendsto f atTop (𝓝 0) ∧\n      ∀ᶠ N : ℕ in atTop, (F N : ℝ) ≤ (N : ℝ) ^ ((1 : ℝ) / 4 + f N) := by\n  sorry\n\n/-- Erdős, Lev, Rauzy, Sándor and Sárközy [ELRSS99] proved $F(N) < 3 N^{1/2} + 1$. -/\n@[category research solved, AMS 11]\ntheorem erdos_131.variants.elrss (N : ℕ) : (F N : ℝ) < 3 * Real.sqrt N + 1 := by\n  sorry\n\n/--\nLet $F(N)$ be the maximal size of $A \\subseteq \\{1, \\dots, N\\}$ such that no $a \\in A$ divides\nthe sum of any distinct elements of $A \\setminus \\{a\\}$. Is it true that\n$F(N) > N^{1/2 - o(1)}$?\n\nThe answer is no, by the bound of Pham and Zakharov [PhZa24]\n(`erdos_131.variants.pham_zakharov`).\n-/\n@[category research solved, question, AMS 11]\ntheorem erdos_131 :\n    ¬ ∃ f : ℕ → ℝ, Tendsto f atTop (𝓝 0) ∧\n      ∀ᶠ N : ℕ in atTop, (N : ℝ) ^ ((1 : ℝ) / 2 - f N) < (F N : ℝ) := by\n  rintro ⟨f, hf, hlow⟩\n  obtain ⟨g, hg, hup⟩ := erdos_131.variants.pham_zakharov\n  have hf' : ∀ᶠ N : ℕ in atTop, f N < 1 / 8 := hf.eventually (gt_mem_nhds (by norm_num))\n  have hg' : ∀ᶠ N : ℕ in atTop, g N < 1 / 8 := hg.eventually (gt_mem_nhds (by norm_num))\n  obtain ⟨N, hN1, h1, h2, h3, h4⟩ :=\n    ((eventually_ge_atTop 1).and (hlow.and (hup.and (hf'.and hg')))).exists\n  have hle : (N : ℝ) ^ ((1 : ℝ) / 4 + g N) ≤ (N : ℝ) ^ ((1 : ℝ) / 2 - f N) :=\n    Real.rpow_le_rpow_of_exponent_le (by exact_mod_cast hN1) (by linarith)\n  linarith\n\nend Erdos131\n",
  "statement_hash": "7602ae64138c1750683fa119517948dedc118caaa0ef1fa814041eee7997f0f4",
  "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."
}