section ‹Trees› theory Tree imports Main begin text ‹Sometimes it is nice to think of @{typ bool}s as directions in a binary tree› hide_const (open) Left Right type_synonym dir = bool definition Left :: bool where "Left = True" definition Right :: bool where "Right = False" declare Left_def [simp] declare Right_def [simp]