{
  "id": "2534",
  "ident": "NS.02534",
  "slug": "erdos-593",
  "title": "Erdős Problem 593",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "**Erdős Problem 593 (\\$500)**: Characterize those finite 3-uniform hypergraphs which appear\nin every 3-uniform hypergraph of chromatic number $> \\aleph_0$.\n\nThe answer is the set of obligatory finite 3-uniform hypergraphs, represented here on the\nlabelled vertex sets `Fin n`.\n\nTwo-colorability (Property B) is a necessary condition, see\n`erdos_593.variants.obligatory_implies_two_colorable`, but it is not sufficient: two triples\nsharing a pair form a 2-colorable hypergraph that is not obligatory, see\n`erdos_593.variants.common_pair_not_obligatory`. In the graph case ($r = 2$) the problem is\ncompletely solved by Erdős–Galvin–Hajnal [EGH75]: the obligatory graphs are exactly the finite\nbipartite graphs.\n\nA resolution has been claimed by E. Li (arXiv:2606.24882, 2026); at the time of writing\nerdosproblems.com still lists the problem as open.",
  "subjects": [
    "math.CO",
    "msc:05"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos593.erdos_593",
  "statement_lean": "theorem erdos_593 :\n    {p : Σ n : ℕ, UniformHypergraph (Fin n) 3 | p.2.IsObligatory} = erdos_593.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 593\n\n*References:*\n- [erdosproblems.com/593](https://www.erdosproblems.com/593)\n- [EGH75] Erdős, Paul and Galvin, Fred and Hajnal, András, On set-systems having large\n  chromatic number and not containing prescribed subsystems.\n  Infinite and finite sets (Colloq., Keszthely, 1973; dedicated to P. Erdős on his 60th\n  birthday), Vol. I. Colloq. Math. Soc. János Bolyai 10, North-Holland (1975), 425–513.\n- [Er95d] Erdős, Paul, Some of my favourite problems in various branches of combinatorics.\n  Matematiche (Catania) 47 (1992), no. 2, 231–240 (1995).\n- [EHR73] Erdős, Paul and Hajnal, András and Rothschild, Bruce, On chromatic number of graphs\n  and set-systems. Cambridge Summer School in Mathematical Logic (Cambridge, 1971),\n  Lecture Notes in Math. 337, Springer (1973), 531–538.\n-/\n\n@[expose] public section\n\nopen Cardinal Set SimpleGraph\n\nnamespace Erdos593\n\n/- ## Main open problem -/\n\ndef erdos_593.answer : Set ((n : ℕ) × UniformHypergraph (Fin n) 3) := sorry\n\n/--\n**Erdős Problem 593 (\\$500)**: Characterize those finite 3-uniform hypergraphs which appear\nin every 3-uniform hypergraph of chromatic number $> \\aleph_0$.\n\nThe answer is the set of obligatory finite 3-uniform hypergraphs, represented here on the\nlabelled vertex sets `Fin n`.\n\nTwo-colorability (Property B) is a necessary condition, see\n`erdos_593.variants.obligatory_implies_two_colorable`, but it is not sufficient: two triples\nsharing a pair form a 2-colorable hypergraph that is not obligatory, see\n`erdos_593.variants.common_pair_not_obligatory`. In the graph case ($r = 2$) the problem is\ncompletely solved by Erdős–Galvin–Hajnal [EGH75]: the obligatory graphs are exactly the finite\nbipartite graphs.\n\nA resolution has been claimed by E. Li (arXiv:2606.24882, 2026); at the time of writing\nerdosproblems.com still lists the problem as open.\n-/\n@[category research open, question value, AMS 5]\ntheorem erdos_593 :\n    {p : Σ n : ℕ, UniformHypergraph (Fin n) 3 | p.2.IsObligatory} = erdos_593.answer := by\n  sorry\n\n/--\n**Necessary direction**: every obligatory finite 3-uniform hypergraph is 2-colorable.\n\nThis follows from two constructions in [EGH75]. By [EHR73] (see [EGH75, p. 426]) there are\n3-uniform hypergraphs of arbitrarily large chromatic number consisting of edge-disjoint\ntriples, so an obligatory `F` is linear (no two edges share two vertices). By the remark\npreceding [EGH75, Theorem 10.9] there are, for every infinite cardinal $\\kappa$, 3-uniform\nhypergraphs of chromatic number $> \\kappa$ all of whose linear sub-hypergraphs are\n2-colorable. An obligatory `F` appears in such a hypergraph, hence is 2-colorable.\n-/\n@[category research solved, question, AMS 5]\ntheorem erdos_593.variants.obligatory_implies_two_colorable :\n    ∀ (W : Type) [Fintype W] (F : UniformHypergraph W 3),\n      F.IsObligatory → F.IsNColorable 2 := by\n  sorry\n\n/--\n**Sufficient direction fails**: it is not the case that every finite 2-colorable 3-uniform\nhypergraph is obligatory.\n\nThe hypergraph `commonPair` with edges $\\{0,1,2\\}$ and $\\{0,1,3\\}$ is 2-colorable but does\nnot appear in the 3-uniform hypergraphs of large chromatic number consisting of edge-disjoint\ntriples constructed in [EHR73], see `erdos_593.variants.common_pair_not_obligatory`.\n-/\n@[category research solved, question, AMS 5]\ntheorem erdos_593.variants.two_colorable_implies_obligatory :\n    ¬ ∀ (W : Type) [Fintype W] (F : UniformHypergraph W 3),\n      F.IsNColorable 2 → F.IsObligatory := by\n  sorry\n\n/-- The 3-uniform hypergraph on four vertices consisting of two triples sharing a pair,\n$\\{0,1,2\\}$ and $\\{0,1,3\\}$. -/\ndef commonPair : UniformHypergraph (Fin 4) 3 :=\n  UniformHypergraph.ofFinset {{0, 1, 2}, {0, 1, 3}} (by unfold Finset.IsUniform; decide)\n\n/-- Two triples sharing a pair are 2-colorable: color the shared pair with one color and the\nremaining two vertices with the other. -/\n@[category test, AMS 5]\ntheorem erdos_593.variants.commonPair_isTwoColorable : commonPair.IsNColorable 2 :=\n  ⟨fun i => if i.val < 2 then 0 else 1, by\n    exact (UniformHypergraph.isProperColoring_ofFinset_iff\n      ({{0, 1, 2}, {0, 1, 3}} : Finset (Finset (Fin 4)))\n      (by unfold Finset.IsUniform; decide) _).mpr (by unfold Finset.IsProperHypergraphColoring; decide)⟩\n\n/--\nTwo triples sharing a pair are **not** obligatory: by [EHR73] (see [EGH75, p. 426]) there are\n3-uniform hypergraphs of arbitrarily large chromatic number consisting of edge-disjoint\ntriples, and `commonPair` does not appear in any of them.\n-/\n@[category research solved, AMS 5]\ntheorem erdos_593.variants.common_pair_not_obligatory : ¬ commonPair.IsObligatory := by\n  sorry\n\n/- ## Variants and partial results -/\n\n/--\n**Graph analogue — bipartite graphs are obligatory (Erdős–Galvin–Hajnal [EGH75])**:\nFor the 2-uniform (graph) case, a graph of chromatic cardinal $> \\aleph_0$ must contain all\nfinite bipartite graphs. Specifically, for every finite bipartite graph `F` and every graph\n`G` with chromatic cardinal $> \\aleph_0$, there is a graph embedding from `F` into `G`.\n\nThis uses `F ⊑ G` (`SimpleGraph.IsContained`, an injective graph homomorphism), aligned with\nthe injective edge-preserving map used in the hypergraph `Appears` definition. A graph embedding\n`F ↪g G` would require an induced copy, which the theorem does not provide.\n-/\n@[category research solved, question, AMS 5]\ntheorem erdos_593.variants.graph_case_bipartite_obligatory :\n    ∀ (V : Type*) (G : SimpleGraph V),\n      ℵ₀ < G.chromaticCardinal →\n      ∀ (W : Type*) [Fintype W] (F : SimpleGraph W), F.IsBipartite →\n        F ⊑ G := by\n  -- This is the Erdős–Galvin–Hajnal theorem [EGH75].\n  sorry\n\n/--\n**Graph analogue — no odd cycle is obligatory (Erdős–Galvin–Hajnal [EGH75])**:\nFor every odd $k \\geq 3$, there exists a graph with chromatic cardinal $\\aleph_1$ that\ncontains no cycle of length $k$. This shows the class of obligatory graphs is strictly\nsmaller than all finite graphs.\n-/\n@[category research solved, question, AMS 5]\ntheorem erdos_593.variants.graph_case_no_odd_cycle :\n    ∀ k : ℕ, Odd k → 3 ≤ k →\n      ∃ (V : Type*) (G : SimpleGraph V),\n        G.chromaticCardinal = ℵ_ 1 ∧\n        IsEmpty (cycleGraph k →g G) := by\n  -- This is the Erdős–Galvin–Hajnal theorem [EGH75].\n  sorry\n\n/--\n**Vertices must be uncountable**: Every 3-uniform hypergraph with chromatic cardinal\n$> \\aleph_0$ must have an uncountable vertex set.\n\n**Proof:** If `V` is countable, there exists an injection `φ : V → ℕ`. Using distinct natural\nnumbers as colors gives a proper coloring, so $\\chi(H) \\leq \\#\\mathbb{N} = \\aleph_0$,\ncontradicting $\\chi(H) > \\aleph_0$.\n-/\n@[category textbook, AMS 5]\ntheorem erdos_593.variants.uncountable_vertices_if_large_chromatic\n    {V : Type} (H : UniformHypergraph V 3) (hχ : ℵ₀ < H.chromaticCardinal) :\n    ¬ Countable V := by\n  intro hcount\n  -- Since V is countable, there is an injection φ : V → ℕ.\n  obtain ⟨φ, hφ⟩ := Countable.exists_injective_nat V\n  have hprop := H.isProperColoring_of_injective (by decide) hφ\n  have hle : H.chromaticCardinal ≤ ℵ₀ := by\n    simpa using H.chromaticCardinal_le hprop\n  exact absurd (lt_of_lt_of_le hχ hle) (lt_irrefl _)\n\n/--\n**No hyperedges implies chromatic cardinal ≤ 1**: A 3-uniform hypergraph with no edges can\nbe properly colored with a single color, so its chromatic cardinal is at most 1. In\nparticular, $\\chi(H) > \\aleph_0$ implies `H` has at least one hyperedge.\n-/\n@[category textbook, AMS 5]\ntheorem erdos_593.variants.nonempty_edges_if_large_chromatic\n    {V : Type} (H : UniformHypergraph V 3) (hχ : ℵ₀ < H.chromaticCardinal) :\n    H.edgeSet.Nonempty := by\n  by_contra! hempty\n  -- H has no edges (hempty : H.edgeSet = ∅), so any coloring is proper.\n  have hprop : H.IsProperColoring (fun _ : V => (0 : Fin 1)) := by\n    intro e he\n    rw [hempty] at he\n    exact (Set.mem_empty_iff_false e).mp he |>.elim\n  -- Hence χ(H) ≤ 1 < ℵ₀.\n  have hle : H.chromaticCardinal ≤ 1 := by\n    simpa using H.chromaticCardinal_le hprop\n  have h1le : (1 : Cardinal) ≤ ℵ₀ := le_of_lt Cardinal.one_lt_aleph0\n  exact absurd (lt_of_lt_of_le hχ (hle.trans h1le)) (lt_irrefl _)\n\n/--\n**Monotonicity of the obligatory property**: If `F₁` appears in `F₂` and `F₂` is obligatory,\nthen `F₁` is also obligatory.\n\n**Proof:** For any `H` with $\\chi(H) > \\aleph_0$, since `F₂` is obligatory, `F₂` appears\nin `H` via some injection `φ₂`. Since `F₁` appears in `F₂` via `φ₁`, the composition\n`φ₂ ∘ φ₁` witnesses that `F₁` appears in `H`.\n-/\n@[category textbook, AMS 5]\ntheorem erdos_593.variants.obligatory_monotone\n    {W₁ W₂ : Type} [Fintype W₁] [Fintype W₂] [DecidableEq W₂]\n    {F₁ : UniformHypergraph W₁ 3} {F₂ : UniformHypergraph W₂ 3}\n    (h12 : F₁.Appears F₂) (hObl : F₂.IsObligatory) :\n    F₁.IsObligatory := by\n  intro V _hV H hχ\n  exact h12.trans (hObl V H hχ)\n\n/--\n**The empty hypergraph is trivially obligatory**: The 3-uniform hypergraph on `PEmpty` (no\nvertices, no edges) appears in every hypergraph via the empty injection.\n\nThis degenerate case confirms the definition is well-formed.\n-/\n@[category textbook, AMS 5]\ntheorem erdos_593.variants.empty_hypergraph_obligatory :\n    UniformHypergraph.IsObligatory (W := PEmpty) (k := 3)\n      (UniformHypergraph.ofFinset ∅ (by simp [Finset.IsUniform])) := by\n  intro V _hV H _hχ\n  exact ⟨IsEmpty.elim inferInstance, Function.injective_of_subsingleton _,\n    by simp [UniformHypergraph.ofFinset, Hypergraph.ofEdgeFamily, Hypergraph.image]⟩\n\nend Erdos593\n",
  "statement_hash": "047a5c215d0859aa6a91927838dd3a12d9cb9b415c8f939553382958d7d28d99",
  "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."
}