{
  "id": "2310",
  "ident": "NS.02310",
  "slug": "erdos-501",
  "title": "Erdős Problem 501",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "For every $x \\in \\mathbb{R}$ let $A_x \\subset \\mathbb{R}$ be a bounded set with outer measure\n$< 1$. Must there exist an infinite independent set, that is, some infinite $X \\subseteq\n\\mathbb{R}$ such that $x \\notin A_y$ for all $x \\neq y \\in X$?\n\nIf the sets $A_x$ are closed and have measure $< 1$, then must there exist an independent set\nof size $3$?\n\nKnown results: Erdős–Hajnal [ErHa60] proved the existence of arbitrarily large finite\nindependent sets. Hechler [He72] showed the answer is **no** assuming the continuum\nhypothesis.",
  "subjects": [
    "math.CO",
    "math.CA",
    "msc:05",
    "msc:28"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos501.erdos_501",
  "statement_lean": "theorem erdos_501 :\n    ∀ (A : ℝ → Set ℝ),\n      (∀ x, Bornology.IsBounded (A x)) →\n      (∀ x, volume.toOuterMeasure (A x) < 1) →\n      ∃ X : Set ℝ, X.Infinite ∧ X.Pairwise (fun x y => x ∉ A y)",
  "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 501\n\n*References:*\n- [erdosproblems.com/501](https://www.erdosproblems.com/501)\n- [Er61] Erdős, Paul, Some unsolved problems. Magyar Tud. Akad. Mat. Kutató Int. Közl. 6\n  (1961), 221-254.\n- [ErHa71] Erdős, Paul and Hajnal, András, Unsolved problems in set theory. Axiomatic Set\n  Theory, Proc. Sympos. Pure Math. XIII Part I (1971), 17-48.\n- [ErHa60] Erdős, Paul and Hajnal, András. On some combinatorial problems involving\n  complete graphs. Acta Math. Acad. Sci. Hungar. (1960), 395-424.\n- [Gl62] Gladysz, S. Some topological properties of independent sets. Colloq. Math. (1962).\n- [He72] Hechler, S. H. A dozen small uncountable cardinals. TOPO 72, Lecture Notes\n  in Math. (1972), 207-218.\n- [NPS87] Newelski, L., Pawlikowski, J., and Seredyński, F. Infinite independent sets in\n  the closed case. Acta Math. Acad. Sci. Hungar. (1987).\n-/\n\n@[expose] public section\n\nopen Set MeasureTheory\nopen scoped Cardinal ENNReal\n\nnamespace Erdos501\n\n/- ## Setup\n\nFor every `x : ℝ` we are given a set `A x ⊆ ℝ`. We say that `X ⊆ ℝ` is an\n**independent set** for the family `A` if `x ∉ A y` for all distinct `x y ∈ X`.\nThis is exactly `X.Pairwise (fun x y => x ∉ A y)`; we inline this rather than\nintroducing a custom predicate so that all `Set.Pairwise` lemmas apply.\n\nThe problem concerns outer measure `< 1` on ℝ. For a set `s : Set ℝ` we use\n`(MeasureTheory.volume.toOuterMeasure) s`, which equals the Lebesgue outer measure\nof `s` (defined for all sets, whether measurable or not). The condition `< 1` is\nstated in `ℝ≥0∞` (extended non-negative reals). -/\n\n/- ## Main open problem -/\n\n/--\nFor every $x \\in \\mathbb{R}$ let $A_x \\subset \\mathbb{R}$ be a bounded set with outer measure\n$< 1$. Must there exist an infinite independent set, that is, some infinite $X \\subseteq\n\\mathbb{R}$ such that $x \\notin A_y$ for all $x \\neq y \\in X$?\n\nIf the sets $A_x$ are closed and have measure $< 1$, then must there exist an independent set\nof size $3$?\n\nKnown results: Erdős–Hajnal [ErHa60] proved the existence of arbitrarily large finite\nindependent sets. Hechler [He72] showed the answer is **no** assuming the continuum\nhypothesis. -/\n@[category research open, question, AMS 5 28]\ntheorem erdos_501 :\n    ∀ (A : ℝ → Set ℝ),\n      (∀ x, Bornology.IsBounded (A x)) →\n      (∀ x, volume.toOuterMeasure (A x) < 1) →\n      ∃ X : Set ℝ, X.Infinite ∧ X.Pairwise (fun x y => x ∉ A y) := by\n  sorry\n\n/- ## Variants and partial results -/\n\n/--\n**Erdős–Hajnal (1960): arbitrarily large finite independent sets exist.**\n\nFor every `n : ℕ` and every family `A : ℝ → Set ℝ` of bounded sets with Lebesgue\nouter measure `< 1`, there exists a finite independent set of size at least `n`.\n\nThis was proved by Erdős and Hajnal [ErHa60]. -/\n@[category research solved, question, AMS 5 28]\ntheorem erdos_501.variants.erdosHajnal_finite :\n    ∀ (n : ℕ) (A : ℝ → Set ℝ),\n      (∀ x, Bornology.IsBounded (A x)) →\n      (∀ x, volume.toOuterMeasure (A x) < 1) →\n      ∃ X : Finset ℝ, n ≤ X.card ∧ (X : Set ℝ).Pairwise (fun x y => x ∉ A y) := by\n  sorry\n\n/--\n**Hechler (1972) [He72]: the answer to the main question is NO, assuming the continuum\nhypothesis.**\n\nAssuming CH (`ℵ₁ = 𝔠`), there exists a family `A : ℝ → Set ℝ` of bounded sets with\nLebesgue outer measure `< 1` for which no infinite independent set exists. -/\n@[category research solved, question, AMS 5 28]\ntheorem erdos_501.variants.hechler_CH :\n    (ℵ₁ = 𝔠) →\n    ∃ (A : ℝ → Set ℝ),\n      (∀ x, Bornology.IsBounded (A x)) ∧\n      (∀ x, volume.toOuterMeasure (A x) < 1) ∧\n      ¬ ∃ X : Set ℝ, X.Infinite ∧ X.Pairwise (fun x y => x ∉ A y) := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\n**Closed sets case: existence of an independent set of size 3.**\n\nIf the sets `A x` are closed with Lebesgue measure `< 1`, must there exist an\nindependent set of size 3?\n\nThis is implied by the stronger theorem of Newelski–Pawlikowski–Seredyński [NPS87] below;\nGladysz [Gl62] earlier proved the existence of an independent set of size 2. -/\n@[category research solved, question, AMS 5 28, formal_proof using lean4 at\n  \"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos501.lean#L38\"]\ntheorem erdos_501.variants.closed_size3 :\n    ∀ (A : ℝ → Set ℝ),\n      (∀ x, IsClosed (A x)) →\n      (∀ x, volume (A x) < 1) →\n      ∃ X : Set ℝ, 3 ≤ X.ncard ∧ X.Pairwise (fun x y => x ∉ A y) := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\n**Newelski–Pawlikowski–Seredyński (1987) [NPS87]: infinite independent set in the closed case.**\n\nIf all the sets `A x` are closed with Lebesgue measure `< 1`, then there **is** an\ninfinite independent set. This gives a strong affirmative answer to the second\nquestion of Problem 501. -/\n@[category research solved, question, AMS 5 28, formal_proof using lean4 at\n  \"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos501.lean#L31\"]\ntheorem erdos_501.variants.newelski_pawlikowski_seredynski :\n    ∀ (A : ℝ → Set ℝ),\n      (∀ x, IsClosed (A x)) →\n      (∀ x, volume (A x) < 1) →\n      ∃ X : Set ℝ, X.Infinite ∧ X.Pairwise (fun x y => x ∉ A y) := by\n  sorry\n\n/--\n**Gladysz (1962) [Gl62]: independent set of size 2 in the closed case.**\n\nIf all the sets `A x` are closed with Lebesgue measure `< 1`, then there exist two\ndistinct reals `x y` such that `x ∉ A y` and `y ∉ A x`.\n\nThis is a weaker result proved by Gladysz before the full Newelski–Pawlikowski–\nSeredyński theorem [NPS87]. -/\n@[category research solved, question, AMS 5 28]\ntheorem erdos_501.variants.gladysz_size2 :\n    ∀ (A : ℝ → Set ℝ),\n      (∀ x, IsClosed (A x)) →\n      (∀ x, volume (A x) < 1) →\n      ∃ X : Set ℝ, 2 ≤ X.ncard ∧ X.Pairwise (fun x y => x ∉ A y) := by\n  sorry\n\n/--\n**Trivial lower bound: a single-element set is always independent.**\n\nFor any family `A`, any singleton `{x}` is vacuously independent: there are no two\ndistinct elements. -/\n@[category textbook, AMS 5 28]\ntheorem erdos_501.variants.singleton_independent (A : ℝ → Set ℝ) (x : ℝ) :\n    ({x} : Set ℝ).Pairwise (fun x y => x ∉ A y) :=\n  Set.pairwise_singleton x _\n\n/--\n**Two-element sets: independent iff mutual non-membership.**\n\nA two-element set `{x, y}` (with `x ≠ y`) is independent for `A` if and only if\n`x ∉ A y` and `y ∉ A x`. -/\n@[category textbook, AMS 5 28]\ntheorem erdos_501.variants.pair_independent_iff (A : ℝ → Set ℝ) {x y : ℝ} (hxy : x ≠ y) :\n    ({x, y} : Set ℝ).Pairwise (fun x y => x ∉ A y) ↔ x ∉ A y ∧ y ∉ A x := by\n  rw [Set.pairwise_pair]\n  exact ⟨fun h => h hxy, fun h _ => h⟩\n\n/- ## Sanity checks and examples\n\nThe following `example` declarations exercise the proved variants and demonstrate that\nthe hypotheses of the main theorem are non-vacuous. All goals are fully closed: no `sorry`. -/\n\n/-- The constant family `A x = ∅` satisfies all hypotheses of the main problem:\neach `A x` is bounded (the empty set is bounded) and has Lebesgue outer measure 0 < 1.\nMoreover, all of ℝ is an independent set, showing the conclusion holds trivially.\n\nThis demonstrates that the hypotheses are non-vacuous: the family `A x = ∅` is a valid\ninput to the theorem, and `ℝ` (which is infinite) witnesses the conclusion. -/\n@[category test, AMS 5 28]\ntheorem erdos_501.tests.empty_family_is_valid :\n    let A : ℝ → Set ℝ := fun _ => ∅\n    (∀ x, Bornology.IsBounded (A x)) ∧\n    (∀ x, volume.toOuterMeasure (A x) < 1) ∧\n    ∃ X : Set ℝ, X.Infinite ∧ X.Pairwise (fun x y => x ∉ A y) := by\n  refine ⟨fun _ => Bornology.isBounded_empty, fun _ => ?_, Set.univ, Set.infinite_univ, ?_⟩\n  · simp\n  · intro x _ y _ _ hxAy; exact hxAy\n\n/-- A singleton `{0}` is an independent set for any family `A : ℝ → Set ℝ`,\nas witnessed by `erdos_501.variants.singleton_independent`. -/\n@[category test, AMS 5 28]\ntheorem erdos_501.tests.singleton_zero_independent (A : ℝ → Set ℝ) :\n    ({0} : Set ℝ).Pairwise (fun x y => x ∉ A y) :=\n  erdos_501.variants.singleton_independent A 0\n\n/-- Two reals form an independent set for the empty family `A _ = ∅`:\nneither 0 nor 1 belongs to ∅, so both conditions of `pair_independent_iff` hold. -/\n@[category test, AMS 5 28]\ntheorem erdos_501.tests.pair_independent_empty :\n    ({0, 1} : Set ℝ).Pairwise (fun x y => x ∉ (fun _ => (∅ : Set ℝ)) y) := by\n  rw [erdos_501.variants.pair_independent_iff _ (by norm_num : (0:ℝ) ≠ 1)]\n  exact ⟨Set.notMem_empty _, Set.notMem_empty _⟩\n\n/-- The hypothesis `volume.toOuterMeasure (A x) < 1` is strictly satisfied when\n`A x = {x}` (a singleton), since Lebesgue measure of a singleton is 0. -/\n@[category test, AMS 5 28]\ntheorem erdos_501.tests.singleton_outer_measure_lt_one (x : ℝ) :\n    volume.toOuterMeasure ({x} : Set ℝ) < 1 := by\n  simp [Measure.toOuterMeasure_apply]\n\n/-- The boundary case: the measure condition `< 1` is sharp. An interval of length ≥ 1\nhas Lebesgue measure ≥ 1, so it would fail the hypothesis. Here `[0, 1]` has measure exactly 1. -/\n@[category test, AMS 5 28]\ntheorem erdos_501.tests.unit_interval_measure :\n    volume.toOuterMeasure (Set.Icc (0:ℝ) 1) = 1 := by\n  simp [Measure.toOuterMeasure_apply, Real.volume_Icc]\n\nend Erdos501\n",
  "statement_hash": "5f19c73676f89eab28a5a980cb17fcd1c023776c204b934f237f5c5458d32180",
  "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."
}