{
  "id": "3732",
  "ident": "NS.03732",
  "slug": "erdos-949",
  "title": "Erdős Problem 949",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "Let $S \\subseteq \\mathbb{R}$ be a set containing no solutions to $a + b = c$.\nMust there be a set $A \\subseteq \\mathbb{R} \\setminus S$ of cardinality continuum such that\n$A + A \\subseteq \\mathbb{R}\\setminus S$?",
  "subjects": [
    "math.CO",
    "msc:05"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": "https://www.erdosproblems.com/949",
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos949.erdos_949",
  "statement_lean": "theorem erdos_949 :\n    ∀ S : Set ℝ, (∀ a ∈ S, ∀ b ∈ S, a + b ∉ S) → ∃ A ⊆ Sᶜ, #A = 𝔠 ∧ A + A ⊆ Sᶜ",
  "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 949\n\n*Reference:* [erdosproblems.com/949](https://www.erdosproblems.com/949)\n-/\n\n@[expose] public section\n\nopen Cardinal Filter\nopen scoped Pointwise Topology\n\n\nnamespace Erdos949\n\n/--\nLet $S \\subseteq \\mathbb{R}$ be a set containing no solutions to $a + b = c$.\nMust there be a set $A \\subseteq \\mathbb{R} \\setminus S$ of cardinality continuum such that\n$A + A \\subseteq \\mathbb{R}\\setminus S$?\n-/\n@[category research open, question, AMS 5]\ntheorem erdos_949 :\n    ∀ S : Set ℝ, (∀ a ∈ S, ∀ b ∈ S, a + b ∉ S) → ∃ A ⊆ Sᶜ, #A = 𝔠 ∧ A + A ⊆ Sᶜ := by\n  sorry\n\n/-- Let $S\\subseteq \\mathbb{R}$ be a Sidon set. Must there be a set $A\\subseteq \\mathbb{R}∖S$\nof cardinality continuum such that $A + A \\subseteq \\mathbb{R}∖S$? -/\n@[category research solved, question, AMS 5]\ntheorem erdos_949.variants.sidon :\n    ∀ S : Set ℝ, IsSidon S → ∃ A ⊆ Sᶜ, #A = 𝔠 ∧ A + A ⊆ Sᶜ := by\n  simp only [Set.add_subset_iff]\n  rintro S hS\n  -- We case on whether `S` has cardinality the continuum or strictly less.\n  obtain hS𝔠 | hS𝔠 : #S < 𝔠 ∨ #S = 𝔠 := lt_or_eq_of_le <| by simpa using mk_set_le S\n  -- If `S` has cardinality strictly less than the continuum, then we pick by Zorn `A` maximal\n  -- such that both `A` and `A + A` are disjoint from `S`.\n  · obtain ⟨A, ⟨hAS, hAAS⟩, hAmax⟩ := by\n      refine zorn_subset {A ⊆ Sᶜ | ∀ x ∈ A,∀ y ∈ A, x + y ∉ S} ?_\n      simp only [Set.ofPred_and, Set.subset_inter_iff, Set.mem_inter_iff, Set.mem_ofPred_eq, and_imp,\n        and_assoc]\n      refine fun C hCS hSC hC ↦ ⟨_, Set.iUnion₂_subset hCS, ?_, Set.subset_iUnion₂⟩\n      simp only [Set.mem_iUnion, exists_prop, forall_exists_index, and_imp]\n      rintro x A hA hx y B hB hy\n      obtain ⟨D, hD, hAD, hBD⟩ := hC.directedOn _ hA _ hB\n      exact hSC hD _ (hAD hx) _ (hBD hy)\n    -- By construction, `A` satisfies all properties except possibly for having size the continuum.\n    refine ⟨A, hAS, ?_, hAAS⟩\n    -- By maximality, `Sᶜ ∩ (S / 2)ᶜ ⊆ A ∪ ⋃ a ∈ A, (S - a)`.\n    replace hAmax : Sᶜ ∩ ((· / 2) '' S)ᶜ ⊆ A ∪ ⋃ a ∈ A, (· - a) '' S\n    · simp only [Set.subset_def, Set.mem_inter_iff, Set.mem_compl_iff, Set.mem_image, ne_eq,\n      OfNat.ofNat_ne_zero, not_false_eq_true, div_eq_iff_mul_eq, mul_two, exists_eq_right',\n      Set.mem_union, Set.mem_iUnion, sub_eq_iff_eq_add, exists_eq_right, exists_prop,\n      or_iff_not_imp_left, and_imp]\n      rintro x hxS hxxS hxA\n      by_contra! hxAS\n      refine hxA <| hAmax ?_ (Set.subset_insert ..) (Set.mem_insert ..)\n      simpa [Set.insert_subset_iff, forall_and, add_comm _ x, *] using ⟨hxAS, hAAS⟩\n    -- By assumption, `#(Sᶜ ∩ (S / 2)ᶜ) = 𝔠`.\n    have hS𝔠' : #↑(Sᶜ ∩ ((· / 2) '' S)ᶜ) = 𝔠\n    · rw [← Set.compl_union, mk_compl_of_infinite, mk_real]\n      grw [mk_union_le, Cardinal.mk_real]\n      refine add_lt_of_lt aleph0_le_continuum hS𝔠 ?_\n      grw [mk_image_le]\n      exact hS𝔠\n    -- If `#A < 𝔠`, we would then have\n    -- `𝔠 = #(Sᶜ ∩ (S / 2)ᶜ) ≤ #(A ∪ ⋃ a ∈ A, (S - a)) ≤ #A + #A * #S < 𝔠`, contradiction.\n    refine (mk_real ▸ mk_set_le _).eq_of_not_lt fun hA𝔠 ↦ lt_irrefl 𝔠 ?_\n    calc\n      𝔠 = #↑(Sᶜ ∩ ((· / 2) '' S)ᶜ) := by rw [hS𝔠']\n      _ ≤ #↑(A ∪ ⋃ a ∈ A, (· - a) '' S) := mk_subtype_mono hAmax\n      _ ≤ #A + #A * #S := by\n        obtain rfl | hA := A.eq_empty_or_nonempty\n        · simp\n        have : Nonempty A := hA.coe_sort\n        grw [mk_union_le, mk_biUnion_le, ciSup_le fun _ ↦ mk_image_le]\n      _ < 𝔠 := add_lt_of_lt aleph0_le_continuum hA𝔠 <| mul_lt_of_lt aleph0_le_continuum hA𝔠 hS𝔠\n  -- If `S` has cardinality the continuum, then we pick some `a ≠ 0` in `S` and set\n  -- `A := (S \\ {a} - a / 2) \\ S`.\n  have hSinf : S.Infinite := by simpa using aleph0_le_continuum.trans_eq hS𝔠.symm\n  obtain ⟨a, ha, ha₀⟩ : ∃ a ∈ S, a ≠ 0 := (hSinf.sdiff <| Set.finite_singleton 0).nonempty\n  refine ⟨(· - a / 2) '' (S \\ {a}) \\ S, Set.sdiff_subset_compl .., ?_, ?_⟩\n  -- Since `S` is Sidon and `a ≠ 0`, `(S - a / 2) ∩ S ⊇ (S \\ {a} - a / 2) ∩ S` has at most one\n  -- element. In particular, `#A = #(S \\ {a} - a / 2) = #S = 𝔠` as wanted.\n  · rw [mk_sdiff_eq_left_of_finite' ((hSinf.sdiff <| Set.finite_singleton _).image\n      sub_left_injective.injOn)]\n    · simp [Cardinal.mk_image_eq sub_left_injective, *]\n    · refine Set.Subsingleton.finite ?_\n      rintro _ ⟨⟨x, ⟨hx, -⟩, rfl⟩, hxa⟩ _ ⟨⟨y, ⟨hy, -⟩, rfl⟩, hya⟩\n      obtain rfl : x = y := by\n        simpa [ha₀, eq_comm (b := x - _)] using hS _ hya _ hxa _ hx _ hy (by ring)\n      rfl\n  -- Since `S` is Sidon, `S \\ {a} + S \\ {a} - a ⊇ A + A` is disjoint from `S`, as wanted.\n  · rintro _ ⟨⟨x, ⟨hx, hxa⟩, rfl⟩, -⟩ _ ⟨⟨y, ⟨hy, hya⟩, rfl⟩, -⟩ hxy\n    have := hS _ hx _ ha _ hy _ hxy (by ring)\n    simp_all\n\nend Erdos949\n",
  "statement_hash": "fce692d2d2b6669f0de12f80127dfe775016ceef80cae40af259729cc493ba7e",
  "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."
}