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 L1 and L2. In other words, ∃ regular expressions r1 and r2 such that L1=L(r1) and L2=L(r2).
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 M1 and M2 accept. There is an algorithm for that.
Regular languages are closed under these operations
Reversal: LR
Difference: L1−L2
Theorem: If L1 and L2 are regular, then L1∖L2 is regular.
Homomorphism: Let Σ,Γ be alphabets. A homomorphism is a function h:Σ→Γ∗
Homomorphism means to substitute a single letter with a string.