lemmas for subst of types in terms