The rewrite relation of the following TRS is considered.
tail(cons(X)) | → | XS | (1) |
nats | → | cons(0) | (2) |
pairs | → | cons(0) | (3) |
odds | → | incr(pairs) | (4) |
incr(cons(X)) | → | cons(s(X)) | (5) |
head(cons(X)) | → | X | (6) |
The TRS violates one of the two variable conditions. Thus, it is not terminating.