Holds if reference type t is an immediate super-type of sub.
t
sub
predicate hasSubtype(RefType t, Type sub)