The rewrite relation of the following TRS is considered.
f(f(a,x),a) | → | f(a,f(f(a,f(a,a)),x)) | (1) |
We uncurry the binary symbol f in combination with the following symbol map which also determines the applicative arities of these symbols.
a | is mapped to | a, | a1(x1), | a2(x1, x2) |
a2(x,a) | → | a1(a2(a1(a),x)) | (4) |
f(a,y1) | → | a1(y1) | (2) |
f(a1(x0),y1) | → | a2(x0,y1) | (3) |
[a2(x1, x2)] | = | 1 + 2 · x1 + 2 · x2 |
[a] | = | 1 |
[a1(x1)] | = | 1 · x1 |
[f(x1, x2)] | = | 2 + 2 · x1 + 2 · x2 |
f(a,y1) | → | a1(y1) | (2) |
f(a1(x0),y1) | → | a2(x0,y1) | (3) |
The TRS is overlay and locally confluent:
10Hence, it suffices to show innermost termination in the following.
a2#(x,a) | → | a2#(a1(a),x) | (5) |
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(a2#) | = | 1 | stat(a2#) | = | mul | |
prec(a) | = | 1 | stat(a) | = | mul | |
prec(a1) | = | 0 | stat(a1) | = | mul |
π(a2#) | = | [1,2] |
π(a) | = | [] |
π(a1) | = | [] |
a2#(x,a) | → | a2#(a1(a),x) | (5) |
There are no pairs anymore.