Skip to content

Mealy machine

In the theory of computation, a Mealy machine is a finite-state machine whose output values are determined both by its current state and the current inputs.

Core Idea

Mealy machine is treated here as the recurring automata theory identity summarized by this source-grounded definition: In the theory of computation, a Mealy machine is a finite-state machine whose output values are determined both by its current state and the current inputs. In the theory of computation, a Mealy machine is a finite-state machine whose output values are determined both by its current state and the current inputs. This is in contrast to a Moore machine, whose output values are determined solely by its current state.

How would you explain it like I'm…

Mood-and-Button Robot

Imagine a toy robot that can be in a few moods, like happy or sleepy. When you press a button, what it says depends on both its mood and which button you pressed, and then it may switch moods. That kind of robot is a Mealy machine.

State-Plus-Input Machine

A Mealy machine is a simple kind of pretend computer with a small number of 'states', like settings it can be in. When it gets an input, two things happen: it gives an output, and it may move to a new state. The output depends on both the state it's in and the input it just got. That's different from a Moore machine, where the output depends only on the state. Because the output reacts right away to the input, connecting two Mealy machines together needs care.

Input-Dependent Output Automaton

In the theory of computation, a finite-state machine has a limited set of states and moves between them based on inputs. A Mealy machine is a finite-state machine that also produces outputs, and its output is determined by both the current state and the current input. This contrasts with a Moore machine, whose output depends only on the current state. A Mealy machine is deterministic: for each state and input, there is at most one transition. Because a change in input can change the output immediately, as soon as the logic finishes, connecting Mealy machines to each other can create unwanted feedback if you aren't careful.

 

A Mealy machine is a finite-state machine whose outputs are a function of both the current state and the current input, in contrast with a Moore machine, whose outputs depend only on the current state. It is a deterministic finite-state transducer, meaning that for each state and input symbol there is at most one transition. Formally, it is a 6-tuple (S, S_0, Σ, Λ, T, G): a finite set of states S, an initial state S_0, an input alphabet Σ, an output alphabet Λ, a transition function T: S × Σ → S, and an output function G: S × Σ → Λ. Because outputs are attached to transitions rather than states, an input change can change the output as soon as the combinational logic settles. That responsiveness can cause asynchronous feedback problems when Mealy machines are interconnected, as in systems of concurrently operating subsystems such as coordinated traffic lights.

Scope of Application

  • History. Mealy, who presented the concept in a 1955 paper, "A Method for Synthesizing Sequential Circuits".

  • Formal definition. a transition function T : S \times \Sigma \rightarrow S mapping pairs of a state and an input symbol to the corresponding next state.

  • Formal definition. an output function G : S \times \Sigma \rightarrow \Lambda^ mapping pairs of a state and an input symbol to the corresponding output symbol.

  • Formal definition. In some formulations, the transition and output functions are coalesced into a single function T : S \times \Sigma \rightarrow S \times \Lambda^ .

  • Applications. However, although a Mealy model could be used to describe the Enigma, the state diagram would be too complex to provide feasible means of designing complex ciphering machines.

Clarity

A clear use of Mealy machine names the carrier, the operative relation, and the conditions under which the source treats the identity as present. The minimal definition is In the theory of computation, a Mealy machine is a finite-state machine whose output values are determined both by its current state and the current inputs.

Manages Complexity

Mealy machine compresses multiple automata theory details into a stable diagnostic relation. The source shows both the central mechanism—for example, a traffic light is a system that consists of multiple subsystems, such as the different traffic lights, that work concurrently.—and the practical consequence—mealy, who presented the concept in a 1955 paper, "A Method for Synthesizing Sequential Circuits".

Abstract Reasoning

  1. Type the carrier. Identify the automata theory entities to which the claim applies.
  2. State the relation. Use the source-grounded identity: In the theory of computation, a Mealy machine is a finite-state machine whose output values are determined both by its current state and the current inputs.
  3. Check operation and conditions. "Evolution across time" is realized in this abstraction by having the state machine consult the time-changing input symbol at discrete "timer ticks" t0, t1, t2, ... and react according to its internal configuration at those idealized.

Knowledge Transfer

Within the home domain. Knowledge about Mealy machine transfers literally when a new case preserves the same carrier type, relation, and recognition test. Mealy, who presented the concept in a 1955 paper, "A Method for Synthesizing Sequential Circuits". a transition function T : S \times \Sigma \rightarrow S mapping pairs of a state and an input symbol to the corresponding next state. Beyond the home domain. No canonical parent is asserted for Mealy machine.

Relationships to Other Abstractions

Local relationship map for Mealy machineParents appear above the current abstraction, mutual partners to the right, and children below. Node labels state whether each abstraction is prime or domain-specific; colors identify relation types.Mealy machineDOMAINDomain-specific abstraction: Abstract Machine — is a kind ofAbstract MachineDOMAIN

Current abstraction Mealy machine Domain-specific

Parents (1) — outgoing typed relations

  • Mealy machine is a kind of Abstract Machine Domain-specific

    Mealy machine is a strict kind of Abstract Machine: its frozen identity entails the parent's defining structure while adding domain-specific restrictions.

Hierarchy paths (2) — routes to 2 parentless roots

Neighborhood in Abstraction Space

Mealy machine sits in a crowded region of the domain-specific corpus (38th percentile for distinctiveness): several abstractions share nearly its structure, so a description that fits it tends to fit its neighbors too.

Family — Computation Models & Complexity Classes (37 abstractions)

Nearest neighbors

Computed from structural-signature embeddings · 2026-11-14