/-
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.
-/
import FormalConjecturesUtilErdős Problem 1175
Formalization notes
Chromatic cardinal: SimpleGraph.chromaticCardinal is the cardinal-valued chromatic number
defined in FormalConjecturesForMathlib. It extends the finite chromaticNumber (which takes
values in ℕ∞) to a Cardinal, and is therefore able to distinguish between different infinite
chromatic numbers.
Triangle-free subgraph: a subgraph H : G.Subgraph is triangle-free when H.coe.CliqueFree 3.
This is the standard Mathlib formulation: CliqueFree 3 means the graph has no K₃ as a clique.
Subgraph: we use G.Subgraph (a spanning subgraph record) rather than an induced subgraph
since the problem asks for any subgraph, not just induced ones.
open Cardinal SimpleGraph
namespace Erdos1175
Let $\kappa$ be an uncountable cardinal. Must there exist a cardinal $\lambda$ such that every graph with chromatic number $\lambda$ contains a triangle-free subgraph with chromatic number $\kappa$?
Shelah proved that a negative answer is consistent when
$\kappa = \lambda = \aleph_1$ (see erdos_1175.variants.shelah_consistency).
@[category research open, AMS 5]
theorem erdos_1175 : answer(sorry) ↔
∀ (κ : Cardinal), ℵ₀ < κ →
∃ (μ : Cardinal),
∀ (V : Type*) (G : SimpleGraph V), G.chromaticCardinal = μ →
∃ (H : G.Subgraph), H.coe.CliqueFree 3 ∧ H.coe.chromaticCardinal = κ := ⊢ True ↔
∀ (κ : Cardinal.{u_1}),
ℵ₀ < κ →
∃ μ,
∀ (V : Type u_1) (G : SimpleGraph V),
G.chromaticCardinal = μ → ∃ H, H.coe.CliqueFree 3 ∧ H.coe.chromaticCardinal = κ
All goals completed! 🐙
Shelah's consistency result: it is consistent with ZFC that there exists a graph $G$ with chromatic number $\aleph_1$ such that every triangle-free subgraph of $G$ has chromatic number strictly less than $\aleph_1$.
This shows that a negative answer to Problem 1175 (with $\kappa = \lambda = \aleph_1$) is
consistent, so the main statement erdos_1175 is not provable in ZFC.
Formalization caveat (consistency placeholder). Shelah's result is a answer(sorry) consistency placeholder: the
intended conjecture is the model-theoretic statement, and any concrete formalisation must
either appeal to an explicit extra axiom (such as Shelah's specific forcing extension)
or to a meta-theoretic consistency proof. Until such a wrapper exists in FormalConjectures,
we leave the body as sorry.
@[category research solved, AMS 5]
theorem erdos_1175.variants.shelah_consistency : answer(sorry) ↔
¬ (∀ (V : Type*) (G : SimpleGraph V), G.chromaticCardinal = ℵ_ 1 →
∃ (H : G.Subgraph), H.coe.CliqueFree 3 ∧ H.coe.chromaticCardinal = ℵ_ 1) := ⊢ True ↔
¬∀ (V : Type u_1) (G : SimpleGraph V),
G.chromaticCardinal = ℵ_ 1 → ∃ H, H.coe.CliqueFree 3 ∧ H.coe.chromaticCardinal = ℵ_ 1
All goals completed! 🐙
Threshold reformulation variant. Replaces chromaticCardinal = λ in the hypothesis
of erdos_1175 with λ ≤ chromaticCardinal (a graph of chromatic number ≥ λ has a
triangle-free subgraph of chromatic number κ). This is a strengthening of erdos_1175
(see erdos_1175.test.threshold_implies_exact).
@[category research open, AMS 5]
theorem erdos_1175.variants.threshold_formulation : answer(sorry) ↔
∀ (κ : Cardinal), ℵ₀ < κ →
∃ (μ : Cardinal),
∀ (V : Type*) (G : SimpleGraph V), μ ≤ G.chromaticCardinal →
∃ (H : G.Subgraph), H.coe.CliqueFree 3 ∧ H.coe.chromaticCardinal = κ := ⊢ True ↔
∀ (κ : Cardinal.{u_1}),
ℵ₀ < κ →
∃ μ,
∀ (V : Type u_1) (G : SimpleGraph V),
μ ≤ G.chromaticCardinal → ∃ H, H.coe.CliqueFree 3 ∧ H.coe.chromaticCardinal = κ
All goals completed! 🐙
Every graph has a triangle-free subgraph: the bottom subgraph (with no edges)
witnesses triangle-freeness, so the existential
∃ H : G.Subgraph, H.coe.CliqueFree 3 in erdos_1175 is non-vacuous.
@[category test, AMS 5]
theorem erdos_1175.test.exists_triangle_free_subgraph
(V : Type*) (G : SimpleGraph V) : ∃ H : G.Subgraph, H.coe.CliqueFree 3 :=
⟨⊥, V:Type u_1G:SimpleGraph V⊢ ⊥.coe.CliqueFree 3 All goals completed! 🐙⟩
The threshold variant threshold_formulation is stronger than the exact-equality
form erdos_1175: if every graph with chromaticCardinal ≥ μ has the desired
triangle-free subgraph, then in particular every graph with chromaticCardinal = μ
does too.
@[category test, AMS 5]
theorem erdos_1175.test.threshold_implies_exact :
(∀ (κ : Cardinal.{0}), ℵ₀ < κ →
∃ (μ : Cardinal.{0}),
∀ (V : Type) (G : SimpleGraph V), μ ≤ G.chromaticCardinal →
∃ (H : G.Subgraph), H.coe.CliqueFree 3 ∧ H.coe.chromaticCardinal = κ) →
(∀ (κ : Cardinal.{0}), ℵ₀ < κ →
∃ (μ : Cardinal.{0}),
∀ (V : Type) (G : SimpleGraph V), G.chromaticCardinal = μ →
∃ (H : G.Subgraph), H.coe.CliqueFree 3 ∧ H.coe.chromaticCardinal = κ) := ⊢ (∀ (κ : Cardinal.{0}),
ℵ₀ < κ →
∃ μ,
∀ (V : Type) (G : SimpleGraph V),
μ ≤ G.chromaticCardinal → ∃ H, H.coe.CliqueFree 3 ∧ H.coe.chromaticCardinal = κ) →
∀ (κ : Cardinal.{0}),
ℵ₀ < κ →
∃ μ,
∀ (V : Type) (G : SimpleGraph V),
G.chromaticCardinal = μ → ∃ H, H.coe.CliqueFree 3 ∧ H.coe.chromaticCardinal = κ
intro h h:∀ (κ : Cardinal.{0}),
ℵ₀ < κ →
∃ μ,
∀ (V : Type) (G : SimpleGraph V), μ ≤ G.chromaticCardinal → ∃ H, H.coe.CliqueFree 3 ∧ H.coe.chromaticCardinal = κκ:Cardinal.{0}⊢ ℵ₀ < κ →
∃ μ, ∀ (V : Type) (G : SimpleGraph V), G.chromaticCardinal = μ → ∃ H, H.coe.CliqueFree 3 ∧ H.coe.chromaticCardinal = κ h:∀ (κ : Cardinal.{0}),
ℵ₀ < κ →
∃ μ,
∀ (V : Type) (G : SimpleGraph V), μ ≤ G.chromaticCardinal → ∃ H, H.coe.CliqueFree 3 ∧ H.coe.chromaticCardinal = κκ:Cardinal.{0}hκ:ℵ₀ < κ⊢ ∃ μ, ∀ (V : Type) (G : SimpleGraph V), G.chromaticCardinal = μ → ∃ H, H.coe.CliqueFree 3 ∧ H.coe.chromaticCardinal = κ
h:∀ (κ : Cardinal.{0}),
ℵ₀ < κ →
∃ μ,
∀ (V : Type) (G : SimpleGraph V), μ ≤ G.chromaticCardinal → ∃ H, H.coe.CliqueFree 3 ∧ H.coe.chromaticCardinal = κκ:Cardinal.{0}hκ:ℵ₀ < κμ:Cardinal.{0}hμ:∀ (V : Type) (G : SimpleGraph V), μ ≤ G.chromaticCardinal → ∃ H, H.coe.CliqueFree 3 ∧ H.coe.chromaticCardinal = κ⊢ ∃ μ, ∀ (V : Type) (G : SimpleGraph V), G.chromaticCardinal = μ → ∃ H, H.coe.CliqueFree 3 ∧ H.coe.chromaticCardinal = κ
All goals completed! 🐙
end Erdos1175