The rewrite relation of the following TRS is considered.
-(x,0) | → | x | (1) |
-(s(x),s(y)) | → | -(x,y) | (2) |
<=(0,y) | → | true | (3) |
<=(s(x),0) | → | false | (4) |
<=(s(x),s(y)) | → | <=(x,y) | (5) |
if(true,x,y) | → | x | (6) |
if(false,x,y) | → | y | (7) |
perfectp(0) | → | false | (8) |
perfectp(s(x)) | → | f(x,s(0),s(x),s(x)) | (9) |
f(0,y,0,u) | → | true | (10) |
f(0,y,s(z),u) | → | false | (11) |
f(s(x),0,z,u) | → | f(x,u,-(z,s(x)),u) | (12) |
f(s(x),s(y),z,u) | → | if(<=(x,y),f(s(x),-(y,x),z,u),f(x,u,z,u)) | (13) |
f#(s(x),s(y),z,u) | → | if#(<=(x,y),f(s(x),-(y,x),z,u),f(x,u,z,u)) | (14) |
f#(s(x),s(y),z,u) | → | f#(x,u,z,u) | (15) |
f#(s(x),0,z,u) | → | -#(z,s(x)) | (16) |
perfectp#(s(x)) | → | f#(x,s(0),s(x),s(x)) | (17) |
<=#(s(x),s(y)) | → | <=#(x,y) | (18) |
f#(s(x),s(y),z,u) | → | -#(y,x) | (19) |
f#(s(x),s(y),z,u) | → | <=#(x,y) | (20) |
-#(s(x),s(y)) | → | -#(x,y) | (21) |
f#(s(x),0,z,u) | → | f#(x,u,-(z,s(x)),u) | (22) |
f#(s(x),s(y),z,u) | → | f#(s(x),-(y,x),z,u) | (23) |
The dependency pairs are split into 3 components.
f#(s(x),s(y),z,u) | → | f#(s(x),-(y,x),z,u) | (23) |
f#(s(x),0,z,u) | → | f#(x,u,-(z,s(x)),u) | (22) |
f#(s(x),s(y),z,u) | → | f#(x,u,z,u) | (15) |
[s(x1)] | = | x1 + 1 |
[<=(x1, x2)] | = | 0 |
[perfectp#(x1)] | = | 0 |
[false] | = | 0 |
[<=#(x1, x2)] | = | 0 |
[true] | = | 0 |
[f(x1,...,x4)] | = | 0 |
[0] | = | 2 |
[if(x1, x2, x3)] | = | 0 |
[-(x1, x2)] | = | x2 + 1 |
[f#(x1,...,x4)] | = | x1 + 0 |
[-#(x1, x2)] | = | 0 |
[if#(x1, x2, x3)] | = | 0 |
[perfectp(x1)] | = | 0 |
f#(s(x),0,z,u) | → | f#(x,u,-(z,s(x)),u) | (22) |
f#(s(x),s(y),z,u) | → | f#(x,u,z,u) | (15) |
The dependency pairs are split into 1 component.
f#(s(x),s(y),z,u) | → | f#(s(x),-(y,x),z,u) | (23) |
[s(x1)] | = | x1 + 2 |
[<=(x1, x2)] | = | 0 |
[perfectp#(x1)] | = | 0 |
[false] | = | 0 |
[<=#(x1, x2)] | = | 0 |
[true] | = | 0 |
[f(x1,...,x4)] | = | 0 |
[0] | = | 2 |
[if(x1, x2, x3)] | = | 0 |
[-(x1, x2)] | = | x1 + 1 |
[f#(x1,...,x4)] | = | x2 + 0 |
[-#(x1, x2)] | = | 0 |
[if#(x1, x2, x3)] | = | 0 |
[perfectp(x1)] | = | 0 |
-(x,0) | → | x | (1) |
-(s(x),s(y)) | → | -(x,y) | (2) |
f#(s(x),s(y),z,u) | → | f#(s(x),-(y,x),z,u) | (23) |
The dependency pairs are split into 0 components.
<=#(s(x),s(y)) | → | <=#(x,y) | (18) |
[s(x1)] | = | x1 + 2 |
[<=(x1, x2)] | = | 0 |
[perfectp#(x1)] | = | 0 |
[false] | = | 0 |
[<=#(x1, x2)] | = | x2 + 0 |
[true] | = | 0 |
[f(x1,...,x4)] | = | 0 |
[0] | = | 2 |
[if(x1, x2, x3)] | = | 0 |
[-(x1, x2)] | = | x1 + 1 |
[f#(x1,...,x4)] | = | x2 + 0 |
[-#(x1, x2)] | = | 0 |
[if#(x1, x2, x3)] | = | 0 |
[perfectp(x1)] | = | 0 |
-(x,0) | → | x | (1) |
-(s(x),s(y)) | → | -(x,y) | (2) |
<=#(s(x),s(y)) | → | <=#(x,y) | (18) |
The dependency pairs are split into 0 components.
-#(s(x),s(y)) | → | -#(x,y) | (21) |
[s(x1)] | = | x1 + 2 |
[<=(x1, x2)] | = | 0 |
[perfectp#(x1)] | = | 0 |
[false] | = | 0 |
[<=#(x1, x2)] | = | 0 |
[true] | = | 0 |
[f(x1,...,x4)] | = | 0 |
[0] | = | 2 |
[if(x1, x2, x3)] | = | 0 |
[-(x1, x2)] | = | x1 + 1 |
[f#(x1,...,x4)] | = | x2 + 0 |
[-#(x1, x2)] | = | x2 + 0 |
[if#(x1, x2, x3)] | = | 0 |
[perfectp(x1)] | = | 0 |
-(x,0) | → | x | (1) |
-(s(x),s(y)) | → | -(x,y) | (2) |
-#(s(x),s(y)) | → | -#(x,y) | (21) |
The dependency pairs are split into 0 components.