Documentation

Mathlib.Combinatorics.SimpleGraph.VertexCover

Vertex cover #

A vertex cover of a simple graph is a set of vertices such that every edge is incident to at least one of the vertices in the set.

Main definitions #

def SimpleGraph.IsVertexCover {V : Type u_1} (G : SimpleGraph V) (c : Set V) :

c is a vertex cover of G if every edge in G is incident to at least one vertex in c.

Instances For
    @[simp]
    theorem SimpleGraph.isVertexCover_empty {V : Type u_1} {G : SimpleGraph V} :
    G.IsVertexCover โˆ… โ†” G = โŠฅ
    theorem SimpleGraph.IsVertexCover.subset {V : Type u_1} {G : SimpleGraph V} {c d : Set V} (hcd : c โІ d) (hc : G.IsVertexCover c) :
    theorem SimpleGraph.IsVertexCover.mono {V : Type u_1} {G G' : SimpleGraph V} {c : Set V} (hG : G โ‰ค G') (hc : G'.IsVertexCover c) :
    @[simp]

    A set c is a vertex cover iff the complement of c is an independent set.

    theorem SimpleGraph.IsVertexCover.preimage {V : Type u_1} {W : Type u_2} {G : SimpleGraph V} {H : SimpleGraph W} {F : Type u_3} [FunLike F V W] [HomClass F G H] (f : F) {c : Set W} (hc : H.IsVertexCover c) :
    @[simp]
    theorem SimpleGraph.isVertexCover_preimage_iso {V : Type u_1} {W : Type u_2} {G : SimpleGraph V} {H : SimpleGraph W} (f : G โ‰ƒg H) {c : Set W} :
    G.IsVertexCover (โ‡‘f โปยน' c) โ†” H.IsVertexCover c
    @[simp]
    theorem SimpleGraph.isVertexCover_image_iso {V : Type u_1} {W : Type u_2} {G : SimpleGraph V} {H : SimpleGraph W} (f : G โ‰ƒg H) {c : Set V} :
    H.IsVertexCover (โ‡‘f '' c) โ†” G.IsVertexCover c
    noncomputable def SimpleGraph.vertexCoverNum {V : Type u_1} (G : SimpleGraph V) :

    The vertex cover number of G is the minimal number of vertices in a vertex cover of G.

    Instances For
      theorem SimpleGraph.vertexCoverNum_le_iff {V : Type u_1} {G : SimpleGraph V} {n : โ„•โˆž} :
      G.vertexCoverNum โ‰ค n โ†” โˆ€ (m : โ„•โˆž), (โˆ€ (s : Set V), G.IsVertexCover s โ†’ m โ‰ค s.encard) โ†’ m โ‰ค n
      theorem SimpleGraph.exists_of_le_vertexCoverNum {V : Type u_1} {G : SimpleGraph V} (n : โ„•) (hโ‚ : G.vertexCoverNum โ‰ค โ†‘n) (hโ‚‚ : โ†‘n โ‰ค ENat.card V) :
      โˆƒ (s : Set V), s.encard = โ†‘n โˆง G.IsVertexCover s
      @[deprecated SimpleGraph.IsContained.vertexCoverNum_le_vertexCoverNum (since := "2026-01-07")]
      theorem SimpleGraph.vertexCoverNum_le_vertexCoverNum_of_injective {V : Type u_1} {W : Type u_2} {G : SimpleGraph V} {H : SimpleGraph W} (f : G โ†’g H) (hf : Function.Injective โ‡‘f) :