Did you know ... Search Documentation:
Pack anti_unify -- prolog/anti_unify.pl
PublicShow source
 anti_unify(?A, ?B, ?LGG) is semidet
anti_unify/3 maintains the relation that LGG is the least general generalization of A and B.

See the unit tests for examples.