The rewrite relation of the following TRS is considered.
p(0) | → | 0 | (1) |
p(s(x)) | → | x | (2) |
le(0,y) | → | true | (3) |
le(s(x),0) | → | false | (4) |
le(s(x),s(y)) | → | le(x,y) | (5) |
minus(x,0) | → | x | (6) |
minus(x,s(y)) | → | if(le(x,s(y)),0,p(minus(x,p(s(y))))) | (7) |
if(true,x,y) | → | x | (8) |
if(false,x,y) | → | y | (9) |
minus#(x,s(y)) | → | le#(x,s(y)) | (10) |
le#(s(x),s(y)) | → | le#(x,y) | (11) |
minus#(x,s(y)) | → | p#(s(y)) | (12) |
minus#(x,s(y)) | → | p#(minus(x,p(s(y)))) | (13) |
minus#(x,s(y)) | → | if#(le(x,s(y)),0,p(minus(x,p(s(y))))) | (14) |
minus#(x,s(y)) | → | minus#(x,p(s(y))) | (15) |
The dependency pairs are split into 2 components.
minus#(x,s(y)) | → | minus#(x,p(s(y))) | (15) |
π(le) | = | 2 |
π(if) | = | 3 |
π(minus#) | = | 2 |
prec(s) | = | 0 | status(s) | = | [1] | list-extension(s) | = | Lex | ||
prec(le#) | = | 0 | status(le#) | = | [2] | list-extension(le#) | = | Lex | ||
prec(minus) | = | 0 | status(minus) | = | [] | list-extension(minus) | = | Lex | ||
prec(false) | = | 0 | status(false) | = | [] | list-extension(false) | = | Lex | ||
prec(p#) | = | 0 | status(p#) | = | [] | list-extension(p#) | = | Lex | ||
prec(true) | = | 0 | status(true) | = | [] | list-extension(true) | = | Lex | ||
prec(p) | = | 0 | status(p) | = | [] | list-extension(p) | = | Lex | ||
prec(0) | = | 0 | status(0) | = | [] | list-extension(0) | = | Lex | ||
prec(if#) | = | 0 | status(if#) | = | [1, 2, 3] | list-extension(if#) | = | Lex |
[s(x1)] | = | x1 + 8856 |
[le#(x1, x2)] | = | x2 + 1 |
[minus(x1, x2)] | = | x2 + 1 |
[false] | = | 0 |
[p#(x1)] | = | 1 |
[true] | = | 0 |
[p(x1)] | = | x1 + 0 |
[0] | = | 23676 |
[if#(x1, x2, x3)] | = | max(x1 + 1, x2 + 1, x3 + 1, 0) |
p(0) | → | 0 | (1) |
p(s(x)) | → | x | (2) |
minus#(x,s(y)) | → | minus#(x,p(s(y))) | (15) |
The dependency pairs are split into 0 components.
le#(s(x),s(y)) | → | le#(x,y) | (11) |
[le(x1, x2)] | = | 0 |
[s(x1)] | = | x1 + 1 |
[le#(x1, x2)] | = | x1 + 0 |
[minus(x1, x2)] | = | 0 |
[false] | = | 0 |
[p#(x1)] | = | 0 |
[true] | = | 0 |
[p(x1)] | = | 0 |
[0] | = | 1 |
[if(x1, x2, x3)] | = | 0 |
[minus#(x1, x2)] | = | 0 |
[if#(x1, x2, x3)] | = | 0 |
le#(s(x),s(y)) | → | le#(x,y) | (11) |
The dependency pairs are split into 0 components.