type_vars_in_term : term -> hol_type list
# type_vars_in_term `!x:A. x = x`;; val it : hol_type list = [`:A`]
# tyvars(type_of `!x:A. x = x`);; val it : hol_type list = []