Closure Properties & Language Hierarchy

Answer & solution
Official answer: C
Givens and goal
Languages L₁ and L₂ share a finite alphabet. Both L₂ and L₁∩L₂ are regular. Which conclusions always hold: A L₁ regular; B L₁∪L₂ regular; C complement of L₂ context-free; D L₁ context-free?
Approach
Use closure of regular languages under complement and their inclusion in context-free languages, then choose a regular L₂ that hides all complexity in L₁.
Step-by-step solution
1. Since L₂ is regular, its complement (relative to the shared alphabet’s full set of finite strings) is regular by closure under complement. Every regular language is context-free: for example, a finite automaton can be converted into a right-linear grammar, which is a context-free grammar. Therefore the complement of L₂ is context-free, so C must hold.
2. To test the other claims, let L₂=∅ and L₁={an bn cn:n≥0}. The alphabet {a,b,c} is finite as required.
3. The empty language is regular, and L₁∩L₂=∅ is also regular. Thus this choice satisfies both hypotheses no matter how complicated L₁ is.
4. The equal-three-block language L₁ is not context-free, hence is not regular either. The usual context-free pumping argument takes ap bp cp: a pumpable region of length at most p cannot span all three blocks, so pumping changes at most two counts or destroys the block order while at least one count remains p.
5. Therefore A and D fail. Also L₁∪L₂=L₁, so B fails for the same example.
6. Only C is guaranteed. Regularity of an intersection controls the part of L₁ inside L₂, not the potentially non-context-free part outside L₂.