The rewrite relation of the following TRS is considered.
+(0,y) | → | y | (1) |
+(s(x),y) | → | s(+(x,y)) | (2) |
++(nil,ys) | → | ys | (3) |
++(:(x,xs),ys) | → | :(x,++(xs,ys)) | (4) |
sum(:(x,nil)) | → | :(x,nil) | (5) |
sum(:(x,:(y,xs))) | → | sum(:(+(x,y),xs)) | (6) |
sum(++(xs,:(x,:(y,ys)))) | → | sum(++(xs,sum(:(x,:(y,ys))))) | (7) |
-(x,0) | → | x | (8) |
-(0,s(y)) | → | 0 | (9) |
-(s(x),s(y)) | → | -(x,y) | (10) |
quot(0,s(y)) | → | 0 | (11) |
quot(s(x),s(y)) | → | s(quot(-(x,y),s(y))) | (12) |
length(nil) | → | 0 | (13) |
length(:(x,xs)) | → | s(length(xs)) | (14) |
hd(:(x,xs)) | → | x | (15) |
avg(xs) | → | quot(hd(sum(xs)),length(xs)) | (16) |
sum#(:(x,:(y,xs))) | → | sum#(:(+(x,y),xs)) | (17) |
length#(:(x,xs)) | → | length#(xs) | (18) |
avg#(xs) | → | sum#(xs) | (19) |
sum#(++(xs,:(x,:(y,ys)))) | → | sum#(:(x,:(y,ys))) | (20) |
avg#(xs) | → | quot#(hd(sum(xs)),length(xs)) | (21) |
avg#(xs) | → | hd#(sum(xs)) | (22) |
avg#(xs) | → | length#(xs) | (23) |
sum#(++(xs,:(x,:(y,ys)))) | → | sum#(++(xs,sum(:(x,:(y,ys))))) | (24) |
-#(s(x),s(y)) | → | -#(x,y) | (25) |
quot#(s(x),s(y)) | → | -#(x,y) | (26) |
sum#(:(x,:(y,xs))) | → | +#(x,y) | (27) |
+#(s(x),y) | → | +#(x,y) | (28) |
sum#(++(xs,:(x,:(y,ys)))) | → | ++#(xs,sum(:(x,:(y,ys)))) | (29) |
++#(:(x,xs),ys) | → | ++#(xs,ys) | (30) |
quot#(s(x),s(y)) | → | quot#(-(x,y),s(y)) | (31) |
The dependency pairs are split into 7 components.
quot#(s(x),s(y)) | → | quot#(-(x,y),s(y)) | (31) |
[hd(x1)] | = | 0 |
[s(x1)] | = | x1 + 23677 |
[++(x1, x2)] | = | 0 |
[sum(x1)] | = | 0 |
[avg#(x1)] | = | 0 |
[0] | = | 1 |
[quot(x1, x2)] | = | 0 |
[:(x1, x2)] | = | 0 |
[++#(x1, x2)] | = | 0 |
[nil] | = | 0 |
[-(x1, x2)] | = | x1 + 23676 |
[avg(x1)] | = | 0 |
[hd#(x1)] | = | 0 |
[-#(x1, x2)] | = | 0 |
[quot#(x1, x2)] | = | x1 + 0 |
[+(x1, x2)] | = | 0 |
[sum#(x1)] | = | 0 |
[length(x1)] | = | 0 |
[length#(x1)] | = | 0 |
[+#(x1, x2)] | = | 0 |
-(x,0) | → | x | (8) |
-(s(x),s(y)) | → | -(x,y) | (10) |
-(0,s(y)) | → | 0 | (9) |
quot#(s(x),s(y)) | → | quot#(-(x,y),s(y)) | (31) |
The dependency pairs are split into 0 components.
length#(:(x,xs)) | → | length#(xs) | (18) |
[hd(x1)] | = | 0 |
[s(x1)] | = | x1 + 1 |
[++(x1, x2)] | = | 0 |
[sum(x1)] | = | 0 |
[avg#(x1)] | = | 0 |
[0] | = | 40651 |
[quot(x1, x2)] | = | 0 |
[:(x1, x2)] | = | x2 + 1 |
[++#(x1, x2)] | = | 0 |
[nil] | = | 0 |
[-(x1, x2)] | = | x1 + 23676 |
[avg(x1)] | = | 0 |
[hd#(x1)] | = | 0 |
[-#(x1, x2)] | = | 0 |
[quot#(x1, x2)] | = | x1 + 0 |
[+(x1, x2)] | = | 0 |
[sum#(x1)] | = | 0 |
[length(x1)] | = | 0 |
[length#(x1)] | = | x1 + 0 |
[+#(x1, x2)] | = | 0 |
-(x,0) | → | x | (8) |
-(s(x),s(y)) | → | -(x,y) | (10) |
-(0,s(y)) | → | 0 | (9) |
length#(:(x,xs)) | → | length#(xs) | (18) |
The dependency pairs are split into 0 components.
-#(s(x),s(y)) | → | -#(x,y) | (25) |
[hd(x1)] | = | 0 |
[s(x1)] | = | x1 + 1 |
[++(x1, x2)] | = | 0 |
[sum(x1)] | = | 0 |
[avg#(x1)] | = | 0 |
[0] | = | 36466 |
[quot(x1, x2)] | = | 0 |
[:(x1, x2)] | = | 1 |
[++#(x1, x2)] | = | 0 |
[nil] | = | 0 |
[-(x1, x2)] | = | x1 + 0 |
[avg(x1)] | = | 0 |
[hd#(x1)] | = | 0 |
[-#(x1, x2)] | = | x1 + x2 + 0 |
[quot#(x1, x2)] | = | x1 + 0 |
[+(x1, x2)] | = | 0 |
[sum#(x1)] | = | 0 |
[length(x1)] | = | 0 |
[length#(x1)] | = | 0 |
[+#(x1, x2)] | = | 0 |
-(x,0) | → | x | (8) |
-(s(x),s(y)) | → | -(x,y) | (10) |
-(0,s(y)) | → | 0 | (9) |
-#(s(x),s(y)) | → | -#(x,y) | (25) |
The dependency pairs are split into 0 components.
sum#(++(xs,:(x,:(y,ys)))) | → | sum#(++(xs,sum(:(x,:(y,ys))))) | (24) |
[hd(x1)] | = | 0 |
[s(x1)] | = | x1 + 1 |
[++(x1, x2)] | = | x1 + x2 + 40966 |
[sum(x1)] | = | 3 |
[avg#(x1)] | = | 0 |
[0] | = | 2998 |
[quot(x1, x2)] | = | 0 |
[:(x1, x2)] | = | x2 + 2 |
[++#(x1, x2)] | = | 0 |
[nil] | = | 1 |
[-(x1, x2)] | = | x1 + 0 |
[avg(x1)] | = | 0 |
[hd#(x1)] | = | 0 |
[-#(x1, x2)] | = | 0 |
[quot#(x1, x2)] | = | x1 + 0 |
[+(x1, x2)] | = | x1 + x2 + 1 |
[sum#(x1)] | = | x1 + 0 |
[length(x1)] | = | 0 |
[length#(x1)] | = | 0 |
[+#(x1, x2)] | = | 0 |
++(:(x,xs),ys) | → | :(x,++(xs,ys)) | (4) |
-(x,0) | → | x | (8) |
+(0,y) | → | y | (1) |
++(nil,ys) | → | ys | (3) |
sum(:(x,nil)) | → | :(x,nil) | (5) |
-(s(x),s(y)) | → | -(x,y) | (10) |
sum(++(xs,:(x,:(y,ys)))) | → | sum(++(xs,sum(:(x,:(y,ys))))) | (7) |
-(0,s(y)) | → | 0 | (9) |
sum(:(x,:(y,xs))) | → | sum(:(+(x,y),xs)) | (6) |
+(s(x),y) | → | s(+(x,y)) | (2) |
sum#(++(xs,:(x,:(y,ys)))) | → | sum#(++(xs,sum(:(x,:(y,ys))))) | (24) |
The dependency pairs are split into 0 components.
++#(:(x,xs),ys) | → | ++#(xs,ys) | (30) |
[hd(x1)] | = | 0 |
[s(x1)] | = | x1 + 1 |
[++(x1, x2)] | = | x1 + x2 + 42632 |
[sum(x1)] | = | 57799 |
[avg#(x1)] | = | 0 |
[0] | = | 2998 |
[quot(x1, x2)] | = | 0 |
[:(x1, x2)] | = | x2 + 1 |
[++#(x1, x2)] | = | x1 + 0 |
[nil] | = | 57798 |
[-(x1, x2)] | = | x1 + 0 |
[avg(x1)] | = | 0 |
[hd#(x1)] | = | 0 |
[-#(x1, x2)] | = | 0 |
[quot#(x1, x2)] | = | x1 + 0 |
[+(x1, x2)] | = | x1 + x2 + 1 |
[sum#(x1)] | = | x1 + 0 |
[length(x1)] | = | 0 |
[length#(x1)] | = | 0 |
[+#(x1, x2)] | = | 0 |
++(:(x,xs),ys) | → | :(x,++(xs,ys)) | (4) |
-(x,0) | → | x | (8) |
+(0,y) | → | y | (1) |
++(nil,ys) | → | ys | (3) |
sum(:(x,nil)) | → | :(x,nil) | (5) |
-(s(x),s(y)) | → | -(x,y) | (10) |
sum(++(xs,:(x,:(y,ys)))) | → | sum(++(xs,sum(:(x,:(y,ys))))) | (7) |
-(0,s(y)) | → | 0 | (9) |
sum(:(x,:(y,xs))) | → | sum(:(+(x,y),xs)) | (6) |
+(s(x),y) | → | s(+(x,y)) | (2) |
++#(:(x,xs),ys) | → | ++#(xs,ys) | (30) |
The dependency pairs are split into 0 components.
sum#(:(x,:(y,xs))) | → | sum#(:(+(x,y),xs)) | (17) |
[hd(x1)] | = | 0 |
[s(x1)] | = | x1 + 1 |
[++(x1, x2)] | = | x1 + x2 + 2831 |
[sum(x1)] | = | 842 |
[avg#(x1)] | = | 0 |
[0] | = | 12172 |
[quot(x1, x2)] | = | 0 |
[:(x1, x2)] | = | x2 + 1 |
[++#(x1, x2)] | = | 0 |
[nil] | = | 1 |
[-(x1, x2)] | = | x1 + 0 |
[avg(x1)] | = | 0 |
[hd#(x1)] | = | 0 |
[-#(x1, x2)] | = | 0 |
[quot#(x1, x2)] | = | x1 + 0 |
[+(x1, x2)] | = | x1 + x2 + 50866 |
[sum#(x1)] | = | x1 + 0 |
[length(x1)] | = | 0 |
[length#(x1)] | = | 0 |
[+#(x1, x2)] | = | 0 |
++(:(x,xs),ys) | → | :(x,++(xs,ys)) | (4) |
-(x,0) | → | x | (8) |
+(0,y) | → | y | (1) |
++(nil,ys) | → | ys | (3) |
sum(:(x,nil)) | → | :(x,nil) | (5) |
-(s(x),s(y)) | → | -(x,y) | (10) |
sum(++(xs,:(x,:(y,ys)))) | → | sum(++(xs,sum(:(x,:(y,ys))))) | (7) |
-(0,s(y)) | → | 0 | (9) |
sum(:(x,:(y,xs))) | → | sum(:(+(x,y),xs)) | (6) |
+(s(x),y) | → | s(+(x,y)) | (2) |
sum#(:(x,:(y,xs))) | → | sum#(:(+(x,y),xs)) | (17) |
The dependency pairs are split into 0 components.
+#(s(x),y) | → | +#(x,y) | (28) |
[hd(x1)] | = | 0 |
[s(x1)] | = | x1 + 1 |
[++(x1, x2)] | = | x1 + x2 + 2831 |
[sum(x1)] | = | 842 |
[avg#(x1)] | = | 0 |
[0] | = | 38145 |
[quot(x1, x2)] | = | 0 |
[:(x1, x2)] | = | x2 + 1 |
[++#(x1, x2)] | = | 0 |
[nil] | = | 1 |
[-(x1, x2)] | = | x1 + 0 |
[avg(x1)] | = | 0 |
[hd#(x1)] | = | 0 |
[-#(x1, x2)] | = | 0 |
[quot#(x1, x2)] | = | x1 + 0 |
[+(x1, x2)] | = | x1 + x2 + 50866 |
[sum#(x1)] | = | x1 + 0 |
[length(x1)] | = | 0 |
[length#(x1)] | = | 0 |
[+#(x1, x2)] | = | x1 + 0 |
++(:(x,xs),ys) | → | :(x,++(xs,ys)) | (4) |
-(x,0) | → | x | (8) |
+(0,y) | → | y | (1) |
++(nil,ys) | → | ys | (3) |
sum(:(x,nil)) | → | :(x,nil) | (5) |
-(s(x),s(y)) | → | -(x,y) | (10) |
sum(++(xs,:(x,:(y,ys)))) | → | sum(++(xs,sum(:(x,:(y,ys))))) | (7) |
-(0,s(y)) | → | 0 | (9) |
sum(:(x,:(y,xs))) | → | sum(:(+(x,y),xs)) | (6) |
+(s(x),y) | → | s(+(x,y)) | (2) |
+#(s(x),y) | → | +#(x,y) | (28) |
The dependency pairs are split into 0 components.