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

The program

(VAR X Y Z)

(RULES 
dbl(0) -> 0
dbl(s(X)) -> s(s(dbl(X)))
dbls(nil) -> nil
dbls(cons(X,Y)) -> cons(dbl(X),dbls(Y))
sel(0,cons(X,Y)) -> X
sel(s(X),cons(Y,Z)) -> sel(X,Z)
indx(nil,X) -> nil
indx(cons(X,Y),Z) -> cons(sel(X,Z),indx(Y,Z))
from(X) -> cons(X,from(s(X)))
)

Submit to AProVE Web Frontend

Edit in AProVE Web Frontend