The rewrite relation of the following TRS is considered.
f(a,a) | → | f(a,b) | (1) |
f(a,b) | → | f(s(a),c) | (2) |
f(s(X),c) | → | f(X,c) | (3) |
f(c,c) | → | f(a,a) | (4) |
[c] | = |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[f(x1, x2)] | = |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[s(x1)] | = |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[a] | = |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[b] | = |
|
f(s(X),c) | → | f(X,c) | (3) |
[c] | = |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[f(x1, x2)] | = |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[s(x1)] | = |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[a] | = |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[b] | = |
|
f(a,a) | → | f(a,b) | (1) |
prec(c) | = | 5 | weight(c) | = | 1 | ||||
prec(s) | = | 7 | weight(s) | = | 1 | ||||
prec(b) | = | 6 | weight(b) | = | 3 | ||||
prec(f) | = | 0 | weight(f) | = | 0 | ||||
prec(a) | = | 4 | weight(a) | = | 1 |
f(a,b) | → | f(s(a),c) | (2) |
f(c,c) | → | f(a,a) | (4) |
There are no rules in the TRS. Hence, it is terminating.