Math 2.0

Mathematical logic and foundations Proof

Proof that a countable union of countable sets is countable

Builds on Axiom of choiceChoice functionCountable setFamily of setsUnion of a family of setsInjective functionWell-ordering principleProduct of countable sets is countableComposition of injections is injective

Proof

  1. Let II be a countable set, and let (Ai)i∈I(A_i)_{i \in I} be a family of sets with each AiA_i countable. Let U=⋃i∈IAiU = \bigcup_{i \in I} A_i be their union.
  2. Since II is countable, there is an injective function e ⁣:I→ℕe \colon I \to \N.
  3. For each i∈Ii \in I, let JiJ_i be the set of injective functions from AiA_i to ℕ\N. Each JiJ_i is nonempty, because AiA_i is countable.
  4. Let X={Ji:i∈I}X = \{J_i : i \in I\}, a set of nonempty sets. By the axiom of choice, there is a choice function cc on XX.
  5. For i∈Ii \in I, put gi=c(Ji)g_i = c(J_i). Then gi ⁣:Ai→ℕg_i \colon A_i \to \N is injective.
  6. Let x∈Ux \in U. The set Nx={e(i):i∈I, x∈Ai}N_x = \{e(i) : i \in I,\ x \in A_i\} is a nonempty subset of ℕ\N.
  7. By the well-ordering principle, NxN_x has a least element mxm_x. Since ee is injective, exactly one i∈Ii \in I has e(i)=mxe(i) = m_x. Call it i(x)i(x). Then x∈Ai(x)x \in A_{i(x)}.
  8. Define ϕ ⁣:U→ℕ×ℕ\phi \colon U \to \N \times \N by ϕ(x)=(e(i(x)), gi(x)(x))\phi(x) = (e(i(x)),\ g_{i(x)}(x)).
  9. The map ϕ\phi is injective. Suppose ϕ(x)=ϕ(y)\phi(x) = \phi(y). Then e(i(x))=e(i(y))e(i(x)) = e(i(y)), so i(x)=i(y)i(x) = i(y), because ee is injective. Call this index ii.
  10. Then gi(x)=gi(y)g_i(x) = g_i(y) with x,y∈Aix, y \in A_i. Since gig_i is injective, x=yx = y.
  11. The set ℕ\N is countable, through the identity map. By the product of countable sets is countable, there is an injective function ψ ⁣:ℕ×ℕ→ℕ\psi \colon \N \times \N \to \N.
  12. The composite ψ∘ϕ ⁣:U→ℕ\psi \circ \phi \colon U \to \N is injective, as a composition of injections. So UU is countable.

Idea

Each element of the union gets two labels: the label of the first set that contains it, and its label inside that set. Two labels make a pair of natural numbers, and pairs of natural numbers can be coded as single natural numbers. The axiom of choice is used to fix one labelling of each set AiA_i at once.

Reading path

To understand this page from the ground up, read these 46 pages in order. The foundations come first. The path takes the proofs Proof of the commutativity of addition by induction, Proof that a composition of injections is injective, Proof that the product of countable sets is countable, Proof of strong induction from ordinary induction, Proof of the well-ordering principle from strong induction.

  1. Definition by recursion concept
  2. Element definition
  3. Mathematical induction concept
  4. Natural numbers object
  5. Peano axioms concept
  6. Proposition concept
  7. Set definition
  8. Successor function definition
  9. Disjunction definition
  10. Implication definition
  11. Predicate definition
  12. Family of sets definition
  13. Ordered pair definition
  14. Union definition
  15. Addition of natural numbers definition
  16. The successor function is injective statement
  17. Zero is not a successor statement
  18. Existential quantifier definition
  19. Universal quantifier definition
  20. Cartesian product definition
  21. Proof of the commutativity of addition by induction proof
  22. Union of a family of sets definition
  23. Subset definition
  24. Order on the natural numbers definition
  25. Uniqueness quantifier definition
  26. Binary relation definition
  27. Commutativity of addition statement
  28. Proof of strong induction from ordinary induction proof
  29. Function definition
  30. Strong induction statement
  31. Codomain definition
  32. Function composition definition
  33. Injective function definition
  34. Choice function definition
  35. Proof of the well-ordering principle from strong induction proof
  36. Surjective function definition
  37. Axiom of choice statement
  38. Proof that a composition of injections is injective proof
  39. Countable set definition
  40. Well-ordering principle statement
  41. Bijective function definition
  42. Composition of injections is injective statement
  43. Cantor pairing function example
  44. Proof that the product of countable sets is countable proof
  45. Product of countable sets is countable statement
  46. Proof that a countable union of countable sets is countable proof

Where this leads

5 pages build on this one.

Further reading

  1. Web https://proofwiki.org/wiki/Countable_Union_of_Countable_Sets_is_Countable, Proof 1
About this page
Tag87T5JN3P1Q
URIm2://87T5JN3P1Q
Kindproof
WritingW0 stub
MSC03E10
ProvesCountable union of countable sets is countable
UsesAxiom of choice, Choice function, Countable set, Family of sets, Union of a family of sets, Injective function, Well-ordering principle, Product of countable sets is countable, Composition of injections is injective
Changed4 November 2026

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • an inventory row: the row of the inventory that the node accounts for (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

No page links to this page yet.