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(times,0),y) | → | 0 | (3) |
app(app(times,app(s,x)),y) | → | app(app(plus,app(app(times,x),y)),y) | (4) |
app(app(app(comp,f),g),x) | → | app(f,app(g,x)) | (5) |
app(twice,f) | → | app(app(comp,f),f) | (6) |
app#(app(plus,app(s,x)),y) | → | app#(plus,x) | (7) |
app#(app(plus,app(s,x)),y) | → | app#(app(plus,x),y) | (8) |
app#(app(plus,app(s,x)),y) | → | app#(s,app(app(plus,x),y)) | (9) |
app#(app(times,app(s,x)),y) | → | app#(times,x) | (10) |
app#(app(times,app(s,x)),y) | → | app#(app(times,x),y) | (11) |
app#(app(times,app(s,x)),y) | → | app#(plus,app(app(times,x),y)) | (12) |
app#(app(times,app(s,x)),y) | → | app#(app(plus,app(app(times,x),y)),y) | (13) |
app#(app(app(comp,f),g),x) | → | app#(g,x) | (14) |
app#(app(app(comp,f),g),x) | → | app#(f,app(g,x)) | (15) |
app#(twice,f) | → | app#(comp,f) | (16) |
app#(twice,f) | → | app#(app(comp,f),f) | (17) |
The dependency pairs are split into 3 components.
app#(app(app(comp,f),g),x) | → | app#(g,x) | (14) |
app#(app(app(comp,f),g),x) | → | app#(f,app(g,x)) | (15) |
Using size-change termination in combination with the subterm criterion one obtains the following initial size-change graphs.
app#(app(app(comp,f),g),x) | → | app#(g,x) | (14) |
2 | ≥ | 2 | |
1 | > | 1 | |
app#(app(app(comp,f),g),x) | → | app#(f,app(g,x)) | (15) |
1 | > | 1 |
As there is no critical graph in the transitive closure, there are no infinite chains.
app#(app(times,app(s,x)),y) | → | app#(app(times,x),y) | (11) |
prec(app#) | = | 0 | stat(app#) | = | lex | |
prec(times) | = | 0 | stat(times) | = | lex | |
prec(s) | = | 0 | stat(s) | = | lex | |
prec(app) | = | 1 | stat(app) | = | lex |
π(app#) | = | [1] |
π(times) | = | [] |
π(s) | = | [] |
π(app) | = | [2] |
app#(app(times,app(s,x)),y) | → | app#(app(times,x),y) | (11) |
There are no pairs anymore.
app#(app(plus,app(s,x)),y) | → | app#(app(plus,x),y) | (8) |
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) | (8) |
There are no pairs anymore.