Theorem
For any regular languages and, language is regular.
Proof
Since and are regular, there exist NFAs that recognize and .
Let
Construct
where
In the following, we shall use to denote
Let be a string from . Without loss of generality assume .
Let where
Since accepts, there exist such that
Since
We can therefore substitute for and rewrite the above path as
Furthermore,
and
The above path can be rewritten as
Therefore, accepts and the proof is complete.
Note: The idea drawn from this mathematical proof for constructing a machine to recognize is to create an initial state and connect it to the initial states of and using arrows.
Read more about this topic: Union Of Two Regular Languages
Famous quotes containing the word theorem:
“To insure the adoration of a theorem for any length of time, faith is not enough, a police force is needed as well.”
—Albert Camus (19131960)