2

Given two languages $L_1, L_2$ such that $L_1L_2\notin RE$, is it always true that $L_2L_1 \notin RE$?

I wasn't able to prove it or find a valid counterexample.

Yuval Filmus
  • 280,205
  • 27
  • 317
  • 514
Shimon
  • 23
  • 2

1 Answers1

4

Let $A \subseteq \mathbb{N}$ be an arbitrary subset containing $0$. Define $L_1 = \{0^n 1 : n \in A\}$ and $L_2 = \{0^n : n \in \mathbb{N}\}$. Then $A$ reduces to $L_1L_2$, but $L_2L_1 = \{0^n1 : n \in \mathbb{N}\}$.

Yuval Filmus
  • 280,205
  • 27
  • 317
  • 514