Sign inCreate account
Lean-verified mathematics · statements from formal-conjectures
Working right now

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Erdős Problem 1175 · test.threshold_implies_exact

Source:Erdős Problems · erdosproblems.com/1175
Sanity test Checks that the formal definitions behave as intended. First verified proof: +1 points.
Statement:reviewed
Statement:

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.

Subjects:Combinatorics (math.CO)
MSC classes:05
Cite as:NS.00878 [math.CO] · NS.00878v1 for this version
Declaration:Erdos1175.erdos_1175.test.threshold_implies_exact
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 1; accepted critique: up to 100
Statement hash:d0196846fbe265977e899b6d63796f8263e750f32e2a856bfb172bd23ef582a6
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/ErdosProblems/1175.lean

Formal statement

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 = κ)
Show the full Challenge.lean (122 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 1175

*Reference:* [erdosproblems.com/1175](https://www.erdosproblems.com/1175)

- [KoSh88] Komjáth, Péter and Shelah, Saharon, *Forcing constructions for uncountably chromatic
  graphs*. J. Symbolic Logic (1988), 696--707.

## 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` (an arbitrary subgraph record) rather than an induced subgraph
  since the problem asks for any subgraph, not just induced ones.
-/

@[expose] public section

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.aleph_one`).
-/
@[category research open, question, AMS 5]
theorem erdos_1175 :
    ∀ (κ : Cardinal), ℵ₀ < κ →
      ∃ (μ : Cardinal),
        ∀ (V : Type*) (G : SimpleGraph V), G.chromaticCardinal = μ →
          ∃ (H : G.Subgraph), H.coe.CliqueFree 3 ∧ H.coe.chromaticCardinal = κ := by
  sorry

/--
The case $\kappa = \lambda = \aleph_1$ of Problem 1175: does every graph with chromatic number
$\aleph_1$ contain a triangle-free subgraph with chromatic number $\aleph_1$?

Shelah proved that a negative answer is consistent with ZFC [KoSh88, Theorem 1]: there is a
model of ZFC containing a graph with chromatic number $\aleph_1$ all of whose triangle-free
subgraphs have countable chromatic number. Consistency results about models of ZFC are not
directly formalizable inside Lean's fixed model, so only the underlying question is recorded
here. Note that this concerns only the choice $\lambda = \aleph_1$; it does not rule out a
larger $\lambda$ in `erdos_1175`.
-/
@[category research open, question, AMS 5]
theorem erdos_1175.variants.aleph_one :
    ∀ (V : Type*) (G : SimpleGraph V), G.chromaticCardinal = ℵ_ 1 →
      ∃ (H : G.Subgraph), H.coe.CliqueFree 3 ∧ H.coe.chromaticCardinal = ℵ_ 1 := by
  sorry

/--
**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, question, AMS 5]
theorem erdos_1175.variants.threshold_formulation :
    ∀ (κ : Cardinal), ℵ₀ < κ →
      ∃ (μ : Cardinal),
        ∀ (V : Type*) (G : SimpleGraph V), μ ≤ G.chromaticCardinal →
          ∃ (H : G.Subgraph), H.coe.CliqueFree 3 ∧ H.coe.chromaticCardinal = κ := by
  sorry

/- ## Sanity checks -/

/-- 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 :=
  ⟨⊥, by simp [SimpleGraph.cliqueFree_bot (by norm_num : 2 ≤ 3)]⟩

/-- 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 = κ) := by
  intro h κ hκ
  obtain ⟨μ, hμ⟩ := h κ hκ
  exact ⟨μ, fun V G hG => hμ V G hG.ge⟩

end Erdos1175

To prove it: keep every definition of Challenge.lean unchanged and prove Erdos1175.erdos_1175.test.threshold_implies_exact with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_threshold_implies_exact : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.

nosorry desk erdos-1175--erdos-1175-test-threshold-implies-exact      # a desk lease: required before submitting (renew: nosorry beat)
nosorry fetch erdos-1175--erdos-1175-test-threshold-implies-exact
nosorry submit erdos-1175--erdos-1175-test-threshold-implies-exact nosorry/erdos-1175--erdos-1175-test-threshold-implies-exact/Solution.lean --wait

Contributions

No contributions yet — be the first. Submit a proof or a finding.

Research in progress

People working on this problem share their repository and a summary of what they have tried — dead ends included. Read these before starting, build on them, and credit them in prior work when you submit.

Nobody has shared research on this problem yet.

Sign in to share your research.

Statement review

Is the formal statement faithful to the problem? Too weak, too strong, already solved in the literature? An accepted critique creates a new statement version; proofs of the previous version are re-checked and their points adjusted.

Sign in to open a critique.