The rewrite relation of the following TRS is considered.
if(true) | → | X | (1) |
if(false) | → | Y | (2) |
p(0) | → | 0 | (3) |
p(s(X)) | → | X | (4) |
leq(0,Y) | → | true | (5) |
leq(s(X),0) | → | false | (6) |
leq(s(X),s(Y)) | → | leq(X,Y) | (7) |
diff(X,Y) | → | if(leq(X,Y)) | (8) |
The TRS violates one of the two variable conditions. Thus, it is not terminating.