mk_bool_caseboolSyntax.mk_bool_case : term * term * term -> term
Constructs a case expression over bool.
mk_bool_case M1 M2 b returns
bool_case M1 M2 b. The prettyprinter displays this as
case b of T -> M1 || F -> M2. The
bool_case constant may be thought of as a pattern-matching
version of the conditional.
Fails if b is not of type bool. Also fails
if M1 and M2 do not have the same type.
> mk_bool_case (Term`f x`,Term`b:'b`,Term`x:bool`);
val it = “if x then f x else b”: term
boolSyntax.dest_bool_case,
boolSyntax.is_bool_case