The rewrite relation of the following TRS is considered.
app(app(app(consif,true),x),ys) | → | app(app(cons,x),ys) | (1) |
app(app(app(consif,false),x),ys) | → | ys | (2) |
app(app(filter,f),nil) | → | nil | (3) |
app(app(filter,f),app(app(cons,x),xs)) | → | app(app(app(consif,app(f,x)),x),app(app(filter,f),xs)) | (4) |
app#(app(app(consif,true),x),ys) | → | app#(cons,x) | (5) |
app#(app(filter,f),app(app(cons,x),xs)) | → | app#(f,x) | (6) |
app#(app(filter,f),app(app(cons,x),xs)) | → | app#(app(filter,f),xs) | (7) |
app#(app(filter,f),app(app(cons,x),xs)) | → | app#(consif,app(f,x)) | (8) |
app#(app(filter,f),app(app(cons,x),xs)) | → | app#(app(app(consif,app(f,x)),x),app(app(filter,f),xs)) | (9) |
app#(app(app(consif,true),x),ys) | → | app#(app(cons,x),ys) | (10) |
app#(app(filter,f),app(app(cons,x),xs)) | → | app#(app(consif,app(f,x)),x) | (11) |
The dependency pairs are split into 1 component.
app#(app(filter,f),app(app(cons,x),xs)) | → | app#(f,x) | (6) |
app#(app(filter,f),app(app(cons,x),xs)) | → | app#(app(filter,f),xs) | (7) |
[false] | = | 1 |
[true] | = | 39898 |
[nil] | = | 9508 |
[app#(x1, x2)] | = | x2 + 0 |
[consif] | = | 38139 |
[cons] | = | 117938 |
[filter] | = | 41063 |
[app(x1, x2)] | = | x1 + x2 + 39900 |
app#(app(filter,f),app(app(cons,x),xs)) | → | app#(f,x) | (6) |
app#(app(filter,f),app(app(cons,x),xs)) | → | app#(app(filter,f),xs) | (7) |
The dependency pairs are split into 0 components.