(For the moment, mostly as an example of a coalgebra for an endofunctor and to start discussion of models for non-determinism.)
This will give the classical definition as a non-deterministic state-based system and then show how to turn that form into the coalgebraic form.
A non-deterministic automaton consists of the following data:
a set of states, ;
a set, , of input symbols ;
a function, , called the next state relation,
In the usual interpretation if the automaton is in state , and is ‘given’ the input , then it changes to being in one of the states in the subset, , of .
The ‘final’ predicate, of course, returns if a state is a final state and otherwise. (There will, in general, be a set of final or ‘accept’ states.)
(For the moment we will not look at the links between automata and languages.)
The first step in transforming this to the coalgebraic form is to curry , so as to obtain it in the form . We thus have for a state, , . We then also have a product function
\alpha = \delta \times (final) : Q \to Q^\Sigma\times bool.
If we now write , we get a functor (for you to check) and the non-deterministic automaton corresponded precisely to a coalgebra, , for .
For a summary of automata theory , look at the Wikipedia.
For a thorough treatment, see
or other texts on the subject.
For the coalgebraic treatment, this is discussed in: