Ordering bound for Hepp trees #
This file formalizes paper §5.3, Step 3, equation (5.21), on the real
Anderson4D.PlaneTree carrier. Local permutations of the children at every
vertex are encoded by a target plane tree together with an isomorphism from
the original unordered tree. For each fixed target the isomorphism set is a
torsor for Aut(t), while the possible valid targets are bounded by
TreeCountReal.card_validTreesExactly_le.
Local ordering choices #
The tree/list mutual definitions are structural. This is important here:
using a nested Fin cs.length → ... recursive definition would elaborate by
well-founded recursion and would not reduce while building the finite
instances.
A permutation at a root together with local choices in its child forest.
Equations
Instances For
Local ordering choices for a forest, as a structural dependent product.
Equations
Instances For
Equations
Instances For
Equations
Instances For
Equations
View structural forest choices as a dependent function over child indices.
Equations
Instances For
Build structural forest choices from a dependent function over indices.
Equations
- Anderson4D.PlaneTree.localOrderingListOfPi x_2 = PUnit.unit
- Anderson4D.PlaneTree.localOrderingListOfPi f = (f 0, Anderson4D.PlaneTree.localOrderingListOfPi fun (i : Fin tail.length) => f i.succ)
Instances For
The recursive product of all child-count factorials.
Equations
Instances For
The local-ordering type has the expected product-factorial cardinality.
Realizing an ordering as a target plane tree plus an isomorphism #
Realize all local ordering choices as a plane presentation of the same unordered rooted tree, retaining the induced isomorphism.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Split a target isomorphism back into local ordering choices.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Decoding the target and isomorphism produced by an ordering recovers the
ordering. Consequently realizeLocalOrdering is injective.
Isomorphism invariants needed to restrict the target #
Counting the ordering choices by their valid targets #
A valid plane presentation with the same leaf count as t, together
with an unordered-tree isomorphism from t.
Equations
- t.OrderedIsoTarget = ((s : ↥(Anderson4D.PlaneTree.validTreesExactly t.leafCount)) × t.Iso ↑s)
Instances For
Equations
Restrict the realized ordering to the finite set of valid targets.
Equations
- t.realizeValidLocalOrdering ht o = ⟨⟨(t.realizeLocalOrdering o).fst, ⋯⟩, (t.realizeLocalOrdering o).snd⟩
Instances For
Every valid target contributes at most |Aut(t)| isomorphisms.
Identification with the branching-vertex product #
The recursive ordering factor is the product of the factorial of the child count over all vertices.
Vertices outside BranchNodes have zero or one child, hence contribute
factorial one.
Paper §5.3 Step 3, equation (5.21), on the real PlaneTree carrier.