We are given two languages $ L_1 $ and $ L_2 $ over an alphabet $ \Sigma $, and a bijection $ f : \Sigma^* \to \Sigma^* $ satisfying:
- $ f $ is computable in polynomial time,
- $ f^{-1} $ is also computable in polynomial time,
- For every $ x \in \Sigma^* $,
$$
x \in L_1 \iff f(x) \in L_2.
$$
This means $ f $ is a polynomial-time isomorphism (or p-isomorphism) between $ L_1 $ and $ L_2 $. Such a mapping is a total, one-to-one, onto, and efficiently computable transformation that preserves membership. Consequently, $ L_1 $ and $ L_2 $ are computationally indistinguishable with respect to fundamental properties like decidability: any such property preserved under computable bijections with computable inverses must hold for both or for neither.
Option A: $ L_1 \in P $ and $ L_2 $ is finite
A finite language is always in $ P $, since membership can be decided by checking against a finite list. Because $ f $ is a bijection, $ L_1 $ is finite if and only if $ L_2 $ is finite. Thus, if $ L_2 $ is finite, then $ L_1 = f^{-1}(L_2) $ is also finite and therefore in $ P $. This scenario is consistent with the existence of a p-isomorphism.
Option A can be true.
Option B: $ L_1 \in \text{NP} $ and $ L_2 \in P $
Since $ P \subseteq \text{NP} $, any language in $ P $ is automatically in NP. If $ L_2 \in P $, then to decide $ L_1 $, we can compute $ f(x) $ in polynomial time and run the polynomial-time decider for $ L_2 $. This gives a polynomial-time algorithm for $ L_1 $, so $ L_1 \in P \subseteq \text{NP} $. Thus, the condition $ L_1 \in \text{NP} $ is satisfied. There is no contradiction here.
Option B can be true.
Option C: $ L_1 $ is undecidable and $ L_2 $ is decidable
This is impossible.
Assume $ L_2 $ is decidable. Then there exists a Turing machine $ M_2 $ that halts on every input and correctly decides $ L_2 $. To decide $ L_1 $, construct a machine $ M_1 $ that, on input $ x $:
- Computes $ y = f(x) $ (possible in finite time, as $ f $ is computable),
- Runs $ M_2 $ on $ y $,
- Accepts if $ M_2 $ accepts, and rejects otherwise.
Because $ x \in L_1 \iff f(x) \in L_2 $, this procedure correctly decides $ L_1 $, and $ M_1 $ always halts (since both $ f $ and $ M_2 $ halt). Hence, $ L_1 $ is decidable. The reverse also holds: if $ L_1 $ is decidable, then $ L_2 $ is decidable using $ f^{-1} $. Therefore, decidability is preserved under such a bijection. It is logically impossible for one language to be undecidable while the other is decidable.
Option C cannot be true.
Option D: $ L_1 $ is recursively enumerable and $ L_2 $ is recursive
Recall that a recursive (decidable) language is always recursively enumerable, but the converse is not always true. The statement only asserts that $ L_1 $ is recursively enumerable and $ L_2 $ is recursiveit does not claim that $ L_1 $ is not recursive. In fact, if $ L_2 $ is recursive, then $ L_1 $ must also be recursive (by the same construction used in Option C). Since every recursive language is recursively enumerable, the condition “$ L_1 $ is recursively enumerable” is satisfied.
Thus, this scenario is consistent for example, when both languages are decidable.
Option D can be true.
$$
\color{lime} \boxed{\text{Answer: C}}
$$