mk_ptreepatriciaLib.mk_ptree : term_ptree -> term
Term constructor for Patricia trees.
The constructor mk_ptree will return a HOL term that
corresponds with the supplied ML Patricia tree. The ML abstract data
type term_ptree is defined in patriciaLib.
The conversion will fail if the terms stored in the supplied Patricia tree do not all have the same type.
> patriciaLib.mk_ptree (patriciaLib.int_ptree_of_list [(1,``T``), (2, ``2``)]);
Exception- HOL_ERR at patriciaSyntax.mk_branch: raised
> patriciaLib.mk_ptree (patriciaLib.int_ptree_of_list [(1,``1``), (2, ``2``)]);
val it = “Branch 0 0 (Leaf 1 1) (Leaf 2 2)”: term
When working with large trees it is a good idea constrain term printing by setting Globals.max_print_depth.
patriciaLib.dest_ptree,
patriciaLib.is_ptree