Exercise · Volume 1 · 2.3-12
Exercise 2.3-12
not stated yet in Lean solution written
| Rating | M23 |
|---|---|
| Markers | M (mathematical) |
| Kind | K1, prove: show that a stated fact is true from the written solution |
| Section | Section 2.3 of Volume 1 |
The task
Find the condition that a partially ordered set must satisfy to correspond to an unordered tree or an unordered forest.
The exact wording is in your copy of the book.
Hints
Open one hint at a time. Try the exercise again after each.
Hint 1
In a forest, the ancestors of a node are linearly ordered. Make this the condition on the poset.
Hint 2
Define the parent of as the smallest element above .
Solution
Show the solution
Let be a partial order on a finite set . Write for and , and read as " is an ancestor of ".
Condition. For every the set is a chain, that is, any two of its elements are comparable. In other words, if and then or .
Claim. A finite poset corresponds to an unordered forest if and only if the condition holds. It corresponds to a tree if and only if the condition holds and has a largest element.
Proof, forest to poset. In a finite unordered forest let mean that is an ancestor of or . This is reflexive. It is transitive, because an ancestor of an ancestor is an ancestor. It is antisymmetric, because the level of a proper ancestor is smaller. The set is the set of nodes on the path from up to its root. By exercise 2.3-3 this path is a chain.
Proof, poset to forest. Let the condition hold. For the set is a finite chain. If it is not empty, it has a smallest element. Call it the parent of . If it is empty, call a root. Then the chain is , its parent, the parent of its parent, and so on up to a root. This is the path from to a root. So each element has at most one parent, and the elements above are exactly the ancestors in this parent relation. The elements with the same root form a tree. So is a forest, and its order relation is the ancestor relation.
The poset is one tree when there is one root. If has a largest element , then for every , and the top of the chain is , so is the only root. Conversely, with one root , every has at the top of its chain, so is largest.
The condition fails in a poset with elements where , and are not comparable. In it has two parents, which no forest allows.
Check
Python3 listed all partial orders on labelled elements for and kept those where each set is a chain. The counts of partial orders are . The counts that satisfy the condition are . These equal , which is the number of unordered rooted forests on labelled nodes.
Remarks
The infinite case needs one more condition, because a chain above may have no smallest element. See exercise 2.3-11 for nodes without parents.
This solution is drafted, and a person has not reviewed it yet. The source.
In Lean
not stated yet The exercise is not stated in Lean yet.
The status is computed from the Lean build. The node of the map.
Something is wrong? Report it.