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 x∈Ax \in A to mean ”xx is an element of AA” and x∉Ax \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
  • {x∈Z: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.(x∈A⇔x∈B)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

  • A⊆BA \subseteq B (AA is a subset of BB): every element of AA is in BB A⊆B  ⟺  ∀x∈A.x∈BA \subseteq B \iff \forall x \in A. x \in B

  • A⊊BA \subsetneq B (AA is a proper subset of BB): A⊆BA \subseteq B and A≠BA \neq B

  • A⊇BA \supseteq B (AA is a superset of BB): B⊆AB \subseteq A

Properties

  • Reflexivity: A⊆AA \subseteq A
  • Antisymmetry: A⊆B∧B⊆A⇒A=BA \subseteq B \land B \subseteq A \Rightarrow A = B
  • Transitivity: A⊆B∧B⊆C⇒A⊆CA \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:x∉x}R = \{x : x \notin x\}.

Is R∈RR \in R?

  • If R∈RR \in R: then RR satisfies the defining property, so R∉RR \notin R. Contradiction.
  • If R∉RR \notin R: then RR satisfies the defining property, so R∈RR \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:

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

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

Set Operations

Union

A∪B={x:x∈A∨x∈B}A \cup B = \{x : x \in A \lor x \in B\}

Intersection

A∩B={x:x∈A∧x∈B}A \cap B = \{x : x \in A \land x \in B\}

Set Difference

A∖B={x∈A:x∉B}A \setminus B = \{x \in A : x \notin B\}

Complement (Relative to a Universe UU)

Ac=U∖A={x∈U:x∉A}A^c = U \setminus A = \{x \in U : x \notin A\}

Laws of Set Algebra

Identity Laws

A∪∅=AA \cup \emptyset = A A∩U=AA \cap U = A

Domination Laws

A∪U=UA \cup U = U A∩∅=∅A \cap \emptyset = \emptyset

Idempotent Laws

A∪A=AA \cup A = A A∩A=AA \cap A = A

De Morgan’s Laws

(A∪B)c=Ac∩Bc(A \cup B)^c = A^c \cap B^c (A∩B)c=Ac∪Bc(A \cap B)^c = A^c \cup B^c

Distributive Laws

A∩(B∪C)=(A∩B)∪(A∩C)A \cap (B \cup C) = (A \cap B) \cup (A \cap C) A∪(B∩C)=(A∪B)∩(A∪C)A \cup (B \cap C) = (A \cup B) \cap (A \cup C)


Summary

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