Erdős 594
The earlier result of Erdős and Hajnal: every graph with chromatic number contains all sufficiently large odd cycles.
Permanent public credit, certificates, and points. Unpaid; uses your AI plan.
The exact statement
theorem erdos_594.variants.erdos_hajnal (V : Type) (G : SimpleGraph V)
(h : ∀ (α : Type), #α ≤ ℵ_ 1 → IsEmpty (G.Coloring α)) :
∃ N : ℕ, ∀ k : ℕ, N ≤ k →
∃ (v : V) (w : G.Walk v v), w.IsCycle ∧ w.length = 2 * k + 1The earlier result of Erdős and Hajnal: every graph with chromatic number contains all sufficiently large odd cycles.
Chromatic number is encoded as the nonexistence of a proper colouring with any set of at most colours.
Show full file and definitions
/-
Copyright 2026 The Formal Conjectures Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-/
module
public import FormalConjecturesUtil
/-!
# Erdős Problem 594
*References:*
- [erdosproblems.com/594](https://www.erdosproblems.com/594)
- [ErHa66] Erdős, P. and Hajnal, A., On chromatic number of graphs and set-systems.
Acta Math. Acad. Sci. Hungar. (1966), 61-99.
- [Er69b] Erdős, P., Problems and results in chromatic graph theory. Proof Techniques in
Graph Theory (Proc. Second Ann Arbor Graph Theory Conf., Ann Arbor, Mich., 1968)
(1969), 27-35.
- [EHS74] Erdős, P. and Hajnal, A. and Shelah, S., On some general properties of chromatic
numbers. Topics in topology (Proc. Colloq., Keszthely, 1972) (1974), 243-255.
-/
@[expose] public section
open Cardinal
open scoped Cardinal
namespace Erdos594
set_option linter.style.formal_proof_palomar false in
/--
**Erdős Problem 594** (Erdős–Hajnal [ErHa66], [Er69b]):
Does every graph $G$ with chromatic number $\geq \aleph_1$ contain all sufficiently
large odd cycles?
The answer is **Yes**, proved by Erdős, Hajnal, and Shelah [EHS74].
A graph has chromatic number $\geq \aleph_1$ (i.e. uncountable chromatic number)
if and only if it admits no proper colouring with countably many colours; this is
encoded as `IsEmpty (G.Coloring ℕ)`. The conclusion states that there is some
$N$ such that for every $k \geq N$ the graph contains a cycle of odd length $2k + 1$.
-/
@[category research solved, question, AMS 3 5, formal_proof using lean4 at "https://github.com/plby/lean-proofs/blob/1268917deaaaa0d674f651287027baa26cea9920/src/latest/ErdosProblems/Erdos594.lean#L907"]
theorem erdos_594 :
∀ (V : Type) (G : SimpleGraph V), IsEmpty (G.Coloring ℕ) →
∃ N : ℕ, ∀ k : ℕ, N ≤ k →
∃ (v : V) (w : G.Walk v v), w.IsCycle ∧ w.length = 2 * k + 1 := by
sorry
/--
The earlier result of Erdős and Hajnal [ErHa66]: every graph with chromatic number
$\geq \aleph_2$ contains all sufficiently large odd cycles.
Chromatic number $\geq \aleph_2$ is encoded as the nonexistence of a proper colouring
with any set of at most $\aleph_1$ colours.
-/
@[category research solved, AMS 3 5]
theorem erdos_594.variants.erdos_hajnal (V : Type) (G : SimpleGraph V)
(h : ∀ (α : Type), #α ≤ ℵ_ 1 → IsEmpty (G.Coloring α)) :
∃ N : ℕ, ∀ k : ℕ, N ≤ k →
∃ (v : V) (w : G.Walk v v), w.IsCycle ∧ w.length = 2 * k + 1 := by
sorry
/--
Sanity check for the encoding of "chromatic number $\geq \aleph_1$": a countably
colourable graph, such as the empty graph on $\mathbb{N}$, does not satisfy the
hypothesis `IsEmpty (G.Coloring ℕ)`.
-/
@[category test, AMS 5]
theorem erdos_594.variants.bot_countably_colorable :
¬ IsEmpty ((⊥ : SimpleGraph ℕ).Coloring ℕ) := by
rw [not_isEmpty_iff]
exact ⟨SimpleGraph.Coloring.mk (fun _ => 0) (by simp)⟩
end Erdos594
