The rewrite relation of the following TRS is considered.
| f(s(X)) | → | f(X) | (1) |
| g(cons(0,Y)) | → | g(Y) | (2) |
| g(cons(s(X),Y)) | → | s(X) | (3) |
| h(cons(X,Y)) | → | h(g(cons(X,Y))) | (4) |
| [g(x1)] | = |
|
||||||||||||||||||||||||||||||||||||
| [f(x1)] | = |
|
||||||||||||||||||||||||||||||||||||
| [cons(x1, x2)] | = |
|
||||||||||||||||||||||||||||||||||||
| [h(x1)] | = |
|
||||||||||||||||||||||||||||||||||||
| [s(x1)] | = |
|
||||||||||||||||||||||||||||||||||||
| [0] | = |
|
| f(s(X)) | → | f(X) | (1) |
| g(cons(0,Y)) | → | g(Y) | (2) |
| g(cons(s(X),Y)) | → | s(X) | (3) |
| [g(x1)] | = |
|
||||||||||||||||||||||||||||||||||||
| [cons(x1, x2)] | = |
|
||||||||||||||||||||||||||||||||||||
| [h(x1)] | = |
|
| h(cons(X,Y)) | → | h(g(cons(X,Y))) | (4) |
There are no rules in the TRS. Hence, it is terminating.