simple theorem about unifying a term with itself, moved from CakeML