1 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3 %% simple constraint solver for inequalities between variables
4 %% thom fruehwirth ECRC 950519, LMU 980207, 980311
6 %% ported to hProlog by Tom Schrijvers
8 :- module(leq,[leq/0]).
9 :- use_module(library(chr)).
13 reflexivity @ leq(X,X) <=> true.
14 antisymmetry @ leq(X,Y), leq(Y,X) <=> X = Y.
15 idempotence @ leq(X,Y) \ leq(X,Y) <=> true.
16 transitivity @ leq(X,Y), leq(Y,Z) ==> leq(X,Z).