I know how to prove this informally, but don't know what the formal proof should look like.
2026-04-02 04:48:43.1775105323
Formally prove that every finite language is regular
29.1k Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
3
One-line proof: A finite language can be accepted by a finite machine.
Detailed construction: Suppose the language $\mathcal L$ consists of strings $a_1 ,a_2, \ldots, a_n$.
Consider the following NFA to accept $\mathcal L$: It has a start state $S$ and an accepting state $A$. In between $S$ and $A$ there are $n$ different paths of states, one for each $a_i$. The machine can only get from the beginning of the i'th path to the end if it sees exactly the string $a_i$.
There are $\epsilon$-transitions from $S$ to the beginning of each path, and from the end of each path to $A$.
For example, suppose $\mathcal L$ consists of exactly the three strings "fish", "dog", and "carrot". Then the NFA looks like this: