The rewrite relation of the following conditional TRS is considered.
ssp(nil,0) | → | nil | |
ssp(cons(y,ys'),v) | → | xs | | ssp(ys',v) ≈ xs |
ssp(cons(y,ys'),v) | → | cons(y,xs') | | sub(v,y) ≈ w, ssp(ys',w) ≈ xs' |
sub(z,0) | → | z | |
sub(s(v),s(w)) | → | z | | sub(v,w) ≈ z |
ssp(nil,0) | → | nil |
ssp(cons(y,ys'),v) | → | ssp(ys',v) |
ssp(cons(y,ys'),v) | → | cons(y,ssp(ys',sub(v,y))) |
sub(z,0) | → | z |
sub(s(v),s(w)) | → | sub(v,w) |
ssp(cons(z',$1),y') | →* | ssp($1,y') |
ssp(cons(z',$1),y') | →* | cons(z',ssp($1,sub(y',z'))) |