Regular Proofs
Regular Proofs
Closure Properties
• Recall that we can carry out operations on one or more languages to obtain a new language
• Very useful in studying the properties of one language by relating it to other (better under-
stood) languages
• Most useful when the operations are sophisticated, yet are guaranteed to preserve interesting
properties of the language.
– =⇒ L1 ∪ L2 = L(R1 ∪ R2 ) =⇒ L1 ∪ L2 regular.
– =⇒ L1 ◦ L2 = L(R1 ◦ R2 ) =⇒ L1 ◦ L2 regular.
– =⇒ L∗1 = L(R1∗ ) =⇒ L∗1 regular.
Proposition 3. Regular Languages are closed under complementation, i.e., if L is regular then
L = Σ∗ \ L is also regular.
Proof. • If L is regular, then there is a DFA M = (Q, Σ, δ, q0 , F ) such that L = L(M ).
1
Proposition 4. Regular Languages are closed under intersection, i.e., if L1 and L2 are regular
then L1 ∩ L2 is also regular.
Proof. Observe that L1 ∩ L2 = L1 ∪ L2 . Since regular languages are closed under union and
complementation, we have
• L1 ∪ L2 is regular
• Hence, L1 ∩ L2 = L1 ∪ L2 is regular.
• Q = Q1 × Q2
• q0 = hq1 , q2 i
• F = F1 × F2
M accepts L1 ∩ L2 (exercise)
What happens if M1 and M2 where NFAs? Still works! Set δ(hp1 , p2 i, a) = δ1 (p1 , a) × δ2 (p2 , a).
An Example
1
1
q00 0 0 q00 q01
1 1
0 0 × q01 q11 = 0 0 0 0
1 1
q10 q10 q11
1
1