# PlanetPhysics/Category of Automata

A classical automaton ${\mathcal {A}}$, (or simply automaton , or sequential machine , is defined as a quintuple of sets, $I,O$ and $S$, and set-theoretical mappings,
$(I,O,S,\delta :I\times S\rightarrow S;\lambda :S\times S\rightarrow O),$
with $\delta$ being called the transition function and $\lambda$ being called the output function.
Failed to parse (unknown function "\begin{xy}"): {\displaystyle \begin{xy} *!C\xybox{ \xymatrix{ {I \times S }\ar[r]^{\delta}\ar[d]_{t}&{S}\ar[d]^{o}\\ {S \times S}\ar[r]_{\lambda}&{O} } }\end{xy}}
With the above definition one can now define morphisms between automata and their composition. If the automata are defined by square diagrams such as the one shown above, and diagrams are defined by their associated functors, then automata homomorphisms are in fact defined as natural transformations between diagram functors. One also has a consistent, simpler definition as follows.
With the above two definitions now we have sufficient data to define the category of automata and automaton homomorphisms.
The category of automata is a category of automata quintuples $(I_{X},O_{X},X,{\delta }_{X}:I_{X}\times X\rightarrow X;{\lambda }_{X}:X\times X\rightarrow O)$ and automata homomorphisms Failed to parse (unknown function "\A"): {\displaystyle h:{\A}_i \rightarrow {\A}_j} , such that these homomorphisms commute with both the transition and the output functions of any automata Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "http://localhost:6011/en.wikiversity.org/v1/":): {\displaystyle {\A}_i} and Failed to parse (unknown function "\A"): {\displaystyle {\A}_j} .
Remarks:
* Automata homomorphisms can be considered also as automata transformations or as semigroup homomorphisms, when the state space, $X$, of the automaton is defined as a semigroup ${\mathcal {S}}$.
* Abstract automata have numerous realizations in the real world as : machines, robots, devices, computers, supercomputers, always considered as discrete state space sequential machines.
* Fuzzy or analog devices are not included as standard automata.
* Similarly, variable (transition function) automata are not included, but Universal Turing (UT) machines are.
as a five-tuple $(S,\Sigma ,\delta ,I,F)$, where $\Sigma$ is a non-empty set of symbols $\alpha$ such that one can define a configuration of the automaton as a couple $(s,\alpha )$ of a state $s\in S$ and a symbol $\alpha \in \Sigma$. Then $\delta$ defines a "next-state relation, or a transition relation" which associates to each configuration $(s,\alpha )$ a subset $\delta (s,\alpha )$ of S- the state space of the automaton. With this formal automaton definition, the category of abstract automata can be defined by specifying automata homomorphisms in terms of the morphisms between five-tuples representing such abstract automata.
A special case of automaton is when all its transitions are reversible ; then its state space is a groupoid. The category of reversible automata is then a 2-category, and also a subcategory of the 2-category of groupoids, or the groupoid category.

### Remarks:

Other definitions of automata, sequential machines, semigroup automata or cellular automata lead to subcategories of the category of automata defined above. On the other hand, the category of quantum automata is not a subcategory of the automata category defined here.