The rewrite relation of the following TRS is considered.
eq(0,0) | → | true | (1) |
eq(0,s(x)) | → | false | (2) |
eq(s(x),0) | → | false | (3) |
eq(s(x),s(y)) | → | eq(x,y) | (4) |
le(0,y) | → | true | (5) |
le(s(x),0) | → | false | (6) |
le(s(x),s(y)) | → | le(x,y) | (7) |
app(nil,y) | → | y | (8) |
app(add(n,x),y) | → | add(n,app(x,y)) | (9) |
min(add(n,nil)) | → | n | (10) |
min(add(n,add(m,x))) | → | if_min(le(n,m),add(n,add(m,x))) | (11) |
if_min(true,add(n,add(m,x))) | → | min(add(n,x)) | (12) |
if_min(false,add(n,add(m,x))) | → | min(add(m,x)) | (13) |
rm(n,nil) | → | nil | (14) |
rm(n,add(m,x)) | → | if_rm(eq(n,m),n,add(m,x)) | (15) |
if_rm(true,n,add(m,x)) | → | rm(n,x) | (16) |
if_rm(false,n,add(m,x)) | → | add(m,rm(n,x)) | (17) |
minsort(nil,nil) | → | nil | (18) |
minsort(add(n,x),y) | → | if_minsort(eq(n,min(add(n,x))),add(n,x),y) | (19) |
if_minsort(true,add(n,x),y) | → | add(n,minsort(app(rm(n,x),y),nil)) | (20) |
if_minsort(false,add(n,x),y) | → | minsort(x,add(n,y)) | (21) |
app#(add(n,x),y) | → | app#(x,y) | (22) |
if_minsort#(true,add(n,x),y) | → | minsort#(app(rm(n,x),y),nil) | (23) |
minsort#(add(n,x),y) | → | min#(add(n,x)) | (24) |
le#(s(x),s(y)) | → | le#(x,y) | (25) |
minsort#(add(n,x),y) | → | if_minsort#(eq(n,min(add(n,x))),add(n,x),y) | (26) |
minsort#(add(n,x),y) | → | eq#(n,min(add(n,x))) | (27) |
if_minsort#(false,add(n,x),y) | → | minsort#(x,add(n,y)) | (28) |
if_minsort#(true,add(n,x),y) | → | app#(rm(n,x),y) | (29) |
if_rm#(false,n,add(m,x)) | → | rm#(n,x) | (30) |
if_min#(true,add(n,add(m,x))) | → | min#(add(n,x)) | (31) |
rm#(n,add(m,x)) | → | eq#(n,m) | (32) |
rm#(n,add(m,x)) | → | if_rm#(eq(n,m),n,add(m,x)) | (33) |
min#(add(n,add(m,x))) | → | if_min#(le(n,m),add(n,add(m,x))) | (34) |
if_min#(false,add(n,add(m,x))) | → | min#(add(m,x)) | (35) |
if_minsort#(true,add(n,x),y) | → | rm#(n,x) | (36) |
if_rm#(true,n,add(m,x)) | → | rm#(n,x) | (37) |
min#(add(n,add(m,x))) | → | le#(n,m) | (38) |
eq#(s(x),s(y)) | → | eq#(x,y) | (39) |
The dependency pairs are split into 6 components.
if_minsort#(false,add(n,x),y) | → | minsort#(x,add(n,y)) | (28) |
minsort#(add(n,x),y) | → | if_minsort#(eq(n,min(add(n,x))),add(n,x),y) | (26) |
if_minsort#(true,add(n,x),y) | → | minsort#(app(rm(n,x),y),nil) | (23) |
[le(x1, x2)] | = | x1 + x2 + 1 |
[if_rm(x1, x2, x3)] | = | x1 + x3 + 0 |
[s(x1)] | = | 1 |
[le#(x1, x2)] | = | 0 |
[if_rm#(x1, x2, x3)] | = | 0 |
[if_min#(x1, x2)] | = | 0 |
[eq(x1, x2)] | = | 25910 |
[false] | = | 25910 |
[min#(x1)] | = | 0 |
[true] | = | 25910 |
[eq#(x1, x2)] | = | 0 |
[0] | = | 1 |
[nil] | = | 47339 |
[app#(x1, x2)] | = | 0 |
[if_minsort#(x1, x2, x3)] | = | x2 + x3 + 3 |
[min(x1)] | = | 153629 |
[minsort#(x1, x2)] | = | x1 + x2 + 3 |
[add(x1, x2)] | = | x1 + x2 + 76814 |
[if_min(x1, x2)] | = | x2 + 0 |
[if_minsort(x1, x2, x3)] | = | 0 |
[minsort(x1, x2)] | = | 0 |
[rm(x1, x2)] | = | x2 + 25910 |
[rm#(x1, x2)] | = | 0 |
[app(x1, x2)] | = | x1 + x2 + 3564 |
eq(s(x),s(y)) | → | eq(x,y) | (4) |
rm(n,add(m,x)) | → | if_rm(eq(n,m),n,add(m,x)) | (15) |
app(nil,y) | → | y | (8) |
eq(0,0) | → | true | (1) |
eq(s(x),0) | → | false | (3) |
if_rm(true,n,add(m,x)) | → | rm(n,x) | (16) |
if_rm(false,n,add(m,x)) | → | add(m,rm(n,x)) | (17) |
rm(n,nil) | → | nil | (14) |
app(add(n,x),y) | → | add(n,app(x,y)) | (9) |
eq(0,s(x)) | → | false | (2) |
if_minsort#(true,add(n,x),y) | → | minsort#(app(rm(n,x),y),nil) | (23) |
The dependency pairs are split into 1 component.
if_minsort#(false,add(n,x),y) | → | minsort#(x,add(n,y)) | (28) |
minsort#(add(n,x),y) | → | if_minsort#(eq(n,min(add(n,x))),add(n,x),y) | (26) |
[le(x1, x2)] | = | x1 + x2 + 1 |
[if_rm(x1, x2, x3)] | = | x1 + x3 + 19427 |
[s(x1)] | = | 1 |
[le#(x1, x2)] | = | 0 |
[if_rm#(x1, x2, x3)] | = | 0 |
[if_min#(x1, x2)] | = | 0 |
[eq(x1, x2)] | = | 25070 |
[false] | = | 25070 |
[min#(x1)] | = | 0 |
[true] | = | 25068 |
[eq#(x1, x2)] | = | 0 |
[0] | = | 1 |
[nil] | = | 1 |
[app#(x1, x2)] | = | 0 |
[if_minsort#(x1, x2, x3)] | = | x2 + 3 |
[min(x1)] | = | 153629 |
[minsort#(x1, x2)] | = | x1 + 4 |
[add(x1, x2)] | = | x1 + x2 + 2 |
[if_min(x1, x2)] | = | x2 + 153624 |
[if_minsort(x1, x2, x3)] | = | 0 |
[minsort(x1, x2)] | = | 0 |
[rm(x1, x2)] | = | x2 + 44497 |
[rm#(x1, x2)] | = | 0 |
[app(x1, x2)] | = | x1 + x2 + 38145 |
eq(s(x),s(y)) | → | eq(x,y) | (4) |
rm(n,add(m,x)) | → | if_rm(eq(n,m),n,add(m,x)) | (15) |
app(nil,y) | → | y | (8) |
eq(0,0) | → | true | (1) |
eq(s(x),0) | → | false | (3) |
if_rm(true,n,add(m,x)) | → | rm(n,x) | (16) |
if_rm(false,n,add(m,x)) | → | add(m,rm(n,x)) | (17) |
rm(n,nil) | → | nil | (14) |
app(add(n,x),y) | → | add(n,app(x,y)) | (9) |
eq(0,s(x)) | → | false | (2) |
if_minsort#(false,add(n,x),y) | → | minsort#(x,add(n,y)) | (28) |
minsort#(add(n,x),y) | → | if_minsort#(eq(n,min(add(n,x))),add(n,x),y) | (26) |
The dependency pairs are split into 0 components.
if_min#(false,add(n,add(m,x))) | → | min#(add(m,x)) | (35) |
min#(add(n,add(m,x))) | → | if_min#(le(n,m),add(n,add(m,x))) | (34) |
if_min#(true,add(n,add(m,x))) | → | min#(add(n,x)) | (31) |
[le(x1, x2)] | = | x1 + x2 + 1 |
[if_rm(x1, x2, x3)] | = | x1 + x3 + 44492 |
[s(x1)] | = | 1 |
[le#(x1, x2)] | = | 0 |
[if_rm#(x1, x2, x3)] | = | 0 |
[if_min#(x1, x2)] | = | x2 + 0 |
[eq(x1, x2)] | = | 5 |
[false] | = | 5 |
[min#(x1)] | = | x1 + 1 |
[true] | = | 3 |
[eq#(x1, x2)] | = | 0 |
[0] | = | 1 |
[nil] | = | 1 |
[app#(x1, x2)] | = | 0 |
[if_minsort#(x1, x2, x3)] | = | 3 |
[min(x1)] | = | 153629 |
[minsort#(x1, x2)] | = | x1 + 4 |
[add(x1, x2)] | = | x1 + x2 + 2 |
[if_min(x1, x2)] | = | x2 + 153624 |
[if_minsort(x1, x2, x3)] | = | 0 |
[minsort(x1, x2)] | = | 0 |
[rm(x1, x2)] | = | x2 + 44497 |
[rm#(x1, x2)] | = | 0 |
[app(x1, x2)] | = | x1 + x2 + 46111 |
eq(s(x),s(y)) | → | eq(x,y) | (4) |
rm(n,add(m,x)) | → | if_rm(eq(n,m),n,add(m,x)) | (15) |
app(nil,y) | → | y | (8) |
eq(0,0) | → | true | (1) |
eq(s(x),0) | → | false | (3) |
if_rm(true,n,add(m,x)) | → | rm(n,x) | (16) |
if_rm(false,n,add(m,x)) | → | add(m,rm(n,x)) | (17) |
rm(n,nil) | → | nil | (14) |
app(add(n,x),y) | → | add(n,app(x,y)) | (9) |
eq(0,s(x)) | → | false | (2) |
if_min#(false,add(n,add(m,x))) | → | min#(add(m,x)) | (35) |
min#(add(n,add(m,x))) | → | if_min#(le(n,m),add(n,add(m,x))) | (34) |
if_min#(true,add(n,add(m,x))) | → | min#(add(n,x)) | (31) |
The dependency pairs are split into 0 components.
le#(s(x),s(y)) | → | le#(x,y) | (25) |
[le(x1, x2)] | = | x1 + x2 + 29405 |
[if_rm(x1, x2, x3)] | = | x1 + x3 + 44492 |
[s(x1)] | = | x1 + 1 |
[le#(x1, x2)] | = | x1 + x2 + 0 |
[if_rm#(x1, x2, x3)] | = | 0 |
[if_min#(x1, x2)] | = | 0 |
[eq(x1, x2)] | = | 29408 |
[false] | = | 29408 |
[min#(x1)] | = | 1 |
[true] | = | 29407 |
[eq#(x1, x2)] | = | 0 |
[0] | = | 1 |
[nil] | = | 36668 |
[app#(x1, x2)] | = | 0 |
[if_minsort#(x1, x2, x3)] | = | 3 |
[min(x1)] | = | 153629 |
[minsort#(x1, x2)] | = | x1 + 4 |
[add(x1, x2)] | = | x1 + x2 + 1 |
[if_min(x1, x2)] | = | x2 + 153626 |
[if_minsort(x1, x2, x3)] | = | 0 |
[minsort(x1, x2)] | = | 0 |
[rm(x1, x2)] | = | x2 + 73900 |
[rm#(x1, x2)] | = | 0 |
[app(x1, x2)] | = | x1 + x2 + 25155 |
eq(s(x),s(y)) | → | eq(x,y) | (4) |
rm(n,add(m,x)) | → | if_rm(eq(n,m),n,add(m,x)) | (15) |
app(nil,y) | → | y | (8) |
eq(0,0) | → | true | (1) |
eq(s(x),0) | → | false | (3) |
if_rm(true,n,add(m,x)) | → | rm(n,x) | (16) |
if_rm(false,n,add(m,x)) | → | add(m,rm(n,x)) | (17) |
rm(n,nil) | → | nil | (14) |
app(add(n,x),y) | → | add(n,app(x,y)) | (9) |
eq(0,s(x)) | → | false | (2) |
le#(s(x),s(y)) | → | le#(x,y) | (25) |
The dependency pairs are split into 0 components.
if_rm#(true,n,add(m,x)) | → | rm#(n,x) | (37) |
rm#(n,add(m,x)) | → | if_rm#(eq(n,m),n,add(m,x)) | (33) |
if_rm#(false,n,add(m,x)) | → | rm#(n,x) | (30) |
[le(x1, x2)] | = | x1 + x2 + 29405 |
[if_rm(x1, x2, x3)] | = | x1 + x3 + 0 |
[s(x1)] | = | x1 + 1 |
[le#(x1, x2)] | = | 0 |
[if_rm#(x1, x2, x3)] | = | x1 + x3 + 0 |
[if_min#(x1, x2)] | = | 0 |
[eq(x1, x2)] | = | 29408 |
[false] | = | 29408 |
[min#(x1)] | = | 1 |
[true] | = | 29408 |
[eq#(x1, x2)] | = | 0 |
[0] | = | 1 |
[nil] | = | 1 |
[app#(x1, x2)] | = | 0 |
[if_minsort#(x1, x2, x3)] | = | 3 |
[min(x1)] | = | 153629 |
[minsort#(x1, x2)] | = | x1 + 4 |
[add(x1, x2)] | = | x1 + x2 + 2 |
[if_min(x1, x2)] | = | x2 + 153624 |
[if_minsort(x1, x2, x3)] | = | 0 |
[minsort(x1, x2)] | = | 0 |
[rm(x1, x2)] | = | x2 + 29408 |
[rm#(x1, x2)] | = | x2 + 29409 |
[app(x1, x2)] | = | x1 + x2 + 25155 |
eq(s(x),s(y)) | → | eq(x,y) | (4) |
rm(n,add(m,x)) | → | if_rm(eq(n,m),n,add(m,x)) | (15) |
app(nil,y) | → | y | (8) |
eq(0,0) | → | true | (1) |
eq(s(x),0) | → | false | (3) |
if_rm(true,n,add(m,x)) | → | rm(n,x) | (16) |
if_rm(false,n,add(m,x)) | → | add(m,rm(n,x)) | (17) |
rm(n,nil) | → | nil | (14) |
app(add(n,x),y) | → | add(n,app(x,y)) | (9) |
eq(0,s(x)) | → | false | (2) |
if_rm#(true,n,add(m,x)) | → | rm#(n,x) | (37) |
rm#(n,add(m,x)) | → | if_rm#(eq(n,m),n,add(m,x)) | (33) |
if_rm#(false,n,add(m,x)) | → | rm#(n,x) | (30) |
The dependency pairs are split into 0 components.
eq#(s(x),s(y)) | → | eq#(x,y) | (39) |
[le(x1, x2)] | = | x1 + x2 + 1 |
[if_rm(x1, x2, x3)] | = | x1 + x3 + 1102 |
[s(x1)] | = | x1 + 1 |
[le#(x1, x2)] | = | 0 |
[if_rm#(x1, x2, x3)] | = | x1 + 0 |
[if_min#(x1, x2)] | = | 0 |
[eq(x1, x2)] | = | 4 |
[false] | = | 4 |
[min#(x1)] | = | 1 |
[true] | = | 4 |
[eq#(x1, x2)] | = | x1 + x2 + 0 |
[0] | = | 1 |
[nil] | = | 1 |
[app#(x1, x2)] | = | 0 |
[if_minsort#(x1, x2, x3)] | = | 3 |
[min(x1)] | = | 153629 |
[minsort#(x1, x2)] | = | x1 + 4 |
[add(x1, x2)] | = | x1 + x2 + 2 |
[if_min(x1, x2)] | = | x2 + 153624 |
[if_minsort(x1, x2, x3)] | = | 0 |
[minsort(x1, x2)] | = | 0 |
[rm(x1, x2)] | = | x2 + 1106 |
[rm#(x1, x2)] | = | 29409 |
[app(x1, x2)] | = | x1 + x2 + 30057 |
eq(s(x),s(y)) | → | eq(x,y) | (4) |
rm(n,add(m,x)) | → | if_rm(eq(n,m),n,add(m,x)) | (15) |
app(nil,y) | → | y | (8) |
eq(0,0) | → | true | (1) |
eq(s(x),0) | → | false | (3) |
if_rm(true,n,add(m,x)) | → | rm(n,x) | (16) |
if_rm(false,n,add(m,x)) | → | add(m,rm(n,x)) | (17) |
rm(n,nil) | → | nil | (14) |
app(add(n,x),y) | → | add(n,app(x,y)) | (9) |
eq(0,s(x)) | → | false | (2) |
eq#(s(x),s(y)) | → | eq#(x,y) | (39) |
The dependency pairs are split into 0 components.
app#(add(n,x),y) | → | app#(x,y) | (22) |
[le(x1, x2)] | = | x1 + x2 + 1 |
[if_rm(x1, x2, x3)] | = | x1 + x3 + 1102 |
[s(x1)] | = | x1 + 1 |
[le#(x1, x2)] | = | 0 |
[if_rm#(x1, x2, x3)] | = | x1 + 0 |
[if_min#(x1, x2)] | = | 0 |
[eq(x1, x2)] | = | 27860 |
[false] | = | 27860 |
[min#(x1)] | = | 1 |
[true] | = | 27859 |
[eq#(x1, x2)] | = | 0 |
[0] | = | 1 |
[nil] | = | 1 |
[app#(x1, x2)] | = | x1 + 0 |
[if_minsort#(x1, x2, x3)] | = | 3 |
[min(x1)] | = | 153629 |
[minsort#(x1, x2)] | = | x1 + 4 |
[add(x1, x2)] | = | x1 + x2 + 1 |
[if_min(x1, x2)] | = | x2 + 153626 |
[if_minsort(x1, x2, x3)] | = | 0 |
[minsort(x1, x2)] | = | 0 |
[rm(x1, x2)] | = | x2 + 28962 |
[rm#(x1, x2)] | = | 29409 |
[app(x1, x2)] | = | x1 + x2 + 30371 |
eq(s(x),s(y)) | → | eq(x,y) | (4) |
rm(n,add(m,x)) | → | if_rm(eq(n,m),n,add(m,x)) | (15) |
app(nil,y) | → | y | (8) |
eq(0,0) | → | true | (1) |
eq(s(x),0) | → | false | (3) |
if_rm(true,n,add(m,x)) | → | rm(n,x) | (16) |
if_rm(false,n,add(m,x)) | → | add(m,rm(n,x)) | (17) |
rm(n,nil) | → | nil | (14) |
app(add(n,x),y) | → | add(n,app(x,y)) | (9) |
eq(0,s(x)) | → | false | (2) |
app#(add(n,x),y) | → | app#(x,y) | (22) |
The dependency pairs are split into 0 components.