The areas / V30. Combinatorics
Mathlib.Combinatorics.Graph.Lattice
9 declarations. Mathlib docs · Source
Intersection and union of graphs
This file defines the lattice-like structures on graphs.
Main results
SemilatticeInf (Graph α β)
Implementation notes
Intersections are defined here as the maximal mutual subgraph of the given graphs. This has the effect of, when taking the intersection of non-compatible graphs, any non-compatible edges are removed.
TODO
- Add
ConditionallyCompleteCompleteLatticeInf (Graph α β)after splittingConditionallyCompleteCompleteLattice.
instance Graph.instSemilatticeInf E0 #
{α : Type u_1} → {β : Type u_2} → SemilatticeInf (Graph α β)
The infimum of two graphs G and H. The edges are precisely those on which G and H agree,
and the edge set is a subset of E(G) ∩ E(H), with equality if G and H are compatible.
theorem Graph.vertexSet_inf E0 #
∀ {α : Type u_1} {β : Type u_2} (G H : Graph α β), (G ⊓ H).vertexSet = G.vertexSet ∩ H.vertexSet
theorem Graph.edgeSet_inf E1 #
∀ {α : Type u_1} {β : Type u_2} (G H : Graph α β),
(G ⊓ H).edgeSet = {e | e ∈ G.edgeSet ∩ H.edgeSet ∧ ∀ (x y : α), G.IsLink e x y ↔ H.IsLink e x y}
theorem Graph.inf_isLink E0 #
∀ {α : Type u_1} {β : Type u_2} {x y : α} {e : β} {G H : Graph α β},
(G ⊓ H).IsLink e x y ↔ G.IsLink e x y ∧ H.IsLink e x y
theorem Graph.inf_inc_iff E0 #
∀ {α : Type u_1} {β : Type u_2} {x : α} {e : β} {G H : Graph α β},
(G ⊓ H).Inc e x ↔ ∃ y, G.IsLink e x y ∧ H.IsLink e x y
theorem Graph.inf_isLoopAt_iff E0 #
∀ {α : Type u_1} {β : Type u_2} {x : α} {e : β} {G H : Graph α β},
(G ⊓ H).IsLoopAt e x ↔ G.IsLoopAt e x ∧ H.IsLoopAt e x
theorem Graph.inf_isNonloopAt_iff E0 #
∀ {α : Type u_1} {β : Type u_2} {x : α} {e : β} {G H : Graph α β},
(G ⊓ H).IsNonloopAt e x ↔ ∃ y, y ≠ x ∧ G.IsLink e x y ∧ H.IsLink e x y
theorem Graph.disjoint_iff E0 #
∀ {α : Type u_1} {β : Type u_2} {G H : Graph α β}, Disjoint G H ↔ Disjoint G.vertexSet H.vertexSet
theorem Graph.Compatible.edgeSet_inf E1 #
∀ {α : Type u_1} {β : Type u_2} {G H : Graph α β}, G.Compatible H → (G ⊓ H).edgeSet = G.edgeSet ∩ H.edgeSet