fmod SHIFTR is sorts MyItem MyList InVec . *** DT definitions (constructors) op [] : -> MyList [ctor] . op cons : MyItem MyList -> MyList [ctor] . *** defined function names (to be induced, preds, bk) op shiftr : MyList -> MyList [metadata "induce"] . *** input encapsulation op in : MyList -> InVec [ctor] . vars U V W X Y Z : MyItem . eq shiftr([]) = [] . eq shiftr(cons(W,[])) = cons(W,[]) . eq shiftr(cons(Y,cons(Z,[]))) = cons(Z,cons(Y,[])) . eq shiftr(cons(X,cons(Z,cons(W,[])))) = cons(W,cons(X,cons(Z,[]))) . eq shiftr(cons(X,cons(Z,cons(W,cons(Y,[]))))) = cons(Y,cons(X,cons(Z,cons(W,[])))) . endfm