The areas / V30. Combinatorics
Mathlib.Combinatorics.SimpleGraph.VertexCover
28 declarations. Mathlib docs · Source
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
SimpleGraph.IsVertexCover G c: Predicate thatcis a vertex cover ofG.SimpleGraph.vertexCoverNum G: The vertex cover number, e.g. the size of a minimal vertex cover.
def SimpleGraph.IsVertexCover E1 #
{V : Type u_1} → SimpleGraph V → Set V → Prop
c is a vertex cover of G if every edge in G is incident to at least one vertex in c.
theorem SimpleGraph.isVertexCover_empty E0 #
∀ {V : Type u_1} {G : SimpleGraph V}, G.IsVertexCover ∅ ↔ G = ⊥
theorem SimpleGraph.isVertexCover_univ E0 #
∀ {V : Type u_1} {G : SimpleGraph V}, G.IsVertexCover Set.univ
theorem SimpleGraph.isVertexCover_bot E0 #
∀ {V : Type u_1} (c : Set V), ⊥.IsVertexCover c
theorem SimpleGraph.IsVertexCover.subset E1 #
∀ {V : Type u_1} {G : SimpleGraph V} {c d : Set V}, c ⊆ d → G.IsVertexCover c → G.IsVertexCover d
theorem SimpleGraph.IsVertexCover.mono E1 #
∀ {V : Type u_1} {G G' : SimpleGraph V} {c : Set V}, G ≤ G' → G'.IsVertexCover c → G.IsVertexCover c
theorem SimpleGraph.isIndepSet_compl_iff_isVertexCover E0 #
∀ {V : Type u_1} {G : SimpleGraph V} {c : Set V}, G.IsIndepSet cᶜ ↔ G.IsVertexCover c
A set c is a vertex cover iff the complement of c is an independent set.
theorem SimpleGraph.isVertexCover_compl E0 #
∀ {V : Type u_1} {G : SimpleGraph V} {c : Set V}, G.IsVertexCover cᶜ ↔ G.IsIndepSet c
theorem SimpleGraph.IsVertexCover.preimage E1 #
∀ {V : Type u_1} {W : Type u_2} {G : SimpleGraph V} {H : SimpleGraph W} {F : Type u_3} [inst : FunLike F V W]
[SimpleGraph.HomClass F G H] (f : F) {c : Set W}, H.IsVertexCover c → G.IsVertexCover (⇑f ⁻¹' c)
theorem SimpleGraph.isVertexCover_preimage_iso E0 #
∀ {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
theorem SimpleGraph.isVertexCover_image_iso E0 #
∀ {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
def SimpleGraph.vertexCoverNum E1 #
{V : Type u_1} → SimpleGraph V → ℕ∞
The vertex cover number of G is the minimal number of vertices in a vertex cover of G.
theorem SimpleGraph.vertexCoverNum_le_iff E0 #
∀ {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.IsVertexCover.vertexCoverNum_le E1 #
∀ {V : Type u_1} {G : SimpleGraph V} {c : Set V}, G.IsVertexCover c → G.vertexCoverNum ≤ c.encard
theorem SimpleGraph.vertexCoverNum_exists E1 #
∀ {V : Type u_1} (G : SimpleGraph V), ∃ s, s.encard = G.vertexCoverNum ∧ G.IsVertexCover s
theorem SimpleGraph.exists_of_le_vertexCoverNum E1 #
∀ {V : Type u_1} {G : SimpleGraph V} (n : ℕ),
G.vertexCoverNum ≤ ↑n → ↑n ≤ ENat.card V → ∃ s, s.encard = ↑n ∧ G.IsVertexCover s
theorem SimpleGraph.vertexCoverNum_bot E0 #
∀ {V : Type u_1}, (SimpleGraph.emptyGraph V).vertexCoverNum = 0
theorem SimpleGraph.vertexCoverNum_of_subsingleton E0 #
∀ {V : Type u_1} {G : SimpleGraph V} [Subsingleton V], G.vertexCoverNum = 0
theorem SimpleGraph.vertexCoverNum_eq_zero E0 #
∀ {V : Type u_1} {G : SimpleGraph V}, G.vertexCoverNum = 0 ↔ G = ⊥
theorem SimpleGraph.vertexCoverNum_le_card_sub_one E1 #
∀ {V : Type u_1} {G : SimpleGraph V}, G.vertexCoverNum ≤ ENat.card V - 1
theorem SimpleGraph.vertexCoverNum_ne_top_of_finite E0 #
∀ {V : Type u_1} {G : SimpleGraph V} [Finite V], G.vertexCoverNum ≠ ⊤
theorem SimpleGraph.vertexCoverNum_lt_card E1 #
∀ {V : Type u_1} {G : SimpleGraph V} [Nonempty V] [Finite V], G.vertexCoverNum < ENat.card V
theorem SimpleGraph.vertexCoverNum_le_encard_edgeSet E1 #
∀ {V : Type u_1} {G : SimpleGraph V}, G.vertexCoverNum ≤ G.edgeSet.encard
theorem SimpleGraph.vertexCoverNum_ne_top_of_finite_edgeSet E0 #
∀ {V : Type u_1} {G : SimpleGraph V}, G.edgeSet.Finite → G.vertexCoverNum ≠ ⊤
theorem SimpleGraph.vertexCoverNum_top E0 #
∀ {V : Type u_1}, (SimpleGraph.completeGraph V).vertexCoverNum = ENat.card V - 1
theorem SimpleGraph.IsContained.vertexCoverNum_le_vertexCoverNum E1 #
∀ {V : Type u_1} {W : Type u_2} {G : SimpleGraph V} {H : SimpleGraph W},
G.IsContained H → G.vertexCoverNum ≤ H.vertexCoverNum
theorem SimpleGraph.vertexCoverNum_mono E1 #
∀ {V : Type u_1} {G G' : SimpleGraph V}, G ≤ G' → G.vertexCoverNum ≤ G'.vertexCoverNum
theorem SimpleGraph.vertexCoverNum_congr E1 #
∀ {V : Type u_1} {W : Type u_2} {G : SimpleGraph V} {H : SimpleGraph W} (f : G ≃g H),
G.vertexCoverNum = H.vertexCoverNum