Rooted forests through ancestor relations
Lax183560.AncestorForest · concepts/Lax183560/AncestorForest.lean · lax-183560
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Definition
A strict ancestor relation of a rooted forest is transitive and irreflexive, and the ancestors of each vertex are linearly ordered. On a finite vertex set, these conditions characterize the strict ancestor relations of rooted forests.
Concept map
Lean source view on GitHub
| 1 | import Mathlib.Combinatorics.SimpleGraph.Basic |
| 2 | |
| 3 | /-! |
| 4 | --- |
| 5 | title: Rooted forests through ancestor relations |
| 6 | type: definition |
| 7 | --- |
| 8 | A strict ancestor relation of a rooted forest is transitive and irreflexive, |
| 9 | and the ancestors of each vertex are linearly ordered. On a finite vertex |
| 10 | set, these conditions characterize the strict ancestor relations of rooted |
| 11 | forests. |
| 12 | -/ |
| 13 | |
| 14 | namespace Lax183560.AncestorForest |
| 15 | |
| 16 | /-- A strict ancestor relation of a rooted forest on `V`. -/ |
| 17 | structure AncestorForest (V : Type) where |
| 18 | ancestor : V → V → Prop |
| 19 | transitive : IsTrans V ancestor |
| 20 | irreflexive : Std.Irrefl ancestor |
| 21 | ancestors_linearly_ordered : ∀ u v w : V, |
| 22 | (ancestor u w ∧ ancestor v w) → (u = v ∨ ancestor u v ∨ ancestor v u) |
| 23 | |
| 24 | |
| 25 | end Lax183560.AncestorForest |
| 26 |
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments