The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V30. Combinatorics

Mathlib.Combinatorics.SimpleGraph.FiveWheelLike

29 declarations. Mathlib docs · Source

Five-wheel like graphs

This file defines an IsFiveWheelLike structure in a graph, and describes properties of these structures as well as graphs which avoid this structure. These have two key uses:

  • We use them to prove that a maximally Kᵣ₊₁-free graph is r-colorable iff it is complete-multipartite: colorable_iff_isCompleteMultipartite_of_maximal_cliqueFree.
  • They play a key role in Brandt's proof of the Andrásfai-Erdős-Sós theorem, which is where they first appeared. We give this proof below, see colorable_of_cliqueFree_lt_minDegree.

If G is maximally Kᵣ₊₂-free and ¬ G.Adj x y (with x ≠ y) then there exists an r-set s such that s ∪ {x} and s ∪ {y} are both r + 1-cliques.

If ¬ G.IsCompleteMultipartite then it contains a G.IsPathGraph3Compl v w₁ w₂ consisting of an edge w₁w₂ and a vertex v such that vw₁ and vw₂ are non-edges.

Hence any maximally Kᵣ₊₂-free graph that is not complete-multipartite must contain distinct vertices v, w₁, w₂, together with r-sets s and t, such that {v, w₁, w₂} induces the single edge w₁w₂, s ∪ t is disjoint from {v, w₁, w₂}, and s ∪ {v}, t ∪ {v}, s ∪ {w₁} and t ∪ {w₂} are all r + 1-cliques.

This leads to the definition of an IsFiveWheelLike structure which can be found in any maximally Kᵣ₊₂-free graph that is not complete-multipartite (see exists_isFiveWheelLike_of_maximal_cliqueFree_not_isCompleteMultipartite).

One key parameter in any such structure is the number of vertices common to all of the cliques: we denote this quantity by k = #(s ∩ t) (and we will refer to such a structure as Wᵣ,ₖ below.)

The first interesting cases of such structures are W₁,₀ and W₂,₁: W₁,₀ is a 5-cycle, while W₂,₁ is a 5-cycle with an extra central hub vertex adjacent to all other vertices (i.e. W₂,₁ resembles a wheel with five spokes).

                 `W₁,₀`       v                 `W₂,₁`      v
                           /     \                       /  |  \
                          s       t                     s ─ u ─ t
                           \     /                       \ / \ /
                           w₁ ─ w₂                       w₁ ─ w₂

Main definitions

  • SimpleGraph.IsFiveWheelLike: predicate for v w₁ w₂ s t to form a 5-wheel-like subgraph of G with r-sets s and t, and vertices v w₁ w₂ forming an IsPathGraph3Compl and #(s ∩ t) = k.

  • SimpleGraph.FiveWheelLikeFree: predicate for G to have no IsFiveWheelLike r k subgraph.

Implementation notes

The definitions of IsFiveWheelLike and IsFiveWheelLikeFree in this file have r shifted by two compared to the definitions in Brandt On the structure of graphs with bounded clique number

The definition of IsFiveWheelLike does not contain the facts that #s = r and #t = r but we deduce these later as card_left and card_right.

Although #(s ∩ t) can easily be derived from s and t we include the IsFiveWheelLike field card_inter : #(s ∩ t) = k to match the informal / paper definitions and to simplify some statements of results and match our definition of IsFiveWheelLikeFree.

The vertex set of an IsFiveWheel structure Wᵣ,ₖ is {v, w₁, w₂} ∪ s ∪ t : Finset α. We will need to refer to this consistently and choose the following formulation: {v} ∪ ({w₁} ∪ ({w₂} ∪ (s ∪ t))) which is definitionally equal to insert v <| insert w₁ <| insert w₂ <| s ∪ t.

References

  • [B. Andrásfai, P Erdős, V. T. Sós On the connection between chromatic number, maximal clique, and minimal degree of a graph https://doi.org/10.1016/0012-365X(74)90133-2][andrasfaiErdosSos1974]

  • [S. Brandt On the structure of graphs with bounded clique number https://doi.org/10.1007/s00493-003-0042-z][brandt2003]

theorem SimpleGraph.FiveWheelLikeFree.congr_simp E1 #

∀ {α : Type u_1} {inst : DecidableEq α} [inst_1 : DecidableEq α] (G G_1 : SimpleGraph α),
  G = G_1 → ∀ (r r_1 : ℕ), r = r_1 → ∀ (k k_1 : ℕ), k = k_1 → G.FiveWheelLikeFree r k = G_1.FiveWheelLikeFree r_1 k_1

theorem SimpleGraph.IsFiveWheelLike.congr_simp E1 #

∀ {α : Type u_1} {inst : DecidableEq α} [inst_1 : DecidableEq α] (G G_1 : SimpleGraph α),
  G = G_1 →
    ∀ (r r_1 : ℕ),
      r = r_1 →
        ∀ (k k_1 : ℕ),
          k = k_1 →
            ∀ (v v_1 : α),
              v = v_1 →
                ∀ (w₁ w₁_1 : α),
                  w₁ = w₁_1 →
                    ∀ (w₂ w₂_1 : α),
                      w₂ = w₂_1 →
                        ∀ (s s_1 : Finset α),
                          s = s_1 →
                            ∀ (t t_1 : Finset α),
                              t = t_1 →
                                G.IsFiveWheelLike r k v w₁ w₂ s t = G_1.IsFiveWheelLike r_1 k_1 v_1 w₁_1 w₂_1 s_1 t_1

structure SimpleGraph.IsFiveWheelLike E3 #

{α : Type u_1} → [DecidableEq α] → SimpleGraph α → ℕ → ℕ → α → α → α → Finset α → Finset α → Prop

An IsFiveWheelLike r k v w₁ w₂ s t structure in G consists of vertices v w₁ w₂ and r-sets s and t such that {v, w₁, w₂} induces the single edge w₁w₂ (i.e. they form an IsPathGraph3Compl), v, w₁, w₂ ∉ s ∪ t, s ∪ {v}, t ∪ {v}, s ∪ {w₁}, t ∪ {w₂} are all (r + 1)-cliques and #(s ∩ t) = k. (If G is maximally (r + 2)-cliquefree and not complete multipartite then G will contain such a structure: see exists_isFiveWheelLike_of_maximal_cliqueFree_not_isCompleteMultipartite.)

ctor SimpleGraph.IsFiveWheelLike.mk E0 #

∀ {α : Type u_1} [inst : DecidableEq α] {G : SimpleGraph α} {r k : ℕ} {v w₁ w₂ : α} {s t : Finset α},
  G.IsPathGraph3Compl v w₁ w₂ →
    v ∉ s →
      v ∉ t →
        w₁ ∉ s →
          w₂ ∉ t →
            G.IsNClique (r + 1) (insert v s) →
              G.IsNClique (r + 1) (insert w₁ s) →
                G.IsNClique (r + 1) (insert v t) →
                  G.IsNClique (r + 1) (insert w₂ t) → (s ∩ t).card = k → G.IsFiveWheelLike r k v w₁ w₂ s t

theorem SimpleGraph.IsFiveWheelLike.isPathGraph3Compl E1 #

∀ {α : Type u_1} [inst : DecidableEq α] {G : SimpleGraph α} {r k : ℕ} {v w₁ w₂ : α} {s t : Finset α},
  G.IsFiveWheelLike r k v w₁ w₂ s t → G.IsPathGraph3Compl v w₁ w₂

{v, w₁, w₂} induces the single edge w₁w₂

theorem SimpleGraph.IsFiveWheelLike.notMem_left E1 #

∀ {α : Type u_1} [inst : DecidableEq α] {G : SimpleGraph α} {r k : ℕ} {v w₁ w₂ : α} {s t : Finset α},
  G.IsFiveWheelLike r k v w₁ w₂ s t → v ∉ s

theorem SimpleGraph.IsFiveWheelLike.notMem_right E1 #

∀ {α : Type u_1} [inst : DecidableEq α] {G : SimpleGraph α} {r k : ℕ} {v w₁ w₂ : α} {s t : Finset α},
  G.IsFiveWheelLike r k v w₁ w₂ s t → v ∉ t

theorem SimpleGraph.IsFiveWheelLike.fst_notMem E1 #

∀ {α : Type u_1} [inst : DecidableEq α] {G : SimpleGraph α} {r k : ℕ} {v w₁ w₂ : α} {s t : Finset α},
  G.IsFiveWheelLike r k v w₁ w₂ s t → w₁ ∉ s

theorem SimpleGraph.IsFiveWheelLike.snd_notMem E1 #

∀ {α : Type u_1} [inst : DecidableEq α] {G : SimpleGraph α} {r k : ℕ} {v w₁ w₂ : α} {s t : Finset α},
  G.IsFiveWheelLike r k v w₁ w₂ s t → w₂ ∉ t

theorem SimpleGraph.IsFiveWheelLike.isNClique_left E1 #

∀ {α : Type u_1} [inst : DecidableEq α] {G : SimpleGraph α} {r k : ℕ} {v w₁ w₂ : α} {s t : Finset α},
  G.IsFiveWheelLike r k v w₁ w₂ s t → G.IsNClique (r + 1) (insert v s)

theorem SimpleGraph.IsFiveWheelLike.isNClique_fst_left E1 #

∀ {α : Type u_1} [inst : DecidableEq α] {G : SimpleGraph α} {r k : ℕ} {v w₁ w₂ : α} {s t : Finset α},
  G.IsFiveWheelLike r k v w₁ w₂ s t → G.IsNClique (r + 1) (insert w₁ s)

theorem SimpleGraph.IsFiveWheelLike.isNClique_right E1 #

∀ {α : Type u_1} [inst : DecidableEq α] {G : SimpleGraph α} {r k : ℕ} {v w₁ w₂ : α} {s t : Finset α},
  G.IsFiveWheelLike r k v w₁ w₂ s t → G.IsNClique (r + 1) (insert v t)

theorem SimpleGraph.IsFiveWheelLike.isNClique_snd_right E1 #

∀ {α : Type u_1} [inst : DecidableEq α] {G : SimpleGraph α} {r k : ℕ} {v w₁ w₂ : α} {s t : Finset α},
  G.IsFiveWheelLike r k v w₁ w₂ s t → G.IsNClique (r + 1) (insert w₂ t)

theorem SimpleGraph.IsFiveWheelLike.card_inter E1 #

∀ {α : Type u_1} [inst : DecidableEq α] {G : SimpleGraph α} {r k : ℕ} {v w₁ w₂ : α} {s t : Finset α},
  G.IsFiveWheelLike r k v w₁ w₂ s t → (s ∩ t).card = k

theorem SimpleGraph.exists_isFiveWheelLike_of_maximal_cliqueFree_not_isCompleteMultipartite E1 #

∀ {α : Type u_1} {G : SimpleGraph α} {r : ℕ} [inst : DecidableEq α],
  Maximal (fun H ↦ H.CliqueFree (r + 2)) G →
    ¬G.IsCompleteMultipartite → ∃ v w₁ w₂ s t, G.IsFiveWheelLike r (s ∩ t).card v w₁ w₂ s t

def SimpleGraph.FiveWheelLikeFree E3 #

{α : Type u_1} → [DecidableEq α] → SimpleGraph α → ℕ → ℕ → Prop

G.FiveWheelLikeFree r k means there is no IsFiveWheelLike r k structure in G.

theorem SimpleGraph.IsFiveWheelLike.symm E1 #

∀ {α : Type u_1} {s : Finset α} {G : SimpleGraph α} {r k : ℕ} [inst : DecidableEq α] {v w₁ w₂ : α} {t : Finset α},
  G.IsFiveWheelLike r k v w₁ w₂ s t → G.IsFiveWheelLike r k v w₂ w₁ t s

theorem SimpleGraph.IsFiveWheelLike.fst_notMem_right E1 #

∀ {α : Type u_1} {s : Finset α} {G : SimpleGraph α} {r k : ℕ} [inst : DecidableEq α] {v w₁ w₂ : α} {t : Finset α},
  G.IsFiveWheelLike r k v w₁ w₂ s t → w₁ ∉ t

theorem SimpleGraph.IsFiveWheelLike.snd_notMem_left E1 #

∀ {α : Type u_1} {s : Finset α} {G : SimpleGraph α} {r k : ℕ} [inst : DecidableEq α] {v w₁ w₂ : α} {t : Finset α},
  G.IsFiveWheelLike r k v w₁ w₂ s t → w₂ ∉ s

theorem SimpleGraph.IsFiveWheelLike.not_colorable_succ E1 #

∀ {α : Type u_1} {s : Finset α} {G : SimpleGraph α} {r k : ℕ} [inst : DecidableEq α] {v w₁ w₂ : α} {t : Finset α},
  G.IsFiveWheelLike r k v w₁ w₂ s t → ¬G.Colorable (r + 1)

Any graph containing an IsFiveWheelLike r k structure is not (r + 1)-colorable.

theorem SimpleGraph.IsFiveWheelLike.card_left E1 #

∀ {α : Type u_1} {s : Finset α} {G : SimpleGraph α} {r k : ℕ} [inst : DecidableEq α] {v w₁ w₂ : α} {t : Finset α},
  G.IsFiveWheelLike r k v w₁ w₂ s t → s.card = r

theorem SimpleGraph.IsFiveWheelLike.card_right E1 #

∀ {α : Type u_1} {s : Finset α} {G : SimpleGraph α} {r k : ℕ} [inst : DecidableEq α] {v w₁ w₂ : α} {t : Finset α},
  G.IsFiveWheelLike r k v w₁ w₂ s t → t.card = r

theorem SimpleGraph.IsFiveWheelLike.card_inter_lt_of_cliqueFree E1 #

∀ {α : Type u_1} {s : Finset α} {G : SimpleGraph α} {r k : ℕ} [inst : DecidableEq α] {v w₁ w₂ : α} {t : Finset α},
  G.IsFiveWheelLike r k v w₁ w₂ s t → G.CliqueFree (r + 2) → k < r

theorem SimpleGraph.exists_max_isFiveWheelLike_of_maximal_cliqueFree_not_isCompleteMultipartite E1 #

∀ {α : Type u_1} {G : SimpleGraph α} {r : ℕ} [inst : DecidableEq α],
  Maximal (fun H ↦ H.CliqueFree (r + 2)) G →
    ¬G.IsCompleteMultipartite →
      ∃ k v w₁ w₂ s t, G.IsFiveWheelLike r k v w₁ w₂ s t ∧ k < r ∧ ∀ (j : ℕ), k < j → G.FiveWheelLikeFree r j

Any maximally Kᵣ₊₂-free graph that is not complete-multipartite contains a maximal IsFiveWheelLike structure Wᵣ,ₖ for some k < r. (It is maximal in terms of k.)

theorem SimpleGraph.CliqueFree.fiveWheelLikeFree_of_le E1 #

∀ {α : Type u_1} {G : SimpleGraph α} {r k : ℕ} [inst : DecidableEq α],
  G.CliqueFree (r + 2) → r ≤ k → G.FiveWheelLikeFree r k

theorem SimpleGraph.colorable_iff_isCompleteMultipartite_of_maximal_cliqueFree E1 #

∀ {α : Type u_1} {G : SimpleGraph α} {r : ℕ},
  Maximal (fun H ↦ H.CliqueFree (r + 1)) G → (G.Colorable r ↔ G.IsCompleteMultipartite)

A maximally Kᵣ₊₁-free graph is r-colorable iff it is complete-multipartite.

theorem SimpleGraph.IsFiveWheelLike.exists_isFiveWheelLike_succ_of_not_adj_le_two E1 #

∀ {α : Type u_1} {G : SimpleGraph α} {r k : ℕ} {x v w₁ w₂ : α} {s t : Finset α} [inst : DecidableEq α],
  G.IsFiveWheelLike r k v w₁ w₂ s t →
    G.CliqueFree (r + 2) →
      ∀ [inst_1 : DecidableRel G.Adj],
        (∀ ⦃y : α⦄, y ∈ s ∩ t → G.Adj x y) →
          {z ∈ {v} ∪ ({w₁} ∪ ({w₂} ∪ (s ∪ t))) | ¬G.Adj x z}.card ≤ 2 →
            ∃ a b, G.IsFiveWheelLike r (k + 1) v w₁ w₂ (insert x (s.erase a)) (insert x (t.erase b))

If G is Kᵣ₊₂-free and contains a Wᵣ,ₖ together with a vertex x adjacent to all but at most two vertices of Wᵣ,ₖ, including all of its common clique vertices, then G contains a Wᵣ,ₖ₊₁.

theorem SimpleGraph.IsFiveWheelLike.minDegree_le_of_cliqueFree_fiveWheelLikeFree_succ E1 #

∀ {α : Type u_1} {G : SimpleGraph α} {r k : ℕ} {v w₁ w₂ : α} {s t : Finset α} [inst : DecidableEq α],
  G.IsFiveWheelLike r k v w₁ w₂ s t →
    G.CliqueFree (r + 2) →
      ∀ [inst_1 : DecidableRel G.Adj] [inst_2 : Fintype α],
        G.FiveWheelLikeFree r (k + 1) → G.minDegree ≤ (2 * r + k) * Fintype.card α / (2 * r + k + 3)

If G is a Kᵣ₊₂-free graph with n vertices containing a Wᵣ,ₖ but no Wᵣ,ₖ₊₁ then G.minDegree ≤ (2 * r + k) * n / (2 * r + k + 3)

theorem SimpleGraph.colorable_of_cliqueFree_lt_minDegree E1 #

∀ {α : Type u_1} {G : SimpleGraph α} {r : ℕ} [inst : Fintype α] [inst_1 : DecidableRel G.Adj],
  G.CliqueFree (r + 1) → (3 * r - 4) * Fintype.card α / (3 * r - 1) < G.minDegree → G.Colorable r

Andrásfai-Erdős-Sós theorem

If G is a Kᵣ₊₁-free graph with n vertices and (3 * r - 4) * n / (3 * r - 1) < G.minDegree then G is r + 1-colorable, e.g. if G is K₃-free and 2 * n / 5 < G.minDegree then G is 2-colorable.