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