Büchi–Elgot–Trakhtenbrot theorem

In formal language theory, the Büchi–Elgot–Trakhtenbrot theorem states that a language is regular if and only if it can be defined by a formula in monadic second-order logic (MSO). The theorem is due to Julius Richard Büchi, Calvin Elgot, and Boris Trakhtenbrot.

Since a language is regular if and only if it can be defined as the accepted language of a finite-state automaton, a more precise statement of the theorem is that for every MSO formula defining a formal language, we can find a finite-state automaton defining the same language, and for every finite-state automaton, we can find an MSO formula defining the same language.