The rewrite relation of the following TRS is considered.
concat(leaf,Y) | → | Y | (1) |
concat(cons(U,V),Y) | → | cons(U,concat(V,Y)) | (2) |
lessleaves(X,leaf) | → | false | (3) |
lessleaves(leaf,cons(W,Z)) | → | true | (4) |
lessleaves(cons(U,V),cons(W,Z)) | → | lessleaves(concat(U,V),concat(W,Z)) | (5) |
lessleaves#(cons(U,V),cons(W,Z)) | → | lessleaves#(concat(U,V),concat(W,Z)) | (6) |
lessleaves#(cons(U,V),cons(W,Z)) | → | concat#(U,V) | (7) |
concat#(cons(U,V),Y) | → | concat#(V,Y) | (8) |
lessleaves#(cons(U,V),cons(W,Z)) | → | concat#(W,Z) | (9) |
The dependency pairs are split into 2 components.
lessleaves#(cons(U,V),cons(W,Z)) | → | lessleaves#(concat(U,V),concat(W,Z)) | (6) |
[concat#(x1, x2)] | = | 0 |
[false] | = | 0 |
[lessleaves#(x1, x2)] | = | x1 + x2 + 0 |
[true] | = | 0 |
[concat(x1, x2)] | = | x1 + x2 + 1 |
[cons(x1, x2)] | = | x1 + x2 + 2 |
[lessleaves(x1, x2)] | = | 0 |
[leaf] | = | 20163 |
concat(leaf,Y) | → | Y | (1) |
concat(cons(U,V),Y) | → | cons(U,concat(V,Y)) | (2) |
lessleaves#(cons(U,V),cons(W,Z)) | → | lessleaves#(concat(U,V),concat(W,Z)) | (6) |
The dependency pairs are split into 0 components.
concat#(cons(U,V),Y) | → | concat#(V,Y) | (8) |
[concat#(x1, x2)] | = | x1 + 0 |
[false] | = | 0 |
[lessleaves#(x1, x2)] | = | x1 + x2 + 0 |
[true] | = | 0 |
[concat(x1, x2)] | = | x1 + x2 + 1 |
[cons(x1, x2)] | = | x1 + x2 + 2 |
[lessleaves(x1, x2)] | = | 0 |
[leaf] | = | 42736 |
concat(leaf,Y) | → | Y | (1) |
concat(cons(U,V),Y) | → | cons(U,concat(V,Y)) | (2) |
concat#(cons(U,V),Y) | → | concat#(V,Y) | (8) |
The dependency pairs are split into 0 components.