?- dif(X-Y,1-2),X=Y, Y = 1. false. % incorrect This should succeed, like ?- X=Y, X=1, dif(X-Y,1-2). X = Y, Y = 1. Since 5.6.36 or earlier. i3a#332