The rewrite relation of the following TRS is considered.
minus(x,0) | → | x | (1) |
minus(s(x),s(y)) | → | minus(x,y) | (2) |
quot(0,s(y)) | → | 0 | (3) |
quot(s(x),s(y)) | → | s(quot(minus(x,y),s(y))) | (4) |
minus(minus(x,y),z) | → | minus(x,plus(y,z)) | (5) |
plus(s(x),s(y)) | → | s(s(plus(if(gt(x,y),x,y),if(not(gt(x,y)),id(x),id(y))))) | (6) |
plus(s(x),x) | → | plus(if(gt(x,x),id(x),id(x)),s(x)) | (7) |
plus(zero,y) | → | y | (8) |
plus(id(x),s(y)) | → | s(plus(x,if(gt(s(y),y),y,s(y)))) | (9) |
id(x) | → | x | (10) |
if(true,x,y) | → | x | (11) |
if(false,x,y) | → | y | (12) |
not(x) | → | if(x,false,true) | (13) |
gt(s(x),zero) | → | true | (14) |
gt(zero,y) | → | false | (15) |
gt(s(x),s(y)) | → | gt(x,y) | (16) |
plus#(s(x),s(y)) | → | plus#(if(gt(x,y),x,y),if(not(gt(x,y)),id(x),id(y))) | (17) |
plus#(s(x),s(y)) | → | not#(gt(x,y)) | (18) |
plus#(id(x),s(y)) | → | gt#(s(y),y) | (19) |
plus#(s(x),s(y)) | → | id#(y) | (20) |
plus#(id(x),s(y)) | → | plus#(x,if(gt(s(y),y),y,s(y))) | (21) |
quot#(s(x),s(y)) | → | minus#(x,y) | (22) |
plus#(id(x),s(y)) | → | if#(gt(s(y),y),y,s(y)) | (23) |
plus#(s(x),x) | → | plus#(if(gt(x,x),id(x),id(x)),s(x)) | (24) |
minus#(minus(x,y),z) | → | plus#(y,z) | (25) |
plus#(s(x),s(y)) | → | gt#(x,y) | (26) |
not#(x) | → | if#(x,false,true) | (27) |
plus#(s(x),s(y)) | → | if#(not(gt(x,y)),id(x),id(y)) | (28) |
quot#(s(x),s(y)) | → | quot#(minus(x,y),s(y)) | (29) |
plus#(s(x),x) | → | id#(x) | (30) |
minus#(minus(x,y),z) | → | minus#(x,plus(y,z)) | (31) |
gt#(s(x),s(y)) | → | gt#(x,y) | (32) |
plus#(s(x),x) | → | gt#(x,x) | (33) |
plus#(s(x),s(y)) | → | if#(gt(x,y),x,y) | (34) |
minus#(s(x),s(y)) | → | minus#(x,y) | (35) |
plus#(s(x),s(y)) | → | id#(x) | (36) |
plus#(s(x),x) | → | if#(gt(x,x),id(x),id(x)) | (37) |
plus#(s(x),s(y)) | → | gt#(x,y) | (26) |
plus#(s(x),x) | → | id#(x) | (30) |
The dependency pairs are split into 4 components.
quot#(s(x),s(y)) | → | quot#(minus(x,y),s(y)) | (29) |
[zero] | = | 1 |
[s(x1)] | = | x1 + 9228 |
[gt(x1, x2)] | = | 1 |
[minus(x1, x2)] | = | x1 + 9227 |
[plus#(x1, x2)] | = | 0 |
[false] | = | 20539 |
[id#(x1)] | = | 0 |
[true] | = | 2 |
[not#(x1)] | = | 0 |
[0] | = | 1 |
[if(x1, x2, x3)] | = | x1 + x2 + x3 + 14680 |
[quot(x1, x2)] | = | 0 |
[gt#(x1, x2)] | = | 0 |
[minus#(x1, x2)] | = | 0 |
[plus(x1, x2)] | = | x1 + x2 + 1 |
[if#(x1, x2, x3)] | = | 0 |
[id(x1)] | = | x1 + 7830 |
[quot#(x1, x2)] | = | x1 + 0 |
[not(x1)] | = | x1 + 2997 |
minus(x,0) | → | x | (1) |
minus(minus(x,y),z) | → | minus(x,plus(y,z)) | (5) |
minus(s(x),s(y)) | → | minus(x,y) | (2) |
quot#(s(x),s(y)) | → | quot#(minus(x,y),s(y)) | (29) |
The dependency pairs are split into 0 components.
minus#(s(x),s(y)) | → | minus#(x,y) | (35) |
minus#(minus(x,y),z) | → | minus#(x,plus(y,z)) | (31) |
[zero] | = | 1 |
[s(x1)] | = | x1 + 1 |
[gt(x1, x2)] | = | 1 |
[minus(x1, x2)] | = | x1 + x2 + 9227 |
[plus#(x1, x2)] | = | 0 |
[false] | = | 20539 |
[id#(x1)] | = | 0 |
[true] | = | 2 |
[not#(x1)] | = | 0 |
[0] | = | 0 |
[if(x1, x2, x3)] | = | x1 + x2 + x3 + 0 |
[quot(x1, x2)] | = | 0 |
[gt#(x1, x2)] | = | 0 |
[minus#(x1, x2)] | = | x1 + 0 |
[plus(x1, x2)] | = | x1 + x2 + 1 |
[if#(x1, x2, x3)] | = | 0 |
[id(x1)] | = | x1 + 1 |
[quot#(x1, x2)] | = | 0 |
[not(x1)] | = | x1 + 9725 |
minus(x,0) | → | x | (1) |
minus#(s(x),s(y)) | → | minus#(x,y) | (35) |
minus#(minus(x,y),z) | → | minus#(x,plus(y,z)) | (31) |
The dependency pairs are split into 0 components.
plus#(s(x),x) | → | plus#(if(gt(x,x),id(x),id(x)),s(x)) | (24) |
plus#(id(x),s(y)) | → | plus#(x,if(gt(s(y),y),y,s(y))) | (21) |
plus#(s(x),s(y)) | → | plus#(if(gt(x,y),x,y),if(not(gt(x,y)),id(x),id(y))) | (17) |
[zero] | = | 0 |
[s(x1)] | = | x1 + 11711 |
[gt(x1, x2)] | = | max(0) |
[minus(x1, x2)] | = | max(0) |
[plus#(x1, x2)] | = | max(x1 + 33957, x2 + 28101, 0) |
[false] | = | 0 |
[id#(x1)] | = | 0 |
[true] | = | 0 |
[not#(x1)] | = | 0 |
[0] | = | 0 |
[if(x1, x2, x3)] | = | max(x1 + 5856, x2 + 1, x3 + 0, 0) |
[quot(x1, x2)] | = | max(0) |
[gt#(x1, x2)] | = | max(0) |
[minus#(x1, x2)] | = | max(0) |
[plus(x1, x2)] | = | max(0) |
[if#(x1, x2, x3)] | = | max(0) |
[id(x1)] | = | x1 + 0 |
[quot#(x1, x2)] | = | max(0) |
[not(x1)] | = | x1 + 5856 |
gt(zero,y) | → | false | (15) |
gt(s(x),s(y)) | → | gt(x,y) | (16) |
id(x) | → | x | (10) |
gt(s(x),zero) | → | true | (14) |
if(false,x,y) | → | y | (12) |
if(true,x,y) | → | x | (11) |
not(x) | → | if(x,false,true) | (13) |
plus#(s(x),x) | → | plus#(if(gt(x,x),id(x),id(x)),s(x)) | (24) |
plus#(s(x),s(y)) | → | plus#(if(gt(x,y),x,y),if(not(gt(x,y)),id(x),id(y))) | (17) |
The dependency pairs are split into 1 component.
plus#(id(x),s(y)) | → | plus#(x,if(gt(s(y),y),y,s(y))) | (21) |
[zero] | = | 1 |
[s(x1)] | = | 4 |
[gt(x1, x2)] | = | 1 |
[minus(x1, x2)] | = | x1 + x2 + 9227 |
[plus#(x1, x2)] | = | x1 + 0 |
[false] | = | 1 |
[id#(x1)] | = | 0 |
[true] | = | 1 |
[not#(x1)] | = | 0 |
[0] | = | 0 |
[if(x1, x2, x3)] | = | x2 + x3 + 1 |
[quot(x1, x2)] | = | 0 |
[gt#(x1, x2)] | = | 0 |
[minus#(x1, x2)] | = | 0 |
[plus(x1, x2)] | = | x1 + 1 |
[if#(x1, x2, x3)] | = | 0 |
[id(x1)] | = | x1 + 2 |
[quot#(x1, x2)] | = | 0 |
[not(x1)] | = | 1 |
gt(zero,y) | → | false | (15) |
minus(x,0) | → | x | (1) |
gt(s(x),s(y)) | → | gt(x,y) | (16) |
id(x) | → | x | (10) |
gt(s(x),zero) | → | true | (14) |
if(false,x,y) | → | y | (12) |
if(true,x,y) | → | x | (11) |
plus#(id(x),s(y)) | → | plus#(x,if(gt(s(y),y),y,s(y))) | (21) |
The dependency pairs are split into 0 components.
gt#(s(x),s(y)) | → | gt#(x,y) | (32) |
[zero] | = | 0 |
[s(x1)] | = | x1 + 1 |
[gt(x1, x2)] | = | x1 + 1 |
[minus(x1, x2)] | = | x1 + x2 + 9227 |
[plus#(x1, x2)] | = | x1 + 0 |
[false] | = | 1 |
[id#(x1)] | = | 0 |
[true] | = | 1 |
[not#(x1)] | = | 0 |
[0] | = | 0 |
[if(x1, x2, x3)] | = | x2 + x3 + 15620 |
[quot(x1, x2)] | = | 0 |
[gt#(x1, x2)] | = | x1 + x2 + 0 |
[minus#(x1, x2)] | = | 0 |
[plus(x1, x2)] | = | x2 + 1 |
[if#(x1, x2, x3)] | = | 0 |
[id(x1)] | = | x1 + 23637 |
[quot#(x1, x2)] | = | 0 |
[not(x1)] | = | 1 |
gt(zero,y) | → | false | (15) |
minus(x,0) | → | x | (1) |
gt(s(x),s(y)) | → | gt(x,y) | (16) |
id(x) | → | x | (10) |
gt(s(x),zero) | → | true | (14) |
if(false,x,y) | → | y | (12) |
if(true,x,y) | → | x | (11) |
gt#(s(x),s(y)) | → | gt#(x,y) | (32) |
The dependency pairs are split into 0 components.