Regular Language Closure

Definition

Let be the set of regular language. Let be an operation that accepts one (or more) languages and produces a language. We say the set of regular languages is closed under if, for all , it is the case that .

Examples

Regular languages are closed under a variety of operations:

  • Compliment:
  • Reversal:
  • Union:
  • Intersection:
  • and many more…

Proofs of Closures

Lets start all proofs with the following NFAs.

Union of Languages

Let , we can construct the new NFA by:

  1. Define a new “joint” start state
  2. Add Epsilon Transitions from the new join start state into the start states of and .
  3. Convert the start states of and to non-starting states.