The Timpson Lyceum seal

The Timpson Lyceum · First-Order Predicate Logic (2024)

Set Theory & Foundations of Arithmetic – Lecture 15 (Logic)

Overview

This lecture develops axiomatic (ZFC) set theory and shows how all of arithmetic can be built on top of it. Starting from just two undefined notions — set and membership (∈\in) — we recap the axioms and definitions that let us build sets, then prove the theorem that justifies set-builder notation. From there we define ordered pairs, functions, the standard set operations, and the infinite set, and use these to construct the natural numbers, addition, multiplication, and the order relation. The payoff is conceptual: every familiar number and operation is "sets all the way down," and arithmetic is a consequence of set theory rather than a separate starting point.

Key Concepts

Undefined terms. Set theory takes exactly two primitives: set and the membership relation ∈\in. Everything else is defined from them.

Membership axiom (A1). "x∈yx \in y" is a proposition (true or false, never both) if and only if xx and yy are sets. This blocks Russell's paradox: the "set" U={x:x∉x}U = \{x : x \notin x\} leads to U∈U  ⟺  U∉UU \in U \iff U \notin U, which is neither true nor false — so UU is not a set. You don't get to call something a set just by naming it.

Basic definitions.

Empty set (A2) + uniqueness. There exists an empty set, and a theorem shows it is unique, so we may name it ∅\varnothing.

Pairing (A3). For sets x,yx, y there exists {x,y}\{x, y\}. Consequences: {x,y}={y,x}\{x, y\} = \{y, x\} (order doesn't matter), and the singleton {x}:={x,x}\{x\} := \{x, x\} (duplicates don't matter).

Ordered pairs. Order does matter, so we encode it with sets: (a,b):={{a},{a,b}}(a, b) := \{\{a\}, \{a, b\}\}. From the set you can always recover which element came first. Tuples are recursive: (a1,…,an):=((a1,…,an−1),an)(a_1, \dots, a_n) := ((a_1, \dots, a_{n-1}), a_n).

Union axiom (A4). If xx is a set of sets, then ⋃x\bigcup x exists, with members being the members of the members of xx. This lets us define finite sets beyond pairs: {a,b,c}:={a,b}∪{c}\{a, b, c\} := \{a, b\} \cup \{c\}, and in general an nn-element set is an (n−1)(n-1)-element set unioned with a singleton.

Relations and functional relations. A relation is a two-term predicate (takes two terms, returns true/false). A relation RR is functional iff every xx is related to exactly one yy — i.e. ∀x ∃!y (xRy)\forall x\,\exists! y\,(xRy). When RR is functional we may write y=R(x)y = R(x). (This is a more restricted notion than the later set-theoretic function, but everything true of the set-theoretic function is true here.)

Replacement / image axiom (A5). If MM is a set and RR a functional relation, then the image of MM under RR (the set of all outputs) is a set. ("Image" and "range" mean the same thing.)

Set-builder notation (Theorem). For any predicate PP and any set MM, the collection {y∈M:P(y)}\{y \in M : P(y)\} is a set. The predicate acts as a filter, and crucially we always filter from a set MM we already know exists — this is what keeps us safe from Russell-style "too big" collections (proper classes, e.g. the collection of all ordinals).

Derived definitions (via set-builder).

Axiom of infinity (A7). There exists a set XX with ∅∈X\varnothing \in X and, for every y∈Xy \in X,  y∪{y}∈X\,y \cup \{y\} \in X. This guarantees an infinite set from which the naturals are built.

Successor and the natural numbers. Define 0:=∅0 := \varnothing, and the successor S(x):=x∪{x}S(x) := x \cup \{x\}. Then 1={0},2={0,1},3={0,1,2}, …1 = \{0\},\quad 2 = \{0, 1\},\quad 3 = \{0, 1, 2\},\ \dots so each natural number is the set of all smaller naturals, and the cardinality of nn is nn. The naturals are the set of all finite ordinals.

Arithmetic by recursion.

Number systems sketch. Integers, rationals, and reals follow (via equivalence classes, not fully developed here): an integer is encoded by an ordered pair of naturals (a,b)(a, b) standing for a−ba - b; a rational by an ordered pair of integers; and the reals are realized as P(N)\mathcal{P}(\mathbb{N}) (equivalently 2N2^{\mathbb{N}}), reflecting that the reals are a strictly larger infinity than the naturals.

Foundation / regularity (A8). Every non-empty set XX contains an element yy with X∩y=∅X \cap y = \varnothing. This forbids pathologies like X={X}X = \{X\} (no set is a member of itself).

Axiom of choice (A9). If MM is a collection of non-empty, mutually disjoint sets, there exists a set XX containing exactly one element from each set in MM. (X,YX, Y are disjoint iff X∩Y=∅X \cap Y = \varnothing; a family is mutually disjoint iff any two distinct members are disjoint.) Choice guarantees you can select one element from each of infinitely many sets even when no rule tells you which — its famous consequence is that every set (even R\mathbb{R}) can be well-ordered, though it never tells you the order explicitly. Adding choice gives ZFC; omitting it gives ZF.

Worked Example

Goal: compute 2+22 + 2 using only the recursive definition of addition, m+0=mm + 0 = m and m+S(n)=S(m+n)m + S(n) = S(m+n), together with 2=S(1)2 = S(1) and the previously established fact 2+1=32 + 1 = 3.

Apply 2=S(1)2 = S(1), then unfold with the successor rule:

2+2=2+S(1)=S(2+1)=S(3)=4.\begin{aligned} 2 + 2 &= 2 + S(1) \\ &= S(2 + 1) \\ &= S(3) \\ &= 4. \end{aligned}

The same machinery drives multiplication. For example 3⋅13 \cdot 1, using m⋅0=0m \cdot 0 = 0, m⋅S(n)=(m⋅n)+mm \cdot S(n) = (m \cdot n) + m, and 1=S(0)1 = S(0):

3⋅1=3⋅S(0)=(3⋅0)+3=0+3=3.\begin{aligned} 3 \cdot 1 &= 3 \cdot S(0) \\ &= (3 \cdot 0) + 3 \\ &= 0 + 3 \\ &= 3. \end{aligned}

No one computes arithmetic this way in practice; the point is that it can be done, so arithmetic is fully recoverable from set theory.

Summary