\mathbf{R}, \mathbf{RE}, and \mathbf{coRE} are closed under union, intersection, and reverse
The goal of this exercise is to show some closure properties of \mathbf{R}, \mathbf{RE}, and \mathbf{coRE}.
Recall that a class \cal C of languages is closed under a binary operation \circ (e.g., union or intersection) if, for any A,B\in {\cal C}, it holds that A \circ B \in {\cal C}. Similarly, \cal C is closed under a unary operation \circ (e.g., complement or reverse) if for any A \in {\cal C}, it holds that \circ A \in {\cal C}.
Union. Show the following properties:
- \mathbf{R} is closed under union.
- \mathbf{RE} is closed under union.
- \mathbf{coRE} is closed under union.
Intersection. Show the following properties:
- \mathbf{R} is closed under intersection.
- \mathbf{RE} is closed under intersection.
- \mathbf{coRE} is closed under intersection.
Set subtraction. Show the following property:
- \mathbf{R} is closed under set subtraction.
Reverse. Show the following properties:
- \mathbf{R} is closed under reverse.
- \mathbf{RE} is closed under reverse.
- \mathbf{coRE} is closed under reverse.