Below question was asked in GATE 2008 paper :
If L and L' (L complement) are Recursively enumerable then L is ?
a) Regular
b) CFL
c) CSL
d) Recursive
Correct option was option (d) and I accept that it's true. But my question is why can't it be regular or CSL ?
Because I think if we consider L is regular, then L' is also regular (As Regular languages are closed under complementation). And now as L' is regular so according to 'Chomsky hierarchy' L' is also Recursively enumerable. As even L after being regular, it fits into the question statement then why option (a) is not a correct option ? Same goes for CSL, so why option (c) is also not a correct option?
A quick review of language classes -- we know that these 5 language classes are all (strict) subsets of each other:
regular ⊂ CFL ⊂ CSL ⊂ recursive ⊂ recursively enumerable
The question is asking, if we know a language L is recursively enumerable AND we know it's complement L' is also recursively enumerable, what can we say for certain which smaller class L is in?
The answer is equivalent to saying that if a language L is recursively enumerable and NOT recursive, then L' is NOT recursively enumerable. That statement is true, but the equivalent statement for any of the other language classes is not.