Unification of terms S and T
Terms S and T unify if and only if:
- S and T are both constants, and they are the same object; or
- S is uninstantiated. Substitute T for S ; or
- T is uninstantiated. Substitute S for T ; or
- S and T are structures, have same principal functor, and the corresponding components unify.