The rewrite relation of the following TRS is considered.
0(#) | → | # | (1) |
+(#,x) | → | x | (2) |
+(x,#) | → | x | (3) |
+(0(x),0(y)) | → | 0(+(x,y)) | (4) |
+(0(x),1(y)) | → | 1(+(x,y)) | (5) |
+(1(x),0(y)) | → | 1(+(x,y)) | (6) |
+(1(x),1(y)) | → | 0(+(+(x,y),1(#))) | (7) |
+(+(x,y),z) | → | +(x,+(y,z)) | (8) |
-(#,x) | → | # | (9) |
-(x,#) | → | x | (10) |
-(0(x),0(y)) | → | 0(-(x,y)) | (11) |
-(0(x),1(y)) | → | 1(-(-(x,y),1(#))) | (12) |
-(1(x),0(y)) | → | 1(-(x,y)) | (13) |
-(1(x),1(y)) | → | 0(-(x,y)) | (14) |
not(true) | → | false | (15) |
not(false) | → | true | (16) |
if(true,x,y) | → | x | (17) |
if(false,x,y) | → | y | (18) |
ge(0(x),0(y)) | → | ge(x,y) | (19) |
ge(0(x),1(y)) | → | not(ge(y,x)) | (20) |
ge(1(x),0(y)) | → | ge(x,y) | (21) |
ge(1(x),1(y)) | → | ge(x,y) | (22) |
ge(x,#) | → | true | (23) |
ge(#,0(x)) | → | ge(#,x) | (24) |
ge(#,1(x)) | → | false | (25) |
log(x) | → | -(log'(x),1(#)) | (26) |
log'(#) | → | # | (27) |
log'(1(x)) | → | +(log'(x),1(#)) | (28) |
log'(0(x)) | → | if(ge(x,1(#)),+(log'(x),1(#)),#) | (29) |
log'#(0(x)) | → | ge#(x,1(#)) | (30) |
+#(0(x),0(y)) | → | 0#(+(x,y)) | (31) |
-#(1(x),0(y)) | → | -#(x,y) | (32) |
-#(1(x),1(y)) | → | -#(x,y) | (33) |
ge#(#,0(x)) | → | ge#(#,x) | (34) |
-#(0(x),1(y)) | → | -#(x,y) | (35) |
log#(x) | → | -#(log'(x),1(#)) | (36) |
ge#(0(x),0(y)) | → | ge#(x,y) | (37) |
-#(1(x),1(y)) | → | 0#(-(x,y)) | (38) |
ge#(0(x),1(y)) | → | not#(ge(y,x)) | (39) |
+#(0(x),0(y)) | → | +#(x,y) | (40) |
log#(x) | → | log'#(x) | (41) |
log'#(1(x)) | → | +#(log'(x),1(#)) | (42) |
-#(0(x),0(y)) | → | 0#(-(x,y)) | (43) |
-#(0(x),1(y)) | → | -#(-(x,y),1(#)) | (44) |
+#(1(x),0(y)) | → | +#(x,y) | (45) |
+#(+(x,y),z) | → | +#(y,z) | (46) |
ge#(1(x),1(y)) | → | ge#(x,y) | (47) |
+#(+(x,y),z) | → | +#(x,+(y,z)) | (48) |
+#(1(x),1(y)) | → | +#(+(x,y),1(#)) | (49) |
+#(0(x),1(y)) | → | +#(x,y) | (50) |
ge#(1(x),0(y)) | → | ge#(x,y) | (51) |
log'#(1(x)) | → | log'#(x) | (52) |
+#(1(x),1(y)) | → | 0#(+(+(x,y),1(#))) | (53) |
log'#(0(x)) | → | +#(log'(x),1(#)) | (54) |
log'#(0(x)) | → | if#(ge(x,1(#)),+(log'(x),1(#)),#) | (55) |
-#(0(x),0(y)) | → | -#(x,y) | (56) |
ge#(0(x),1(y)) | → | ge#(y,x) | (57) |
log'#(0(x)) | → | log'#(x) | (58) |
+#(1(x),1(y)) | → | +#(x,y) | (59) |
The dependency pairs are split into 5 components.
log'#(0(x)) | → | log'#(x) | (58) |
log'#(1(x)) | → | log'#(x) | (52) |
[0#(x1)] | = | 0 |
[1(x1)] | = | x1 + 1 |
[false] | = | 0 |
[ge#(x1, x2)] | = | 0 |
[log#(x1)] | = | 0 |
[#] | = | 0 |
[true] | = | 0 |
[not#(x1)] | = | 0 |
[log(x1)] | = | 0 |
[0(x1)] | = | x1 + 1 |
[if(x1, x2, x3)] | = | 0 |
[ge(x1, x2)] | = | 0 |
[log'#(x1)] | = | x1 + 0 |
[-(x1, x2)] | = | 0 |
[-#(x1, x2)] | = | 0 |
[if#(x1, x2, x3)] | = | 0 |
[+(x1, x2)] | = | 0 |
[log'(x1)] | = | 0 |
[+#(x1, x2)] | = | 0 |
[not(x1)] | = | 0 |
log'#(0(x)) | → | log'#(x) | (58) |
log'#(1(x)) | → | log'#(x) | (52) |
The dependency pairs are split into 0 components.
-#(0(x),0(y)) | → | -#(x,y) | (56) |
-#(0(x),1(y)) | → | -#(x,y) | (35) |
-#(1(x),1(y)) | → | -#(x,y) | (33) |
-#(1(x),0(y)) | → | -#(x,y) | (32) |
-#(0(x),1(y)) | → | -#(-(x,y),1(#)) | (44) |
[0#(x1)] | = | 0 |
[1(x1)] | = | x1 + 2 |
[false] | = | 0 |
[ge#(x1, x2)] | = | 0 |
[log#(x1)] | = | 0 |
[#] | = | 0 |
[true] | = | 0 |
[not#(x1)] | = | 0 |
[log(x1)] | = | 0 |
[0(x1)] | = | x1 + 1 |
[if(x1, x2, x3)] | = | 0 |
[ge(x1, x2)] | = | 0 |
[log'#(x1)] | = | 0 |
[-(x1, x2)] | = | x2 + 1 |
[-#(x1, x2)] | = | x2 + 0 |
[if#(x1, x2, x3)] | = | 0 |
[+(x1, x2)] | = | 0 |
[log'(x1)] | = | 0 |
[+#(x1, x2)] | = | 0 |
[not(x1)] | = | 0 |
-#(0(x),0(y)) | → | -#(x,y) | (56) |
-#(0(x),1(y)) | → | -#(x,y) | (35) |
-#(1(x),1(y)) | → | -#(x,y) | (33) |
-#(1(x),0(y)) | → | -#(x,y) | (32) |
The dependency pairs are split into 1 component.
-#(0(x),1(y)) | → | -#(-(x,y),1(#)) | (44) |
[0#(x1)] | = | 0 |
[1(x1)] | = | x1 + 5854 |
[false] | = | 0 |
[ge#(x1, x2)] | = | 0 |
[log#(x1)] | = | 0 |
[#] | = | 0 |
[true] | = | 0 |
[not#(x1)] | = | 0 |
[log(x1)] | = | 0 |
[0(x1)] | = | x1 + 5854 |
[if(x1, x2, x3)] | = | 0 |
[ge(x1, x2)] | = | 0 |
[log'#(x1)] | = | 0 |
[-(x1, x2)] | = | x1 + 0 |
[-#(x1, x2)] | = | x1 + 0 |
[if#(x1, x2, x3)] | = | 0 |
[+(x1, x2)] | = | 0 |
[log'(x1)] | = | 0 |
[+#(x1, x2)] | = | 0 |
[not(x1)] | = | 0 |
0(#) | → | # | (1) |
-(x,#) | → | x | (10) |
-(1(x),1(y)) | → | 0(-(x,y)) | (14) |
-(0(x),1(y)) | → | 1(-(-(x,y),1(#))) | (12) |
-(0(x),0(y)) | → | 0(-(x,y)) | (11) |
-(#,x) | → | # | (9) |
-(1(x),0(y)) | → | 1(-(x,y)) | (13) |
-#(0(x),1(y)) | → | -#(-(x,y),1(#)) | (44) |
The dependency pairs are split into 0 components.
ge#(0(x),1(y)) | → | ge#(y,x) | (57) |
ge#(0(x),0(y)) | → | ge#(x,y) | (37) |
ge#(1(x),0(y)) | → | ge#(x,y) | (51) |
ge#(1(x),1(y)) | → | ge#(x,y) | (47) |
[0#(x1)] | = | 0 |
[1(x1)] | = | x1 + 1 |
[false] | = | 0 |
[ge#(x1, x2)] | = | x1 + x2 + 0 |
[log#(x1)] | = | 0 |
[#] | = | 0 |
[true] | = | 0 |
[not#(x1)] | = | 0 |
[log(x1)] | = | 0 |
[0(x1)] | = | x1 + 1 |
[if(x1, x2, x3)] | = | 0 |
[ge(x1, x2)] | = | 0 |
[log'#(x1)] | = | 0 |
[-(x1, x2)] | = | x1 + 0 |
[-#(x1, x2)] | = | x1 + 0 |
[if#(x1, x2, x3)] | = | 0 |
[+(x1, x2)] | = | 0 |
[log'(x1)] | = | 0 |
[+#(x1, x2)] | = | 0 |
[not(x1)] | = | 0 |
0(#) | → | # | (1) |
-(x,#) | → | x | (10) |
-(1(x),1(y)) | → | 0(-(x,y)) | (14) |
-(0(x),1(y)) | → | 1(-(-(x,y),1(#))) | (12) |
-(0(x),0(y)) | → | 0(-(x,y)) | (11) |
-(#,x) | → | # | (9) |
-(1(x),0(y)) | → | 1(-(x,y)) | (13) |
ge#(0(x),1(y)) | → | ge#(y,x) | (57) |
ge#(0(x),0(y)) | → | ge#(x,y) | (37) |
ge#(1(x),0(y)) | → | ge#(x,y) | (51) |
ge#(1(x),1(y)) | → | ge#(x,y) | (47) |
The dependency pairs are split into 0 components.
ge#(#,0(x)) | → | ge#(#,x) | (34) |
[0#(x1)] | = | 0 |
[1(x1)] | = | x1 + 1 |
[false] | = | 0 |
[ge#(x1, x2)] | = | x2 + 0 |
[log#(x1)] | = | 0 |
[#] | = | 0 |
[true] | = | 0 |
[not#(x1)] | = | 0 |
[log(x1)] | = | 0 |
[0(x1)] | = | x1 + 1 |
[if(x1, x2, x3)] | = | 0 |
[ge(x1, x2)] | = | 0 |
[log'#(x1)] | = | 0 |
[-(x1, x2)] | = | x1 + 0 |
[-#(x1, x2)] | = | x1 + 0 |
[if#(x1, x2, x3)] | = | 0 |
[+(x1, x2)] | = | 0 |
[log'(x1)] | = | 0 |
[+#(x1, x2)] | = | 0 |
[not(x1)] | = | 0 |
0(#) | → | # | (1) |
-(x,#) | → | x | (10) |
-(1(x),1(y)) | → | 0(-(x,y)) | (14) |
-(0(x),1(y)) | → | 1(-(-(x,y),1(#))) | (12) |
-(0(x),0(y)) | → | 0(-(x,y)) | (11) |
-(#,x) | → | # | (9) |
-(1(x),0(y)) | → | 1(-(x,y)) | (13) |
ge#(#,0(x)) | → | ge#(#,x) | (34) |
The dependency pairs are split into 0 components.
+#(1(x),1(y)) | → | +#(x,y) | (59) |
+#(0(x),0(y)) | → | +#(x,y) | (40) |
+#(0(x),1(y)) | → | +#(x,y) | (50) |
+#(1(x),1(y)) | → | +#(+(x,y),1(#)) | (49) |
+#(+(x,y),z) | → | +#(x,+(y,z)) | (48) |
+#(+(x,y),z) | → | +#(y,z) | (46) |
+#(1(x),0(y)) | → | +#(x,y) | (45) |
[0#(x1)] | = | 0 |
[1(x1)] | = | x1 + 24867 |
[false] | = | 0 |
[ge#(x1, x2)] | = | 0 |
[log#(x1)] | = | 0 |
[#] | = | 0 |
[true] | = | 0 |
[not#(x1)] | = | 0 |
[log(x1)] | = | 0 |
[0(x1)] | = | x1 + 24867 |
[if(x1, x2, x3)] | = | 0 |
[ge(x1, x2)] | = | 0 |
[log'#(x1)] | = | 0 |
[-(x1, x2)] | = | x1 + 0 |
[-#(x1, x2)] | = | 0 |
[if#(x1, x2, x3)] | = | 0 |
[+(x1, x2)] | = | x1 + x2 + 0 |
[log'(x1)] | = | 0 |
[+#(x1, x2)] | = | x1 + x2 + 0 |
[not(x1)] | = | 0 |
+(0(x),0(y)) | → | 0(+(x,y)) | (4) |
+(+(x,y),z) | → | +(x,+(y,z)) | (8) |
0(#) | → | # | (1) |
+(x,#) | → | x | (3) |
+(0(x),1(y)) | → | 1(+(x,y)) | (5) |
-(x,#) | → | x | (10) |
+(1(x),1(y)) | → | 0(+(+(x,y),1(#))) | (7) |
-(1(x),1(y)) | → | 0(-(x,y)) | (14) |
-(0(x),1(y)) | → | 1(-(-(x,y),1(#))) | (12) |
-(0(x),0(y)) | → | 0(-(x,y)) | (11) |
-(#,x) | → | # | (9) |
-(1(x),0(y)) | → | 1(-(x,y)) | (13) |
+(1(x),0(y)) | → | 1(+(x,y)) | (6) |
+(#,x) | → | x | (2) |
+#(1(x),1(y)) | → | +#(x,y) | (59) |
+#(0(x),0(y)) | → | +#(x,y) | (40) |
+#(0(x),1(y)) | → | +#(x,y) | (50) |
+#(1(x),1(y)) | → | +#(+(x,y),1(#)) | (49) |
+#(1(x),0(y)) | → | +#(x,y) | (45) |
The dependency pairs are split into 1 component.
+#(+(x,y),z) | → | +#(y,z) | (46) |
+#(+(x,y),z) | → | +#(x,+(y,z)) | (48) |
[0#(x1)] | = | 0 |
[1(x1)] | = | 1036 |
[false] | = | 0 |
[ge#(x1, x2)] | = | 0 |
[log#(x1)] | = | 0 |
[#] | = | 1 |
[true] | = | 0 |
[not#(x1)] | = | 0 |
[log(x1)] | = | 0 |
[0(x1)] | = | 2 |
[if(x1, x2, x3)] | = | 0 |
[ge(x1, x2)] | = | 0 |
[log'#(x1)] | = | 0 |
[-(x1, x2)] | = | x1 + 3564 |
[-#(x1, x2)] | = | 0 |
[if#(x1, x2, x3)] | = | 0 |
[+(x1, x2)] | = | x1 + x2 + 1 |
[log'(x1)] | = | 0 |
[+#(x1, x2)] | = | x1 + 0 |
[not(x1)] | = | 0 |
+(0(x),0(y)) | → | 0(+(x,y)) | (4) |
+(+(x,y),z) | → | +(x,+(y,z)) | (8) |
0(#) | → | # | (1) |
+(x,#) | → | x | (3) |
+(0(x),1(y)) | → | 1(+(x,y)) | (5) |
-(x,#) | → | x | (10) |
+(1(x),1(y)) | → | 0(+(+(x,y),1(#))) | (7) |
-(1(x),1(y)) | → | 0(-(x,y)) | (14) |
-(0(x),1(y)) | → | 1(-(-(x,y),1(#))) | (12) |
-(#,x) | → | # | (9) |
-(1(x),0(y)) | → | 1(-(x,y)) | (13) |
+(1(x),0(y)) | → | 1(+(x,y)) | (6) |
+(#,x) | → | x | (2) |
+#(+(x,y),z) | → | +#(y,z) | (46) |
+#(+(x,y),z) | → | +#(x,+(y,z)) | (48) |
The dependency pairs are split into 0 components.