The rewrite relation of the following TRS is considered.
| -(0,y) | → | 0 | (1) |
| -(x,0) | → | x | (2) |
| -(x,s(y)) | → | if(greater(x,s(y)),s(-(x,p(s(y)))),0) | (3) |
| p(0) | → | 0 | (4) |
| p(s(x)) | → | x | (5) |
| -#(x,s(y)) | → | p#(s(y)) | (6) |
| -#(x,s(y)) | → | -#(x,p(s(y))) | (7) |
The dependency pairs are split into 1 component.
| -#(x,s(y)) | → | -#(x,p(s(y))) | (7) |
| [p(x1)] | = |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| [-#(x1, x2)] | = |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| [s(x1)] | = |
|
| p(s(x)) | → | x | (5) |
| -#(x,s(y)) | → | -#(x,p(s(y))) | (7) |
There are no pairs anymore.