Rooted Trees #
This file defines planar rooted trees together with the equivalence relation generated by permuting the children at each vertex. The quotient by this relation is the type of non-planar rooted trees.
The type RootedTree contains non-empty rooted trees. The empty tree used in
B-series indexing is adjoined separately as TreeIndex.empty.
Main definitions #
PTree- non-empty planar rooted treesPTree.Perm- equivalence relation forgetting the planar embeddingRootedTree- non-empty non-planar rooted treesTreeIndex- rooted trees with an adjoined empty tree
References #
- John C. Butcher, Numerical Methods for Ordinary Differential Equations
- Philippe Chartier, Ernst Hairer, Gilles Vilmart, Algebraic Structures of B-series
Equations
- HopfAlgebras.instReprPTree = { reprPrec := HopfAlgebras.instReprPTree.repr }
t1.Perm t2 means that t1 and t2 differ only by permuting the children at
each vertex, recursively.
- node {ts1 ts2 ts1' : List PTree} : ts1.Perm ts1' → List.Forall₂ Perm ts1' ts2 → (PTree.node ts1).Perm (PTree.node ts2)
Instances For
The one-vertex planar rooted tree.
Instances For
A two-vertex planar rooted tree.
Instances For
A three-vertex planar chain.
Instances For
A root with two bullet children.
Equations
Instances For
The number of vertices of a planar rooted tree.
Equations
Instances For
The sum of the orders of a list of planar rooted trees.
Equations
Instances For
The ordered list of subtrees at the root.
Equations
- (HopfAlgebras.PTree.node a).children = a
Instances For
Butcher's tree factorial.
Equations
Instances For
The product of tree factorials over a list of planar rooted trees.
Equations
Instances For
Attach an ordered forest as the first children of the root of a planar tree.
Equations
Instances For
If a relation R holds elementwise between l1 and l2, then after
permuting l2 we can permute l1 so that R still holds elementwise.
Lists related elementwise up to a permutation of the left list.
Equations
- HopfAlgebras.PTree.ListRelPerm R xs ys = ∃ (xs' : List α), xs.Perm xs' ∧ List.Forall₂ R xs' ys
Instances For
treeFactorialList is invariant under permuting a list of planar trees.
Elementwise reflexivity for PTree.Perm.
Elementwise symmetry for PTree.Perm.
PTree.Perm is symmetric.
Elementwise transitivity for PTree.Perm.
PTree.Perm is transitive.
PTree.Perm preserves the number of vertices.
Elementwise PTree.Perm preserves the total number of vertices.
PTree.Perm preserves Butcher's tree factorial.
Elementwise PTree.Perm preserves the product of tree factorials.
Equations
If the children are pairwise permutation-equivalent, then the nodes are too.
Non-empty non-planar rooted trees are planar rooted trees modulo PTree.Perm.
Equations
Instances For
The quotient map from planar rooted trees to non-planar rooted trees.
Equations
Instances For
The one-vertex non-planar rooted tree.
Instances For
The two-vertex non-planar rooted tree.
Instances For
The three-vertex non-planar chain.
Instances For
A root with two bullet children.
Instances For
The number of vertices of a non-planar rooted tree.
Instances For
Predicate for non-empty rooted trees of a fixed order.
Instances For
Butcher's tree factorial for non-planar rooted trees.
Instances For
Rooted trees with an adjoined empty tree, as used for B-series coefficients.
- empty : TreeIndex
- tree : RootedTree → TreeIndex
Instances For
The one-vertex tree as a B-series index.
Instances For
The two-vertex tree as a B-series index.
Instances For
The three-vertex chain as a B-series index.
Instances For
The cherry tree as a B-series index.
Instances For
The order of a B-series tree index.
Equations
Instances For
Butcher's tree factorial for B-series tree indices.