The rewrite relation of the following TRS is considered.
f(0) | → | true | (1) |
f(1) | → | false | (2) |
f(s(x)) | → | f(x) | (3) |
if(true,x,y) | → | x | (4) |
if(false,x,y) | → | y | (5) |
g(s(x),s(y)) | → | if(f(x),s(x),s(y)) | (6) |
g(x,c(y)) | → | g(x,g(s(c(y)),y)) | (7) |
g#(s(x),s(y)) | → | f#(x) | (8) |
f#(s(x)) | → | f#(x) | (9) |
g#(x,c(y)) | → | g#(x,g(s(c(y)),y)) | (10) |
g#(s(x),s(y)) | → | if#(f(x),s(x),s(y)) | (11) |
g#(x,c(y)) | → | g#(s(c(y)),y) | (12) |
The dependency pairs are split into 2 components.
g#(x,c(y)) | → | g#(s(c(y)),y) | (12) |
g#(x,c(y)) | → | g#(x,g(s(c(y)),y)) | (10) |
[1] | = | 1 |
[s(x1)] | = | 1 |
[false] | = | 41063 |
[c(x1)] | = | x1 + 41065 |
[true] | = | 41063 |
[f(x1)] | = | 41063 |
[0] | = | 1 |
[if(x1, x2, x3)] | = | x1 + x2 + x3 + 0 |
[f#(x1)] | = | 0 |
[g#(x1, x2)] | = | x2 + 0 |
[if#(x1, x2, x3)] | = | 0 |
[g(x1, x2)] | = | x1 + x2 + 41063 |
if(true,x,y) | → | x | (4) |
f(0) | → | true | (1) |
f(s(x)) | → | f(x) | (3) |
if(false,x,y) | → | y | (5) |
g(x,c(y)) | → | g(x,g(s(c(y)),y)) | (7) |
g(s(x),s(y)) | → | if(f(x),s(x),s(y)) | (6) |
f(1) | → | false | (2) |
g#(x,c(y)) | → | g#(s(c(y)),y) | (12) |
g#(x,c(y)) | → | g#(x,g(s(c(y)),y)) | (10) |
The dependency pairs are split into 0 components.
f#(s(x)) | → | f#(x) | (9) |
[1] | = | 0 |
[s(x1)] | = | x1 + 1 |
[false] | = | 2 |
[c(x1)] | = | x1 + 0 |
[true] | = | 1 |
[f(x1)] | = | x1 + 2 |
[0] | = | 0 |
[if(x1, x2, x3)] | = | x1 + x2 + 0 |
[f#(x1)] | = | x1 + 0 |
[g#(x1, x2)] | = | 0 |
[if#(x1, x2, x3)] | = | 0 |
[g(x1, x2)] | = | x1 + x2 + 0 |
f(0) | → | true | (1) |
f(s(x)) | → | f(x) | (3) |
f(1) | → | false | (2) |
f#(s(x)) | → | f#(x) | (9) |
The dependency pairs are split into 0 components.