The rewrite relation of the following conditional TRS is considered.
filter(n,r,nil) | → | pair(mo,nil) | |
filter(n,r,cons(x,xs)) | → | pair(x,xs) | | eq(div(x,n),pair(q,r)) ≈ true |
filter(n,r,cons(x,xs)) | → | pair(y,cons(x,ys)) | | filter(n,r,xs) ≈ pair(y,ys), eq(div(x,n),pair(q,r)) ≈ false |
filter(n,r,cons(x,xs)) | → | pair(x,xs) | | eq(div(x,n),pair(q,r)) ≈ true |
filter(n,r,cons(x,xs)) | → | pair(y,cons(x,ys)) | | filter(n,r,xs) ≈ pair(y,ys), eq(div(x,n),pair(q,r)) ≈ false |
We collect the conditions in the fresh compound-symbol conds.