Skip to content
Part IA Michaelmas, Lent Term

Sets: Basics, Extensionality, and Russell's Paradox

What is a Set?

A set is an unordered collection of distinct objects. The objects in a set are called its elements or members.

Membership

We write xAx \in A to mean ”xx is an element of AA” and xAx \notin A to mean ”xx is not an element of AA”.

Examples

  • {1,2,3}\{1, 2, 3\}: the set containing 1, 2, and 3
  • N={0,1,2,3,}\mathbb{N} = \{0, 1, 2, 3, \ldots\}: the set of natural numbers
  • \emptyset or {}\{\}: the empty set
  • {xZ:x2<10}={3,2,1,0,1,2,3}\{x \in \mathbb{Z} : x^2 < 10\} = \{-3, -2, -1, 0, 1, 2, 3\}

Extensionality

The Axiom of Extensionality

Two sets are equal if and only if they contain exactly the same elements:

A=B    x.(xAxB)A = B \iff \forall x. (x \in A \Leftrightarrow x \in B)

Consequences

  • Order does not matter: {1,2,3}={3,2,1}\{1, 2, 3\} = \{3, 2, 1\}
  • Repetition does not matter: {1,1,2,2}={1,2}\{1, 1, 2, 2\} = \{1, 2\}
  • A set is determined entirely by its membership

Proof Strategy

To prove A=BA = B: show that every element of AA is in BB, and every element of BB is in AA.

Subsets and Supersets

Definitions

  • ABA \subseteq B (AA is a subset of BB): every element of AA is in BB AB    xA.xBA \subseteq B \iff \forall x \in A. x \in B

  • ABA \subsetneq B (AA is a proper subset of BB): ABA \subseteq B and ABA \neq B

  • ABA \supseteq B (AA is a superset of BB): BAB \subseteq A

Properties

  • Reflexivity: AAA \subseteq A
  • Antisymmetry: ABBAA=BA \subseteq B \land B \subseteq A \Rightarrow A = B
  • Transitivity: ABBCACA \subseteq B \land B \subseteq C \Rightarrow A \subseteq C

The Empty Set

The empty set \emptyset is the unique set with no elements.

x.x\forall x. x \notin \emptyset

Properties

  • A\emptyset \subseteq A for any set AA (vacuously true)
  • =0|\emptyset| = 0

Separation (Restricted Comprehension)

Naive Comprehension (Problematic)

The naive comprehension principle would allow: for any property PP, form {x:P(x)}\{x : P(x)\}.

Russell’s Paradox

Consider the “set” R={x:xx}R = \{x : x \notin x\}.

Is RRR \in R?

  • If RRR \in R: then RR satisfies the defining property, so RRR \notin R. Contradiction.
  • If RRR \notin R: then RR satisfies the defining property, so RRR \in R. Contradiction.

This is a genuine paradox, showing naive comprehension is inconsistent.

Separation Schema

Given a set AA and a property PP, we can form:

{xA:P(x)}\{x \in A : P(x)\}

This is restricted comprehension or separation: we can only form subsets of existing sets.

Set Operations

Union

AB={x:xAxB}A \cup B = \{x : x \in A \lor x \in B\}

Intersection

AB={x:xAxB}A \cap B = \{x : x \in A \land x \in B\}

Set Difference

AB={xA:xB}A \setminus B = \{x \in A : x \notin B\}

Complement (Relative to a Universe UU)

Ac=UA={xU:xA}A^c = U \setminus A = \{x \in U : x \notin A\}

Laws of Set Algebra

Identity Laws

A=AA \cup \emptyset = A AU=AA \cap U = A

Domination Laws

AU=UA \cup U = U A=A \cap \emptyset = \emptyset

Idempotent Laws

AA=AA \cup A = A AA=AA \cap A = A

De Morgan’s Laws

(AB)c=AcBc(A \cup B)^c = A^c \cap B^c (AB)c=AcBc(A \cap B)^c = A^c \cup B^c

Distributive Laws

A(BC)=(AB)(AC)A \cap (B \cup C) = (A \cap B) \cup (A \cap C) A(BC)=(AB)(AC)A \cup (B \cap C) = (A \cup B) \cap (A \cup C)


Summary

  • Sets are collections determined entirely by membership (extensionality)
  • ABA \subseteq B means every element of AA is in BB
  • Russell’s paradox shows naive comprehension is inconsistent
  • Use separation: {xA:P(x)}\{x \in A : P(x)\} for safe set construction
  • Sets form a Boolean algebra under \cup, \cap, complement