What is Closure Properties

Closure property refers to some operation on language which returns the language with the same type in the result. If a language satisfies the condition for some operation, we can say that the language is closed under that operation.

We will discuss the closure properties of the following formal languages:

  • Regular Language (REG)
  • Deterministic Context Free Language (DCFL)
  • Context Free Language (CFL)
  • Context Sensitive Language (CSL)
  • Recursive Language (REC)
  • Recursive Enumerable Language (REL)

Closure Properties Table

OperationREGDCFLCFLCSLRECREL
UnionYESNOYESYESYESYES
ConcatenationYESNOYESYESYESYES
Kleen ClosureYESNOYESYESYESYES
ReversalYESNOYESYESYESYES
IntersectionYESNONOYESYESYES
ComplementYESYESNOYESYESNO
Inverse HomomorphismYESYESYESYESYESYES
HomomorphismYESNOYESYESYESYES
SubstitutionYESNOYESYESYESYES
SubsetNONONONONONO
Infinite - UnionNONONONONONO
Infinite - IntersectionNONONONONONO
Infinite - DifferenceNONONONONONO
PrefixYESYESYESYESYESYES
QuotientYESNOYESYESYESYES
CycleYESNOYESYESYESYES
MinYESNONO   
MaxYESNONO   
HalfYESNONO   

Closure Properties with Regular Languages

OperationL = REGL = DCFLL = CFLL = CSLL = RECL = REL
L ∪ REGYESYESYESYESYESYES
L ∩ REGYESYESYESYESYESYES
L - REGYESYESYESYESYESYES
REG - LYESYESNOYESYESNO
L / REGYESYESYESYESYESYES