Quantitative counting for the Hepp-tree carrier #
Paper: L-5.2 — tree counting via the Dyck-word injection
This is paper Lemma 5.2 for Anderson4D.PlaneTree, the carrier used by the
formalization.
A valid tree with at most r leaves is injected into
Fin (4 * r + 1) × (Fin (4 * r) → Bool) through the balanced-parentheses
key. This gives the explicit bound 4 ^ (4 * r). The final declarations
package the sets of trees with at most, and exactly, r leaves as actual
Finset PlaneTrees.
Size and key bounds on the real carrier #
Explicit encoding and cardinality #
Bounded binary-word code used to count ValidTreesAtMost r.
Equations
Instances For
The bounded binary-word code is injective.
Quantitative real-carrier version of paper Lemma 5.2.
The actual finite set of valid real-carrier trees with at most r
leaves.
Equations
- Anderson4D.PlaneTree.validTreesAtMost r = Finset.image (fun (t : Anderson4D.PlaneTree.ValidTreesAtMost r) => ↑t) Finset.univ
Instances For
Cardinality bound for the concrete Finset of valid trees with at most
r leaves.
The actual finite set of valid real-carrier trees with exactly r
leaves.
Equations
Instances For
Cardinality bound for valid real-carrier trees with exactly r leaves.