Cardinality of the leaf carrier #
PlaneTree.leafCount is the recursive paper-facing number of leaves, while
PlaneTree.Leaves is the finite subtype used by the Lean implementation.
This file proves that the two notions agree for every plane tree, including
invalid trees with unary vertices.
The root-subtree bridge #
@[simp]
Every leaf lies under the root.
@[simp]
The leaves below the root are all paper leaves.