The rewrite relation of the following TRS is considered.
| app(app(app(compose,f),g),x) | → | app(g,app(f,x)) | (1) |
| app(reverse,l) | → | app(app(reverse2,l),nil) | (2) |
| app(app(reverse2,nil),l) | → | l | (3) |
| app(app(reverse2,app(app(cons,x),xs)),l) | → | app(app(reverse2,xs),app(app(cons,x),l)) | (4) |
| app(hd,app(app(cons,x),xs)) | → | x | (5) |
| app(tl,app(app(cons,x),xs)) | → | xs | (6) |
| last | → | app(app(compose,hd),reverse) | (7) |
| init | → | app(app(compose,reverse),app(app(compose,tl),reverse)) | (8) |
| app#(reverse,l) | → | app#(reverse2,l) | (9) |
| app#(app(app(compose,f),g),x) | → | app#(f,x) | (10) |
| app#(app(reverse2,app(app(cons,x),xs)),l) | → | app#(app(cons,x),l) | (11) |
| init# | → | app#(app(compose,tl),reverse) | (12) |
| app#(app(reverse2,app(app(cons,x),xs)),l) | → | app#(app(reverse2,xs),app(app(cons,x),l)) | (13) |
| app#(app(reverse2,app(app(cons,x),xs)),l) | → | app#(reverse2,xs) | (14) |
| init# | → | app#(app(compose,reverse),app(app(compose,tl),reverse)) | (15) |
| init# | → | app#(compose,tl) | (16) |
| app#(app(app(compose,f),g),x) | → | app#(g,app(f,x)) | (17) |
| last# | → | app#(app(compose,hd),reverse) | (18) |
| app#(reverse,l) | → | app#(app(reverse2,l),nil) | (19) |
| init# | → | app#(compose,reverse) | (20) |
| last# | → | app#(compose,hd) | (21) |
The dependency pairs are split into 2 components.
| app#(app(app(compose,f),g),x) | → | app#(f,x) | (10) |
| app#(app(app(compose,f),g),x) | → | app#(g,app(f,x)) | (17) |
| [hd] | = | 1 |
| [init] | = | 0 |
| [init#] | = | 0 |
| [reverse2] | = | 18170 |
| [reverse] | = | 20538 |
| [compose] | = | 30538 |
| [last#] | = | 0 |
| [tl] | = | 9137 |
| [last] | = | 0 |
| [nil] | = | 12940 |
| [app#(x1, x2)] | = | x1 + 0 |
| [cons] | = | 38978 |
| [app(x1, x2)] | = | x1 + x2 + 38139 |
| app#(app(app(compose,f),g),x) | → | app#(f,x) | (10) |
| app#(app(app(compose,f),g),x) | → | app#(g,app(f,x)) | (17) |
The dependency pairs are split into 0 components.
| app#(app(reverse2,app(app(cons,x),xs)),l) | → | app#(app(reverse2,xs),app(app(cons,x),l)) | (13) |
| [hd] | = | 1 |
| [init] | = | 0 |
| [init#] | = | 0 |
| [reverse2] | = | 40587 |
| [reverse] | = | 76506 |
| [compose] | = | 49858 |
| [last#] | = | 0 |
| [tl] | = | 9137 |
| [last] | = | 0 |
| [nil] | = | 12940 |
| [app#(x1, x2)] | = | x1 + 0 |
| [cons] | = | 50349 |
| [app(x1, x2)] | = | x1 + x2 + 22979 |
| app(app(reverse2,app(app(cons,x),xs)),l) | → | app(app(reverse2,xs),app(app(cons,x),l)) | (4) |
| app(app(app(compose,f),g),x) | → | app(g,app(f,x)) | (1) |
| app(app(reverse2,nil),l) | → | l | (3) |
| app(hd,app(app(cons,x),xs)) | → | x | (5) |
| app(tl,app(app(cons,x),xs)) | → | xs | (6) |
| app(reverse,l) | → | app(app(reverse2,l),nil) | (2) |
| app#(app(reverse2,app(app(cons,x),xs)),l) | → | app#(app(reverse2,xs),app(app(cons,x),l)) | (13) |
The dependency pairs are split into 0 components.