Math Problem Statement

Prove that for all countable sets X and Y, X ∪ Y is countable.

Solution

To prove that the union of two countable sets XX and YY is countable, we will proceed as follows:

Step-by-Step Proof

Definitions:

  1. Countable Set: A set AA is countable if there exists a bijection between AA and the set of natural numbers N\mathbb{N}, meaning AA can either be finite or countably infinite.
  2. Union of Two Sets: The union XYX \cup Y consists of all elements in XX, YY, or both.

Goal:

We need to prove that if XX and YY are countable sets, then their union XYX \cup Y is also countable.

Strategy:

We construct functions from XX and YY to the set N\mathbb{N} and use these to define a function on the union XYX \cup Y.

Step 1: Countable Functions for XX and YY

Since XX and YY are countable, there exist bijections:

  • f:XNf: X \to \mathbb{N}
  • g:YNg: Y \to \mathbb{N}

Thus, each element in XX and YY can be uniquely assigned a natural number.

Step 2: Define a Function on the Union XYX \cup Y

To construct a bijection for XYX \cup Y, we must map the elements of XYX \cup Y to N\mathbb{N}.

There are two cases to consider:

  • XYX \cap Y \neq \emptyset, meaning XX and YY may have some common elements.
  • XY=X \cap Y = \emptyset, meaning XX and YY are disjoint.

To handle both cases, we can proceed as follows:

  • Consider the function h:XYN×{0,1}h: X \cup Y \to \mathbb{N} \times \{0, 1\} defined by: \begin{cases} (f(z), 0) & \text{if } z \in X \setminus Y \\ (g(z), 1) & \text{if } z \in Y \setminus X \\ (f(z), 0) & \text{if } z \in X \cap Y \end{cases}$$

This function creates a distinct pair for elements of XX and YY by pairing the outputs of ff and gg with an indicator value (0 or 1), ensuring that even if an element is shared by both sets, it is assigned consistently.

Step 3: Map N×{0,1}\mathbb{N} \times \{0, 1\} to N\mathbb{N}

Next, we need to show that N×{0,1}\mathbb{N} \times \{0, 1\} is countable. This can be done by interleaving the pairs to produce a single natural number using a known bijection between N×N\mathbb{N} \times \mathbb{N} and N\mathbb{N}. A simple function that works is: φ(n,0)=2n,φ(n,1)=2n+1\varphi(n, 0) = 2n, \quad \varphi(n, 1) = 2n + 1 This function maps all pairs in N×{0,1}\mathbb{N} \times \{0, 1\} to distinct natural numbers, preserving the countability of the union.

Step 4: Conclude that XYX \cup Y is Countable

The composition of the function hh with the bijection φ\varphi gives a bijection from XYX \cup Y to N\mathbb{N}, showing that XYX \cup Y is countable.

Conclusion:

We have constructed a bijection from the union XYX \cup Y to N\mathbb{N}, proving that the union of two countable sets is countable.


Would you like more details or have any questions on this?

Here are 5 follow-up questions to deepen your understanding:

  1. What would change in the proof if XX or YY were finite instead of infinite?
  2. How does the concept of countability relate to uncountable sets like R\mathbb{R}?
  3. Can you extend this proof to a finite or infinite union of countable sets?
  4. How does the interleaving method for N×{0,1}\mathbb{N} \times \{0, 1\} relate to Cantor’s pairing function?
  5. How would this proof be adjusted if XX and YY were not disjoint?

Tip: The union of any finite number of countable sets is always countable, but the infinite case requires a more careful treatment involving the axiom of choice!

Ask a new question for Free

By Image

Drop file here or Click Here to upload

Math Problem Analysis

Mathematical Concepts

Set Theory
Countability
Functions
Bijections

Formulas

φ(n, 0) = 2n, φ(n, 1) = 2n + 1

Theorems

Countable Union Theorem
Bijection between Natural Numbers and Cartesian Product

Suitable Grade Level

University level (Introductory Set Theory or Discrete Mathematics)