fmod LAST 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 last : MyList -> MyItem [metadata "induce"] . *** input encapsulation op in : MyList -> InVec [ctor] . vars U V W X Y Z : MyItem . eq last(cons(Y,[])) = Y . eq last(cons(Y,cons(X,[]))) = X . eq last(cons(Y,cons(X,cons(Z,[])))) = Z . endfm