Term1 == Term2:
The terms Term1 and Term2 are strictly identical.
Term1 \== Term2:
The terms Term1 and Term2 are not strictly identical.
Term1 @< Term2:
The term Term1 precedes the term Term2 in the standard order.
Term1 @=< Term2:
The term Term1 either precedes, or is identical to, the term Term2 in the standard order.
Term1 @> Term2:
The term Term1 follows the term Term2 in the standard order.
Term1 @>= Term2:
The term Term1 either follows, or is identical to, the term Term2 in the standard order.
$var(N0), the second variable is bound to $var(N1), and so on. Different variables receive different numberings. All occurrences of the same variable receive the same numbering. (not in ISO).
$var(N) being replaced by Prolog variables. Different numbered variables are replaced by different Prolog variables.
Number the variables in Term by using the integers starting from N0. N is the next integer that is available after the term is numbered. Let N0, N1, ..., N-1 be the sequence of integers. The first variable is bound to the term $var(N0), the second variable is bound to $var(N1), and so on. Different variables receive different numberings. All occurrences of the same variable all receive the same numbering. (not in ISO).
Neng-Fa Zhou 2013-01-25