Set Theory (Temno)

Lecture outline

Brief history

Russell’s paradox (barber paradox)

  • If a barber shaves everyone who doesn’t shave themselves — does he shave himself?
  • a={xxx}a = \{x \mid x \notin x\}, does aaa \in a?
  • No solution:
    • if aaa \in a, then aaa \notin a
    • if aaa \notin a, then aaa \in a
  • The problem is the object — it cannot be a set
  • Lesson: not everything that can be defined actually exists

Berry’s paradox

  • Let mm be the smallest natural number that cannot be defined in fewer than 100 characters
  • 2710027^{100} possible definitions — at most that many numbers, but the sentence itself has fewer than 100 characters
  • Lesson: not everything that can be written has mathematical meaning

Zermelo-Fraenkel set theory

Language of set theory

Exercise: write the definition of the empty set

Axioms for logical symbols

Deduction rules

Exercise: prove that ((xy)(yz))xz((x \subseteq y) \land (y \subset z)) \implies x \subset z

Axioms of set theory

1. Axiom of existence — “a set exists”

x:x=x\exists x : x = x

2. Axiom of extensionality — “a set is determined by its elements”

xy[z(zxzy)x=y]\forall x \forall y [\forall z (z \in x \iff z \in y) \implies x = y]

3. Axiom of separation — “we can take all elements from a set that satisfy a given property”

zωyx[xy((xz)ψ(x,ω,z))]\forall z \forall \omega \exists y \forall x [x \in y \iff ((x \in z) \land \psi(x, \omega, z))]

  • Also known as axiom of specification
  • Disallows self-reference and related paradoxes
  • By extensionality, there exists exactly one such set
  • Notation: {xaψ(x)}\{x \in a \mid \psi(x)\}
  • Set operations via separation:
    • ab={xaxb}a \cap b = \{x \in a \mid x \in b\}
    • a\b={xaxb}a \setminus b = \{x \in a \mid x \notin b\}
    • ={xaxx}\emptyset = \{x \in a \mid x \neq x\}aa can be any set

4. Axiom of pairing — “for every pair of sets aa, bb, there exists zz whose elements are exactly aa and bb

xyz((xz)(yz))\forall x \forall y \exists z ((x \in z) \land (y \in z))

  • Unordered pair: a set of size two, {a,b}\{a, b\} or {a,a}={a}\{a, a\} = \{a\}
  • Ordered pair: (a,b)={{a},{a,b}}(a, b) = \{\{a\}, \{a, b\}\}
    • note: (a,a)={{a},{a,a}}={{a},{a}}={{a}}(a, a) = \{\{a\}, \{a, a\}\} = \{\{a\}, \{a\}\} = \{\{a\}\}

Lemma: (x,y)=(u,v)(x=uy=v)(x, y) = (u, v) \iff (x = u \land y = v)

()(\Leftarrow): If x=ux = u then {x}={u}\{x\} = \{u\} by extensionality. If y=vy = v then {x,y}={u,v}\{x, y\} = \{u, v\}, so {{x},{x,y}}={{u},{u,v}}\{\{x\}, \{x, y\}\} = \{\{u\}, \{u, v\}\}.

()(\Rightarrow): If {{x},{x,y}}={{u},{u,v}}\{\{x\}, \{x, y\}\} = \{\{u\}, \{u, v\}\}, then {x}={u}\{x\} = \{u\} or {x}={u,v}\{x\} = \{u, v\}. Either way, u=xu = x.

  • {u,v}={x}\{u, v\} = \{x\} or {u,v}={x,y}\{u, v\} = \{x, y\}, so either v=xv = x or v=yv = y
    • if v=yv = y: done
    • if v=xv = x: then v=u=x=yv = u = x = y, done as well

5. Axiom of union — “the union over elements of a set is a set”

For any family of sets \mathcal{F}, there exists a set AA containing every element that is a member of some member of \mathcal{F}:

AYx[(xYY)xA]\forall \mathcal{F} \exists A \forall Y \forall x [(x \in Y \land Y \in \mathcal{F}) \implies x \in A]

6. Axiom of the power set — “there exists a set zz whose elements are all subsets of aa

xyz(zxzy)\forall x \exists y \forall z (z \subseteq x \implies z \in y)


Relations

xRyx \leq_R y means (x,y)R(x, y) \in R

An ordering RR is linear (on AA) if RR is a trichotomous relation on AA — every pair of elements in AA is comparable.

RR' is a strict ordering if R=R\IdR' = R \setminus \text{Id}, where RR is an ordering.

x<Ryx <_R y means (x,y)R(x, y) \in R'

Examples of orderings:

Let RR be an ordering on class AA and XAX \subseteq A. We say that aAa \in A is (with respect to RR and AA):

  • upper bound (majorant) of XX, if (xX)(xRa)(\forall x \in X)(x \leq_R a)
  • maximal element of XX, if aXa \in X and (xX)(¬(a<Rx))(\forall x \in X)(\lnot(a <_R x))
  • maximum (largest element) of XX, if aXa \in X and aa is an upper bound of XX
  • supremum of XX, if aa is the smallest element of the class of all upper bounds of XX
  • Symmetrically: lower bound (minorant), minimal element, minimum, infimum
  • Maximum \implies maximal element
  • If RR is linear, then maximal \implies maximum (and there is at most one maximal)
  • There is always at most one maximum and at most one supremum

Notation: a=maxR(X)a = \max_R(X), a=supR(X)a = \sup_R(X)

Let RR be an ordering on AA. Then for arbitrary x,yAx, y \in A:

xRy(,x](,y]x \leq_R y \iff (\leftarrow, x] \subseteq (\leftarrow, y]

Remark — constructing \mathbb{R} from \mathbb{Q}: Dedekind cuts

XX \subseteq \mathbb{Q}: XX is a lower set with respect to the standard ordering, and if sup(X)\sup(X) exists then sup(X)X\sup(X) \notin X

An ordering RR on class AA is a well-ordering if every nonempty subset of AA has a smallest element with respect to RR.

Exercise: write this definition as a formula

Exercise: find sets on which Id\in \cup \text{Id} is a well-ordering


Comparing cardinalities

Set xx has cardinality less than or equal to the cardinality of yy (|x||y||x| \leq |y|) if there exists an injective mapping from xx into yy.