/home/nowonder/forschung/aprove/TPDB05/TRS/nontermin/CSR/Ex1_GM03.trs

The program

(VAR X Y)

(RULES 
p(0) -> 0
p(s(X)) -> X
leq(0,Y) -> true
leq(s(X),0) -> false
leq(s(X),s(Y)) -> leq(X,Y)
if(true,X,Y) -> X
if(false,X,Y) -> Y
diff(X,Y) -> if(leq(X,Y),0,s(diff(p(X),Y)))
)

Submit to AProVE Web Frontend

Edit in AProVE Web Frontend