fix proof of eq_same_type