Canonical residual automaton 2026-10-06
The canonical residual automaton of a regular language has its distinct left quotients of a formal language as states, initial state , accepting states those containing the empty word, and letter transition . It is a complete minimal deterministic finite automaton; every other complete minimal deterministic finite automaton for that language is isomorphic to it.
Minimal deterministic finite automaton Created 2026-09-24 Updated 2026-09-24
An irreducible deterministic automaton has the fewest states among deterministic automata for its language and is unique up to isomorphism. Its states are the Myhill--Nerode classes.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 21 2 i Solution Created 2026-10-03 Updated 2026-10-06
The minimal deterministic finite automaton is unique up to an isomorphism preserving the initial state, transitions and accepting states. We use complete deterministic finite automata over the fixed alphabet; the PDF's abbreviation FDA has this meaning. State names themselves cannot be unique.
For words , introduce the Myhill-Nerode equivalenceIt is an equivalence relation, and appending the same letter to equivalent words preserves it: a suffix after is the suffix after . Since is a regular language, take any recognizing deterministic finite automaton. Words reaching the same state are equivalent, since every further suffix gives the same computation. Thus has finite index.
The canonical residual automaton has one state for each class, initial state , transition , and accepting states those with . These choices are well-defined by Myhill-Nerode equivalence. Induction on the input length shows that reading reaches , so the deterministic finite automaton recognizes , and all its states are accessible states of a deterministic finite automaton. The same state can be described by the left quotient of a formal languageTwo states are different precisely when some suffix distinguishes their acceptance behavior.
Every recognizing deterministic finite automaton has at least as many states as there are classes: pick a representative from each class; two different representatives cannot reach the same state. The canonical residual automaton attains this bound, and therefore is a minimal deterministic finite automaton.
For uniqueness, let be any minimal deterministic finite automaton. All its states are accessible, since removing inaccessible states leaves a complete recognizing deterministic finite automaton with fewer states. Map a state reached by to . This is well-defined because two words reaching the same state are equivalent. It is surjective because every class has a representative. Both sets have the minimal number of states, so it is a bijection. It preserves the initial state and transitions by construction, and preserves accepting states by taking the empty word as the suffix. This is the required isomorphism with the canonical residual automaton, provingThe empty word is included throughout, and empty or universal regular languages have the corresponding one-state complete deterministic finite automata.
Past exam of the mathematics course of the University of Cambridge 2018 ii Paper 3 12G b ii Solution Created 2026-09-24 Updated 2026-10-03
Suppose a path took to a state . Part (i) implies that no accept state is reachable from either or . Thus every possible continuation is rejected from both states, so and are indistinguishable states of a deterministic finite automaton. Distinct indistinguishable states cannot occur in a minimal deterministic finite automaton. Therefore , and there is no path from to any other state.
Equivalently, a cycle state in a minimal deterministic finite automaton for a finite language is the unique rejecting sink.
Past exam of the mathematics course of the University of Cambridge 2019 ii Paper 1 12H Solution Created 2026-09-24 Updated 2026-09-29
Let be the extended transition function of a deterministic finite automaton. States are equivalent, or indistinguishable, whenThe quotient deterministic finite automaton by indistinguishable states has state set , initial state , accepting states , and transitionRight invariance of makes this well-defined, and the quotient accepts .
To prove minimality, choose for each state of the accessible automaton a word with . Run the same word in any DFA accepting , and assign the class the reached state of . If two distinct classes reached the same state of , every continuation would have the same acceptance result after and . Since and accept the same language, this would make and indistinguishable in , a contradiction. Thus has at least one distinct state for every class in , proving that the quotient is the minimal deterministic finite automaton.
For divisibility by seven, take states , initial state , accepting set , and transitionsAfter reading a word, the state is its binary value modulo seven, so this binary divisibility automaton accepts exactly the multiples of seven, with leading zeros allowed. Every state is accessible: the three-bit words representing reach the corresponding residues.
Past exam of the mathematics course of the University of Cambridge 2021 iii Paper 120 1 Solution 2026-09-28
The Knaster-Tarski theorem states that the fixed points of a monotone map on a complete lattice form a complete lattice. LetFor every , monotonicity gives , hence . Applying once more gives , so . The definition of then gives , and therefore . Thusis the least fixed point. The order-dual argument shows thatis the greatest fixed point.
More generally, for a family of fixed points, let be the set of prefixed points satisfying and for every . Its meet is again prefixed. Since for every , the element also lies in , so the preceding argument gives . It is the join of within the fixed-point order. The dual construction gives the meet of within that order, proving completeness.
For the Myhill-Nerode theorem, let and define the Myhill-Nerode equivalenceThis is an equivalence relation and a right congruence: implies for every letter .
If a deterministic finite automaton accepts , any two words reaching the same state are equivalent, because every continuation has the same subsequent run. Hence has at most as many classes as the automaton has states. Conversely, if has finitely many classes, define an automaton with state set , initial state , transitionand accepting states with . Right congruence makes the transition well defined, and induction on word length shows that the state reached by is , so the automaton accepts exactly . Therefore is a regular language exactly when has finite index. Moreover, every automaton for has at least one state for each equivalence class, so this quotient is the minimal deterministic finite automaton.
Past exam of the mathematics course of the University of Cambridge 2023 ii Paper 3 12I iii Solution Created 2026-09-24 Updated 2026-09-25
For , consider the ten prefixesIf , appendThenbecause , whereasIndeed, in a word ending in one , the prefix before the final positive run of 's must have length at most ten. Hence every pair is distinguished by some suffix. They occupy ten distinct Myhill-Nerode equivalence classes, so the minimal deterministic finite automaton for has at least ten states.