Documentation

CslibFrontier.Foundations.Combinatorics.Digraph.Connectivity

Directed paths, cuts and separators in digraphs #

Pure graph-theoretic notions for Menger's theorem in directed graphs Digraph V:

Main definitions #

Main results #

References #

def Digraph.IsDipath {V : Type u_1} (G : Digraph V) (s t : V) (p : List V) :

p is a simple directed s–t path in G: a duplicate-free vertex list starting at s and ending at t whose consecutive pairs are arcs of G.

Instances For
    @[instance_reducible]
    instance Digraph.instDecidableIsDipath {V : Type u_1} [DecidableEq V] (G : Digraph V) [DecidableRel G.Adj] (s t : V) (p : List V) :
    def Digraph.ArcDisjoint {V : Type u_1} {ι : Type u_2} (P : ι → List V) :

    The vertex lists P i are pairwise arc-disjoint: no directed step (u, v) occurs as a consecutive pair in two distinct lists.

    def Digraph.InternallyDisjoint {V : Type u_1} {ι : Type u_2} (s t : V) (P : ι → List V) :

    The vertex lists P i are pairwise internally disjoint with respect to s and t: two distinct lists share no vertex other than s and t.

    def Digraph.IsArcCut {V : Type u_1} (G : Digraph V) (s t : V) (C : Finset (V × V)) :

    C is an s–t arc cut of G: every simple directed s–t path of G uses an arc in C.

    def Digraph.IsVertexCut {V : Type u_1} (G : Digraph V) (s t : V) (T : Finset V) :

    T is an s–t vertex cut of G: it avoids s and t, and every simple directed s–t path of G visits a vertex of T.

    def Digraph.IsSeparator {V : Type u_1} (G : Digraph V) (A B Y : Set V) :

    Y separates A from B in G: every simple directed A–B path visits a vertex of Y. A vertex of A ∩ B must lie in Y, because of its trivial one-vertex path.

    theorem Digraph.isVertexCut_iff_isSeparator {V : Type u_1} {G : Digraph V} {s t : V} {T : Finset V} :
    G.IsVertexCut s t T ↔ s ∉ T ∧ t ∉ T ∧ G.IsSeparator {s} {t} ↑T
    theorem Digraph.IsSeparator.mono {V : Type u_1} {G : Digraph V} {A B Y Y' : Set V} (h : G.IsSeparator A B Y) (hY : Y ⊆ Y') :
    G.IsSeparator A B Y'
    theorem Digraph.isSeparator_of_subset_left {V : Type u_1} {G : Digraph V} {A B Y : Set V} (h : A ⊆ Y) :
    G.IsSeparator A B Y
    def Digraph.outArcs {V : Type u_1} [Fintype V] [DecidableEq V] (G : Digraph V) [DecidableRel G.Adj] (S : Finset V) :
    Finset (V × V)

    The arcs of G leaving a vertex set S (Schrijver's δ^out(S)).

    theorem Digraph.mem_outArcs {V : Type u_1} [Fintype V] [DecidableEq V] {G : Digraph V} [DecidableRel G.Adj] {S : Finset V} {e : V × V} :
    e ∈ G.outArcs S ↔ e.1 ∈ S ∧ e.2 ∉ S ∧ G.Adj e.1 e.2
    theorem Digraph.isArcCut_outArcs {V : Type u_1} [Fintype V] [DecidableEq V] (G : Digraph V) [DecidableRel G.Adj] {s t : V} {S : Finset V} (hs : s ∈ S) (ht : t ∉ S) :
    G.IsArcCut s t (G.outArcs S)

    G.outArcs S is an s–t arc cut whenever s ∈ S and t ∉ S.

    theorem Digraph.isSeparator_of_forall_adj {V : Type u_1} {G : Digraph V} {A B Y : Set V} (S : V → Prop) (hstep : ∀ ⦃u v : V⦄, G.Adj u v → S u → v ∉ Y → S v) (hA : ∀ a ∈ A, a ∉ Y → S a) (hB : ∀ b ∈ B, b ∉ Y → ¬S b) :
    G.IsSeparator A B Y

    Closed-set certificate for directed separators. If S holds on A \ Y, fails on B \ Y, and every arc leaving S enters Y, then Y separates A from B.

    theorem Digraph.isVertexCut_of_forall_adj {V : Type u_1} {G : Digraph V} {s t : V} {S T : Finset V} (hs : s ∈ S) (ht : t ∉ S) (hsT : s ∉ T) (htT : t ∉ T) (hST : ∀ u ∈ S, ∀ (v : V), G.Adj u v → v ∉ S → v ∈ T) :
    G.IsVertexCut s t T

    Closed-set certificate for a vertex cut: if s ∈ S, t ∉ S, T avoids s and t, and every arc leaving S ends in T, then T is an s–t vertex cut.

    theorem Digraph.card_le_card_of_arcDisjoint_of_isArcCut {V : Type u_1} {G : Digraph V} {s t : V} {k : ℕ} {P : Fin k → List V} (hP : ∀ (i : Fin k), G.IsDipath s t (P i)) (hdisj : ArcDisjoint P) {C : Finset (V × V)} (hC : G.IsArcCut s t C) :
    k ≤ C.card

    Weak duality for arc-disjoint paths: k pairwise arc-disjoint directed s–t paths need at least k arcs in every s–t arc cut.

    theorem Digraph.card_le_card_of_internallyDisjoint_of_isVertexCut {V : Type u_1} {G : Digraph V} {s t : V} {k : ℕ} {P : Fin k → List V} (hP : ∀ (i : Fin k), G.IsDipath s t (P i)) (hdisj : InternallyDisjoint s t P) {T : Finset V} (hT : G.IsVertexCut s t T) :
    k ≤ T.card

    Weak duality for internally disjoint paths: k pairwise internally disjoint directed s–t paths need at least k vertices in every s–t vertex cut.

    theorem Digraph.card_le_card_of_disjoint_of_isSeparator {V : Type u_1} {G : Digraph V} {A B : Set V} {k : ℕ} {P : Fin k → List V} (hP : ∀ (i : Fin k), ∃ a ∈ A, ∃ b ∈ B, G.IsDipath a b (P i)) (hdisj : Pairwise fun (i j : Fin k) => (P i).Disjoint (P j)) {Y : Finset V} (hY : G.IsSeparator A B ↑Y) :
    k ≤ Y.card

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