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(app(comp,f),g),x) | → | app(f,app(g,x)) | (3) |
app(twice,f) | → | app(app(comp,f),f) | (4) |
app#(app(map,f),app(app(cons,x),xs)) | → | app#(app(map,f),xs) | (5) |
app#(app(map,f),app(app(cons,x),xs)) | → | app#(f,x) | (6) |
app#(app(map,f),app(app(cons,x),xs)) | → | app#(cons,app(f,x)) | (7) |
app#(app(map,f),app(app(cons,x),xs)) | → | app#(app(cons,app(f,x)),app(app(map,f),xs)) | (8) |
app#(app(app(comp,f),g),x) | → | app#(g,x) | (9) |
app#(app(app(comp,f),g),x) | → | app#(f,app(g,x)) | (10) |
app#(twice,f) | → | app#(comp,f) | (11) |
app#(twice,f) | → | app#(app(comp,f),f) | (12) |
The dependency pairs are split into 1 component.
app#(app(app(comp,f),g),x) | → | app#(g,x) | (9) |
app#(app(app(comp,f),g),x) | → | app#(f,app(g,x)) | (10) |
app#(app(map,f),app(app(cons,x),xs)) | → | app#(f,x) | (6) |
app#(app(map,f),app(app(cons,x),xs)) | → | app#(app(map,f),xs) | (5) |
π(app#) | = | 1 |
app#(app(app(comp,f),g),x) | → | app#(g,x) | (9) |
app#(app(app(comp,f),g),x) | → | app#(f,app(g,x)) | (10) |
app#(app(map,f),app(app(cons,x),xs)) | → | app#(f,x) | (6) |
Using size-change termination in combination with the subterm criterion one obtains the following initial size-change graphs.
app#(app(map,f),app(app(cons,x),xs)) | → | app#(app(map,f),xs) | (5) |
2 | > | 2 | |
1 | ≥ | 1 |
As there is no critical graph in the transitive closure, there are no infinite chains.