Lecture 10: more on sets, Russell’s paradox, empty set, cardinality, powersets [01FY]
- November 1, 2026
- Marcelo Fiore, Jon Sterling
These lecture notes were prepared by Jon Sterling using Marcelo Fiore’s lectures as source material. Any mistakes were introduced by Jon Sterling. Generative AI was not used to write these lecture notes.
Back in Lecture 7 we first introduced some rudiments of sets for mathematics. During the next several lectures, we will make a more thorough investigation of this topic. I reiterate now that we are not studying set theory in the sense studied by set theorists: we are studying the use of sets to do mathematics.
Subsets and supersets [01G1]
- November 10, 2026
- Marcelo Fiore, Jon Sterling
We have already seen the definition of a subset:
Definition Subset [01DH]
- October 12, 2026
- Jon Sterling
A subset of a set A is a set whose elements are the elements of A that satisfy some condition. For example, the naturals can be thought of as the subset of the integers whose elements are precisely the non-negative integers.
We write U\subseteq A to mean that U is a subset of A; we may write U\subset A to mean that U is a strict subset of A, i.e. one that does not contain every element of A.
Given x:A and U\subseteq A, we will write x\in U to mean the statement that x satisfies the condition of being an element of U.
We can also consider a reverse relation:
Definition Superset [01G2]
- November 10, 2026
- Marcelo Fiore, Jon Sterling
We will write V\supseteq U to mean that V is a superset of U, i.e. U\subseteq V. Similarly, V\supset U means that V is a strict superset of U, i.e. U\subset V.
These definitions make sense only when we already understand U and V to be subsets of a given fixed set.
Lemma The subset relation is a partial order [01G4]
- November 10, 2026
- Marcelo Fiore, Jon Sterling
Let A be a fixed set. Then the following hold:
Exercise [01G3]
- November 10, 2026
- Marcelo Fiore, Jon Sterling
Is it the case that for all subsets U,V\subseteq A that either U\subseteq V or V\subseteq U?
Characterisation of strict subsets [01G5]
- November 10, 2026
- Marcelo Fiore, Jon Sterling
The following are equivalent for a subset U\subseteq A:
- U \not = A
- \exists y:A\mathpunct {.} y\not \in U
In either case, we write U\subset A and say that U is a strict subset of A.
Proof.
- November 10, 2026
- Marcelo Fiore, Jon Sterling
We will prove by contradiction that U\not = A implies \exists y:A\mathpunct {.} y\not \in U. In particular, assume U\not = A and further assume that there does not exist any y:A that is not in U. From the latter assumption we conclude that U=A which contradicts U\not = A.
In the other direction, let y be an element of A that does not lie in U. To prove U\not = A we assume U=A to derive a contradiction. From U=A we conclude that u\in U, which contradicts our assumption that y\not \in U.
Russell’s paradox, naïve comprehension, and sets of all sets [01G6]
- November 10, 2026
- Marcelo Fiore, Jon Sterling
We recall the principle of subset comprehension:
Notation Subset comprehension [01DI]
- October 12, 2026
- Marcelo Fiore, Jon Sterling
To actually write down a specific subset of a set A, we use the subset comprehension notation. Given a predicate P(x) ranging over an element x:A, we will write {\mathopen {}\left \{x: A\,\middle \vert \,P(x)\right \}\mathclose {}} to mean the subset of A that consists of all the elements satisfying P.
To give an element of {\mathopen {}\left \{x: A\,\middle \vert \,P(x)\right \}\mathclose {}}, you just have to give an element of A that satisfies P. If you assume an element of {\mathopen {}\left \{x: A\,\middle \vert \,P(x)\right \}\mathclose {}}, is equivalent to assuming an element x:A followed by an additional assumption P(x).
Russell’s counterexample to naïve comprehension [01G7]
- November 10, 2026
- Marcelo Fiore, Jon Sterling
Before mathematicians had worked out the kinks of set theory, they originally did not require a fixed set A: instead, the predicate P{\mathopen {}\left (x\right )\mathclose {}} could range over “anything”, and there were no type restrictions whatsoever. This old/naïve comprehension principle then allowed for a set {\mathopen {}\left \{x\,\middle \vert \,P{\mathopen {}\left (x\right )\mathclose {}}\right \}\mathclose {}} to be formed. From our modern point of view, this is a little bit nonsensical, but it was not immediately clear that it would lead to the collapse of the system of set theory.
The Cambridge philosopher Bertrand Russell showed, however, that naïve comprehension is bad news. In particular, made it possible to define “the” set of sets that are not a member of themselves:
R\coloneqq {\mathopen {}\left \{A\,\middle \vert \,A\not \in A\right \}\mathclose {}}If the above were allowed, then you could show that R\in R\Longleftrightarrow R\not \in R, which is contradictory.
Russell’s paradox in typed approaches to set theory [01G8]
- November 10, 2026
- Marcelo Fiore, Jon Sterling
Naïve comprehension only makes grammatical sense in a very lax kind of set theory without type restrictions. We have, in contrast, been considering a version of set theory in which the statement a\in U only makes sense if we already understand U to be a subset of some fixed set of which a can be seen, by virtue of how it was formed, to be an element. In a system like ours, which is closer to how sets are dealt with in proof assistants like Isabelle, Lean, and Rocq, we cannot even phrase naïve comprehension and (therefore) Russell’s counterexample to it.
This does not mean that Russell’s paradox does not bear on our kind of set theory; it just means that it must take a different form. In our kind of set theory, the closest that we can say is the following:
The type of all sets does not form a set.
This is sometimes called “Girard’s paradox”, after Jean-Yves Girard.
On the empty set [01GB]
- November 15, 2026
- Marcelo Fiore, Jon Sterling
Definition The empty set [01G9]
- November 10, 2026
- Marcelo Fiore, Jon Sterling
An empty set \varnothing contains no elements whatsoever. This is made formal by either of the following equivalent true statements:
- \forall x:\varnothing \mathpunct {.} \bot
- \lnot \exists x:\varnothing \mathpunct {.} \top
There are several ways to think of the empty set; one way is to construct it as a subset comprehension in any existing set, e.g. \varnothing \coloneqq {\mathopen {}\left \{x:\mathbb {N}\,\middle \vert \,\mathbf {false}\right \}\mathclose {}} or equivalently \varnothing \coloneqq {\mathopen {}\left \{x:\mathbb {N}\,\middle \vert \,x<0\right \}\mathclose {}}. Another way is to take it as a primitive construct of set theory. In the end, it does not matter.
The universal property of the empty set [01GA]
- November 15, 2026
- Jon Sterling
For any set A, there exists a unique function ¡_A\colon \varnothing \to A from the empty set into A.
Explanation.
- November 15, 2026
- Jon Sterling
A function \varnothing \to A assigns to each element of \varnothing a single element of A. As there are no elements of \varnothing , there is nothing to do.
Given any two functions f,g\colon \varnothing \to A, we can see that f=g. Two functions are equal when they do the same thing on all inputs; but there are no possible inputs, so the equation f=g is vacuously true.
Observation The empty set is strict [01GC]
- November 15, 2026
- Jon Sterling
For any set A, if there exists a function f\colon A\to \varnothing from A to the empty set, then A is empty.
Proof.
- November 15, 2026
- Jon Sterling
Suppose we have a function f\colon A\to \varnothing . When we say that A is empty, we mean that \forall x:A\mathpunct {.} \bot should hold. To prove that this is the case, we fix x:A to derive a contradiction; we immediately have f{\mathopen {}\left (x\right )\mathclose {}}:\varnothing , which in combination with \forall x:\varnothing \mathpunct {.}\bot leads to contradiction.
Cardinality and finite sets [01GE]
- November 15, 2026
- Marcelo Fiore, Jon Sterling
Definition Cardinality [01GD]
- November 15, 2026
- Marcelo Fiore, Jon Sterling
The cardinality of a set specifies its size; the cardinalities of sets can be thought of as an extended number system that includes the natural numbers but contains additional “numbers” corresponding to the sizes of infinite sets.
Typical notations for the cardinality of a set S are \mathord {\#}{S} or \lvert S\rvert .
Finite cardinality [01GG]
- November 15, 2026
- Marcelo Fiore, Jon Sterling
When the cardinality of a set is a natural number, then we say that the set is finite. In other words, a finite set has finite cardinality.
What is cardinality, really? [01GF]
- November 15, 2026
- Jon Sterling
At this stage we have not yet learned enough to give a precise definition for cardinality in general, beyond vaguely gesturing at “infinite numbers”. The proper definition will be that a cardinality is an equivalence class of sets under the relation of isomorphism, but we will not treat those concepts for several more lectures. One subtlety is that, just like there is no set of all sets, there is no set of all cardinalities; cardinality is still a sensible concept, but its constituents are too numerous to form a set.
Example Cardinality of the empty set [01GH]
- November 15, 2026
- Marcelo Fiore, Jon Sterling
The cardinality of the empty set is zero, i.e. we have \mathord {\#}{\varnothing } = 0.
Example The standard finite sets [01GJ]
- November 15, 2026
- Marcelo Fiore, Jon Sterling
For any n:\mathbb {N}, we will write {\mathopen {}\left [n\right ]\mathclose {}} \coloneqq {\mathopen {}\left \{x:\mathbb {N}\,\middle \vert \,x<n\right \}\mathclose {}} for the “standard” finite set with cardinality n.
Warning Cardinality loses information! [01GK]
- November 15, 2026
- Jon Sterling
The reason we used the word “standard” in defining the standard finite sets is that many distinct sets can have the same cardinality. For example, {\mathopen {}\left \{x+1\,\middle \vert \,x \in {\mathopen {}\left [n\right ]\mathclose {}}\right \}\mathclose {}} is a subset of \mathbb {N} that has cardinality n, but it is not the same subset as {\mathopen {}\left [n\right ]\mathclose {}}. It is, however, in bijection with \mathbb {N}.
Introducing powersets [01GL]
- November 15, 2026
- Marcelo Fiore, Jon Sterling
We have already learned about the concept of subsets. Most mathematicians assume as one of their basic axioms that for a given set A, you can make a set that consists of all the subsets of A; this is the powerset of A.
Axiom The powerset [01GM]
- November 15, 2026
- Marcelo Fiore, Jon Sterling
For every set A, we may assign a set \mathcal {P}{\mathopen {}\left (A\right )\mathclose {}} whose elements are precisely the subsets of A.
Using this notation, then, introducing an element U\in \mathcal {P}{\mathopen {}\left (A\right )\mathclose {}} is the same as introducing a subset U\subseteq A.
Example Iterating the powerset [01GN]
- November 15, 2026
- Marcelo Fiore, Jon Sterling
The powerset construction can be iterated: for example, \mathcal {P}{\mathopen {}\left (\mathcal {P}{\mathopen {}\left (A\right )\mathclose {}}\right )\mathclose {}} is the set of sets of elements of A. Working with iterated powersets can be very confusing, so we usually try to speak in more concrete terms.
The cardinality of powersets [01GO]
- November 15, 2026
- Marcelo Fiore, Jon Sterling
Let A be a finite set. Then the cardinality of the powerset of A is 2 to the power of the cardinality of A: \mathord {\#}{\mathcal {P}{\mathopen {}\left (A\right )\mathclose {}}} = 2^{\mathord {\#}{A}}
(Something similar to the above can be said for infinite sets, but we are not prepared yet to be rigorous about cardinalities of infinite sets.)