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(app(curry,f),x),y) | → | app(app(f,x),y) | (3) |
add | → | app(curry,plus) | (4) |
app#(app(plus,app(s,x)),y) | → | app#(app(plus,x),y) | (5) |
add# | → | app#(curry,plus) | (6) |
app#(app(app(curry,f),x),y) | → | app#(f,x) | (7) |
app#(app(plus,app(s,x)),y) | → | app#(plus,x) | (8) |
app#(app(plus,app(s,x)),y) | → | app#(s,app(app(plus,x),y)) | (9) |
app#(app(app(curry,f),x),y) | → | app#(app(f,x),y) | (10) |
The dependency pairs are split into 2 components.
app#(app(app(curry,f),x),y) | → | app#(app(f,x),y) | (10) |
app#(app(app(curry,f),x),y) | → | app#(f,x) | (7) |
[s] | = | 1 |
[curry] | = | 51851 |
[0] | = | 10803 |
[app#(x1, x2)] | = | x1 + 0 |
[plus] | = | 41141 |
[add#] | = | 0 |
[add] | = | 0 |
[app(x1, x2)] | = | x1 + x2 + 22248 |
app(app(plus,0),y) | → | y | (1) |
app(app(app(curry,f),x),y) | → | app(app(f,x),y) | (3) |
app(app(plus,app(s,x)),y) | → | app(s,app(app(plus,x),y)) | (2) |
app#(app(app(curry,f),x),y) | → | app#(app(f,x),y) | (10) |
app#(app(app(curry,f),x),y) | → | app#(f,x) | (7) |
The dependency pairs are split into 0 components.
app#(app(plus,app(s,x)),y) | → | app#(app(plus,x),y) | (5) |
[s] | = | 1 |
[curry] | = | 1 |
[0] | = | 16203 |
[app#(x1, x2)] | = | x1 + 0 |
[plus] | = | 1 |
[add#] | = | 0 |
[add] | = | 0 |
[app(x1, x2)] | = | x1 + x2 + 29483 |
app(app(plus,0),y) | → | y | (1) |
app(app(app(curry,f),x),y) | → | app(app(f,x),y) | (3) |
app(app(plus,app(s,x)),y) | → | app(s,app(app(plus,x),y)) | (2) |
app#(app(plus,app(s,x)),y) | → | app#(app(plus,x),y) | (5) |
The dependency pairs are split into 0 components.