The rewrite relation of the following TRS is considered.
p(a(a(x0)),p(x1,p(a(x2),x3))) | → | p(x2,p(a(a(b(x1))),p(a(a(x0)),x3))) | (1) |
p#(a(a(x0)),p(x1,p(a(x2),x3))) | → | p#(x2,p(a(a(b(x1))),p(a(a(x0)),x3))) | (2) |
p#(a(a(x0)),p(x1,p(a(x2),x3))) | → | p#(a(a(b(x1))),p(a(a(x0)),x3)) | (3) |
p#(a(a(x0)),p(x1,p(a(x2),x3))) | → | p#(a(a(x0)),x3) | (4) |
[p(x1, x2)] | = | 1 + 2 · x1 + 1 · x2 |
[a(x1)] | = | 1 · x1 |
[b(x1)] | = | 1 · x1 |
[p#(x1, x2)] | = | 2 · x1 + 1 · x2 |
p#(a(a(x0)),p(x1,p(a(x2),x3))) | → | p#(a(a(b(x1))),p(a(a(x0)),x3)) | (3) |
p#(a(a(x0)),p(x1,p(a(x2),x3))) | → | p#(a(a(x0)),x3) | (4) |
[p#(x1, x2)] | = | 0 + 1/4 · x1 + 1/2 · x2 |
[a(x1)] | = | 1/4 + 4 · x1 |
[p(x1, x2)] | = | 0 + 1/4 · x1 + 1/2 · x2 |
[b(x1)] | = | 0 + 0 · x1 |
p#(a(a(x0)),p(x1,p(a(x2),x3))) | → | p#(x2,p(a(a(b(x1))),p(a(a(x0)),x3))) | (2) |
There are no pairs anymore.