The areas / V30. Combinatorics
Mathlib.Combinatorics.Graph.Connected.EdgeCut
35 declarations. Mathlib docs · Source
Edge cuts and bridges of graphs
This file defines the edge cuts and bridges of a graph.
Main definitions
IsEdgeCut: a set of edges between a set of vertices and its complement.IsBridge: an edge that forms a singleton edge cut (an isthmus / bridge edge).IsBond: a bond of a graph is a minimal nonempty edge cut.
Edge cuts
Bridges: singleton edge cuts
Bonds: minimal nonempty edge cuts
def Graph.edgeCut E1 #
{α : Type u_1} → {β : Type u_2} → Graph α β → Set α → Set β
The edge cut of a graph G along a set of vertices S.
theorem Graph.mem_edgeCut_iff E0 #
∀ {α : Type u_1} {β : Type u_2} {G : Graph α β} {S : Set α} {e : β},
e ∈ G.edgeCut S ↔ ∃ u v, G.IsLink e u v ∧ u ∈ S ∧ v ∉ S
theorem Graph.IsLink.mem_edgeCut_iff E0 #
∀ {α : Type u_1} {β : Type u_2} {G : Graph α β} {S : Set α} {e : β} {u v : α},
G.IsLink e u v → (e ∈ G.edgeCut S ↔ u ∈ S ∧ v ∉ S ∨ v ∈ S ∧ u ∉ S)
theorem Graph.edgeCut_subset_edgeSet E1 #
∀ {α : Type u_1} {β : Type u_2} {G : Graph α β} {S : Set α}, G.edgeCut S ⊆ G.edgeSet
theorem Graph.edgeCut_eq_empty_iff E0 #
∀ {α : Type u_1} {β : Type u_2} {G : Graph α β} {S : Set α},
S ⊆ G.vertexSet → (G.edgeCut S = ∅ ↔ (G.induce S).IsClosedSubgraph G)
theorem Graph.edgeCut_vertexSet_diff E0 #
∀ {α : Type u_1} {β : Type u_2} {G : Graph α β} {S : Set α}, G.edgeCut (G.vertexSet \ S) = G.edgeCut S
theorem Graph.IsSubgraph.edgeCut_eq_inter E1 #
∀ {α : Type u_1} {β : Type u_2} {G H : Graph α β} {S : Set α}, H ≤ G → H.edgeCut S = H.edgeSet ∩ G.edgeCut S
theorem Graph.edgeCut_symmDiff E0 #
∀ {α : Type u_1} {β : Type u_2} {G : Graph α β} {S S' : Set α},
G.edgeCut (symmDiff S S') = symmDiff (G.edgeCut S) (G.edgeCut S')
theorem Graph.IsClosedSubgraph.edgeCut_subset_edgeSet E1 #
∀ {α : Type u_1} {β : Type u_2} {G H : Graph α β} {S : Set α},
H.IsClosedSubgraph G → S ⊆ H.vertexSet → G.edgeCut S ⊆ H.edgeSet
def Graph.IsEdgeCut E3 #
{α : Type u_1} → {β : Type u_2} → Graph α β → Set β → Prop
A set of edges is an edge cut if there exists a set of vertices such that the edges in the set are between the set of vertices and its complement.
theorem Graph.IsEdgeCut.exists_edgeCut E1 #
∀ {α : Type u_1} {β : Type u_2} {G : Graph α β} {F : Set β}, G.IsEdgeCut F → ∃ S ⊆ G.vertexSet, G.edgeCut S = F
theorem Graph.IsEdgeCut.exists_of_isLink E1 #
∀ {α : Type u_1} {β : Type u_2} {G : Graph α β} {F : Set β} {e : β} {u v : α},
G.IsLink e u v → e ∈ F → G.IsEdgeCut F → ∃ S ⊆ G.vertexSet, G.edgeCut S = F ∧ u ∈ S ∧ v ∉ S
theorem Graph.IsEdgeCut.subset_edgeSet E1 #
∀ {α : Type u_1} {β : Type u_2} {G : Graph α β} {F : Set β}, G.IsEdgeCut F → F ⊆ G.edgeSet
theorem Graph.IsEdgeCut.symmDiff E1 #
∀ {α : Type u_1} {β : Type u_2} {G : Graph α β} {F F' : Set β},
G.IsEdgeCut F → G.IsEdgeCut F' → G.IsEdgeCut (symmDiff F F')
theorem Graph.IsEdgeCut.right_of_symmDiff E1 #
∀ {α : Type u_1} {β : Type u_2} {G : Graph α β} {F F' : Set β},
G.IsEdgeCut F → G.IsEdgeCut (symmDiff F F') → G.IsEdgeCut F'
theorem Graph.IsEdgeCut.left_of_symmDiff E1 #
∀ {α : Type u_1} {β : Type u_2} {G : Graph α β} {F F' : Set β},
G.IsEdgeCut F' → G.IsEdgeCut (symmDiff F F') → G.IsEdgeCut F
theorem Graph.IsEdgeCut.inter_edgeSet_of_le E1 #
∀ {α : Type u_1} {β : Type u_2} {G H : Graph α β} {F : Set β}, H ≤ G → G.IsEdgeCut F → H.IsEdgeCut (H.edgeSet ∩ F)
theorem Graph.IsEdgeCut.anti_of_subset E1 #
∀ {α : Type u_1} {β : Type u_2} {G H : Graph α β} {F : Set β}, H ≤ G → F ⊆ H.edgeSet → G.IsEdgeCut F → H.IsEdgeCut F
theorem Graph.IsEdgeCut.of_isClosedSubgraph E1 #
∀ {α : Type u_1} {β : Type u_2} {G H : Graph α β} {F : Set β}, G.IsClosedSubgraph H → G.IsEdgeCut F → H.IsEdgeCut F
theorem Graph.IsClosedSubgraph.isEdgeCut E1 #
∀ {α : Type u_1} {β : Type u_2} {G H : Graph α β} {F : Set β}, G.IsClosedSubgraph H → G.IsEdgeCut F → H.IsEdgeCut F
Alias of Graph.IsEdgeCut.of_isClosedSubgraph.
def Graph.IsBridge E3 #
{α : Type u_1} → {β : Type u_2} → Graph α β → β → Prop
A bridge (isthmus) is an edge that constitutes a singleton edge cut.
theorem Graph.IsBridge.isEdgeCut_singleton E1 #
∀ {α : Type u_1} {β : Type u_2} {G : Graph α β} {e : β}, G.IsBridge e → G.IsEdgeCut {e}
theorem Graph.IsBridge.mem_edgeSet E0 #
∀ {α : Type u_1} {β : Type u_2} {G : Graph α β} {e : β}, G.IsBridge e → e ∈ G.edgeSet
theorem Graph.IsBridge.anti_of_mem E1 #
∀ {α : Type u_1} {β : Type u_2} {G H : Graph α β} {e : β}, H ≤ G → e ∈ H.edgeSet → G.IsBridge e → H.IsBridge e
theorem Graph.IsBridge.of_isClosedSubgraph E1 #
∀ {α : Type u_1} {β : Type u_2} {G H : Graph α β} {e : β}, H.IsClosedSubgraph G → H.IsBridge e → G.IsBridge e
theorem Graph.IsClosedSubgraph.isBridge_iff E0 #
∀ {α : Type u_1} {β : Type u_2} {G H : Graph α β} {e : β},
e ∈ H.edgeSet → H.IsClosedSubgraph G → (G.IsBridge e ↔ H.IsBridge e)
def Graph.IsBond E3 #
{α : Type u_1} → {β : Type u_2} → Graph α β → Set β → Prop
A bond of a graph is a minimal nonempty edge-cut; see [Diestel, Graph Theory, Section 1.9][diestel2025].
theorem Graph.IsBond.isEdgeCut E1 #
∀ {α : Type u_1} {β : Type u_2} {G : Graph α β} {B : Set β}, G.IsBond B → G.IsEdgeCut B
theorem Graph.IsBond.nonempty E1 #
∀ {α : Type u_1} {β : Type u_2} {G : Graph α β} {B : Set β}, G.IsBond B → B.Nonempty
theorem Graph.IsBond.subset E1 #
∀ {α : Type u_1} {β : Type u_2} {G : Graph α β} {B : Set β}, G.IsBond B → B ⊆ G.edgeSet
theorem Graph.isBond_singleton_iff_isBridge E1 #
∀ {α : Type u_1} {β : Type u_2} {G : Graph α β} {e : β}, G.IsBond {e} ↔ G.IsBridge e
theorem Graph.IsBridge.isBond_singleton E1 #
∀ {α : Type u_1} {β : Type u_2} {G : Graph α β} {e : β}, G.IsBridge e → G.IsBond {e}
Alias of the reverse direction of Graph.isBond_singleton_iff_isBridge.
theorem Graph.IsBond.isBridge_deleteEdges E1 #
∀ {α : Type u_1} {β : Type u_2} {G : Graph α β} {B : Set β} {e : β},
e ∈ B → G.IsBond B → (G.deleteEdges (B \ {e})).IsBridge e
theorem Graph.IsBond.of_isClosedSubgraph E1 #
∀ {α : Type u_1} {β : Type u_2} {G H : Graph α β} {B : Set β}, G.IsClosedSubgraph H → G.IsBond B → H.IsBond B
theorem Graph.IsClosedSubgraph.isBond E1 #
∀ {α : Type u_1} {β : Type u_2} {G H : Graph α β} {B : Set β}, G.IsClosedSubgraph H → G.IsBond B → H.IsBond B
Alias of Graph.IsBond.of_isClosedSubgraph.