The rewrite relation of the following conditional TRS is considered.
ssp'(xs,v) | → | ys | | subseteq_m(ys,xs) ≈ tt, sum(ys) ≈ v |
subseteq_m(nil,ys) | → | tt | |
subseteq_m(cons(x,xs),ys) | → | z | | del(x,ys) ≈ some(ws), subseteq_m(xs,ws) ≈ z |
del(x,nil) | → | none | |
del(x,cons(x,ys)) | → | some(ys) | |
del(x,cons(y,ys)) | → | some(cons(y,zs)) | | del(x,ys) ≈ some(zs) |
sum(nil) | → | 0 | |
add(x,0) | → | x | |
add(x,s(y)) | → | s(z) | | add(x,y) ≈ z |
ssp'(xs,v) | → | ys | | subseteq_m(ys,xs) ≈ tt, sum(ys) ≈ v |
subseteq_m(nil,ys) | → | tt | |
subseteq_m(cons(x,xs),ys) | → | subseteq_m(xs,ws) | | del(x,ys) ≈ some(ws) |
del(x,nil) | → | none | |
del(x,cons(x,ys)) | → | some(ys) | |
del(x,cons(y,ys)) | → | some(cons(y,zs)) | | del(x,ys) ≈ some(zs) |
sum(nil) | → | 0 | |
add(x,0) | → | x | |
add(x,s(y)) | → | s(add(x,y)) |
del(__NN147,cons(__NN147,cons(__NN143,cons(__NN147,__NN148)))) | →* | some(cons(__NN143,cons(__NN147,__NN148))) |
del(__NN147,cons(__NN147,cons(__NN143,cons(__NN147,__NN148)))) | →* | some(cons(__NN147,cons(__NN143,__NN148))) |