MSO Automata Correspondence
Context
Hofmann2025 - Automata Theory and Logic treats the finite-word MSO/automata equivalence as the first major bridge between logic and automata. The same proof idea recurs throughout verification: logical structure becomes automata structure, and automata decision problems become logical decision procedures.
Formal Statement
For finite non-empty words over alphabet Sigma:
Equivalently, regular expressions, NFA/DFA, and MSO sentences define the same class of finite-word languages.
Given an NFA
the automata-to-logic direction introduces one second-order variable X_q per state q. The formula asserts:
uniq(X): each word position carries exactly one state label;init(X): the first position matches a transition out ofq_I;run(X): adjacent state labels respectdelta;acc(X): the final position is labelled by a state inF.
The logic-to-automata direction encodes assignments for free second-order variables as extra 0/1 tracks on the word. Atomic normalized MSO formulas have small NFA; disjunction uses union, negation uses complement, and existential second-order quantification uses alphabet-track projection.
Derivation / Construction
Automata to MSO:
- Take an accepting run of an NFA and represent the run by sets of positions labelled with each state.
- Write an MSO formula whose existentially quantified state-position sets satisfy uniqueness, initialization, transition consistency, and final acceptance.
- A word satisfies the formula iff the NFA has an accepting run on it.
MSO to automata:
- Normalize first-order variables into singleton second-order variables.
- View an interpretation
(w,I)as a multi-track word overSigma x {0,1}^n. - Build NFA for the normalized atomic formulas.
- Use automata closure under union/complement for Boolean structure.
- Use projection of a variable track to model existential second-order quantification.
This construction yields decidability of MSO satisfiability and equivalence by reducing them to automata non-emptiness and equivalence. The construction is effective but can incur non-elementary blowup for MSO formulas.
Implications
The correspondence explains why automata appear as verification backends for logical specification languages. It also cautions against treating decidability as practicality: direct MSO-to-automata translation may be far too large, which is why fragments such as Linear Temporal Logic and safety/co-safety logics get specialized translations and algorithms.