Using Closure Properties to Show Nonregularity
Learn how to use closure properties to show that a language is not regular.
We'll cover the following...
Proving languages are not regular using closure properties
Using our knowledge of a few nonregular languages, we can conclude that other languages are nonregular merely by using the closure properties of regular languages. For example, the language NOTPRIME ( where is not prime) is not regular. If it were, then its complement, PRIME ( where is prime), would also be, but we know that PRIME is not regular, so NOTPRIME can’t be regular since regular languages are closed under complement.
It is fruitless to attempt to use the pumping theorem on a language like this, defined with a negative (e.g., using “not”). Instead, we show its complement is not regular. Depending on the language, other closure properties can be used to show that a language is not regular.
We can also show that the language EQUAL, defined as ...