{
  "id": "2555",
  "ident": "NS.02555",
  "slug": "erdos-596",
  "title": "Erdős Problem 596",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "**Erdős Problem 596** (Erdős–Hajnal, [Er87]). For which finite graph pairs $(G_1, G_2)$ is it\ntrue that\n\n  (1) for every $n \\geq 1$ there is a graph $H$ without a $G_1$ such that any\n      $n$-colouring of $H$'s edges contains a monochromatic $G_2$, and yet\n  (2) for every graph $H$ without a $G_1$ there is an $\\aleph_0$-colouring of $H$'s edges\n      with no monochromatic $G_2$?\n\nErdős and Hajnal originally conjectured that no such pair exists; but $(C_4, C_6)$\nwitnesses it (Nešetřil–Rödl + Erdős–Hajnal). The full question is to characterise the\nclass of all such pairs, recorded here as the unknown `erdos_596.answer`.\n\nSee Problem 595 for the specific case $(G_1, G_2) = (K_4, K_3)$.",
  "subjects": [
    "math.CO",
    "msc:05"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos596.erdos_596",
  "statement_lean": "theorem erdos_596 :\n    ∀ {U₁ U₂ : Type} [Finite U₁] [Finite U₂] (G₁ : SimpleGraph U₁) (G₂ : SimpleGraph U₂),\n      IsErdosHajnalExceptional G₁ G₂ ↔ erdos_596.answer G₁ G₂",
  "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 596\n\n*References:*\n- [erdosproblems.com/596](https://www.erdosproblems.com/596)\n- [Er87] Erdős, P., *Some problems on finite and infinite graphs*, in *Logic and combinatorics*\n  (Arcata, Calif., 1985), Contemp. Math. **65** (1987), 223–228.\n- [NeRo75] Nešetřil, J. and Rödl, V., *Type theory of partition properties of graphs*, in\n  *Infinite and finite sets* (Colloq., Keszthely, 1973), Colloq. Math. Soc. János Bolyai **10**\n  (1975), 405–412.\n- [NeRo87] Nešetřil, J. and Rödl, V., *Strong Ramsey theorems for Steiner systems*,\n  *Trans. Amer. Math. Soc.* **303** (1987), 183–192.\n-/\n\n@[expose] public section\n\nopen SimpleGraph\n\nnamespace Erdos596\n\ndef erdos_596.answer {U₁ : Type} {U₂ : Type} : SimpleGraph U₁ → SimpleGraph U₂ → Prop := sorry\n\n/--\n**Erdős Problem 596** (Erdős–Hajnal, [Er87]). For which finite graph pairs $(G_1, G_2)$ is it\ntrue that\n\n  (1) for every $n \\geq 1$ there is a graph $H$ without a $G_1$ such that any\n      $n$-colouring of $H$'s edges contains a monochromatic $G_2$, and yet\n  (2) for every graph $H$ without a $G_1$ there is an $\\aleph_0$-colouring of $H$'s edges\n      with no monochromatic $G_2$?\n\nErdős and Hajnal originally conjectured that no such pair exists; but $(C_4, C_6)$\nwitnesses it (Nešetřil–Rödl + Erdős–Hajnal). The full question is to characterise the\nclass of all such pairs, recorded here as the unknown `erdos_596.answer`.\n\nSee Problem 595 for the specific case $(G_1, G_2) = (K_4, K_3)$.\n-/\n@[category research open, question value, AMS 5]\ntheorem erdos_596 :\n    ∀ {U₁ U₂ : Type} [Finite U₁] [Finite U₂] (G₁ : SimpleGraph U₁) (G₂ : SimpleGraph U₂),\n      IsErdosHajnalExceptional G₁ G₂ ↔ erdos_596.answer G₁ G₂ := by\n  sorry\n\n/-- Finite Erdős–Hajnal exceptional pairs exist — recorded as a known direction of `erdos_596`. -/\n@[category research solved, AMS 5]\ntheorem erdos_596.variants.exists_exceptional :\n    ∃ (U₁ U₂ : Type) (_ : Finite U₁) (_ : Finite U₂)\n      (G₁ : SimpleGraph U₁) (G₂ : SimpleGraph U₂),\n      IsErdosHajnalExceptional G₁ G₂ := by\n  sorry\n\n/-- Every $C_4$-free graph is a countable union of trees (Erdős–Hajnal [Er87]); trees are\nacyclic, hence $C_6$-free, giving the countable Ramsey escape for $(C_4, C_6)$. -/\n@[category research solved, AMS 5]\ntheorem erdos_596.variants.C4_free_countable_escape :\n    HasCountableRamseyEscape (cycleGraph 4) (cycleGraph 6) := by\n  sorry\n\n/-- Nešetřil–Rödl [NeRo87]: for every $n \\geq 1$ there is a $C_4$-free graph whose edges\ncannot be $n$-coloured without a monochromatic $C_6$. -/\n@[category research solved, AMS 5]\ntheorem erdos_596.variants.C4_C6_finite_ramsey :\n    HasFiniteRamseyProperty (cycleGraph 4) (cycleGraph 6) := by\n  sorry\n\n/-- The pair $(C_4, C_6)$ is Erdős–Hajnal exceptional; combines `C4_C6_finite_ramsey` and\n`C4_free_countable_escape`. -/\n@[category research solved, AMS 5]\ntheorem erdos_596.variants.C4_C6_is_exceptional :\n    IsErdosHajnalExceptional (cycleGraph 4) (cycleGraph 6) :=\n  ⟨erdos_596.variants.C4_C6_finite_ramsey, erdos_596.variants.C4_free_countable_escape⟩\n\n/-- The original Erdős–Hajnal conjecture (that no finite exceptional pair exists) is **false** —\nwitnessed by $(C_4, C_6)$ via `C4_C6_is_exceptional`. -/\n@[category research solved, question, AMS 5]\ntheorem erdos_596.variants.original_conjecture_is_false :\n    ¬ ∀ {U₁ U₂ : Type} [Finite U₁] [Finite U₂] (G₁ : SimpleGraph U₁) (G₂ : SimpleGraph U₂),\n      ¬IsErdosHajnalExceptional G₁ G₂ := by\n  sorry\n\n/-- Whether $(K_4, K_3)$ is Erdős–Hajnal exceptional is precisely the content of\nErdős Problem 595. The finite Ramsey property holds (Folkman 1970, Nešetřil–Rödl\n[NeRo75]); the open part is whether every $K_4$-free graph is a countable union of\ntriangle-free graphs. -/\n@[category research open, question, AMS 5]\ntheorem erdos_596.variants.K4_K3_exceptional_iff :\n    IsErdosHajnalExceptional (completeGraph (Fin 4)) (completeGraph (Fin 3)) := by\n  sorry\n\n/-- Folkman 1970 / Nešetřil–Rödl [NeRo75]: for every $n \\geq 1$ there is a $K_4$-free\ngraph whose edges cannot be $n$-coloured without a monochromatic triangle. -/\n@[category research solved, AMS 5]\ntheorem erdos_596.variants.K4_K3_finite_ramsey :\n    HasFiniteRamseyProperty (completeGraph (Fin 4)) (completeGraph (Fin 3)) := by\n  sorry\n\n/- ## Sanity checks -/\n\n/-- The empty graph on `Fin 0` is `Free` of any nontrivial subgraph (vacuous). This is the\nsimplest non-trivial witness to `G₁.Free H` appearing in `HasFiniteRamseyProperty`. -/\n@[category test, AMS 5]\ntheorem erdos_596.test.empty_is_free :\n    (cycleGraph 4).Free (⊥ : SimpleGraph (Fin 0)) :=\n  fun ⟨f⟩ => Fin.elim0 (f.toEmbedding 0)\n\nend Erdos596\n",
  "statement_hash": "9d725401744032e5ce59eb61ee640854f6cb2c3f1b4eeb44f537cdc33f614364",
  "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."
}