The rewrite relation of the following TRS is considered.
le(0,y) | → | true | (1) |
le(s(x),0) | → | false | (2) |
le(s(x),s(y)) | → | le(x,y) | (3) |
minus(x,0) | → | x | (4) |
minus(s(x),s(y)) | → | minus(x,y) | (5) |
mod(0,y) | → | 0 | (6) |
mod(s(x),0) | → | 0 | (7) |
mod(s(x),s(y)) | → | if_mod(le(y,x),s(x),s(y)) | (8) |
if_mod(true,s(x),s(y)) | → | mod(minus(x,y),s(y)) | (9) |
if_mod(false,s(x),s(y)) | → | s(x) | (10) |
if_mod#(true,s(x),s(y)) | → | minus#(x,y) | (11) |
mod#(s(x),s(y)) | → | le#(y,x) | (12) |
mod#(s(x),s(y)) | → | if_mod#(le(y,x),s(x),s(y)) | (13) |
minus#(s(x),s(y)) | → | minus#(x,y) | (14) |
if_mod#(true,s(x),s(y)) | → | mod#(minus(x,y),s(y)) | (15) |
le#(s(x),s(y)) | → | le#(x,y) | (16) |
The dependency pairs are split into 3 components.
if_mod#(true,s(x),s(y)) | → | mod#(minus(x,y),s(y)) | (15) |
mod#(s(x),s(y)) | → | if_mod#(le(y,x),s(x),s(y)) | (13) |
[le(x1, x2)] | = | 1 |
[s(x1)] | = | x1 + 33956 |
[le#(x1, x2)] | = | 0 |
[minus(x1, x2)] | = | x1 + 33954 |
[mod(x1, x2)] | = | 0 |
[false] | = | 0 |
[true] | = | 1 |
[if_mod(x1, x2, x3)] | = | 0 |
[0] | = | 1 |
[minus#(x1, x2)] | = | 0 |
[mod#(x1, x2)] | = | x1 + x2 + 2 |
[if_mod#(x1, x2, x3)] | = | x1 + x2 + x3 + 0 |
minus(x,0) | → | x | (4) |
le(0,y) | → | true | (1) |
le(s(x),s(y)) | → | le(x,y) | (3) |
minus(s(x),s(y)) | → | minus(x,y) | (5) |
le(s(x),0) | → | false | (2) |
if_mod#(true,s(x),s(y)) | → | mod#(minus(x,y),s(y)) | (15) |
mod#(s(x),s(y)) | → | if_mod#(le(y,x),s(x),s(y)) | (13) |
The dependency pairs are split into 0 components.
le#(s(x),s(y)) | → | le#(x,y) | (16) |
[le(x1, x2)] | = | 1 |
[s(x1)] | = | x1 + 1 |
[le#(x1, x2)] | = | x1 + x2 + 0 |
[minus(x1, x2)] | = | x1 + 33954 |
[mod(x1, x2)] | = | 0 |
[false] | = | 0 |
[true] | = | 1 |
[if_mod(x1, x2, x3)] | = | 0 |
[0] | = | 1 |
[minus#(x1, x2)] | = | 0 |
[mod#(x1, x2)] | = | x1 + 2 |
[if_mod#(x1, x2, x3)] | = | x1 + 0 |
minus(x,0) | → | x | (4) |
le(0,y) | → | true | (1) |
le(s(x),s(y)) | → | le(x,y) | (3) |
minus(s(x),s(y)) | → | minus(x,y) | (5) |
le(s(x),0) | → | false | (2) |
le#(s(x),s(y)) | → | le#(x,y) | (16) |
The dependency pairs are split into 0 components.
minus#(s(x),s(y)) | → | minus#(x,y) | (14) |
[le(x1, x2)] | = | 1 |
[s(x1)] | = | x1 + 1 |
[le#(x1, x2)] | = | 0 |
[minus(x1, x2)] | = | x1 + 33954 |
[mod(x1, x2)] | = | 0 |
[false] | = | 0 |
[true] | = | 1 |
[if_mod(x1, x2, x3)] | = | 0 |
[0] | = | 1 |
[minus#(x1, x2)] | = | x1 + x2 + 0 |
[mod#(x1, x2)] | = | x1 + 2 |
[if_mod#(x1, x2, x3)] | = | x1 + 0 |
minus(x,0) | → | x | (4) |
le(0,y) | → | true | (1) |
le(s(x),s(y)) | → | le(x,y) | (3) |
minus(s(x),s(y)) | → | minus(x,y) | (5) |
le(s(x),0) | → | false | (2) |
minus#(s(x),s(y)) | → | minus#(x,y) | (14) |
The dependency pairs are split into 0 components.