Documentation

CslibFrontier.Foundations.Combinatorics.SimpleGraph.Connectivity.VertexConnectivity

Vertex connectivity and internally disjoint paths in simple graphs #

Pure graph-theoretic notions and structural facts for vertex connectivity and Menger's theorem in SimpleGraph V:

Main definitions #

Main results #

References #

def SimpleGraph.InternallyDisjoint {V : Type u_1} {G : SimpleGraph V} {u v : V} {ι : Type u_2} (W : ι → G.Walk u v) :

A family W of u–v walks is pairwise internally disjoint if distinct walks share no vertex other than u and v.

theorem SimpleGraph.card_le_card_of_disjoint_of_isSeparator {V : Type u_1} {G : SimpleGraph V} {A B : Set V} {k : ℕ} {a b : Fin k → V} (ha : ∀ (i : Fin k), a i ∈ A) (hb : ∀ (i : Fin k), b i ∈ B) (W : (i : Fin k) → G.Walk (a i) (b i)) (hdisj : Pairwise fun (i j : Fin k) => (W i).support.Disjoint (W j).support) {Y : Finset V} (hY : G.IsSeparator A B ↑Y) :
k ≤ Y.card

Weak duality for vertex-disjoint A–B paths: k pairwise vertex-disjoint A–B walks need at least k vertices in every A–B separator.

theorem SimpleGraph.card_le_card_of_internallyDisjoint_of_isVertexSeparator {V : Type u_1} {G : SimpleGraph V} {u v : V} {k : ℕ} {W : Fin k → G.Walk u v} (hdisj : InternallyDisjoint W) {T : Finset V} (hT : G.IsVertexSeparator u v T) :
k ≤ T.card

Weak duality, undirected vertex form: k pairwise internally disjoint u–v paths force every u–v separator to have at least k vertices.

A graph G is k-vertex-connected (k : ℕ) if it has more than k vertices and G - X is connected for every vertex set X with fewer than k vertices ([Die25], §1.4).

theorem SimpleGraph.IsVertexConnected.connected {V : Type u_1} {G : SimpleGraph V} {k : ℕ} (hk : 1 ≤ k) (h : G.IsVertexConnected k) :
theorem SimpleGraph.IsVertexConnected.anti {V : Type u_1} {G : SimpleGraph V} {k l : ℕ} (hkl : k ≤ l) (h : G.IsVertexConnected l) :
theorem SimpleGraph.IsVertexConnected.mono {V : Type u_1} {G H : SimpleGraph V} (hGH : G ≤ H) {k : ℕ} (h : G.IsVertexConnected k) :
theorem SimpleGraph.isVertexConnected_iff_forall_isVertexSeparator {V : Type u_1} {G : SimpleGraph V} {k : ℕ} :
G.IsVertexConnected k ↔ ↑k < ENat.card V ∧ ∀ ⦃u v : V⦄, u ≠ v → ∀ (T : Finset V), G.IsVertexSeparator u v T → k ≤ T.card

A graph G is k-vertex-connected iff |V| > k and no two distinct vertices are separated by fewer than k vertices.

theorem SimpleGraph.exists_internal_mem_support_of_support_ne {V : Type u_1} {G : SimpleGraph V} {u v : V} (huv : u ≠ v) {w : G.Walk u v} (hw : w.IsPath) (hs : w.support ≠ [u, v]) :
∃ x ∈ w.support, x ≠ u ∧ x ≠ v

A u–v path (u ≠ v) whose support is not [u, v] contains an internal vertex ∉ {u, v}.

theorem SimpleGraph.card_gt_of_injective_internallyDisjoint {V : Type u_1} {G : SimpleGraph V} {u v : V} (huv : u ≠ v) {k : ℕ} {W : Fin k → G.Walk u v} (hinj : Function.Injective W) (hW : ∀ (i : Fin k), (W i).IsPath) (hdisj : InternallyDisjoint W) :
↑k < ENat.card V

