The rewrite relation of the following TRS is considered.
app(app(map,f),nil) | → | nil | (1) |
app(app(map,f),app(app(cons,x),xs)) | → | app(app(cons,app(f,x)),app(app(map,f),xs)) | (2) |
app(app(le,0),y) | → | true | (3) |
app(app(le,app(s,x)),0) | → | false | (4) |
app(app(le,app(s,x)),app(s,y)) | → | app(app(le,x),y) | (5) |
app(app(maxlist,x),app(app(cons,y),ys)) | → | app(app(if,app(app(le,x),y)),app(app(maxlist,y),ys)) | (6) |
app(app(maxlist,x),nil) | → | x | (7) |
app(height,app(app(node,x),xs)) | → | app(s,app(app(maxlist,0),app(app(map,height),xs))) | (8) |
app#(app(map,f),app(app(cons,x),xs)) | → | app#(cons,app(f,x)) | (9) |
app#(app(maxlist,x),app(app(cons,y),ys)) | → | app#(if,app(app(le,x),y)) | (10) |
app#(height,app(app(node,x),xs)) | → | app#(s,app(app(maxlist,0),app(app(map,height),xs))) | (11) |
app#(app(maxlist,x),app(app(cons,y),ys)) | → | app#(app(maxlist,y),ys) | (12) |
app#(app(le,app(s,x)),app(s,y)) | → | app#(app(le,x),y) | (13) |
app#(app(le,app(s,x)),app(s,y)) | → | app#(le,x) | (14) |
app#(height,app(app(node,x),xs)) | → | app#(app(maxlist,0),app(app(map,height),xs)) | (15) |
app#(app(maxlist,x),app(app(cons,y),ys)) | → | app#(app(le,x),y) | (16) |
app#(app(maxlist,x),app(app(cons,y),ys)) | → | app#(maxlist,y) | (17) |
app#(app(maxlist,x),app(app(cons,y),ys)) | → | app#(app(if,app(app(le,x),y)),app(app(maxlist,y),ys)) | (18) |
app#(height,app(app(node,x),xs)) | → | app#(map,height) | (19) |
app#(height,app(app(node,x),xs)) | → | app#(app(map,height),xs) | (20) |
app#(app(map,f),app(app(cons,x),xs)) | → | app#(f,x) | (21) |
app#(app(map,f),app(app(cons,x),xs)) | → | app#(app(cons,app(f,x)),app(app(map,f),xs)) | (22) |
app#(app(maxlist,x),app(app(cons,y),ys)) | → | app#(le,x) | (23) |
app#(height,app(app(node,x),xs)) | → | app#(maxlist,0) | (24) |
app#(app(map,f),app(app(cons,x),xs)) | → | app#(app(map,f),xs) | (25) |
The dependency pairs are split into 3 components.
app#(app(map,f),app(app(cons,x),xs)) | → | app#(app(map,f),xs) | (25) |
app#(app(map,f),app(app(cons,x),xs)) | → | app#(f,x) | (21) |
app#(height,app(app(node,x),xs)) | → | app#(app(map,height),xs) | (20) |
[le] | = | 1 |
[s] | = | 34651 |
[height] | = | 32286 |
[false] | = | 101815 |
[true] | = | 51242 |
[0] | = | 19396 |
[if] | = | 56519 |
[nil] | = | 37745 |
[app#(x1, x2)] | = | x2 + 0 |
[map] | = | 42781 |
[maxlist] | = | 4140 |
[cons] | = | 21656 |
[node] | = | 20977 |
[app(x1, x2)] | = | x1 + x2 + 15922 |
app#(app(map,f),app(app(cons,x),xs)) | → | app#(app(map,f),xs) | (25) |
app#(app(map,f),app(app(cons,x),xs)) | → | app#(f,x) | (21) |
app#(height,app(app(node,x),xs)) | → | app#(app(map,height),xs) | (20) |
The dependency pairs are split into 0 components.
app#(app(maxlist,x),app(app(cons,y),ys)) | → | app#(app(maxlist,y),ys) | (12) |
[le] | = | 1 |
[s] | = | 1 |
[height] | = | 13208 |
[false] | = | 7 |
[true] | = | 5 |
[0] | = | 1 |
[if] | = | 1 |
[nil] | = | 30374 |
[app#(x1, x2)] | = | x2 + 0 |
[map] | = | 31044 |
[maxlist] | = | 40519 |
[cons] | = | 1 |
[node] | = | 868 |
[app(x1, x2)] | = | x1 + x2 + 1 |
app#(app(maxlist,x),app(app(cons,y),ys)) | → | app#(app(maxlist,y),ys) | (12) |
The dependency pairs are split into 0 components.
app#(app(le,app(s,x)),app(s,y)) | → | app#(app(le,x),y) | (13) |
[le] | = | 1 |
[s] | = | 1 |
[height] | = | 1 |
[false] | = | 7 |
[true] | = | 5 |
[0] | = | 1 |
[if] | = | 1 |
[nil] | = | 53793 |
[app#(x1, x2)] | = | x2 + 0 |
[map] | = | 1 |
[maxlist] | = | 1 |
[cons] | = | 1 |
[node] | = | 1 |
[app(x1, x2)] | = | x1 + x2 + 1 |
app#(app(le,app(s,x)),app(s,y)) | → | app#(app(le,x),y) | (13) |
The dependency pairs are split into 0 components.