Documentation

CslibFrontier.Foundations.Combinatorics.SimpleGraph.Connectivity.Connected

Empty cuts of disconnected graphs #

A graph on a nonempty finite vertex set that is not connected has a vertex set S with 1 ≤ |S|, 2 |S| ≤ |V| and no edge between S and its complement (SimpleGraph.exists_forall_not_adj_of_not_connected): take the reachability class of a vertex or its complement, whichever is smaller. This is the combinatorial step of the union bound over cuts for the connectivity of random graphs. A graph homomorphism also carries reachability within a component to the induced graph on its image.

Projecting an induced walk back into the ambient graph keeps its support in the inducing set (SimpleGraph.Walk.mem_of_mem_support_map_induce).

theorem SimpleGraph.Walk.mem_of_mem_support_map_induce {V : Type u_1} {G : SimpleGraph V} {s : Set V} {u v : ↑s} (p : (induce s G).Walk u v) {x : V} (hx : x ∈ (Walk.map (Embedding.induce s).toHom p).support) :
x ∈ s

Projecting a walk from an induced graph leaves every vertex of its support in the inducing set.

theorem SimpleGraph.ConnectedComponent.reachable_induce_image {V : Type u_1} {W : Type u_2} {G : SimpleGraph V} {H : SimpleGraph W} (C : G.ConnectedComponent) (f : G →g H) {x y : W} (hx : x ∈ ⇑f '' C.supp) (hy : y ∈ ⇑f '' C.supp) :
(induce (⇑f '' C.supp) H).Reachable ⟨x, hx⟩ ⟨y, hy⟩

Any two vertices in the image of a connected component are reachable within that image, even if the homomorphism identifies vertices.

theorem SimpleGraph.exists_forall_not_adj_of_not_connected {V : Type u_1} [Fintype V] [Nonempty V] {G : SimpleGraph V} (hG : ¬G.Connected) :
∃ (S : Finset V), 1 ≤ S.card ∧ 2 * S.card ≤ Fintype.card V ∧ ∀ u ∈ S, ∀ v ∉ S, ¬G.Adj u v

A graph on a nonempty finite vertex set that is not connected has a nonempty vertex set S with at most half of the vertices and no edge between S and its complement.

theorem SimpleGraph.exists_connected_induce_forall_not_adj_of_not_connected {V : Type u_2} [Fintype V] [Nonempty V] {G : SimpleGraph V} (hnc : ¬G.Connected) (hni : ∀ (v : V), ¬G.IsIsolated v) :
∃ (S : Finset V), 2 ≤ S.card ∧ 2 * S.card ≤ Fintype.card V ∧ (induce (↑S) G).Connected ∧ ∀ u ∈ S, ∀ v ∉ S, ¬G.Adj u v

Every disconnected finite nonempty graph without isolated vertices contains a connected induced subgraph on a vertex subset S with 2 ≤ #S ≤ |V| / 2 and no edges leaving S.

theorem SimpleGraph.exists_card_sub_one_subset_edgeSet_of_connected {V : Type u_2} [Fintype V] {G : SimpleGraph V} (hc : G.Connected) :
∃ (t : Finset (Sym2 V)), t.card = Fintype.card V - 1 ∧ ∀ e ∈ t, e ∈ G.edgeSet ∧ ¬e.IsDiag

Every connected finite graph contains a spanning tree edge subset of cardinality |V| - 1. All elements of this subset are non-diagonal edges of G.