{
  "id": "1781",
  "ident": "NS.01781",
  "slug": "erdos-344",
  "title": "Erdős Problem 344",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "If $A\\subseteq \\mathbb{N}$ is a set of integers such that\n$$\\lvert A\\cap \\{1,\\ldots,N\\}\\rvert\\gg N^{1/2}$$\nfor all $N$ then must $A$ be subcomplete? That is, must\n$$P(A) = \\left\\{\\sum_{n\\in B}n : B\\subseteq A\\textrm{ finite }\\right\\}$$\ncontain an infinite arithmetic progression?\n\nThis is true, and was proved by Szemerédi and Vu [SzVu06].\n\nThe implied constant is absolute, as in [SzVu06b, Corollary 1.4].",
  "subjects": [
    "math.CO",
    "math.NT",
    "msc:05",
    "msc:11"
  ],
  "tags": [
    "question",
    "formal_proof"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos344.erdos_344",
  "statement_lean": "theorem erdos_344 :\n    ∃ C : ℝ, 0 < C ∧ ∀ A : Set ℕ,\n      (∀ᶠ N : ℕ in atTop, C * Real.sqrt N ≤ A.countUpTo N) → IsSubcomplete A",
  "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 344\n\n*References:*\n- [erdosproblems.com/344](https://www.erdosproblems.com/344)\n- [ErGr80] Erdős, P. and Graham, R., *Old and new problems and results in combinatorial number\n  theory*. Monographies de L'Enseignement Mathematique (1980).\n- [Er61b] Erdős, P., *On the representation of large integers as sums of distinct summands\n  taken from a fixed set*. Acta Arith. (1961/62), 345-354.\n- [Fo66] Folkman, J., *On the representation of integers as sums of distinct terms from a\n  fixed sequence*. Canadian J. Math. 18 (1966), 643-655.\n- [SzVu06] Szemerédi, E. and Vu, V., *Long arithmetic progressions in sumsets: thresholds and\n  bounds*. J. Amer. Math. Soc. 19 (2006), 119-169.\n- [SzVu06b] Szemerédi, E. and Vu, V., *Finite and infinite arithmetic progressions in sumsets*.\n  Ann. of Math. 163 (2006), 1-35.\n-/\n\n@[expose] public section\n\nopen Filter\n\nnamespace Erdos344\n\nset_option linter.style.formal_proof_palomar false in\n/--\nIf $A\\subseteq \\mathbb{N}$ is a set of integers such that\n$$\\lvert A\\cap \\{1,\\ldots,N\\}\\rvert\\gg N^{1/2}$$\nfor all $N$ then must $A$ be subcomplete? That is, must\n$$P(A) = \\left\\{\\sum_{n\\in B}n : B\\subseteq A\\textrm{ finite }\\right\\}$$\ncontain an infinite arithmetic progression?\n\nThis is true, and was proved by Szemerédi and Vu [SzVu06].\n\nThe implied constant is absolute, as in [SzVu06b, Corollary 1.4].\n-/\n@[category research solved, question, AMS 5 11,\n  formal_proof using lean4 at \"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos344.lean#L8994\"]\ntheorem erdos_344 :\n    ∃ C : ℝ, 0 < C ∧ ∀ A : Set ℕ,\n      (∀ᶠ N : ℕ in atTop, C * Real.sqrt N ≤ A.countUpTo N) → IsSubcomplete A := by\n  sorry\n\n/--\nThe stronger conjecture that this is true under\n$$\\lvert A\\cap \\{1,\\ldots,N\\}\\rvert\\geq (2N)^{1/2}$$\nseems to be still open (this would be best possible as shown by [Er61b]).\n\nThe bound is required for all sufficiently large $N$: at $N=1$, it is impossible since\n$\\lvert A\\cap\\{1\\}\\rvert\\leq 1<\\sqrt{2}$.\n-/\n@[category research open, question, AMS 5 11]\ntheorem erdos_344.variants.sqrt_two :\n    ∀ A : Set ℕ, (∀ᶠ N : ℕ in atTop, Real.sqrt (2 * N) ≤ A.countUpTo N) →\n      IsSubcomplete A := by\n  sorry\n\n/-- Folkman proved this under the stronger assumption that\n$$\\lvert A\\cap \\{1,\\ldots,N\\}\\rvert\\gg N^{1/2+\\epsilon}$$\nfor some $\\epsilon>0$ [Fo66]. -/\n@[category research solved, AMS 5 11]\ntheorem erdos_344.variants.folkman :\n    ∀ ε : ℝ, 0 < ε → ∀ c : ℝ, 0 < c → ∀ A : Set ℕ,\n      (∀ᶠ N : ℕ in atTop, c * (N : ℝ) ^ ((1 : ℝ) / 2 + ε) ≤ A.countUpTo N) →\n      IsSubcomplete A := by\n  obtain ⟨C, _, h⟩ := erdos_344\n  intro ε hε c hc A hA\n  refine h A ?_\n  have hpow : Tendsto (fun N : ℕ ↦ (N : ℝ) ^ ε) atTop atTop :=\n    (tendsto_rpow_atTop hε).comp tendsto_natCast_atTop_atTop\n  filter_upwards [hA, hpow.eventually_ge_atTop (C / c)] with N hN hNe\n  have hsplit : (N : ℝ) ^ ((1 : ℝ) / 2 + ε) = Real.sqrt N * (N : ℝ) ^ ε := by\n    rw [Real.rpow_add' (Nat.cast_nonneg N) (by positivity), Real.sqrt_eq_rpow]\n  calc C * Real.sqrt N = c * (C / c) * Real.sqrt N := by field_simp\n    _ ≤ c * (N : ℝ) ^ ε * Real.sqrt N := by gcongr\n    _ = c * (N : ℝ) ^ ((1 : ℝ) / 2 + ε) := by rw [hsplit]; ring\n    _ ≤ A.countUpTo N := hN\n\n@[category test, AMS 5 11]\ntheorem univ_density (C : ℝ) :\n    ∀ᶠ N : ℕ in atTop, C * Real.sqrt N ≤ (Set.univ : Set ℕ).countUpTo N := by\n  have hlim : Tendsto (fun N : ℕ ↦ Real.sqrt N) atTop atTop :=\n    Real.tendsto_sqrt_atTop.comp tendsto_natCast_atTop_atTop\n  filter_upwards [hlim.eventually_ge_atTop C] with N hN\n  have hc : (Set.univ : Set ℕ).countUpTo N = N := by simp [Set.countUpTo]\n  rw [hc]\n  calc C * Real.sqrt N ≤ Real.sqrt N * Real.sqrt N := by gcongr\n    _ = N := Real.mul_self_sqrt (Nat.cast_nonneg N)\n\nend Erdos344\n",
  "statement_hash": "f5beb62d3b46268cddc40b461545cb2f7c30af30760835fc3493e8355f29dc81",
  "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."
}