Professional Documents
Culture Documents
-1-
Lecture 16
Objectives
Regular Languages
Closure Properties on Regular Languages
o Closure under union
o Closure under intersection
o Closure under complement
o Closure under reversal
o Closure under difference
o Closure under concatenation
o Closure under kleen closure
Regular Languages
Regular languages are all those languages for which
o Regular expression can be written
o FSA can be constructed
o TG can be constructed
According to Kleens theorem if any one of above can be devised then remaining two
also can be devised.
Closure Properties on Regular Languages
All regular languages are closed under union, intersection, complement, reversal,
difference, concatenation, and kleen closure.
We are going to prove all properties one by one.
Theorem 1: If L1 and L2 are two regular languages, then so is L1 + L2.
Proof: (Constructive Proof)
L1 and L2 are regular languages (given)
If L1 and L2 are regular so there must be a regular expression (Kleens Theorem)
Let R1 and R2 are regular expressions for L1 and L2 respectively.
Now
R1+R2 is the regular expression for L1+L2
So, L1+L2 is regular (every language have regular expression is regular).
Hence proved.
Theorem 2: If L1 and L2 are two regular languages, then so is L1.L2.
Proof: (Constructive Proof)
L1 and L2 are regular languages (given)
If L1 and L2 are regular so there must be a regular expression (Kleens Theorem)
Let R1 and R2 are regular expressions for L1 and L2 respectively.
Now
Tahir Naseem/Handout 16
-2-
Tahir Naseem/Handout 16
-3-
Complement of above FA is
Tahir Naseem/Handout 16
-4-
Tahir Naseem/Handout 16
-5-
Tahir Naseem/Handout 16
-6-