Let L1 and L2 be two languages such that there exist no string w that belongs to both L1 and L2. I am struggling on How to Prove that, if L1 and L2 are both co-Turing-recognizable, there exists a decidable language A such that L1 ⊆ A and L2 ⊆ A`. A` - complement of A
1 Answers
We may assume that neither of L1
nor L2
is decidable, since if either is, the solution is trivial (let A = L1
or A' = L2
if L1
or L2
is decidable, respectively). In particular, neither L1
nor L2
is Turing-recognizable.
Given that, A
must be equal to the set L1
with some more elements added to it (it must have at least the elements in A1
if it is to be a superset). Because L2
is a subset of A'
, none of the elements added to L1
to form A
can be in L2
. Furthermore, we must add infinitely many items since adding finitely many items cannot render A
decidable where L1
is not.
Split up the stuff not in L1
or L2
into two languages R1
and R2
such that those languages have nothing in common and every string is in exactly one of L1
, L2
, R1
and R2
. Furthermore, choose R1
and R2
so that R1
is co-Turing-recognizable, R2
is Turing-recognizable and both sets are infinite. Let A = L1 U R1
. Now, A' = L2 U R2
.
A
is co-Turing-recognizable. Ifw
is not inL1
, we can eventually recognize that fact. Ifw
is not inR1
, we can decide that fact. Therefore, we can eventually recognize thatw
is in neither.L2
is c-Turing-recognizable. Ifw
is not inL2
, we can eventually recognize that fact. If it's not inL2
, then it's either inA
orR2
. But we can decide whetherw
is inR2
sinceR2
is decidable. Therefore, if we recognize thatw
is not inL2
and decide it's not inR2
, we have recognized thatw
is inA
. Therefore,A
is Turing-recognizable.We saw in 1 that
A
is co-Turing-recognizable and in 2 thatA
is Turing-recognizable. Therefore,A
is decidable. Consequently,A'
is decidable.
Note that we sort of waved our hands there when we "split up" stuff not in L1
or L2
into two infinite languages, one co-Turing-recognizable and the other co-Turing-recognizable. It seems like it's safe to assume that in any infinite language, there must be exist a proper subset of that language which is recognizable but not decidable. You might want to look that up and/or prove separately to verify. Proof idea: the elements of any infinite set could be put into lexicographic order, in which case there is a bijection with the language of all strings over the alphabet; because there are such recognizable but undecidable languages over the set of all strings, so too must there be recognizable but undecidable languages over this set of strings. It might be important to note that (L1 U L2)' is recognizable as that might be required to make any argument rigorous.

- 27,682
- 3
- 38
- 73