The rewrite relation of the following 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) |
| sum(plus(cons(0,x),cons(y,l))) | → | pred(sum(cons(s(x),cons(y,l)))) | (9) |
| pred(cons(s(x),nil)) | → | cons(x,nil) | (10) |
| sum#(app(l,cons(x,cons(y,k)))) | → | app#(l,sum(cons(x,cons(y,k)))) | (11) |
| sum#(cons(x,cons(y,l))) | → | sum#(cons(plus(x,y),l)) | (12) |
| plus#(s(x),y) | → | plus#(x,y) | (13) |
| sum#(cons(x,cons(y,l))) | → | plus#(x,y) | (14) |
| sum#(plus(cons(0,x),cons(y,l))) | → | sum#(cons(s(x),cons(y,l))) | (15) |
| sum#(app(l,cons(x,cons(y,k)))) | → | sum#(cons(x,cons(y,k))) | (16) |
| sum#(app(l,cons(x,cons(y,k)))) | → | sum#(app(l,sum(cons(x,cons(y,k))))) | (17) |
| app#(cons(x,l),k) | → | app#(l,k) | (18) |
| sum#(plus(cons(0,x),cons(y,l))) | → | pred#(sum(cons(s(x),cons(y,l)))) | (19) |
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))))) | (17) |
| [s(x1)] | = | x1 + 1 |
| [plus#(x1, x2)] | = | 0 |
| [pred(x1)] | = | x1 + 0 |
| [sum(x1)] | = | 3 |
| [0] | = | 1 |
| [nil] | = | 1 |
| [app#(x1, x2)] | = | 0 |
| [plus(x1, x2)] | = | x1 + x2 + 14235 |
| [pred#(x1)] | = | 0 |
| [cons(x1, x2)] | = | x2 + 2 |
| [sum#(x1)] | = | x1 + 0 |
| [app(x1, x2)] | = | x1 + x2 + 17221 |
| 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) |
| pred(cons(s(x),nil)) | → | cons(x,nil) | (10) |
| sum(plus(cons(0,x),cons(y,l))) | → | pred(sum(cons(s(x),cons(y,l)))) | (9) |
| 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))))) | (17) |
The dependency pairs are split into 0 components.
| sum#(cons(x,cons(y,l))) | → | sum#(cons(plus(x,y),l)) | (12) |
| [s(x1)] | = | x1 + 1 |
| [plus#(x1, x2)] | = | 0 |
| [pred(x1)] | = | x1 + 0 |
| [sum(x1)] | = | 2 |
| [0] | = | 38551 |
| [nil] | = | 1 |
| [app#(x1, x2)] | = | 0 |
| [plus(x1, x2)] | = | x1 + x2 + 1 |
| [pred#(x1)] | = | 0 |
| [cons(x1, x2)] | = | x2 + 1 |
| [sum#(x1)] | = | x1 + 0 |
| [app(x1, x2)] | = | x1 + x2 + 36466 |
| 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) |
| pred(cons(s(x),nil)) | → | cons(x,nil) | (10) |
| sum(plus(cons(0,x),cons(y,l))) | → | pred(sum(cons(s(x),cons(y,l)))) | (9) |
| 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)) | (12) |
The dependency pairs are split into 0 components.
| plus#(s(x),y) | → | plus#(x,y) | (13) |
| [s(x1)] | = | x1 + 1 |
| [plus#(x1, x2)] | = | x1 + 0 |
| [pred(x1)] | = | x1 + 0 |
| [sum(x1)] | = | 16204 |
| [0] | = | 1 |
| [nil] | = | 16203 |
| [app#(x1, x2)] | = | 0 |
| [plus(x1, x2)] | = | x1 + x2 + 1 |
| [pred#(x1)] | = | 0 |
| [cons(x1, x2)] | = | x2 + 1 |
| [sum#(x1)] | = | x1 + 0 |
| [app(x1, x2)] | = | x1 + x2 + 29483 |
| 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) |
| pred(cons(s(x),nil)) | → | cons(x,nil) | (10) |
| sum(plus(cons(0,x),cons(y,l))) | → | pred(sum(cons(s(x),cons(y,l)))) | (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) | (13) |
The dependency pairs are split into 0 components.
| app#(cons(x,l),k) | → | app#(l,k) | (18) |
| [s(x1)] | = | x1 + 1 |
| [plus#(x1, x2)] | = | 0 |
| [pred(x1)] | = | x1 + 0 |
| [sum(x1)] | = | 23975 |
| [0] | = | 1 |
| [nil] | = | 23974 |
| [app#(x1, x2)] | = | x1 + 0 |
| [plus(x1, x2)] | = | x1 + x2 + 1 |
| [pred#(x1)] | = | 0 |
| [cons(x1, x2)] | = | x2 + 1 |
| [sum#(x1)] | = | x1 + 0 |
| [app(x1, x2)] | = | x1 + x2 + 46572 |
| 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) |
| pred(cons(s(x),nil)) | → | cons(x,nil) | (10) |
| sum(plus(cons(0,x),cons(y,l))) | → | pred(sum(cons(s(x),cons(y,l)))) | (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) | (18) |
The dependency pairs are split into 0 components.