The rewrite relation of the following equational TRS is considered.
app(nil,k) | → | k | (1) |
app(l,nil) | → | l | (2) |
app(cons(x,l),k) | → | cons(x,app(l,k)) | (3) |
sum(cons(x,nil)) | → | cons(x,nil) | (4) |
sum(cons(x,cons(y,l))) | → | sum(cons(plus(x,y),l)) | (5) |
sum(app(l,cons(x,cons(y,k)))) | → | sum(app(l,sum(cons(x,cons(y,k))))) | (6) |
plus(0,y) | → | y | (7) |
plus(s(x),y) | → | s(plus(x,y)) | (8) |
Associative symbols: plus
Commutative symbols: plus
The following set of (strict) dependency pairs is constructed for the TRS.
sum#(app(l,cons(x,cons(y,k)))) | → | app#(l,sum(cons(x,cons(y,k)))) | (14) |
app#(cons(x,l),k) | → | app#(l,k) | (15) |
sum#(cons(x,cons(y,l))) | → | sum#(cons(plus(x,y),l)) | (16) |
plus#(s(x),y) | → | plus#(x,y) | (17) |
sum#(app(l,cons(x,cons(y,k)))) | → | sum#(cons(x,cons(y,k))) | (18) |
sum#(app(l,cons(x,cons(y,k)))) | → | sum#(app(l,sum(cons(x,cons(y,k))))) | (19) |
sum#(cons(x,cons(y,l))) | → | plus#(x,y) | (20) |
The dependency pairs are split into 4 components.
sum#(app(l,cons(x,cons(y,k)))) | → | sum#(app(l,sum(cons(x,cons(y,k))))) | (19) |
[s(x1)] | = | x1 + 1 |
[plus#(x1, x2)] | = | 0 |
[sum(x1)] | = | 3 |
[0] | = | 1 |
[nil] | = | 1 |
[app#(x1, x2)] | = | 0 |
[plus(x1, x2)] | = | 1 |
[cons(x1, x2)] | = | x2 + 2 |
[sum#(x1)] | = | x1 + 0 |
[app(x1, x2)] | = | x1 + x2 + 23676 |
sum(cons(x,nil)) | → | cons(x,nil) | (4) |
app(nil,k) | → | k | (1) |
app(cons(x,l),k) | → | cons(x,app(l,k)) | (3) |
sum(cons(x,cons(y,l))) | → | sum(cons(plus(x,y),l)) | (5) |
sum(app(l,cons(x,cons(y,k)))) | → | sum(app(l,sum(cons(x,cons(y,k))))) | (6) |
app(l,nil) | → | l | (2) |
sum#(app(l,cons(x,cons(y,k)))) | → | sum#(app(l,sum(cons(x,cons(y,k))))) | (19) |
The dependency pairs are split into 0 components.
sum#(cons(x,cons(y,l))) | → | sum#(cons(plus(x,y),l)) | (16) |
[s(x1)] | = | x1 + 1 |
[plus#(x1, x2)] | = | 0 |
[sum(x1)] | = | 10452 |
[0] | = | 1 |
[nil] | = | 10451 |
[app#(x1, x2)] | = | 0 |
[plus(x1, x2)] | = | 11798 |
[cons(x1, x2)] | = | x2 + 1 |
[sum#(x1)] | = | x1 + 0 |
[app(x1, x2)] | = | x1 + x2 + 40651 |
sum(cons(x,nil)) | → | cons(x,nil) | (4) |
app(nil,k) | → | k | (1) |
app(cons(x,l),k) | → | cons(x,app(l,k)) | (3) |
sum(cons(x,cons(y,l))) | → | sum(cons(plus(x,y),l)) | (5) |
sum(app(l,cons(x,cons(y,k)))) | → | sum(app(l,sum(cons(x,cons(y,k))))) | (6) |
app(l,nil) | → | l | (2) |
sum#(cons(x,cons(y,l))) | → | sum#(cons(plus(x,y),l)) | (16) |
The dependency pairs are split into 0 components.
plus#(x,plus(y,z)) | → | plus#(plus(x,y),z) | (13) |
plus#(x,y) | → | plus#(y,x) | (11) |
plus#(x,plus(y,z)) | → | plus#(x,y) | (12) |
plus#(s(x),y) | → | plus#(x,y) | (17) |
[s(x1)] | = | x1 + 1 |
[plus#(x1, x2)] | = | x1 + x2 + 0 |
[sum(x1)] | = | 10451 |
[0] | = | 0 |
[nil] | = | 1 |
[app#(x1, x2)] | = | 0 |
[plus(x1, x2)] | = | x1 + x2 + 1143 |
[cons(x1, x2)] | = | x2 + 1 |
[sum#(x1)] | = | x1 + 0 |
[app(x1, x2)] | = | x1 + x2 + 20819 |
sum(cons(x,nil)) | → | cons(x,nil) | (4) |
plus(s(x),y) | → | s(plus(x,y)) | (8) |
app(nil,k) | → | k | (1) |
app(cons(x,l),k) | → | cons(x,app(l,k)) | (3) |
sum(cons(x,cons(y,l))) | → | sum(cons(plus(x,y),l)) | (5) |
plus(x,y) | → | plus(y,x) | (10) |
plus(0,y) | → | y | (7) |
plus(x,plus(y,z)) | → | plus(plus(x,y),z) | (9) |
sum(app(l,cons(x,cons(y,k)))) | → | sum(app(l,sum(cons(x,cons(y,k))))) | (6) |
app(l,nil) | → | l | (2) |
plus#(s(x),y) | → | plus#(x,y) | (17) |
plus#(x,plus(y,z)) | → | plus#(x,y) | (12) |
The dependency pairs are split into 1 component.
plus#(x,y) | → | plus#(y,x) | (11) |
plus#(x,plus(y,z)) | → | plus#(plus(x,y),z) | (13) |
app#(cons(x,l),k) | → | app#(l,k) | (15) |
[s(x1)] | = | x1 + 1 |
[plus#(x1, x2)] | = | x1 + x2 + 0 |
[sum(x1)] | = | 26287 |
[0] | = | 0 |
[nil] | = | 1 |
[app#(x1, x2)] | = | x1 + 0 |
[plus(x1, x2)] | = | x1 + x2 + 1143 |
[cons(x1, x2)] | = | x2 + 1 |
[sum#(x1)] | = | x1 + 0 |
[app(x1, x2)] | = | x1 + x2 + 24867 |
sum(cons(x,nil)) | → | cons(x,nil) | (4) |
plus(s(x),y) | → | s(plus(x,y)) | (8) |
app(nil,k) | → | k | (1) |
app(cons(x,l),k) | → | cons(x,app(l,k)) | (3) |
sum(cons(x,cons(y,l))) | → | sum(cons(plus(x,y),l)) | (5) |
plus(x,y) | → | plus(y,x) | (10) |
plus(0,y) | → | y | (7) |
plus(x,plus(y,z)) | → | plus(plus(x,y),z) | (9) |
sum(app(l,cons(x,cons(y,k)))) | → | sum(app(l,sum(cons(x,cons(y,k))))) | (6) |
app(l,nil) | → | l | (2) |
app#(cons(x,l),k) | → | app#(l,k) | (15) |
The dependency pairs are split into 0 components.
The extended rules of the TRS
plus(plus(0,y),_1) | → | plus(y,_1) | (21) |
plus(plus(s(x),y),_1) | → | plus(s(plus(x,y)),_1) | (22) |
The dependency pairs are split into 1 component.
plus#(x,y) | → | plus#(y,x) | (11) |
plus#(plus(s(x),y),_1) | → | plus#(s(plus(x,y)),_1) | (23) |
plus#(x,plus(y,z)) | → | plus#(x,y) | (12) |
plus#(x,plus(y,z)) | → | plus#(plus(x,y),z) | (13) |
plus#(plus(0,y),_1) | → | plus#(y,_1) | (24) |
[s(x1)] | = | x1 + 18458 |
[plus#(x1, x2)] | = | x1 + x2 + 0 |
[sum(x1)] | = | 83598 |
[0] | = | 0 |
[nil] | = | 36336 |
[app#(x1, x2)] | = | 0 |
[plus(x1, x2)] | = | x1 + x2 + 1143 |
[cons(x1, x2)] | = | x2 + 20977 |
[sum#(x1)] | = | x1 + 0 |
[app(x1, x2)] | = | x1 + x2 + 57798 |
sum(cons(x,nil)) | → | cons(x,nil) | (4) |
plus(s(x),y) | → | s(plus(x,y)) | (8) |
app(nil,k) | → | k | (1) |
app(cons(x,l),k) | → | cons(x,app(l,k)) | (3) |
sum(cons(x,cons(y,l))) | → | sum(cons(plus(x,y),l)) | (5) |
plus(x,y) | → | plus(y,x) | (10) |
plus(0,y) | → | y | (7) |
plus(x,plus(y,z)) | → | plus(plus(x,y),z) | (9) |
sum(app(l,cons(x,cons(y,k)))) | → | sum(app(l,sum(cons(x,cons(y,k))))) | (6) |
app(l,nil) | → | l | (2) |
plus#(plus(0,y),_1) | → | plus#(y,_1) | (24) |
plus#(x,plus(y,z)) | → | plus#(x,y) | (12) |
The dependency pairs are split into 1 component.
plus#(plus(s(x),y),_1) | → | plus#(s(plus(x,y)),_1) | (23) |
plus#(x,y) | → | plus#(y,x) | (11) |
plus#(x,plus(y,z)) | → | plus#(plus(x,y),z) | (13) |
[s(x1)] | = | 19428 |
[plus#(x1, x2)] | = | x1 + x2 + 0 |
[sum(x1)] | = | 62622 |
[0] | = | 0 |
[nil] | = | 36336 |
[app#(x1, x2)] | = | 0 |
[plus(x1, x2)] | = | x1 + x2 + 1 |
[cons(x1, x2)] | = | x2 + 1 |
[sum#(x1)] | = | x1 + 0 |
[app(x1, x2)] | = | x1 + x2 + 3037 |
sum(cons(x,nil)) | → | cons(x,nil) | (4) |
plus(s(x),y) | → | s(plus(x,y)) | (8) |
app(nil,k) | → | k | (1) |
app(cons(x,l),k) | → | cons(x,app(l,k)) | (3) |
sum(cons(x,cons(y,l))) | → | sum(cons(plus(x,y),l)) | (5) |
plus(x,y) | → | plus(y,x) | (10) |
plus(0,y) | → | y | (7) |
plus(x,plus(y,z)) | → | plus(plus(x,y),z) | (9) |
sum(app(l,cons(x,cons(y,k)))) | → | sum(app(l,sum(cons(x,cons(y,k))))) | (6) |
app(l,nil) | → | l | (2) |
plus#(plus(s(x),y),_1) | → | plus#(s(plus(x,y)),_1) | (23) |
The dependency pairs are split into 1 component.
plus#(x,y) | → | plus#(y,x) | (11) |
plus#(x,plus(y,z)) | → | plus#(plus(x,y),z) | (13) |