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(app(consif,true),x),ys) | → | app#(app(cons,x),ys) | (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#(f,x) | (8) |
app#(app(filter,f),app(app(cons,x),xs)) | → | app#(consif,app(f,x)) | (9) |
app#(app(filter,f),app(app(cons,x),xs)) | → | app#(app(consif,app(f,x)),x) | (10) |
app#(app(filter,f),app(app(cons,x),xs)) | → | app#(app(app(consif,app(f,x)),x),app(app(filter,f),xs)) | (11) |
The dependency pairs are split into 1 component.
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#(f,x) | (8) |
Using size-change termination in combination with the subterm criterion one obtains the following initial size-change graphs.
app#(app(filter,f),app(app(cons,x),xs)) | → | app#(app(filter,f),xs) | (7) |
2 | > | 2 | |
1 | ≥ | 1 | |
app#(app(filter,f),app(app(cons,x),xs)) | → | app#(f,x) | (8) |
2 | > | 2 | |
1 | > | 1 |
As there is no critical graph in the transitive closure, there are no infinite chains.