If two distinct vertices u ≠ v are joined by k distinct pairwise internally disjoint paths, then G has strictly more than k vertices.

theorem SimpleGraph.isVertexConnected_of_forall_exists_internallyDisjoint {V : Type u_1} {G : SimpleGraph V} {k : ℕ} (hcard : ↑k < ENat.card V) (hpaths : ∀ ⦃u v : V⦄, u ≠ v → ∃ (W : Fin k → G.Walk u v), (∀ (i : Fin k), (W i).IsPath) ∧ InternallyDisjoint W) :

If |V| > k and every pair of distinct vertices has k pairwise internally disjoint paths, then G is k-vertex-connected.

theorem SimpleGraph.isVertexConnected_of_nontrivial_of_forall_exists_injective_internallyDisjoint {V : Type u_1} [Nontrivial V] {G : SimpleGraph V} {k : ℕ} (hpaths : ∀ ⦃u v : V⦄, u ≠ v → ∃ (W : Fin k → G.Walk u v), Function.Injective W ∧ (∀ (i : Fin k), (W i).IsPath) ∧ InternallyDisjoint W) :

In a graph with at least two vertices, having k distinct pairwise internally disjoint paths between every pair of distinct vertices implies G is k-vertex-connected.

theorem SimpleGraph.injective_of_internallyDisjoint_of_not_adj {V : Type u_1} {G : SimpleGraph V} {u v : V} (huv : u ≠ v) (hadj : ¬G.Adj u v) {ι : Type u_2} {W : ι → G.Walk u v} (hW : ∀ (i : ι), (W i).IsPath) (hdisj : InternallyDisjoint W) :

If u and v are distinct and non-adjacent, pairwise internally disjoint u–v paths are automatically distinct.

theorem SimpleGraph.exists_injective_internallyDisjoint_iff_exists_finset {V : Type u_1} {G : SimpleGraph V} {u v : V} {k : ℕ} :
(∃ (W : Fin k → G.Walk u v), Function.Injective W ∧ (∀ (i : Fin k), (W i).IsPath) ∧ InternallyDisjoint W) ↔ ∃ (P : Finset (G.Walk u v)), P.card = k ∧ (∀ w ∈ P, w.IsPath) ∧ (↑P).Pairwise fun (w₁ w₂ : G.Walk u v) => ∀ x ∈ w₁.support, x ∈ w₂.support → x = u ∨ x = v

Equivalence between an injective Fin k-indexed family and a k-element Finset of internally disjoint u–v paths.

theorem SimpleGraph.support_eq_pair_of_mem_edges_of_isPath {V : Type u_1} {G : SimpleGraph V} {u v : V} {w : G.Walk u v} (hw : w.IsPath) (he : s(u, v) ∈ w.edges) :

A simple u–v path containing the edge s(u, v) must be the single-edge walk [u, v].

theorem SimpleGraph.edgeDisjoint_of_injective_internallyDisjoint {V : Type u_1} {G : SimpleGraph V} {u v : V} {ι : Type u_2} {W : ι → G.Walk u v} (hinj : Function.Injective W) (hW : ∀ (i : ι), (W i).IsPath) (hdisj : InternallyDisjoint W) :
Pairwise fun (i j : ι) => ∀ e ∈ (W i).edges, e ∉ (W j).edges

Distinct pairwise internally disjoint paths between u and v are pairwise edge-disjoint.

theorem SimpleGraph.Reachable.avoiding_component_after_delete {V : Type u_1} {G : SimpleGraph V} {u v : V} (h : G.Reachable u v) (C : (induce {w : V | w ≠ v} G).ConnectedComponent) (hu : u ∉ Subtype.val '' C.supp) :

A vertex outside a component of G - v can reach v while avoiding that component, provided it could reach v in G. In particular, all such vertices lie in the same component of the complement if G is connected.