Symmetric loopless digraph
Lax683916.SymmetricLooplessDigraphs · concepts/Lax683916/SymmetricLooplessDigraphs.lean · lax-683916
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Definition
A symmetric loopless digraph is a directed graph in which every arrow is accompanied by its reverse and no vertex has an arrow to itself.
Concept map
Lean source view on GitHub
| 1 | import Mathlib.Combinatorics.Digraph.Basic |
| 2 | |
| 3 | /-! |
| 4 | --- |
| 5 | title: Symmetric loopless digraph |
| 6 | type: definition |
| 7 | --- |
| 8 | A symmetric loopless digraph is a directed graph in which every arrow is |
| 9 | accompanied by its reverse and no vertex has an arrow to itself. |
| 10 | |
| 11 | # Formalization notes |
| 12 | |
| 13 | The directed graph is bundled with symmetry and irreflexivity of its |
| 14 | adjacency relation. These are exactly the two laws carried by a simple graph, |
| 15 | but the bundle keeps the underlying object visibly in `Digraph V`. |
| 16 | -/ |
| 17 | |
| 18 | namespace Lax683916.SymmetricLooplessDigraphs |
| 19 | |
| 20 | /-- A directed graph whose adjacency relation is symmetric and irreflexive. -/ |
| 21 | structure SymmetricLooplessDigraph (V : Type*) where |
| 22 | /-- The underlying directed graph. -/ |
| 23 | graph : Digraph V |
| 24 | /-- Every directed edge occurs in both orientations. -/ |
| 25 | symm : Std.Symm graph.Adj |
| 26 | /-- No vertex is adjacent to itself. -/ |
| 27 | loopless : Std.Irrefl graph.Adj |
| 28 | |
| 29 | end Lax683916.SymmetricLooplessDigraphs |
| 30 |
Formalization notes
The directed graph is bundled with symmetry and irreflexivity of its adjacency relation. These are exactly the two laws carried by a simple graph, but the bundle keeps the underlying object visibly in .
Builds on
none
From Mathlib
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments