Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

is_vartype

Type.is_vartype : hol_type -> bool

Tests a type to see if it is a type variable.

Failure

Never fails.

Example

> is_vartype Type.alpha;
val it = true: bool

> is_vartype bool;
val it = false: bool

> is_vartype (Type `:'a  -> bool`);
val it = false: bool

See also

Type.mk_vartype, Type.dest_vartype