Which of the following statements regarding decidability in formal languages is/are TRUE?
Show Mathematical Proof & Trap Breakdown
Step 1 (S1 is TRUE): Ambiguity of CFGs is proven undecidable via reduction from the Post Correspondence Problem (PCP). There exists no algorithm that can test arbitrary CFG ambiguity.
Step 2 (S2 is FALSE): By Rice's Theorem, any non-trivial semantic property of the language recognized by a Turing machine is undecidable. \"Language contains at least 5 strings\" is a semantic property (satisfied by some TMs, not satisfied by \(\emptyset\)). Hence it is undecidable.
Step 3 (S3 is TRUE): For two DFAs \(D_1, D_2\), \(L(D_1) = L(D_2) \iff (L(D_1) \cap \overline{L(D_2)}) \cup (\overline{L(D_1)} \cap L(D_2)) = \emptyset\). Since regular languages are closed under complement, intersection, and union, and DFA emptiness is decidable, DFA equivalence is DECIDABLE.
Step 4 (S4 is FALSE): Emptiness for Context-Sensitive Languages (CSLs / Linear Bounded Automata) is UNDECIDABLE. Membership for CSL is decidable (in PSPACE), but emptiness is undecidable.