Computer science Automata and formal languages Theorem
Myhill–Nerode theorem
Builds on Regular languageEquivalence relationEquivalence classDeterministic finite automaton
Statement
Let be an alphabet and let . For , write when, for every , if and only if . Then is an equivalence relation on , and:
- is a regular language if and only if has finitely many equivalence classes;
- if is regular, the number of classes of is the least number of states of a DFA that accepts ;
- a DFA that accepts with this least number of states is unique up to renaming of the states.
Remarks
If a DFA accepts , then two words that lead to the same state are equivalent, so has at most as many classes as has states. Conversely, if there are finitely many classes, the classes themselves are the states of a DFA. On the letter , the class of goes to the class of . The class of is initial, and the classes inside are accepting. This DFA is well defined because implies . Example: for , the words for lie in pairwise different classes, since but for ; so is not regular. The class of corresponds to the Brzozowski derivative , since means .
Going deeper
For a student
Unlike the pumping lemma, this theorem characterizes regular languages, so it can prove both regularity and non-regularity. It also gives the theoretical basis of DFA minimization: minimizing a DFA means merging states that lead to equivalent words. The two-sided version of the same idea, the syntactic congruence, leads to the syntactic monoid of a language.
Reading path
To understand this page from the ground up, read these 5 pages in order. The foundations come first.
Show the path as a graph
- no evidence level
- Deterministic finite automaton concept
- Equivalence class concept
- Equivalence relation concept
- Regular language concept
- Myhill–Nerode theorem statement
Further reading
About this page
| Tag | 96BRMR4P3N |
|---|---|
| URI | m2://96BRMR4P3N |
| Kind | statement, theorem |
| Writing | W0 stub |
| MSC | 68Q45, 68Q70 |
| Status | This copy of the site has no build data. Run m2 status 96BRMR4P3N. |
| About | Regular language |
| Uses | Regular language, Equivalence relation, Equivalence class, Deterministic finite automaton |
| Same as | |
| Changed | 3 November 2026 |
Markdown · JSON · Edit on GitHub
What this page needs for W1
- an inventory row: the row of the inventory that the node accounts for (0 of 1)
- a source with a locator (0 of 1)
The writing levels say how complete the text of a page is. They do not measure its truth.
What links here
No page links to this page yet.