{
  "id": "3215",
  "ident": "NS.03215",
  "slug": "erdos-790",
  "title": "Erdős Problem 790",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "Let $l(n)$ be maximal such that if $A\\subset\\mathbb{Z}$ with $\\lvert A\\rvert=n$\nthen there exists a sum-free $B\\subseteq A$ with $\\lvert B\\rvert \\geq l(n)$ - that is,\n$B$ is such that there are no solutions to $a_1=a_2+\\cdots+a_r$\nwith $a_i\\in B$ all distinct.\nEstimate $l(n)$.\n\nThis is interpreted as asking for the order of growth of $l(n)$.",
  "subjects": [
    "math.CO",
    "math.NT",
    "msc:05",
    "msc:11"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos790.erdos_790.parts.i",
  "statement_lean": "theorem erdos_790.parts.i :\n    (fun n ↦ (l n : ℝ)) =Θ[atTop] erdos_790.parts.i.answer",
  "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 790\n\n*References:*\n- [erdosproblems.com/790](https://www.erdosproblems.com/790)\n- [Er65] Erdős, P., _Extremal problems in number theory_. Proc. Sympos. Pure Math.\n  8 (1965), 181–189, p. 188.\n- [Er73] Erdős, P., _Problems and results on combinatorial number theory_.\n  A Survey of Combinatorial Theory (1973), 117–138, p. 130.\n- [CKS75] Choi, S. L. G., Komlós, J. and Szemerédi, E., _On sum-free subsequences_.\n  Trans. Amer. Math. Soc. 212 (1975), 307–313.\n  [DOI](https://doi.org/10.1090/S0002-9947-1975-0376594-1).\n-/\n\n@[expose] public section\n\nopen Filter\nopen scoped Asymptotics\n\nnamespace Erdos790\n\n\n/-- No element equals a sum of two or more distinct other elements.\nAll integers, including zero, are allowed. -/\ndef DistinctSubsetSumFree (B : Finset ℤ) : Prop :=\n  ∀ a ∈ B, ∀ S : Finset ℤ,\n    S ⊆ B.erase a → 2 ≤ S.card → (∑ x ∈ S, x) ≠ a\n\ndef Guarantees (n k : ℕ) : Prop :=\n  ∀ A : Finset ℤ, A.card = n →\n    ∃ B ⊆ A, DistinctSubsetSumFree B ∧ k ≤ B.card\n\nnoncomputable def l (n : ℕ) : ℕ := by\n  classical\n  exact Nat.findGreatest (Guarantees n) n\n\ndef erdos_790.parts.i.answer : ℕ → ℝ := by sorry\n\n/-- Let $l(n)$ be maximal such that if $A\\subset\\mathbb{Z}$ with $\\lvert A\\rvert=n$\nthen there exists a sum-free $B\\subseteq A$ with $\\lvert B\\rvert \\geq l(n)$ - that is,\n$B$ is such that there are no solutions to $a_1=a_2+\\cdots+a_r$\nwith $a_i\\in B$ all distinct.\nEstimate $l(n)$.\n\nThis is interpreted as asking for the order of growth of $l(n)$.\n-/\n@[category research open, question value, AMS 5 11]\ntheorem erdos_790.parts.i :\n    (fun n ↦ (l n : ℝ)) =Θ[atTop] erdos_790.parts.i.answer := by sorry\n\n/-- In particular, is it true that $l(n)n^{-1/2}\\to\\infty$? The lower bound in [CKS75,\nTheorem (1.1)] gives a positive answer.\n-/\n@[category research solved, question, AMS 5 11]\ntheorem erdos_790.parts.ii :\n    Tendsto (fun n : ℕ ↦ (l n : ℝ) / Real.sqrt (n : ℝ)) atTop atTop := by sorry\n\n/-- Is it true that $l(n)<n^{1-c}$ for some $c>0$?\nThe inequality is interpreted as holding for all sufficiently large $n$.\n-/\n@[category research open, question, AMS 5 11]\ntheorem erdos_790.parts.iii :\n    ∃ c : ℝ, 0 < c ∧ ∀ᶠ n : ℕ in atTop,\n      (l n : ℝ) < (n : ℝ) ^ (1 - c) := by sorry\n\n/-- Choi, Komlós and Szemerédi [CKS75, Theorem (1.1)] proved\n$\\sqrt{n\\log n/\\log\\log n}\\ll l(n)$.\n-/\n@[category research solved, AMS 5 11]\ntheorem erdos_790.variants.lower_bound :\n    (fun n : ℕ ↦ Real.sqrt ((n : ℝ) * Real.log n / Real.log (Real.log n)))\n      =O[atTop] (fun n ↦ (l n : ℝ)) := by sorry\n\n/-- Choi, Komlós and Szemerédi [CKS75, Theorem (1.1)] proved\n$l(n)\\ll n/\\log n$.\n-/\n@[category research solved, AMS 5 11]\ntheorem erdos_790.variants.upper_bound :\n    (fun n ↦ (l n : ℝ)) =O[atTop] (fun n : ℕ ↦ (n : ℝ) / Real.log n) := by sorry\n\n/-- Choi, Komlós and Szemerédi suggest in the closing paragraph of [CKS75]\nthat $l(n)\\geq n^{1-o(1)}$.\n-/\n@[category research open, AMS 5 11]\ntheorem erdos_790.variants.near_linear :\n    ∀ ε : ℝ, 0 < ε → ∀ᶠ n : ℕ in atTop,\n      (n : ℝ) ^ (1 - ε) ≤ (l n : ℝ) := by sorry\n\nend Erdos790\n\n",
  "statement_hash": "76c4f8138668314600518b1009e37d467ef8e5644028d1b0ff71388de0b07e19",
  "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."
}