Formalization of unification in Coq