This Lean 4 project formalizes a mathematical structure
BinaryTreeWithRootandTops, which models a rooted, ordered
binary tree whose nodes are pairs of disjoint, nonempty, finite
subsets of a finite set Childs of “children,” together with a
distinguished set of “tops” acting as the leaves of the tree.
This is closely related with laminar families
(https://en.wikipedia.org/wiki/Laminar_set_family ) of subsets
of the set Childs: Every laminar family of subsets has a rooted
tree-representation, see Alexander Schrijver. Combinatorial
Optimization: Polyhedra and Efficiency, 2004, page 215, Theorem
13.21.
See the accompanying LaTeX document manual.tex, which
provides diagrams and detailed formal notation.
- Lean 4 definition of
BinaryTreeWithRootandTops - Full formalization of its fields:
Childs: the ground finite set of atomsRoot: the initial split ofChildsBranches: all pairs that describe the treeTops: the distinguished singleton leaves
- Formal proofs of its structural invariants:
- nonempty, disjoint pairs
- the laminar nesting of supports
- the recursive branching property
- Existence theorem:
exists_tree_childs_eq_C_and_all_childs_in_Tops_of_card_ge_twoAny finite set
Childswith at least two elements has a aBinaryTreeWithRootandTopswhoseTopsequals the entire setChilds(a maximal tree). This is rooted tree-representationrelated of a maximal laminar family of subsets of the finite setChilds.
Childs = {1,2,3,4,5,6,7}
Root = ({1,2,3}, {4,5,6,7})
Branches:
({1,2,3},{4,5,6,7})
({1,2},{3})
({4,5},{6,7})
({1},{2})
({4},{5})
({6},{7})
Tops = {1,2,3,4,5,6,7}
Its tree structure is:
This is a rooted tree-representation of the maximal laminar family {1,2,3,4,5,6,7}, {1,2,3}, {4,5,6,7}, {1,2}, {4,5}, {6,7}, {1},{2},{3},{4},{5},{6},{7}