The rewrite relation of the following TRS is considered.
f(c(s(x),y)) | → | f(c(x,s(y))) | (1) |
g(c(x,s(y))) | → | g(c(s(x),y)) | (2) |
The TRS is overlay and locally confluent:
10Hence, it suffices to show innermost termination in the following.
f#(c(s(x),y)) | → | f#(c(x,s(y))) | (3) |
g#(c(x,s(y))) | → | g#(c(s(x),y)) | (4) |
The dependency pairs are split into 2 components.
f#(c(s(x),y)) | → | f#(c(x,s(y))) | (3) |
We restrict the rewrite rules to the following usable rules of the DP problem.
There are no rules.
We restrict the innermost strategy to the following left hand sides.
There are no lhss.
prec(f#) | = | 0 | weight(f#) | = | 1 | ||||
prec(s) | = | 2 | weight(s) | = | 1 | ||||
prec(c) | = | 1 | weight(c) | = | 0 |
f#(c(s(x),y)) | → | f#(c(x,s(y))) | (3) |
f(c(s(x),y)) | → | f(c(x,s(y))) | (1) |
g(c(x,s(y))) | → | g(c(s(x),y)) | (2) |
There are no pairs anymore.
g#(c(x,s(y))) | → | g#(c(s(x),y)) | (4) |
We restrict the rewrite rules to the following usable rules of the DP problem.
There are no rules.
We restrict the innermost strategy to the following left hand sides.
There are no lhss.
[g#(x1)] | = | 2 · x1 |
[c(x1, x2)] | = | 1 · x1 + 2 · x2 |
[s(x1)] | = | 2 + 1 · x1 |
g#(c(x,s(y))) | → | g#(c(s(x),y)) | (4) |
f(c(s(x),y)) | → | f(c(x,s(y))) | (1) |
g(c(x,s(y))) | → | g(c(s(x),y)) | (2) |
There are no pairs anymore.