Skip to main content

Closure properties of regular languages

Short answer

Regular languages are closed under union, concatenation, Kleene star, complement, intersection, difference, reversal, and homomorphism. These properties allow construction of complex regular languages from simple ones and help prove non-regularity via the pumping lemma.

State the closure properties of Regular Language.

Regular languages are closed under the following operations: applying the operation to regular languages always gives a regular language.

OperationMeaningWhy it is regular
Union L₁ ∪ L₂Strings in eitherRegular expression r₁ + r₂, or NFA with a new start state and ε-moves
Concatenation L₁L₂A string of L₁ followed by one of L₂Regular expression r₁r₂; ε-link final states of M₁ to start of M₂
Kleene star L*Zero or more strings of LRegular expression r*; add ε-moves from finals back to start
Complement L̄ = Σ* − LStrings not in LMake the DFA complete and swap final and non-final states
Intersection L₁ ∩ L₂Strings in bothDe Morgan: L₁ ∩ L₂ = complement of (L̄₁ ∪ L̄₂); or product automaton
Difference L₁ − L₂In L₁ but not in L₂L₁ ∩ L̄₂
Reversal LᴿAll strings written backwardsReverse all arrows and swap start and final states
Homomorphism h(L)Replace each symbol by a stringSubstitute in the regular expression

These properties are used to build complex regular languages from simple ones and, together with the pumping lemma, to prove that some languages are not regular.

✓ Answer checked by Claude Opus 5.5 (high effort)

All Discrete Structure chapter 2 questions →