Origin Definitions Sections MarkB generic Doc
IF YOU CAN SEE THIS go to /sfa/Nuprl/Shared/Xindentation_hack_doc.html
mb_tree
Nuprl Section: mb_tree - Binary Trees (Mark Bickford)

Selected Objects
deftree_con tree_con(E;T) == E+(TT)
deftree_leaf tree_leaf(x) == inl(x)
defcase_tree_leaf Case tree_leaf(x) => body(xcont(x1,z)
== InjCase(x1x2body(x2); _cont(z,z))
deftree_node tree_node(x) == inr(x)
deftree Tree(E) == rec(T.tree_con(E;T))
THMtree_subtype2 tree_con(E;Tree(E))  Tree(E)
defnode tree_node(<xy>) == tree_node(<x,y>)
defcase_node Case x;y => body(x;ycont(x1,z)
== InjCase(x1_cont(z,z); x2x2/x3,x2@0body(x3;x2@0))
deft_iterate t_iterate(l;n;t)
== Case(t)
== Case x;y =>
== Casen(t_iterate(l;n;x),t_iterate(l;n;y))
== Case tree_leaf(x) =>
== Casel(x)
== Default => True
(recursive)
defis_leaf is_leaf(t) == Case(t) Case tree_leaf(l) => true Default => false
defleft_child left_child(t) == Case(t) Case x;y => x Default => t
defright_child right_child(t) == Case(t) Case x;y => y Default => t
defleaf_value leaf_value(t) == Case(t) Case tree_leaf(l) => l Default => True
THMtree_leaf_one_one x1,x2:E. tree_leaf(x1) = tree_leaf(x2 Tree(E x1 = x2
IF YOU CAN SEE THIS go to /sfa/Nuprl/Shared/Xindentation_hack_doc.html

Origin Definitions Sections MarkB generic Doc