Set TheoryTopic #8 of 40

Set Basics

Set notation, membership, subsets, power sets, Cartesian products, and set-builder notation.

What is a Set?

A set is an unordered collection of distinct objects called elements or members.

Notation

  • a∈Aa \in A means "aa is an element of set AA"
  • a∉Aa \notin A means "aa is not an element of AA"

Ways to Define Sets

Roster Method (Listing)

A={1,2,3,4,5}A = \{1, 2, 3, 4, 5\} B={a,e,i,o,u}B = \{a, e, i, o, u\}

Set-Builder Notation

A={x∣x is a positive integer less than 6}A = \{x \mid x \text{ is a positive integer less than 6}\} B={x∈R∣x2−1=0}={−1,1}B = \{x \in \mathbb{R} \mid x^2 - 1 = 0\} = \{-1, 1\}

Interval Notation (for real numbers)

[a,b]={x∈R∣a≤x≤b}[a, b] = \{x \in \mathbb{R} \mid a \leq x \leq b\} (a,b)={x∈R∣a<x<b}(a, b) = \{x \in \mathbb{R} \mid a < x < b\}

Important Number Sets

SymbolNameElements
N\mathbb{N}Natural numbers{0,1,2,3,…}\{0, 1, 2, 3, \ldots\} or {1,2,3,…}\{1, 2, 3, \ldots\}
Z\mathbb{Z}Integers{…,−2,−1,0,1,2,…}\{\ldots, -2, -1, 0, 1, 2, \ldots\}
Z+\mathbb{Z}^+Positive integers{1,2,3,…}\{1, 2, 3, \ldots\}
Q\mathbb{Q}Rational numbers{pq∣p,q∈Z,q≠0}\{\frac{p}{q} \mid p, q \in \mathbb{Z}, q \neq 0\}
R\mathbb{R}Real numbersAll points on the number line
C\mathbb{C}Complex numbers{a+bi∣a,b∈R}\{a + bi \mid a, b \in \mathbb{R}\}

Special Sets

Empty Set

The set with no elements: ∅={}={x∣x≠x}\emptyset = \{\} = \{x \mid x \neq x\}

Note: ∅≠{∅}\emptyset \neq \{\emptyset\} (empty set vs. set containing empty set)

Universal Set

The set UU containing all objects under consideration.

Set Equality

Two sets are equal if they have exactly the same elements: A=B  ⟺  ∀x(x∈A↔x∈B)A = B \iff \forall x (x \in A \leftrightarrow x \in B)

Properties

  • Order doesn't matter: {1,2,3}={3,1,2}\{1, 2, 3\} = \{3, 1, 2\}
  • Repetition doesn't matter: {1,1,2}={1,2}\{1, 1, 2\} = \{1, 2\}

Subsets

AA is a subset of BB if every element of AA is in BB: A⊆B  ⟺  ∀x(x∈A→x∈B)A \subseteq B \iff \forall x (x \in A \rightarrow x \in B)

AA is a proper subset of BB if A⊆BA \subseteq B and A≠BA \neq B: A⊂B  ⟺  A⊆B∧A≠BA \subset B \iff A \subseteq B \land A \neq B

Properties

  • ∅⊆A\emptyset \subseteq A for any set AA
  • A⊆AA \subseteq A (reflexive)
  • If A⊆BA \subseteq B and B⊆AB \subseteq A, then A=BA = B
  • If A⊆BA \subseteq B and B⊆CB \subseteq C, then A⊆CA \subseteq C (transitive)

Cardinality

The cardinality of a finite set is the number of elements: ∣A∣=n if A has exactly n elements|A| = n \text{ if } A \text{ has exactly } n \text{ elements}

Examples

  • ∣{1,2,3}∣=3|\{1, 2, 3\}| = 3
  • ∣∅∣=0|\emptyset| = 0
  • ∣{a,{b,c}}∣=2|\{a, \{b, c\}\}| = 2

Power Set

The power set of AA is the set of all subsets of AA: P(A)={S∣S⊆A}\mathcal{P}(A) = \{S \mid S \subseteq A\}

Example

If A={1,2}A = \{1, 2\}: P(A)={∅,{1},{2},{1,2}}\mathcal{P}(A) = \{\emptyset, \{1\}, \{2\}, \{1, 2\}\}

Cardinality

If ∣A∣=n|A| = n, then ∣P(A)∣=2n|\mathcal{P}(A)| = 2^n

Cartesian Product

The Cartesian product of AA and BB: A×B={(a,b)∣a∈A∧b∈B}A \times B = \{(a, b) \mid a \in A \land b \in B\}

Example

If A={1,2}A = \{1, 2\} and B={a,b}B = \{a, b\}: A×B={(1,a),(1,b),(2,a),(2,b)}A \times B = \{(1, a), (1, b), (2, a), (2, b)\}

Properties

  • A×B≠B×AA \times B \neq B \times A (unless A=BA = B or one is empty)
  • ∣A×B∣=∣A∣⋅∣B∣|A \times B| = |A| \cdot |B|
  • A×∅=∅A \times \emptyset = \emptyset

n-tuples

A1×A2×⋯×An={(a1,a2,…,an)∣ai∈Ai}A_1 \times A_2 \times \cdots \times A_n = \{(a_1, a_2, \ldots, a_n) \mid a_i \in A_i\}

An=A×A×⋯×A (n times)A^n = A \times A \times \cdots \times A \text{ (n times)}

Russell's Paradox

Consider: R={S∣S∉S}R = \{S \mid S \notin S\} (set of all sets that don't contain themselves)

Is R∈RR \in R?

  • If R∈RR \in R, then by definition R∉RR \notin R — contradiction!
  • If R∉RR \notin R, then by definition R∈RR \in R — contradiction!

This paradox shows naive set theory needs restrictions (resolved by axiomatic set theory).