{
  "id": "2564",
  "ident": "NS.02564",
  "slug": "erdos-597",
  "title": "Erdős Problem 597",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "**Erdős Problem 597** [Er87]. Let $G$ be a graph on at most $\\aleph_1$\nvertices which contains no $K_4$ and no $K_{\\aleph_0,\\aleph_0}$ (the complete bipartite\ngraph with $\\aleph_0$ vertices in each class). Is it true that\n$$\\omega_1^2 \\to (\\omega_1 \\omega, G)^2?$$",
  "subjects": [
    "math.LO",
    "math.CO",
    "msc:03",
    "msc:05"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": "https://www.erdosproblems.com/597",
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos597.erdos_597",
  "statement_lean": "theorem erdos_597 :\n    ∀ (W : Type) (G : SimpleGraph W), #W ≤ ℵ_ 1 → G.CliqueFree 4 →\n      (¬ ∃ A B : Set W, Disjoint A B ∧ A.Infinite ∧ B.Infinite ∧\n        ∀ a ∈ A, ∀ b ∈ B, G.Adj a b) →\n      OrdinalGraphRamsey ((ω_ 1) ^ (2 : ℕ)) ((ω_ 1) * ω) 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-/\n\nmodule\n\npublic import FormalConjecturesUtil\n\n/-!\n# Erdős Problem 597\n\n*Reference:* [erdosproblems.com/597](https://www.erdosproblems.com/597)\n\n*References:*\n- [Er87] Erdős, P., *Some problems on finite and infinite graphs*. Logic and combinatorics\n  (Arcata, Calif., 1985) (1987), 223-228.\n-/\n\n@[expose] public section\n\nopen Cardinal Ordinal\nopen scoped Cardinal Ordinal\n\nnamespace Erdos597\n\n/--\nThe graph-target ordinal partition relation $\\alpha \\to (\\beta, G)^2$: for every red/blue\ncolouring of the edges of the complete graph on $\\alpha$, either there is a red clique of\norder type $\\beta$, or there is a blue copy of the graph $G$ (an injective map sending the\nedges of $G$ to blue edges).\n\nThis generalises `OrdinalCardinalRamsey`, replacing the blue clique of cardinality $c$\n(i.e. a blue copy of $K_c$) by a blue copy of an arbitrary graph $G$.\n\nWill be moved to `FormalConjecturesForMathlib/SetTheory/Ordinal/PartitionRelation.lean`\nonce the shared home for ordinal partition relations lands (see PR #4195).\n-/\ndef OrdinalGraphRamsey {W : Type*} (α β : Ordinal.{0}) (G : SimpleGraph W) : Prop :=\n  ∀ red blue : SimpleGraph α.ToType, IsCompl red blue →\n    (∃ s, red.IsClique s ∧ typeLT s = β) ∨\n    (∃ f : W → α.ToType, Function.Injective f ∧\n      ∀ a b, G.Adj a b → blue.Adj (f a) (f b))\n\n/--\n**Erdős Problem 597** [Er87]. Let $G$ be a graph on at most $\\aleph_1$\nvertices which contains no $K_4$ and no $K_{\\aleph_0,\\aleph_0}$ (the complete bipartite\ngraph with $\\aleph_0$ vertices in each class). Is it true that\n$$\\omega_1^2 \\to (\\omega_1 \\omega, G)^2?$$\n-/\n@[category research open, question, AMS 3 5]\ntheorem erdos_597 :\n    ∀ (W : Type) (G : SimpleGraph W), #W ≤ ℵ_ 1 → G.CliqueFree 4 →\n      (¬ ∃ A B : Set W, Disjoint A B ∧ A.Infinite ∧ B.Infinite ∧\n        ∀ a ∈ A, ∀ b ∈ B, G.Adj a b) →\n      OrdinalGraphRamsey ((ω_ 1) ^ (2 : ℕ)) ((ω_ 1) * ω) G := by\n  sorry\n\n/--\n**Erdős Problem 597, finite case** [Er87]. Is it true that\n$\\omega_1^2 \\to (\\omega_1 \\omega, G)^2$ for every finite $K_4$-free graph $G$?\n(A finite graph contains no $K_{\\aleph_0,\\aleph_0}$, so that hypothesis is vacuous.)\n-/\n@[category research open, question, AMS 3 5]\ntheorem erdos_597.variants.finite :\n    ∀ (W : Type) [Fintype W] (G : SimpleGraph W), G.CliqueFree 4 →\n      OrdinalGraphRamsey ((ω_ 1) ^ (2 : ℕ)) ((ω_ 1) * ω) G := by\n  sorry\n\n/--\nErdős and Hajnal proved that $\\omega_1^2 \\to (\\omega_1 \\omega, 3)^2$: in every red/blue\ncolouring of the edges of the complete graph on $\\omega_1^2$ there is either a red clique\nof order type $\\omega_1 \\cdot \\omega$ or a blue triangle.\n-/\n@[category research solved, AMS 3 5]\ntheorem erdos_597.variants.erdos_hajnal :\n    OrdinalCardinalRamsey ((ω_ 1) ^ (2 : ℕ)) ((ω_ 1) * ω) 3 := by\n  sorry\n\n/--\nErdős originally asked Problem 597 with just the assumption that $G$ is $K_4$-free, but\nBaumgartner proved that $\\omega_1^2 \\not\\to (\\omega_1 \\omega, K_{\\aleph_0,\\aleph_0})^2$.\n-/\n@[category research solved, AMS 3 5]\ntheorem erdos_597.variants.baumgartner :\n    ¬ OrdinalGraphRamsey ((ω_ 1) ^ (2 : ℕ)) ((ω_ 1) * ω) (completeBipartiteGraph ℕ ℕ) := by\n  sorry\n\n/--\nSanity check: the relation $\\omega_1^2 \\to (\\omega_1 \\omega, G)^2$ holds trivially when\n$G$ is a single vertex with no edges, since any vertex of $\\omega_1^2$ is a blue copy\nof $G$.\n-/\n@[category test, AMS 3]\ntheorem ordinalGraphRamsey_bot :\n    OrdinalGraphRamsey ((ω_ 1) ^ (2 : ℕ)) ((ω_ 1) * ω) (⊥ : SimpleGraph (Fin 1)) := by\n  intro red blue _\n  right\n  have : Nonempty ((ω_ 1) ^ (2 : ℕ)).ToType := by\n    rw [Ordinal.nonempty_toType_iff]\n    exact pow_ne_zero 2 (omega_pos 1).ne'\n  obtain ⟨x⟩ := this\n  exact ⟨fun _ => x, fun a b _ => Subsingleton.elim a b, fun a b h => by simp at h⟩\n\nend Erdos597\n",
  "statement_hash": "858409c53474468a5f8e75410abae574cf350bb43961b48c1f3f7462a8829d33",
  "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."
}