The rewrite relation of the following (conditional) TRS is considered.
gcd(add(x,y),y) | → | gcd(x,y) | | |
gcd(y,add(x,y)) | → | gcd(x,y) | | |
gcd(x,0) | → | x | | |
gcd(0,x) | → | x | | |
gcd(x,y) | → | gcd(y,x) | | leq(y,x) ≈ false |
add(0,y) | → | y | | |
add(s(x),y) | → | s(add(x,y)) | | |
gcd(add(x,y),y) | → | gcd(x,y) | | |
gcd(y,add(x,y)) | → | gcd(x,y) | | |
gcd(x,0) | → | x | | |
gcd(0,x) | → | x | | |
add(0,y) | → | y | | |
add(s(x),y) | → | s(add(x,y)) | | |
We collect the conditions in the fresh compound-symbol |.