Definition Mealy machine [lcc-0013]

A Mealy machine with input A, output B and state space S, is a function A \times S \to B \times S.