2.Closure Properties§
Definition: A set is closed over a (binary) operation if, whenever the operation is applied to two members of the set, the result is a member of the set.
Definition: A set is closed over a (binary) operation if, whenever the operation is applied to two members of the set, the result is a member of the set.
Consider regular languages \(L_1\) and \(L_2\). In other words, \(\exists\) regular expressions \(r_1\) and \(r_2\) such that \(L_1 = L(r_1)\) and \(L_2 = L(r_2)\).
Proof: Regular languages are closed under complementation.
Why a DFA, will an NFA work? Must be NFA with trap states.
Proof: Regular languages are closed under intersection.
The idea is to construct a DFA so that it accepts only if both \(M_1\) and \(M_2\) accept. There is an algorithm for that.
Regular languages are closed under these operations
Reversal: \(L^R\)
Difference: \(L_1 - L_2\)
Theorem: If \(L_1\) and \(L_2\) are regular, then \(L_1 / L_2\) is regular.
Homomorphism: Let \(\Sigma, \Gamma\) be alphabets. A homomorphism is a function \(h : \Sigma \rightarrow \Gamma^*\)
Homomorphism means to substitute a single letter with a string.