Quiz 2
Registry Synced

Cardinality and Countability

305 words
2 min read

Reading compass

Now · 9.1 Comparing Sizes

Cardinality and Countability

9.1 Comparing Sizes

Sets AA and BB have the same cardinality (A=B|A| = |B|) if there exists a bijection f:ABf: A \to B. AB|A| \leq |B| if there exists an injection f:ABf: A \to B.

9.2 Countable Sets

A set is countable if it is finite or has the same cardinality as N\mathbb{N}. Examples of countable sets:
  • Z\mathbb{Z} — map n2nn \to 2n (positive) and n(2n+1)n \to -(2n+1) (negative)
  • Q\mathbb{Q} — diagonal enumeration of fractions
  • N×N\mathbb{N} \times \mathbb{N} — use Cantor pairing function π(m,n)=(m+n)(m+n+1)2+n\pi(m,n) = \frac{(m+n)(m+n+1)}{2} + n

Countable Union Theorem

A countable union of countable sets is countable.

9.3 Uncountable Sets

R\mathbb{R} is uncountable — there is no bijection with N\mathbb{N}.

Cantor's Diagonal Argument

Assume f:NRf: \mathbb{N} \to \mathbb{R} is a bijection. List all real numbers in (0,1)(0,1): f(1)=0.a11a12a13f(1) = 0.a_{11}a_{12}a_{13}\dots f(2)=0.a21a22a23f(2) = 0.a_{21}a_{22}a_{23}\dots f(3)=0.a31a32a33f(3) = 0.a_{31}a_{32}a_{33}\dots Construct b=0.b1b2b3b = 0.b_1b_2b_3\dots where biaiib_i \neq a_{ii} (e.g., bi=5b_i = 5 if aii5a_{ii} \neq 5, bi=6b_i = 6 if aii=5a_{ii} = 5). Then bb differs from every f(i)f(i) at the ii-th decimal place, so bb is not in the list. Contradiction. \square

9.4 Schröder-Bernstein Theorem

If AB|A| \leq |B| and BA|B| \leq |A|, then A=B|A| = |B|.

✅ Practice Questions

Q1: Show [0,1][0,1] and (0,1)(0,1) have the same cardinality.
Solution
Construct a bijection: Map 0120 \to \frac{1}{2}, 1213\frac{1}{2} \to \frac{1}{3}, 1314\frac{1}{3} \to \frac{1}{4}, etc., and map all other points to themselves. This is a bijection between [0,1][0,1] and (0,1)(0,1). Q2: Is the set of all infinite binary sequences countable? Solution
No. By diagonal argument: assume countable, list them, flip the ii-th bit of the ii-th sequence. The resulting sequence is not in the list. So uncountable. Join Discord PreviousAdvanced Logic & InductionNextUncountable Sets
Document outline

Keep your place and jump directly to a heading.

Table of Contents
System Normal // Awaiting Context

Intelligence Hub

Navigate the knowledge graph to generate context. The Hub adapts dynamically to surface backlinks, related notes, and metadata insights.