/home/nowonder/forschung/aprove/TPDB05/TRS/TRCSR/Ex1_2_AEL03_Z.trs
The program
(VAR N X Y Z X1 X2)
(RULES
from(X) -> cons(X,n__from(s(X)))
2ndspos(0,Z) -> rnil
2ndspos(s(N),cons(X,n__cons(Y,Z))) -> rcons(posrecip(activate(Y)),2ndsneg(N,activate(Z)))
2ndsneg(0,Z) -> rnil
2ndsneg(s(N),cons(X,n__cons(Y,Z))) -> rcons(negrecip(activate(Y)),2ndspos(N,activate(Z)))
pi(X) -> 2ndspos(X,from(0))
plus(0,Y) -> Y
plus(s(X),Y) -> s(plus(X,Y))
times(0,Y) -> 0
times(s(X),Y) -> plus(Y,times(X,Y))
square(X) -> times(X,X)
from(X) -> n__from(X)
cons(X1,X2) -> n__cons(X1,X2)
activate(n__from(X)) -> from(X)
activate(n__cons(X1,X2)) -> cons(X1,X2)
activate(X) -> X
)
Submit to AProVE Web Frontend
Edit in AProVE Web Frontend