The rewrite relation of the following TRS is considered.
app(app(plus,0),y) | → | y | (1) |
app(app(plus,app(s,x)),y) | → | app(s,app(app(plus,x),y)) | (2) |
app(app(map,f),nil) | → | nil | (3) |
app(app(map,f),app(app(cons,x),xs)) | → | app(app(cons,app(f,x)),app(app(map,f),xs)) | (4) |
inc | → | app(map,app(plus,app(s,0))) | (5) |
app#(app(plus,app(s,x)),y) | → | app#(plus,x) | (6) |
app#(app(plus,app(s,x)),y) | → | app#(app(plus,x),y) | (7) |
app#(app(plus,app(s,x)),y) | → | app#(s,app(app(plus,x),y)) | (8) |
app#(app(map,f),app(app(cons,x),xs)) | → | app#(app(map,f),xs) | (9) |
app#(app(map,f),app(app(cons,x),xs)) | → | app#(f,x) | (10) |
app#(app(map,f),app(app(cons,x),xs)) | → | app#(cons,app(f,x)) | (11) |
app#(app(map,f),app(app(cons,x),xs)) | → | app#(app(cons,app(f,x)),app(app(map,f),xs)) | (12) |
inc# | → | app#(s,0) | (13) |
inc# | → | app#(plus,app(s,0)) | (14) |
inc# | → | app#(map,app(plus,app(s,0))) | (15) |
The dependency pairs are split into 2 components.
app#(app(map,f),app(app(cons,x),xs)) | → | app#(app(map,f),xs) | (9) |
app#(app(map,f),app(app(cons,x),xs)) | → | app#(f,x) | (10) |
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) | (9) |
2 | > | 2 | |
1 | ≥ | 1 | |
app#(app(map,f),app(app(cons,x),xs)) | → | app#(f,x) | (10) |
2 | > | 2 | |
1 | > | 1 |
As there is no critical graph in the transitive closure, there are no infinite chains.
app#(app(plus,app(s,x)),y) | → | app#(app(plus,x),y) | (7) |
prec(app#) | = | 0 | stat(app#) | = | lex | |
prec(s) | = | 0 | stat(s) | = | lex | |
prec(app) | = | 1 | stat(app) | = | lex | |
prec(plus) | = | 0 | stat(plus) | = | lex |
π(app#) | = | [1] |
π(s) | = | [] |
π(app) | = | [2] |
π(plus) | = | [] |
app#(app(plus,app(s,x)),y) | → | app#(app(plus,x),y) | (7) |
There are no pairs anymore.