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

  • aAa \in A means "aa is an element of set AA"
  • aAa \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={xx is a positive integer less than 6}A = \{x \mid x \text{ is a positive integer less than 6}\} B={xRx21=0}={1,1}B = \{x \in \mathbb{R} \mid x^2 - 1 = 0\} = \{-1, 1\}

Interval Notation (for real numbers)

[a,b]={xRaxb}[a, b] = \{x \in \mathbb{R} \mid a \leq x \leq b\} (a,b)={xRa<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{pqp,qZ,q0}\{\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+bia,bR}\{a + bi \mid a, b \in \mathbb{R}\}

Special Sets

Empty Set

The set with no elements: ={}={xxx}\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(xAxB)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: AB    x(xAxB)A \subseteq B \iff \forall x (x \in A \rightarrow x \in B)

AA is a proper subset of BB if ABA \subseteq B and ABA \neq B: AB    ABABA \subset B \iff A \subseteq B \land A \neq B

Properties

  • A\emptyset \subseteq A for any set AA
  • AAA \subseteq A (reflexive)
  • If ABA \subseteq B and BAB \subseteq A, then A=BA = B
  • If ABA \subseteq B and BCB \subseteq C, then ACA \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)={SSA}\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)aAbB}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×BB×AA \times B \neq B \times A (unless A=BA = B or one is empty)
  • A×B=AB|A \times B| = |A| \cdot |B|
  • A×=A \times \emptyset = \emptyset

n-tuples

A1×A2××An={(a1,a2,,an)aiAi}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={SSS}R = \{S \mid S \notin S\} (set of all sets that don't contain themselves)

Is RRR \in R?

  • If RRR \in R, then by definition RRR \notin R — contradiction!
  • If RRR \notin R, then by definition RRR \in R — contradiction!

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