Formal Languages Closure Properties & Decidability Master Matrix
One-stop matrix for Regular, DCFL, CFL, CSL, Recursive, and RE closure + Rice’s Theorem undecidability shortcuts.
Complete Closure Properties Table (Save 4 Marks Every Year!)
| Operation | Regular | DCFL | CFL | Recursive (REC) | Rec. Enumerable (RE) |
|---|---|---|---|---|---|
| Union () | ✅ Yes | ❌ No | ✅ Yes | ✅ Yes | ✅ Yes |
| Intersection () | ✅ Yes | ❌ No | ❌ No | ✅ Yes | ✅ Yes |
| Complement () | ✅ Yes | ✅ Yes | ❌ No | ✅ Yes | ❌ No |
| Concatenation () | ✅ Yes | ❌ No | ✅ Yes | ✅ Yes | ✅ Yes |
| Kleene Star () | ✅ Yes | ❌ No | ✅ Yes | ✅ Yes | ✅ Yes |
| Intersection with Regular () | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
| Homomorphism () | ✅ Yes | ❌ No | ✅ Yes | ❌ No | ✅ Yes |
Decidable vs. Undecidable Decision Problems
| Problem | Regular | DCFL | CFL | REC / RE (Turing Machine) |
|---|---|---|---|---|
| Membership () | ✅ Decidable | ✅ Decidable | ✅ Decidable (CYK ) | ✅ for REC / ❌ Undecidable for RE |
| Emptiness () | ✅ Decidable | ✅ Decidable | ✅ Decidable | ❌ Undecidable |
| **Finiteness ($ | L | < \infty?$)** | ✅ Decidable | ✅ Decidable |
| Universality () | ✅ Decidable | ✅ Decidable | ❌ Undecidable | ❌ Undecidable |
| Equivalence () | ✅ Decidable | ✅ Decidable | ❌ Undecidable | ❌ Undecidable |
Rice’s Theorem Shortcut: Every non-trivial semantic property of the language recognized by a Turing Machine is UNDECIDABLE! (e.g., "Is regular?", "Does accept ?", "Does contain at least 2 strings?" are ALL undecidable!). Watch out for syntactic machine questions like "Does have 15 states?" or "Does halt on within 100 steps?" — those ARE decidable!
Practice Questions on This Chapter (4)
Let be a Regular language, be a Deterministic Context-Free Language (DCFL), and be a Recursively Enumerable (RE) language. Which of the following statements are ALWAYS TRUE?
Context-Free Languages (CFLs) are CLOSED under which of the following set of operations?
By Rice’s Theorem, which of the following problems about an arbitrary Turing Machine is DECIDABLE?
Which of the following decision problems about Turing Machines and Formal Languages are DECIDABLE?