The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V30. Combinatorics

Mathlib.Combinatorics.Digraph.Orientation

9 declarations. Mathlib docs · Source

Graph Orientation

This module introduces conversion operations between Digraphs and SimpleGraphs, by forgetting the edge orientations of Digraph.

Main Definitions

  • Digraph.toSimpleGraphInclusive: Converts a Digraph to a SimpleGraph by creating an undirected edge if either orientation exists in the digraph.
  • Digraph.toSimpleGraphStrict: Converts a Digraph to a SimpleGraph by creating an undirected edge only if both orientations exist in the digraph.

TODO

  • Show that there is an isomorphism between loopless complete digraphs and oriented graphs.
  • Define more ways to orient a SimpleGraph.
  • Provide lemmas on how toSimpleGraphInclusive and toSimpleGraphStrict relate to other lattice structures on SimpleGraphs and Digraphs.

Tags

digraph, simple graph, oriented graphs

Orientation-forgetting maps on digraphs

def Digraph.toSimpleGraphInclusive E3 #

{V : Type u_1} → Digraph V → SimpleGraph V

Orientation-forgetting map from Digraph to SimpleGraph that gives an unoriented edge if either orientation is present.

def Digraph.toSimpleGraphStrict E3 #

{V : Type u_1} → Digraph V → SimpleGraph V

Orientation-forgetting map from Digraph to SimpleGraph that gives an unoriented edge if both orientations are present.

theorem Digraph.toSimpleGraphStrict_subgraph_toSimpleGraphInclusive E1 #

∀ {V : Type u_1} (G : Digraph V), G.toSimpleGraphStrict ≤ G.toSimpleGraphInclusive

theorem Digraph.toSimpleGraphInclusive_mono E1 #

∀ {V : Type u_1}, Monotone Digraph.toSimpleGraphInclusive

theorem Digraph.toSimpleGraphStrict_mono E1 #

∀ {V : Type u_1}, Monotone Digraph.toSimpleGraphStrict

theorem Digraph.toSimpleGraphInclusive_top E0 #

∀ {V : Type u_1}, ⊤.toSimpleGraphInclusive = ⊤

theorem Digraph.toSimpleGraphStrict_top E0 #

∀ {V : Type u_1}, ⊤.toSimpleGraphStrict = ⊤

theorem Digraph.toSimpleGraphInclusive_bot E0 #

∀ {V : Type u_1}, ⊥.toSimpleGraphInclusive = ⊥

theorem Digraph.toSimpleGraphStrict_bot E0 #

∀ {V : Type u_1}, ⊥.toSimpleGraphStrict = ⊥