The rewrite relation of the following conditional TRS is considered.
le(x,0) | → | false | |
le(0,s(y)) | → | true | |
le(s(x),s(y)) | → | le(x,y) | |
min(cons(x,nil)) | → | x | |
min(cons(x,xs)) | → | x | | min(xs) ≈ y, le(x,y) ≈ true |
min(cons(x,xs)) | → | y | | min(xs) ≈ y, le(x,y) ≈ false |
le(x,0) | → | false | |
le(0,s(y)) | → | true | |
le(s(x),s(y)) | → | le(x,y) | |
min(cons(x,nil)) | → | x | |
min(cons(x,xs)) | → | x | | le(x,min(xs)) ≈ true |
min(cons(x,xs)) | → | min(xs) | | le(x,min(xs)) ≈ false |