A finite automaton where the output depends on both the current state and the input symbol. Output is produced during transitions. A 6-tuple.
Suppose is a Mealy machine, where:
- is a finite set of states
- is a finite input alphabet
- is a finite output alphabet
- is the initial state
- is the transition function
- is the output function
Output is attached to state + input or transitions.