Documentation

Anderson4D.HeppTree.LeafCard

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 finite leaf carrier has exactly the recursive paper-facing leaf count. No Hepp-validity assumption is needed.

Lower-case compatibility spelling used by the Hepp-tree cardinality lemmas.

The root-subtree bridge #

@[simp]

Every leaf lies under the root.

@[simp]

The leaves below the root are all paper leaves.