The rewrite relation of the following TRS is considered.
app(app(mapt,f),app(leaf,x)) | → | app(leaf,app(f,x)) | (1) |
app(app(mapt,f),app(node,xs)) | → | app(node,app(app(maptlist,f),xs)) | (2) |
app(app(maptlist,f),nil) | → | nil | (3) |
app(app(maptlist,f),app(app(cons,x),xs)) | → | app(app(cons,app(app(mapt,f),x)),app(app(maptlist,f),xs)) | (4) |
app#(app(mapt,f),app(node,xs)) | → | app#(app(maptlist,f),xs) | (5) |
app#(app(maptlist,f),app(app(cons,x),xs)) | → | app#(app(cons,app(app(mapt,f),x)),app(app(maptlist,f),xs)) | (6) |
app#(app(maptlist,f),app(app(cons,x),xs)) | → | app#(mapt,f) | (7) |
app#(app(maptlist,f),app(app(cons,x),xs)) | → | app#(cons,app(app(mapt,f),x)) | (8) |
app#(app(maptlist,f),app(app(cons,x),xs)) | → | app#(app(maptlist,f),xs) | (9) |
app#(app(mapt,f),app(leaf,x)) | → | app#(f,x) | (10) |
app#(app(mapt,f),app(node,xs)) | → | app#(maptlist,f) | (11) |
app#(app(mapt,f),app(node,xs)) | → | app#(node,app(app(maptlist,f),xs)) | (12) |
app#(app(maptlist,f),app(app(cons,x),xs)) | → | app#(app(mapt,f),x) | (13) |
app#(app(mapt,f),app(leaf,x)) | → | app#(leaf,app(f,x)) | (14) |
The dependency pairs are split into 1 component.
app#(app(maptlist,f),app(app(cons,x),xs)) | → | app#(app(mapt,f),x) | (13) |
app#(app(mapt,f),app(leaf,x)) | → | app#(f,x) | (10) |
app#(app(maptlist,f),app(app(cons,x),xs)) | → | app#(app(maptlist,f),xs) | (9) |
app#(app(mapt,f),app(node,xs)) | → | app#(app(maptlist,f),xs) | (5) |
[mapt] | = | 1 |
[maptlist] | = | 2 |
[nil] | = | 27092 |
[app#(x1, x2)] | = | x2 + 0 |
[cons] | = | 34723 |
[leaf] | = | 39468 |
[node] | = | 39898 |
[app(x1, x2)] | = | x1 + x2 + 18816 |
app#(app(maptlist,f),app(app(cons,x),xs)) | → | app#(app(mapt,f),x) | (13) |
app#(app(mapt,f),app(leaf,x)) | → | app#(f,x) | (10) |
app#(app(maptlist,f),app(app(cons,x),xs)) | → | app#(app(maptlist,f),xs) | (9) |
app#(app(mapt,f),app(node,xs)) | → | app#(app(maptlist,f),xs) | (5) |
The dependency pairs are split into 0 components.