data BinTreeShape : Type Shapes of binary trees
Totality: total
Visibility: public export
Constructors:
LeafS : BinTreeShape NodeS : BinTreeShape -> BinTreeShape -> BinTreeShape
Hints:
Eq BinTreeShape Eq (BinTreePos b) Eq (BinTreePosNode b) Eq (BinTreePosLeaf b) MOrd (BinTreePos b) MOrd (BinTreePosNode b) MOrd (BinTreePosLeaf b) Show BinTreeShape Show (BinTreePos b) Show (BinTreePosNode b) Show (BinTreePosLeaf b)
numLeaves : BinTreeShape -> Nat- Visibility: public export
numNodes : BinTreeShape -> Nat- Visibility: public export
numNodesAndLeaves : BinTreeShape -> Nat- Visibility: public export
data BinTreePos : BinTreeShape -> Type Positions corresponding to both nodes and leaves within a BinTreeShape
Totality: total
Visibility: public export
Constructors:
AtLeaf : BinTreePos LeafS AtNode : BinTreePos (NodeS l r) GoLeft : BinTreePos l -> BinTreePos (NodeS l r) GoRight : BinTreePos r -> BinTreePos (NodeS l r)
Hints:
Eq (BinTreePos b) MOrd (BinTreePos b) Show (BinTreePos b)
data BinTreePosNode : BinTreeShape -> Type Positions corresponding to nodes within a BinTreeNode shape.
Totality: total
Visibility: public export
Constructors:
AtNode : BinTreePosNode (NodeS l r) GoLeft : BinTreePosNode l -> BinTreePosNode (NodeS l r) GoRight : BinTreePosNode r -> BinTreePosNode (NodeS l r)
Hints:
Eq (BinTreePosNode b) MOrd (BinTreePosNode b) Show (BinTreePosNode b)
data BinTreePosLeaf : BinTreeShape -> Type Positions corresponding to leaves within a BinTreeShape
Totality: total
Visibility: public export
Constructors:
AtLeaf : BinTreePosLeaf LeafS GoLeft : BinTreePosLeaf l -> BinTreePosLeaf (NodeS l r) GoRight : BinTreePosLeaf r -> BinTreePosLeaf (NodeS l r)
Hints:
Eq (BinTreePosLeaf b) MOrd (BinTreePosLeaf b) Show (BinTreePosLeaf b)