II Logic and Set Theory

Definition (signature, structure, substructure, reduct) open_in_new

A signature is any function $a: I \sqcup J \to \N$ where $I$ and $J$ are disjoint (index) sets.

An $a$-structure is a tuple $\mathbf{X} = (X, S_0, S_1)$ where

  1. $X$ is a set called the underlying set,

  2. $S_0 = \sb{f_i}{i\in I}$ is a family of operations $f_i: X^{a(i)} \to X$, and

  3. $S_1 = \sb{R_j}{j\in J}$ is a family of relations $R_j \subseteq X^{a(j)}$.

If $\mathbf{X} = (X, \sb{f_i}{i\in I}, \sb{R_j}{j\in J})$ and $\mathbf{Y}= (Y, \sb{g_i}{i\in I}, \sb{Q_j}{j\in J})$ are $a$-structures, say $\mathbf{X}$ is a substructure of $\mathbf{Y}$ if

  1. $X \subseteq Y$;

  2. $f_i = g_i|_{X^{a(i)}}$ for all $i\in I$; and

  3. $R_j = Q_j \cap X^{a(j)}$ for all $j\in J$.

Given $I_\ast \subseteq I$ and $J_\ast\subseteq J$, define a signature $a_\ast = a|_{I_\ast \cup J_\ast}$. The $a_\ast$-reduct of $\mathbf{X}$ is $$ \begin{align*} \mathbf{X}_\ast = (X, \sb{f_i}{i\in I_\ast}, \sb{R_j}{j\in J_\ast}). \end{align*} $$

Definition (homomorphism of structures) open_in_new

Let $\mathbf{X} = (X, \sb{f_i}{i\in I}, \sb{R_j}{j\in J})$ and $\mathbf{Y} = (Y, \sb{g_i}{i\in I}, \sb{Q_j}{j\in J})$ be $a$-structures.

A function $h: X\to Y$ is a homomorphism from $\mathbf{X}$ to $\mathbf{Y}$ if

  1. $h(f_i(x)) = g_i(h(x))$ for all $x\in X^{a(i)}$, $i\in I$; and

  2. $x\in R_j$ iff $h(x) \in Q_j$ for all $x\in X^{a(j)}$, $j\in J$.

Definition (equationally definable) open_in_new

Let $\mathbf{X} = (X, S_0, S_1)$ be an $a$-structure, $S \subseteq S_0$ be a subset of operations and $f: X^n \to X$ be a function.

Say $f$ is $S$-equationally definable over $\mathbf{X}$ if there exists an expression $t(x)$ using only the operations in $X$ such that $f(x) = t(x)$ for all $x\in X^n$.

Let $\mathbf{X}_\ast$ be an $a_\ast$-reduct of $\mathbf{X}$. If all operations in $\mathbf{X}$ are equationally definable over $\mathbf{X}_\ast$, then $\mathbf{X}_\ast$ has all information needed to recover the full structure $\mathbf{X}$.

Propositional logic open_in_new

Definition (reasoning algebra, Boolean algebra) open_in_new

A reasoning algebra is a structure $$ \begin{align*} \mathbf{X} = (X, +, \cdot, \to, -, 0,1) \end{align*} $$ where $X$ is a set, $+, \cdot , \to$ are binary operations, $-$ is a unary operation, and $0\neq 1\in X$ are nullary operations on $X$.

$\mathbf{X}$ is Boolean if the following Boolean laws hold: for all $x,y,z\in X$,

  1. associativity: $x + (y + z) = (x + y) + z$ and $x \cdot (y \cdot z) = (x \cdot y) \cdot z$;

  2. commutativity: $x+y = y+x$ and $x\cdot y = y\cdot x$;

  3. distributivity: $x+(y\cdot z) = (x+y) \cdot (x+z)$ and $x\cdot (y+z) = x\cdot y + x\cdot z$;

  4. neutrality: $x+0 = x$ and $x\cdot 1 = x$;

  5. annihilation: $x+1 = 1$ and $x\cdot 0 = 0$;

  6. idempotence: $x+x = x$ and $x\cdot x = x$;

  7. absorption: $x+(x\cdot y) = x$ and $x\cdot (x+y) = x$;

  8. double negation: $-(-x) = x$;

  9. contradiction: $x\cdot (-x) = 0$;

  10. excluded middle: $x + (-x) = 1$;

  11. De Morgan's laws: $-(x+y) = (-x)\cdot (-y)$ and $-(x\cdot y) = (-x) + (-y)$;

  12. implication: $x\to y = (-x) + y$.

$\mathbf{2} = (\set{0,1}, +, \cdot ,\to, -, 0,1)$ with the usual truth table is a Boolean algebra.

Definition (formula in propositional logic) open_in_new

Given a countable set $P$ of propositional letters, the alphabet of propositional logic is $$ \begin{align*} Σ = P \cup \set{\wedge, \vee, \Rightarrow, \neg, \bot, \top, ), (}. \end{align*} $$

The set of formulas (denoted $\mathrm{Fml}$) is the smallest subset of $Σ^\ast$ containing

  • all elements of $P$,

  • $\bot$ and $\top$,

and such that if $ϕ, ψ\in \mathrm{Fml}$, then so are

  • $(ϕ \wedge ψ)$,

  • $(ϕ\vee ψ)$,

  • $(ϕ\Rightarrow ψ)$, and

  • $\neg ϕ$.

Then we obtain a reasoning algebra $\mathbf{Fml} = (\mathrm{Fml}, +, \cdot, \to, -, 1, 0)$ by iteratively defining $ϕ + ψ := (ϕ \vee ψ)$, $ϕ\cdot ψ := (ϕ\wedge ψ)$, $ϕ\to ψ := (ϕ \Rightarrow ψ)$, $-ϕ := \neg ϕ$, $1 = \top$, and $0 = \bot$.

We drop parentheses in informal settings.

Definition (valuation) open_in_new

A function $v: \mathrm{Fml}\to 2$ is a valuation if it is a homomorphism from $\mathbf{Fml}$ to $\mathbf{2}$.

$v(\top) = 1$ and $v(\bot) = 0$.

For any function $f: P \to 2$, there exists a unique extension to a valuation by induction.

Coincidence lemma: let $\op{occ}(ϕ)\subseteq P$ be the (finite) set of propositional letters that occur in $ϕ$. If $v,w$ are valuations such that $v|_{\op{occ}(ϕ)} = w|_{\op{occ}(ϕ)}$, then $v(ϕ) = w(ϕ)$.

Definition (valid, logically equivalent) open_in_new

Let $ϕ, ψ\in{}$ $\mathrm{Fml}$.

Say $ϕ$ is valid if $v(ϕ) = 1$ for all valuations $v$.

Say $ϕ$ and $ψ$ are logically equivalent if $v(ϕ) = v(ψ)$ for all valuations $v$.

By the coincidence lemma, to check validity or logical equivalence, we can compute truth tables.

Definition (model, satisfiable, semantically entail) open_in_new

Let $v$ be a valuation and $T \subseteq \mathrm{Fml}$ be a subset of formulas.

Say $v$ is a model of $T$ if $v(ϕ) = 1$ for all $ϕ\in T$.

Say $T$ is satisfiable if it has a model.

Say $T$ semantically entails a formula $ϕ\in \mathrm{Fml}$ (denoted $T \vDash ϕ$) if $v(ϕ) = 1$ for all model $v$ of $T$

Definition (implication algebra) open_in_new

An implication algebra is a tuple $\mathbf{A} = (A, \to, 0)$ where $A$ is a set, $\to$ is a binary operation, and $0 \in A$ is a nullary operation.

The reasoning algebra associated to $A$ is $\mathbf{A}^+ = (A, +, \cdot, \to, -, 0,1)$ where we define iteratively for all $x, y\in A$ $$ \begin{align*} 1 &:= 0\to 0, \\ -x &:= x \to 0, \\ x + y &:= (x\to 0) \to y, \\ x \cdot y &:= (x \to (y \to 0)) \to 0. \end{align*} $$

Call $\mathbf{A}$ Boolean if $\mathbf{A}^+$ is Boolean.

If $f: A\to B$ is a function between implication algebras, then $f$ is a homomorphism $\mathbf{A}\to \mathbf{B}$ iff it is a homomorphism $\mathbf{A}^+\to \mathbf{B}^+$. (Proof)

Definition (implication formula in propositional logic) open_in_new

In propositional logic, an implication formula is a formula which does not contain the symbols $\wedge$, $\vee$, $\neg$, $\top$.

Define recursively $$ \begin{align*} t: \mathrm{Fml} &\to \mathrm{IFml} \\ p &\mapsto p \\ \bot &\mapsto \bot \\ \top &\mapsto (\bot \Rightarrow \bot) \\ \neg ϕ &\mapsto (t(ϕ) \Rightarrow \bot) \\ (ϕ \Rightarrow ψ) &\mapsto (t(ϕ) \Rightarrow t(ψ)) \\ (ϕ \vee ψ) &\mapsto (t(ϕ)\Rightarrow \bot) \Rightarrow t(ψ) \\ (ϕ \wedge ψ) &\mapsto (t(ϕ) \Rightarrow (t(ψ) \Rightarrow \bot))\Rightarrow \bot. \end{align*} $$ Check by induction that $t$ is well-defined surjection and $t(ϕ)$ and $ϕ$ are logically equivalent.

Definition (proof in propositional logic) open_in_new

Let $T \subseteq{}$$\mathrm{Fml}$.

A string $D = ϕ_0 ϕ_1 \ldots ϕ_n \in \mathrm{Fml}^\ast$ is called a $T$-proof if for each $i = 0, 1, \ldots, n$, one of the following holds:

  1. $A_T$: $ϕ_i\in T$;

  2. $B$: $ϕ_i$ is one of the following axioms:

    • Type 1: $ϕ_i = (ϕ \Rightarrow (ψ \Rightarrow ϕ))$ for some $ϕ, ψ\in \mathrm{Fml}$;

    • Type 2: $ϕ_i = \bigl(\bigl(ϕ \Rightarrow (ψ \Rightarrow χ)\bigr) \Rightarrow \bigl((ϕ \Rightarrow ψ) \Rightarrow (ϕ \Rightarrow χ)\bigr)\bigr)$ for some $ϕ, ψ, χ\in \mathrm{Fml}$;

    • Type 3: $ϕ_i = (((ϕ \Rightarrow \bot) \Rightarrow \bot) \Rightarrow ϕ)$ for some $ϕ\in \mathrm{Fml}$;

    • Type 4: $ϕ_i = (ϕ \Rightarrow{}$$t$$(ϕ))$ or $(t(ϕ) \Rightarrow ϕ)$ for some $ϕ\in \mathrm{Fml}$;

  3. $C$: there exists $j,k<i$ such that $(ϕ_j, ϕ_k, ϕ_i)$ is an instance of modus ponens, i.e. $ϕ_j = (ϕ_k \Rightarrow ϕ_i)$.

Call $D$ a proof if $T = \emptyset$.

If $ϕ$ occurs in $D$, then say $D$ is a proof of $ϕ$.

If there is a $T$-proof for $ϕ$, write $T \vdash ϕ$.

If $T\subseteq T'$, then every $T$-proof is a $T'$-proof.

If $D$ is a $T$-proof and $E$ is $S$-proof, then $DE$ is a $(T \cup S)$-proof.

Finiteness theorem: if $D$ is a $T$-proof, then $D$ is a $T_0$-proof where $T_0 = \sb{ϕ\in T}{ϕ\text{ occurs in }D}$ is a finite set.

Lemma (lemma) open_in_new

Let $T\subseteq \mathrm{Fml}$ and $ϕ,ψ\in \mathrm{Fml}$.

If $T$${}\vdash{}$$ϕ$ and $T\cup \set{ϕ} \vdash ψ$, then $T \vdash ψ$.

Proof

Theorem (deduction theorem) open_in_new

Let $T\subseteq \mathrm{Fml}$ and $ϕ,ψ\in \mathrm{Fml}$.

Then $T$${}\vdash{}$$(ϕ \Rightarrow ψ)$ iff $T \cup \set{ϕ} \vdash ψ$.

Proof

Theorem (soundness of propositional logic) open_in_new

In propositional logic, let $T\subseteq \mathrm{Fml}$ and $ϕ\in \mathrm{Fml}$.

If $T$${}\vdash{}$$ϕ$, then $T$${}\vDash{}$$ϕ$.

Proof

Definition (consistency) open_in_new

Let $T\subseteq \mathrm{Fml}$.

$T$ is said to be inconsistent if $T$${}\vdash{}$$\bot$. Otherwise it is consistent.

Ex falso: $\bot \vdash ϕ$ for all $ϕ\in \mathrm{Fml}$. (Proof) Therefore by the lemma on lemmas, $T$ is inconsistent iff $T \vdash ϕ$ for all $ϕ$.

If $T$ is consistent and $T \vdash ϕ$, then $T\cup \set{ϕ}$ is consistent by the lemma on lemmas.

If $T$ is inconsistent, then there exists a finite subset $T_0 \subseteq T$ which is inconsistent, by the finiteness theorem.

Definition (negation complete) open_in_new

Let $T \subseteq \mathrm{Fml}$.

$T$ is negation complete if for all $ϕ\in \mathrm{Fml}$, either $T$${}\vdash{}$$ϕ$ or $T \vdash \neg ϕ$.

Theorem (Lindenbaum's lemma) open_in_new

Let $T\subseteq \mathrm{Fml}$ is a set of formulae in proposition or predicate logic. Suppose $\mathrm{Fml}$ can be well-ordered. (Either $\mathrm{Fml}$ is countable, or assume the axiom of choice.)

If $T$ is consistent, then there is some $T^\ast \subseteq \mathrm{Fml}$ containing $T$ which is negation complete and consistent.

Proof

Theorem (model existence in propositional logic) open_in_new

Every consistent set of $\mathrm{Fml}$ is satisfiable.

Proof

Corollary (compactness theorem in propositional logic) open_in_new

Let $T\subseteq \mathrm{Fml}$.

$T$ is satisfiable iff every finite subset of $T$ is satisfiable.

Proof

Theorem (completeness of propositional logic) open_in_new

In propositional logic, let $T\subseteq \mathrm{Fml}$ and $ϕ\in \mathrm{Fml}$.

If $T$${}\vDash{}$$ϕ$, then $T$${}\vdash{}$$ϕ$.

Proof

Predicate logic open_in_new

Definition (alphabet, terms, formulas, sentences in predicate logic) open_in_new

Fix a signature $a: I \sqcup J \to \N$ and an infinite set $V$ of variables. ($I, J, V$ may not be countable.)

The function symbols are $Σ_0^a := \sb{s_i}{i\in I}$, the relation symbols are $Σ_1^a := \sb{r_j}{j\in J}$ and the logical symbols are $$ \begin{align*} L = \set{\wedge, \vee, \Rightarrow, \neg, \bot, \top, =, \exists, \forall, ), (}. \end{align*} $$ The alphabet of signature $a$ is $$ \begin{align*} Σ^a := Σ_0^a \cup Σ_1^a \cup V \cup L. \end{align*} $$

The set $\mathrm{Term}^a$ of $a$-terms is the smallest subset of $(Σ^a)^\ast$ containing $V$ such that $s_i t_0 t_1 \ldots t_{n-1}\in \mathrm{Term}^a$ for any $s_i\in Σ_0^a$ and $t_0, \ldots, t_{n-1} \in \mathrm{Term}^a$ with $n = a(i)$.

For $t\in \mathrm{Term}^a$, write $\op{occ}(t)$ for the set of variables occurring in $t$.

The set $\mathrm{Fml}^a$ of $a$-formulas is the smallest subset of $(Σ^a)^\ast$ containing

  • $\perp$ and $\top$,

  • $t = t'$ for any $t, t'\in \mathrm{Term}^\ast$, and

  • $r_j t_0 t_1 \ldots t_{n-1}$ for any $r_j\in Σ_1^\ast$ and $t_0, \ldots, t_{n-1} \in \mathrm{Term}^a$ with $n = a(j)$,

and such that, if $ϕ, ψ\in \mathrm{Fml}^a$, then so are the following:

  • $\exists v ϕ$ for any $v\in V$,

  • $\forall v ϕ$ for any $v\in V$,

  • $(ϕ \wedge ψ)$,

  • $(ϕ\vee ψ)$,

  • $(ϕ\Rightarrow ψ)$, and

  • $\neg ϕ$.

Define a function $\op{free}$ on $\mathrm{Fml}^a$ recursively:

  • $\op{free}(\bot) = \op{free}(\top) = \emptyset$,

  • $\op{free}(t = t') = \op{occ}(t) \cup \op{occ}(t')$,

  • $\op{free}(r_j t_0 \ldots t_{n-1}) = \op{occ}(t_0) \cup \ldots\op{occ}(t_{n-1})$,

  • $\op{free}((ϕ \wedge ψ)) = \op{free}((ϕ \vee ψ)) = \op{free}((ϕ \Rightarrow ψ)) = \op{free}(ϕ) \cup \op{free}(ψ)$,

  • $\op{free}(\neg ϕ) = \op{free}(\neg ϕ)$,

  • $\op{free}(\exists v ϕ) = \op{free}(\forall v ϕ) = \op{free}(ϕ) \setminus \set{v}$.

An $a$-formula $ϕ$ is an $a$-sentence if $\op{free}(ϕ) = \emptyset$.

Definition (interpretation, model, theory in predicate logic) open_in_new

Let $a$ be a signature, $V$ be an infinite set of variables, and $\mathbf{X}$ be an $a$-structure.

An $\mathbf{X}$-interpretation or $\mathbf{X}$-assignment is any function $\mathfrak{I}: V\to X$. Extent to $\mathrm{Term}^a$ by recursion: $$ \begin{align*} \mathfrak{I}(s_i t_0 \ldots t_{n-1}) := s_i^\mathbf{X}(\mathfrak{I}(t_0), \ldots, \mathfrak{I}(t_{n-1})) \end{align*} $$ where $s_i^\mathbf{X}$ is the operation in $\mathbf{X}$ indexed $i$.

Given an $\mathbf{X}$-interpretation $\mathfrak{I}$, define for $x\in X$, $v\in V$ another $\mathbf{X}$-interpretation $$ \begin{align*} \mathfrak{I}\tfrac{x}{v}(w) = \begin{cases} \mathfrak{I}(w), &\text{if }w\neq v, \\ x, &\text{if }w = v. \end{cases} \end{align*} $$

Now interpret $a$-formulas in $\mathbf{X}$ using $\mathfrak{I}$ according to Tarski's recursive definition of truth:

  • $\mathbf{X}, \mathfrak{I} \vDash \top$ always holds.

  • $\mathbf{X}, \mathfrak{I} \vDash \top$ never holds.

  • $\mathbf{X}, \mathfrak{I} \vDash t = t'$ iff $\mathfrak{I}(t) = \mathfrak{I}(t')$.

  • $\mathbf{X}, \mathfrak{I} \vDash r_j t_0 \ldots t_{n-1}$ iff $a(j) = n$ and $(\mathfrak{I}(t_0), \ldots, \mathfrak{I}(t_{n-1})) \in r_j^\mathbf{X}$, where $r_j^\mathbf{X}$ is the relation in $\mathbf{X}$ indexed $j$.

  • $\mathbf{X}, \mathfrak{I}\vDash (ϕ \wedge ψ)$ iff $\mathbf{X}, \mathfrak{I}\vDash ϕ$ and $\mathbf{X}, \mathfrak{J} \vDash ψ$, etc.

  • $\mathbf{X}, \mathfrak{I}\vDash \exists v ϕ$ iff there exists some $x\in X$ such that $\mathbf{X}, \mathfrak{I}\tfrac{x}{v} \vDash ϕ$.

  • $\mathbf{X}, \mathfrak{I}\vDash \forall v ϕ$ iff for all $x\in X$, there holds $\mathbf{X}, \mathfrak{I}\tfrac{x}{v} \vDash ϕ$.

If $ϕ$ is an $a$-sentence, write $\mathbf{X}\vDash ϕ$ if for all (equivalently some) $\mathbf{X}$-interpretation $\mathfrak{I}$, we have $\mathbf{X}, \mathfrak{I}\vDash ϕ$. In this case we say $ϕ$ is true in $\mathbf{X}$; otherwise say $ϕ$ is false in $\mathbf{X}$.

Let $T\subseteq \mathrm{Fml}^a$. Write $\mathbf{X}\vDash T$ if $\mathbf{X}\vDash ϕ$ for all $ϕ\in T$. In this case, say $\mathbf{X}$ is a model of $T$. Say $T$ is satisfiable if $T$ has a model.

Let $T,S$ be sets of $a$-sentences. Write $T\vDash S$ for whenever $\mathbf{X}\vDash T$, we have $\mathbf{X} \vDash S$.

The theory $\op{Th}(\mathbf{X})$ of $\mathbf{X}$ is the set of $a$-sentences which are true in $\mathbf{X}$. Call two $a$-structures $\mathbf{X}$ and $\mathbf{Y}$ elementarily equivalent if $\op{Th}(\mathbf{X}) = \op{Th}(\mathbf{Y})$.

Note the duality of $\forall$ and $\exists$: $\mathbf{X}, \mathfrak{I} \vDash \exists v\ \neg ϕ$ iff $\mathbf{X}, \mathfrak{I} \vDash \neg \forall v\ ϕ$.

Lemma (coincidence lemma in predicate logic) open_in_new

Let $a$ be a signature, $\mathbf{X}$ be an $a$-structure, and $\mathfrak{I}$ and $\mathfrak{J}$ be $\mathbb{X}$-interpretations.

  1. If $t$ is an $a$-term where $\mathfrak{I}|_{\op{occ}(t)} = \mathfrak{J}|_{\op{occ}(t)}$, then $\mathfrak{J}(t) = \mathfrak{J}(t)$.

  2. If $ϕ$ is an $a$-formula where $\mathfrak{I}|_{\op{free}(ϕ)} = \mathfrak{J}|_{\op{free}(ϕ)}$, then $\mathbf{X}, \mathfrak{I}\vDash ϕ$ iff $\mathbb{X}, \mathfrak{J} \vDash ϕ$.

Proof

If $\op{occ}(t) = \set{v_0, \ldots, v_k}$, denote $$ \begin{align*} t(x_0, \ldots, x_k) := \mathfrak{I}\tfrac{x_0}{v_0} \ldots \tfrac{x_k}{v_k}(t) \end{align*} $$ and if $\op{free}(ϕ) = \set{v_0, \ldots, v_k}$, denote $$ \begin{align*} \mathbf{X} \vDash ϕ(x_0, \ldots, x_k) \quad :\iff \quad \mathbf{X}, \mathfrak{I}\tfrac{x_0}{v_0} \ldots \tfrac{x_k}{v_k} \vDash ϕ. \end{align*} $$ This result shows these do not depend on the choice of interpretation $\mathfrak{I}$.

[[FILE NOT FOUND: Lemma (isomorphism lemma)]]

Definition (definable) open_in_new

Let $\mathbb{X}$ be an $a$-structure.

An operation $f: X^n\to X$ is definable over $\mathbf{X}$ if there is a formula $ϕ$ with $n+1$ free variables such that $f(\v x) = x$ iff $\mathbf{X}$${}\vDash{}$$ϕ(\v x, x)$.

A relation $R\subseteq X^n$ is definable over $\mathbf{X}$ if there is a formula $ϕ$ with $n$ free variables such that $\v x\in R$ iff $\mathbf{X}\vDash ϕ(\v x)$.

Definition (implication formula in predicate logic) open_in_new

In predicate logic, an implication formula is a formula which does not contain the symbols $\wedge$, $\vee$, $\neg$, $\top$, $\exists$.

Write $\mathsf{IFml}^a$ for the set of implicative $a$-formulas.

As before define recursively the surjection $$ \begin{align*} s: \mathrm{Fml} &\to \mathrm{IFml} \\ \exists x ϕ &\mapsto \forall x(s(ϕ) \Rightarrow \bot)\Rightarrow \bot. \end{align*} $$

Proof in predicate logic open_in_new

Let $T\subseteq{}$$\mathrm{Fml}^a$. We require the following properties of $\vdash$ in predicate logic:

  1. Finiteness: if $T \vdash ϕ$, then there is a finite $T_0\subseteq T$ such that $T_0\vdash ϕ$.

  2. Soundness: if $T \vdash ϕ$, then $T \vDash ϕ$.

  3. Assumption: if $ϕ\in T$, then $T \vdash ϕ$.

  4. Strengthening: if $T \subseteq T'$ and $T \vdash ϕ$, then $T'\vdash ϕ$.

  5. Deduction theorem: $T \vdash (ϕ \implies ψ)$ iff $T \cup \set{ϕ} \vdash ψ$.

  6. Modus ponens: $T \vdash (ϕ \implies ψ)$ and $T \vdash ϕ$, then $T\vdash ψ$.

  7. Propositional tautologies: let $χ$ be a propositional tautology with propositional variables $p_1, \ldots, p_n$. For any predicate formulas $ϕ_1, \ldots, ϕ_n$, let $ϕ$ be the predicate formula obtained from replacing $p_i$ with $ϕ_i$. Then $T \vdash ϕ$.

  8. Implicativity: $T \vdash ϕ$ iff $T \vdash s(ϕ)$ where $s: \mathrm{Fml}^a \to \mathrm{IFml}^a$ is defined here.

  9. Equality: the relation on $a$-terms $$ \begin{align*} t\sim t' :\iff T \vdash t = t' \end{align*} $$ is an equivalence relation.

  10. Congruence: relations and operations respect equality, i.e.

    • If $r$ is an $n$-ary relation symbol, and $t_0, \ldots, t_{n-1}$ and $t_{0}', \ldots, t_{n-1}'$ are $a$-terms such that $T \vdash t_i = t_i'$ for all $i<n$, then $T \vdash r t_0 \ldots t_{n-1}$ iff $T \vdash r t_0' \ldots t_{n-1}'$.

    • If $s$ is a $n$-ary function symbol, and $t_0, \ldots, t_{n-1}$ and $t_{0}', \ldots, t_{n-1}'$ are $a$-terms such that $T \vdash t_i = t_i'$ for all $i<n$, then $T \vdash s t_0 \ldots t_{n-1} = s t_{0}' \ldots t_{n-1}'$.

  11. Universality: if $T \vdash \forall xϕ$, we have $T \vdash ϕ\frac{t}{x}$ for all $a$-terms $t$.

Completeness of predicate logic open_in_new

Definition (term structure) open_in_new

Fix a set $T$ of $a$-formulas and define the equivalence relation on $\mathrm{Term}^a$ by $t \sim t' :\iff T \vdash t = t'$.

The term structure $\mathbf{H}$ of $T$ is an $a$-structure with an underlying set $$ \begin{align*} H = \mathrm{Term}^a/{\sim} \end{align*} $$ and operations and relations $$ \begin{gather*} s^\mathbf{H}([t_0], \ldots, [t_{n-1}]) := [st_0\ldots t_{n-1}], \\ ([t_0], \ldots, [t_{n-1}]) \in r^\mathbf{H} :\iff T\vdash rt_0 \ldots t_{n-1}, \end{gather*} $$ well-defined by congruence properties of $\vdash$.

The term interpretation of $T$ is $$ \begin{align*} \mathfrak{I}^\mathbf{H}(t) := [t]. \end{align*} $$

Theorem (Lindenbaum's lemma) open_in_new

Let $T\subseteq \mathrm{Fml}$ is a set of formulae in proposition or predicate logic. Suppose $\mathrm{Fml}$ can be well-ordered. (Either $\mathrm{Fml}$ is countable, or assume the axiom of choice.)

If $T$ is consistent, then there is some $T^\ast \subseteq \mathrm{Fml}$ containing $T$ which is negation complete and consistent.

Proof

Definition (witness) open_in_new

Fix a signature $a$.

A subset $T \subseteq \mathrm{Fml}^a$ has a witness for $a$ if for all $ϕ\in \mathrm{Fml}^a$ and $x\in V$, there exists a term $t$ such that $$ \begin{align*} T \vdash (\exists x ϕ) \Rightarrow ϕ\tfrac{t}{x}. \end{align*} $$

Theorem (Henkin's lemma) open_in_new

Let $a$ be a signature.

If $T \subseteq \mathrm{Fml}^a$ is consistent, negation complete and has witness for $a$, then the term structure satisfies $$ \begin{align*} \mathbf{H}, \mathfrak{I}^\mathbf{H} \vDash ϕ \iff T \vdash ϕ \end{align*} $$ for all $ϕ\in \mathrm{Fml}^a$.

In particular $\mathbf{H}, \mathfrak{I}^\mathbf{H} \vDash T$.

Proof

Theorem (Henkenisation, model existence) open_in_new

Work in $\mathsf{ZFC}$.

Given $T\subseteq \mathrm{Fml}^a$, let $T_0 := T$ and $a_0 := a$. For each $n\in \N$, let

  • $a_{n+1}$ be the signature $a_n$ with one new constant symbol $c_{ϕ,x}$ for each $(ϕ,x)\in \mathrm{Fml}^{a_n} \times V$,

  • $\tilde T_{n+1} := T_n \cup \sb{(\exists x ϕ) \Rightarrow ϕ\tfrac{c_{ϕ,x}}{x}}{ϕ\in \mathrm{Fml}^{a_n}, x\in V}$ and $T_{n+1}\supseteq \tilde T_{n+1}$ be any superset that is negation complete for $a_{n+1}$ (by Lindenbaum).

Take $$ \begin{align*} a_\infty := \bigcup_{n\in \N} a_n, \quad T_\infty := \bigcup_{n\in \N} T_n. \end{align*} $$

Then $T_\infty\subseteq \mathrm{Fml}^{a_\infty}$ is consistent, negation complete for $a_\infty$ and has witness for $a_\infty$.

Thus the term structure $\mathbf{H}$ of $T_\infty$ is a model of $T_\infty$, hence of $T$.

Proof

Theorem (Gödel's completeness theorem) open_in_new

In predicate logic, let $T\subseteq \mathrm{Fml}^a$ and $ϕ\in \mathrm{Fml}^a$.

If $T$${}\vDash{}$$ϕ$, then $T$${}\vdash{}$$ϕ$.

Proof: follows from model existence.

Corollary (compactness theorem in predciate logic) open_in_new

In predicate logic, let $T\subseteq \mathrm{Fml}^a$.

$T$ is satisfiable iff every finite subset of $T$ is satisfiable.

Model theory open_in_new

Definition (axiomatisation) open_in_new

Let $\mathcal{C}$ be a class of $a$-structures.

A set $T$ of $a$-sentences is called an axiom system or axiomatisation of $\mathcal{C}$ if $\mathbf{X} \in \mathcal{C}$ iff $\mathbf{X}$${}\vDash{}$$T$.

Say $\mathcal{C}$ is axiomatisable if such an axiomatisation exists. If $T$ is finite, say $\mathcal{C}$ is finitely axiomatisable.

Definition (categorical) open_in_new

Work in $\mathsf{ZFC}$. Let $T$ be a set of $a$-sentences and $κ$ be an cardinal.

  • $T$ is categorical if all models of $T$ are isomorphic.

  • $T$ is $κ$-categorical if all models of $T$ of cardinality $κ$ are isomorphic.

Theorem (upward Löwenheim–Skolem) open_in_new

Let $T$ be a set of $a$-sentences.

If $T$ has a model of cardinality $\geq n$ for all $n\in \N$ (such as having an infinite model), then $T$ has a model of cardinality $\geq |K|$ for all set $K$.

Proof

Therefore the class of finite $a$-structures is not axiomatisable: there is an $a$-structure of arbitrary finite cardinality with all operations being constant and all relations being empty.

Such $T$ is not categorical.

Theorem (downward Löwenheim–Skolem) open_in_new

Work in $\mathsf{ZFC}$. Let $T$ be a set of $a$-sentences.

If $T$ is consistent, then $T$ has a model of cardinality $\leq |\mathrm{Fml}^a|$.

Proof

Corollary (existence of model of exact cardinality) open_in_new

Work in $\mathsf{ZFC}$. Let $T$ be a set of $a$-sentences.

If $T$ has a model of cardinality $\geq n$ for all $n\in \N$ (such as having an infinite model), then $T$ has a model of cardinality exactly $κ$ for all $κ \geq |\mathrm{Fml}^a|$.

Proof

Therefore if $\mathrm{Fml}^a$ is countable, then $T$ has a countable model. > Hence $\mathrm{Th}(\R,+,\cdot,0,1,<)$ and $\mathsf{ZFC}$ has a countable model.

Theorem (N is not axiomatisable) open_in_new

Let $a$ be any signature and $\mathbf{N}$ be any $a$-structure with underlying set $\N$ the natural numbers.

The class of $a$-structures isomorphic to $\mathbf{N}$ is not axiomatisable.

Proof

Theorem (Łoś–Vaught test) open_in_new

Work in $\mathsf{ZFC}$. Let $T$ be a set of $a$-sentences.

If $T$ is consistent, has no finite model and $T$ is $κ$-categorical for some $κ\geq |\mathrm{Fml}^a|$, then $T$ is negation complete.

Proof

Theorem (Morley) open_in_new

Work in $\mathsf{ZFC}$.

For any cardinals $κ, λ>\aleph_0$, $T$ is $κ$-categorical iff $T$ is $λ$-categorical.

Set theory open_in_new

Definition (language of set theory) open_in_new

The language of set theory or $\in$-language is the signature with a single binary relation $\in$.

The formulae in this language are called $\in$-formulae. The set of all $\in$-formulae is denoted $\mathrm{Fml}^\in$.

Structures in this language are called $\in$-structures and can be represented as a directed graph $\mathbf{X} = (X, E)$ where $E \subseteq X^2$.

We will use abbreviations in $\in$-formulae, e.g. $ϕ \Leftrightarrow ψ$ for $ϕ\Rightarrow ψ\wedge ψ \Rightarrow ϕ$, $x\not\in y$ for $\neg x \in y$ etc.

Definition (class, coextensional) open_in_new

Let $\mathbf{X} = (X,E)$ be a model of set theory.

Elements of $X$ are called $\mathbf{X}$-sets, and subsets of $X$ are called $\mathbf{X}$-classes.

We say a class $A \subseteq X$ is coextensional with a set $x\in X$ if for all $z\in X$, we have $z\in A$ iff $zEx$.

A class $A \subseteq X$ is proper if it is not coextensional to any set.

Axioms of set theory open_in_new

Definition (axiom of extensionality) open_in_new

The axiom of extensionality is the $\in$-formula $$ \begin{align*} \mathsf{Ext} := \forall x\forall y (x = y \Leftrightarrow \forall z(z\in x\Leftrightarrow z\in y)). \end{align*} $$

"Two sets are equal iff they have the same elements."

Definition (axiom schema of comprehension) open_in_new

For any $ϕ\in{}$$\mathrm{Fml}^\in$ with $\op{free}(ϕ) = \set{v_0, \ldots, v_{n-1}, z}$, define $$ \begin{align*} \mathsf{Compr}_ϕ := \forall v_0 \ldots\forall v_{n-1} \exists c \forall z(z\in c \Leftrightarrow ϕ). \end{align*} $$ The collection of all $\mathsf{Compr}_ϕ$ is $\mathsf{Compr}$, the axiom schema of comprehension.

Proposition (Russell's paradox) open_in_new

For any $\in$-structure $\mathbf{X}$, $\mathsf{Compr}_ϕ$ is false in $\mathbf{X}$ where $$ϕ = \neg z \in z.$$ In particular $\mathsf{Compr}$ does not hold in $\mathbf{X}$.

Proof

Therefore $X$ is a proper class.

Definition (axiom of empty set) open_in_new

The axiom of empty set is the $\in$-formula $$ \begin{align*} \mathsf{Emp} := \exists c \ \forall z (z\in c \Leftrightarrow \bot). \end{align*} $$

By $\mathsf{Ext}$, this defines a unique object in the model, denoted $\emptyset$.

Definition (axiom of pairing) open_in_new

The axiom of pairing is the $\in$-formula $$ \begin{align*} \mathsf{Pair} := \forall x\forall y \ \exists p \ \forall z(z\in p \Leftrightarrow (z=x \vee z=y)). \end{align*} $$

By $\mathsf{Ext}$, for each $x,y\in X$ this defines a unique object in a model $X$, denoted $\set{x,y}$, or $\set{x}$ if $x=y$.

Definition (axiom of union) open_in_new

The axiom of union is the $\in$-formula $$ \begin{align*} \mathsf{Union} := \forall x\ \exists u\ \forall z(z\in u \Leftrightarrow \exists y(y\in x \wedge z\in y)). \end{align*} $$

By $\mathsf{Ext}$, for each $x\in X$ this defines a unique object in a model $X$, denoted $\bigcup x$.

Definition (axiom of power set) open_in_new

The axiom of power set is the $\in$-formula $$ \begin{align*} \mathsf{Powerset} :={}& \forall x\ \exists p\ \forall z(z\in p \Leftrightarrow \forall y(y\in z \Rightarrow y\in x)) \\ \equiv{}& \forall x\ \exists p\ \forall z(z\in p\Leftrightarrow z\subseteq x). \end{align*} $$

By $\mathsf{Ext}$, for each $x\in X$ this defines a unique object in a model $X$, denoted $\mathcal{P}(x)$.

Definition (axiom of separation) open_in_new

For each $ϕ\in{}$$\mathrm{Fml}^\in$ with $\op{free}(ϕ) = \set{v_0, \ldots, v_{n-1}, z}$, define $$ \begin{align*} \mathsf{Sep}_ϕ := \forall v_0 \ldots \forall v_{n-1} \ \forall x\ \exists s\ \forall z(z\in s \Leftrightarrow (z\in x\wedge ϕ)). \end{align*} $$

The collection of all $\mathsf{Sep}_ϕ$ is $\mathsf{Sep}$, the axiom schema of separation.

By $\mathsf{Ext}$, for each $ϕ\in \op{Fml}^\in$, $x\in X$, $\v v\in X^n$ this defines a unique object in a model $X$, denoted $\sb{z\in x}{ϕ}$.

Definition (finite set theory) open_in_new

Finite set theory $\mathsf{FST}$ is the axiom system consisting of $\mathsf{Ext}$, $\mathsf{Emp}$, $\mathsf{Pair}$, $\mathsf{Union}$, $\mathsf{Powerset}$, and $\mathsf{Sep}$.

Definition (successor, inductive set, axiom of infinity) open_in_new

Work in finite set theory.

For any set $x$, the successor of $x$ is $s(x) := x \cup \set{x}$.

A set $a$ is inductive if it satisfies the formula $$ \begin{align*} \op{ind}(a) := \emptyset \in a \ \wedge \ \forall x(x\in a \Rightarrow s(x) \in a). \end{align*} $$

The axiom of infinity is the formula $$ \begin{align*} \mathsf{Inf} := \exists a \ \op{ind}(a). \end{align*} $$

Definition (axiom of replacement) open_in_new

For each $ϕ\in{}$$\mathrm{Fml}^\in$ with $\op{free}(ϕ) = \set{v_0, \ldots, v_{n-1}, v, w}$, write $ϕ \tfrac{x}{v} \tfrac{y}{w}$ for the formula where we replace all $v$ and $w$ in $ϕ$ with $x$ and $y$ respectively. Define $$ \begin{align*} \mathsf{Repl}_ϕ :={} \quad &\forall v_0 \ldots \forall v_{n-1}\ \forall x \forall y \forall y' (ϕ \tfrac{x}{v} \tfrac{y}{w} \wedge ϕ \tfrac{x}{v} \tfrac{y'}{w} \Rightarrow y = y') \\ \Rightarrow{}& \forall v_0 \ldots \forall v_{n-1}\ \forall d \exists r \ \forall y(y\in r \Leftrightarrow \exists x(x\in d \wedge \phi \tfrac{x}{v} \tfrac{y}{w})). \end{align*} $$ $ϕ$ is said to be functional if the premise holds.

The collection of all $\mathsf{Repl}_ϕ$ is $\mathsf{Repl}$, the axiom schema of replacement.

Definition (axiom of choice) open_in_new

In the language of set theory, let $x$ be a set. $f$ is a choice function for $x$ if it satisfies $$ \begin{align*} \op{cf}(f, x) := \bigl(f: x\to \bigcup x\bigr) \wedge \forall y \bigl(y\in x \wedge y\neq \emptyset \Rightarrow f(y) \in y\bigr). \end{align*} $$

The axiom of choice is the $\in$-formula $$ \begin{align*} \mathsf{AC} := \forall x \exists f\ \op{cf}(f,x). \end{align*} $$

Definition (axiom of foundation) open_in_new

The axiom of foundation is the $\in$-formula $$ \begin{align*} \mathsf{Found} := \forall x (x \neq \emptyset \Rightarrow \exists m (m\in x \wedge m \cap x = \emptyset)). \end{align*} $$

$m \cap x = \emptyset$ iff $m$ is $\in$-minimal in $x$.

Definition (Zermelo–Fraenkel set theory) open_in_new

Define the following axiom systems:

Proposition (model of finite set theory is infinite) open_in_new

Any model of finite set theory is infinite.

Proof

Reconstruction of abstract mathematics in finite set theory open_in_new

We can reconstruct abstract operations in finite set theory:

  • Ordinary (binary) union: $x \cup y := \bigcup \set{x,y}$ (using $\mathsf{Pair}$ and $\mathsf{Union}$)

  • Intersection: $x \cap y := \sb{z\in x}{z\in y} = \sb{z\in y}{z\in x}$ (using $\mathsf{Sep}$).

  • Ordered pair: $(x,y) := \set{\set{x}, \set{x,y}}$ known as the Kuratowski pair.

    This has the property $(x, y) = (x', y')$ iff $x = x'$ and $y = y'$.

  • The Cartesian product $$ \begin{align*} a \times b := \sb{p\in \mathcal{P}(\mathcal{P}(a\cup b))}{\exists x\exists y(x\in a \wedge y\in b\wedge p = (x,y))} \end{align*} $$ using $\mathsf{Powerset}$ and $\mathsf{Sep}$.

Definition (relation) open_in_new

For sets $a,b$, an element $r\in \mathcal{P}(a\times b)$ is a relation between $a$ and $b$.

  • $r$ is functional if $\forall x \forall y \forall y'\ (x,y)\in r \wedge (x,y')\in r \Rightarrow y = y'$.

  • $r$ is total if $\forall x\ x\in a \Rightarrow \exists y(y\in b \wedge (x,y)\in r)$.

  • $r$ is a function if $r$ is functional and total.

  • $r$ is injective if $\forall x\forall x'\forall y\ (x,y)\in r \wedge(x', y)\in r \Rightarrow x = x'$.

  • $r$ is surjective if $\forall y\ y \in b \Rightarrow \exists x(x\in a \wedge (x,y)\in r)$.

Then $r$ is called a binary relation on $a$.

  • $r$ is reflexive if $\forall x\ (x,x)\in r$.

  • $r$ is irreflexive if $\forall x\ (x,x)\not\in r$.

  • $r$ is symmetric if $\forall x\forall y\ (x,y)\in r \Leftrightarrow (y,x)\in r$.

  • $r$ is transitive if $\forall x\forall y\forall z\ ((x,y)\in r\wedge (y,z)\in r) \Rightarrow (x,z)\in r$.

  • $r$ is antisymmetric if $\forall x\forall y ((x,y)\in r \wedge (y,x)\in r) \Rightarrow x=y$.

  • $r$ is linear if $\forall x\forall y\ (x,y)\in r \vee (y,x)\in r\vee x=y$.

  • $r$ is a partial order if it is reflexive, transitive and antisymmetric.

  • $r$ is a strict partial order if it is irreflective and transitive.

  • $r$ is a linear order if it is a partial order which is linear.

  • $r$ is a strict linear order if it is a strict partial order which is linear.

  • $r$ is an equivalence relation if it is reflexive, symmetric and transitive.

The natural numbers open_in_new

Definition (construction of natural numbers from Inf) open_in_new

Work in $\mathsf{FST}$ + $\mathsf{Inf}$.

For an inductive set $a$, which exists by $\mathsf{Inf}$, define by $\mathsf{Sep}$ $$ \begin{align*} N_a := \sb{z\in a}{\forall x(\op{ind}(x) \Rightarrow z\in x)}. \end{align*} $$ Check this does not depend on $a$ and is the smallest inductive set. Call this $$ \begin{align*} \N := N_a \end{align*} $$ and call its elements the natural numbers.

Write $0 := \emptyset$, $1 := s(0) = \set{0} = \set{\emptyset}$, $2 := s(1) = \set{0, 1} = \set{\emptyset, \set{\emptyset}}$, $3 := s(2) = \set{0, 1, 2} = \set{\emptyset, \set{\emptyset}, \set{\emptyset, \set{\emptyset}}}$ etc.

Theorem (induction) open_in_new

Construct $\N$ as here.

If $A \subseteq \N$ is such that $\emptyset\in A$ and whenever $n\in A$, we have $s(n) \in A$, then $A = \N$.

Proof

Definition (minimal element, well-founded relation) open_in_new

Let $R$ be a binary relation of a set $X$.

For a subset $S\subseteq X$, an $R$-minimal element of $S$ is an element $m\in S$ such that for all $s\in S$, it is not the case that $sRm$.

$R$ is well-founded if all non-empty subsets of $X$ have an $R$-minimal element.

Definition (transitive set) open_in_new

A set $x$ is transitive if for all sets $y,z$, if $z\in y\in x$, then $z\in x$.

Equivalently, all elements of $x$ are subsets of $x$.

Proposition (transitivity of natural numbers) open_in_new

Construct $\N$ as here.

  1. $\N$ is transitive.

  2. Any natural number is transitive.

Proof

Proposition (subset of natural numbers) open_in_new

Construct $\N$ as here.

If $n,m\in \N$, then $m\subseteq n$ iff $m = n$ or $m\in n$.

Proof

Theorem (well-order on N) open_in_new

Construct $\N$ as here. Define a relation $<$ on $\N$ by $n<m$ iff $n\in m$.

$<$ is a well-order on $\N$.

Proof TODO

Definition (finite, infinite, countable, uncountable, countably infinite) open_in_new

Work in $\mathsf{FST}$ + $\mathsf{Inf}$.

A set $X$ is finite if there exists $n\in{}$$\N$ such that $X$ is in bijection with $n$; otherwise $X$ is infinite.

$X$ is countable if there exists an injection $X \hookrightarrow \N$; otherwise $X$ is uncountable.

$X$ is countably infinite if there exists a bijection $X\to \N$.

Well-orders open_in_new

Theorem (order induction and well-foundedness) open_in_new

Let $\mathbf{X} = (X, <)$ be a strict partial order. Write $\op{pred}(x) := \sb{z\in X}{z<x}$ for $x\in X$.

$\mathbf{X}$ is well-founded iff it satisfies order induction, i.e. for all $A\subseteq X$, if there holds $$ \begin{align*} \forall x\in X (\op{pred}(x) \subseteq A \implies x\in A), \end{align*} $$ then $A = X$.

Proof

Theorem (recursion) open_in_new

Work in finite set theory.

Let $(X, <)$ be a well-founded strict partial order and $ϕ$ be an $\in$-formula with $\op{free}(ϕ) = \set{a,b,c}$. Suppose

  • $ϕ$ is functional: for all $a,b\in X$ and $c,c'$ sets, if $ϕ(a,b,c)$ and $ϕ(a,b,c')$ hold, then $c = c'$; and

  • $ϕ$ is total: for all $a,b\in X$, there exists $c$ such that $ϕ(a,b,c)$ holds.

Assume either

  • $\mathsf{Repl}$ holds; or

  • there exists some $r$ such that for all $a,b\in X$, if $ϕ(a,b,c)$ holds, then $c\in r$.

Then there exists a unique function $F$ with domain $X$ such that for all $x\in X$, $$ \begin{align*} F(x) = z \iff ϕ(x, F|_{\op{pred}(x)}, z). \end{align*} $$

Proof

Proposition (transitive closure) open_in_new

Work in $\mathsf{FST}$ + $\mathsf{Inf}$ + $\mathsf{Repl}$.

For all sets $x$, there exists a smallest transitive superset $t \supseteq x$, i.e. if $t'\supseteq x$ is a transitive set, then $t' \supseteq t$. We call $\op{tcl}(x) := t$ the transitive closure of $x$.

Proof

Definition (well-order, initial segment) open_in_new

A well-order $\mathbf{X} = (X, <)$ is a well-founded strict linear order.

An initial segment of $\mathbf{X}$ is a subset $A \subseteq X$ such that $\op{pred}(x) \subseteq A$ for all $x\in A$.

$A$ is a proper initial segment iff $A = \op{pred}(x)$ for some $x\in X$. Proof

If $A \subseteq X$ is a subset, then $(A, {<} \cap (A \times A))$ is a wellorder.

Definition (sum of well-orders) open_in_new

Let $\mathbf{X}$ and $\mathbf{Y}$ be well-orders. Assume $X$ and $Y$ are disjoint.

Their sum is $\mathbf{X} \oplus \mathbf{Y} := (X \sqcup Y, <^+)$, where $$ \begin{align*} a <^+ b :\iff \begin{cases} a\in X, b\in X, a<b, & \text{or} \\ a\in Y, b\in Y, a<b, & \text{or} \\ a\in X, b\in Y. \end{cases} \end{align*} $$ This is a well-order.

Writing $\mathbf{1} = (1, <)$, $s(X)$ is isomorphic to $\mathbf{X} \oplus \mathbf{1}$.

Definition (product of well-orders) open_in_new

Let $\mathbf{X}$ and $\mathbf{Y}$ be well-orders.

Their product is $\mathbf{X} \otimes \mathbf{Y} := (X \times Y, <^\times)$, where $<^\times$ follows reverse lexicographical order: $$ \begin{align*} (x,y)<^\times (x', y') :\iff y < y' \vee (y = y' \wedge x< x'). \end{align*} $$ This is a well-order.

Proposition (uniqueness of isomorphisms between well-orders) open_in_new

Let $\mathbf{X}$ and $\mathbf{Y}$ be well-orders, and let $A,B \subseteq Y$ be initial segments.

If $f: \mathbf{X} \to \mathbf{A}$ and $g: \mathbf{X} \to \mathbf{B}$ are isomorphisms of well-orders, then $A = B$ and $f = g$.

Proof

This shows a well-order is not isomorphic to any proper initial segment.

Theorem (fundamental theorem of well-orders) open_in_new

Let $A$ be a set of well-orders such that no two distinct elements are isomorphic.

Then $(A, \prec)$ is a well-order, where $\mathbf{X}\prec \mathbf{Y}$ iff there is an isomorphism from $\mathbf{X}$ to a proper initial segment of $\mathbf{Y}$.

Proof

Ordinals open_in_new

Definition (ordinal) open_in_new

A set $α$ is an ordinal if it is a transitive set and $(α, \in)$ is a well-order.

An ordinal $α$ is either

  • zero $α = \emptyset$;

  • a successor ordinal if $α = s(β)$ for some ordinal $β$; or

  • a limit ordinal if otherwise.

Write $α<β$ for $α\in β$.

If $x\in α$, then $\op{pred}(x) = \sb{y\in α}{y\in x} = x$ as $x\subseteq α$. So proper initial segments of $α$ are precisely elements of $α$.

Elements of ordinals are ordinals. (Proof)

If $α \isom β$ as well-orders, then $α = β$. (Proof)

$α\prec β$ iff $α\in β$. (Proof)

A transitive set of ordinals is an ordinal. (Proof) Therefore if $A$ is a set of ordinals, then $\bigcup A$ is an ordinal.

Assuming $\mathsf{Inf}$, we write $ω = \N$.

Theorem (Borali-Forti, no set of all ordinals) open_in_new

There is no set of all ordinals.

That is, the class of all ordinals is proper.

Proof

Theorem (Mostowski collapse) open_in_new

Work in $\mathsf{FST}$ + $\mathsf{Repl}$.

Let $\mathbf{X} = (X, <)$ be a well-founded strict partial order. Define by recursion a function $π$ on $X$ $$ \begin{align*} π(x) := \sb{π(y)}{y<x} \end{align*} $$ called the Mostowski collapse, and let $T = \op{ran}(π)$.

If $\mathbf{X}$ is extensional, i.e. $\mathbf{X} \vDash{}$$\mathsf{Ext}$, then $T$ is transitive and $π: \mathbf{X} \to (T, \in)$ is an isomorphism.

Proof

Theorem (representation of well-orders) open_in_new

Work in $\mathsf{FST}$ + $\mathsf{Repl}$.

For every well-order $\mathbf{X}$, there exists a unique ordinal $α$ such that $\mathbf{X} \isom (α,\in)$.

Proof: uniqueness, existence.

Theorem (Hartogs) open_in_new

Work in $\mathsf{FST}$ + $\mathsf{Repl}$.

For every set $X$, there is a smallest ordinal $\aleph(X)$, called the Hartogs aleph of $X$, which does not inject into $X$.

Proof

Therefore $|X| < |\aleph(X)|$, so there is no set of largest size.

$\aleph(X)$ is an cardinal. For $κ$ a cardinal, its cardinal successor is $κ^+ := \aleph(κ)$.

Theorem (transfinite induction) open_in_new

Let $ϕ$ is a formula with one free variable. Suppose

  • $ϕ(0)$ holds;

  • for all ordinal $α$, if $ϕ(α)$ holds, then $ϕ(s(α))$ holds; and

  • for all limit ordinal $λ$, if $ϕ(α)$ holds for all ordinals $α<λ$, then $ϕ(λ)$ holds.

Then $ϕ(α)$ holds for all ordinals $α$.

Proof

Ordinal arithmetic open_in_new

Define by transfinite recursion $$ \begin{align*} α + 0 &:= α & α\cdot 0 &:= 0 & α^0 &:= 1 \\ α + s(β) &:= s(α + β) & α\cdot s(β) &:= α \cdot β + α & α^{s(β)} &:= α^β \cdot α \\ α + λ &:= \bigcup \sb{α+γ}{γ<λ} & α\cdot λ &:= \bigcup \sb{α\cdot γ}{γ<λ} & α^λ &:= \bigcup \sb{α^γ}{γ<λ}. \end{align*} $$

  • Commutativity fails for all three.

  • Addition:

    • $(α + β, \in)\isom (α, \in)$${}\oplus{}$$(β, \in)$.

    • Associativity holds.

    • $α + 0 = α = 0 + α$.

    • Increasing: if $α < β$, then $γ + α < γ + β$ but $α + γ \leq β + γ$.

    • Left cancellation: if $α + β = α + γ$, then $β = γ$.

    • Left subtraction: if $α\leq β$, then there is a unique $δ$ such that $α + δ = β$.

  • Multiplication:

    • $(α\cdot β, \in)\isom(α, \in)$${}\otimes{}$$(β, \in)$

    • Associativity holds.

    • $α \cdot 0 = 0 = 0 \cdot α$.

    • $α \cdot 1 = α = 1 \cdot α$.

    • Increasing: If $α<β$ and $γ>0$, then $γ \cdot α < γ \cdot β$ but $α \cdot γ \leq β \cdot γ$.

    • Left cancellation: if $α \cdot β = α \cdot γ$ and $α>0$, then $β = γ$.

  • Left distributivity: $α\cdot (β + γ) = α \cdot β + α\cdot γ$.

  • Exponentiation:

    • $α^0 = 1$.

    • $0^α = 0$ if $α>0$.

    • $α^1 = 1$.

    • $1^α = 1$.

    • $α^{β + γ} = α^β \cdot α^{γ}$.

    • $α^{βγ} = (α^β)^γ$.

    • If $α<β$ and $γ>1$, then $γ^α < γ^β$.

    • If $α<β$, then $α^γ \leq β^{γ}$.

    • If $α^β = α^γ$ and $α>1$, then $β = γ$.

Equivalents of the axiom of choice open_in_new

Lemma (choice function on power set) open_in_new

Work in finite set theory.

The axiom of choice holds iff all power sets have a choice function.

Proof

Lemma (existence of injection and surjection) open_in_new

Let $X,Y$ be sets and assume $X \neq \emptyset$.

If there is an injection $X\to Y$, then there is a surjection $Y \to X$.

If $Y$ can be well-ordered, then the converse holds.

Proof

Theorem (Zermelo well-ordering) open_in_new

Zermelo's well-ordering principle $\mathsf{ZWOP}$ is the statement "all sets can be well-ordered".

In $\mathsf{FST}$ + $\mathsf{Repl}$, $\mathsf{ZWOP}$ is equivalent to $\mathsf{AC}$.

Proof

$\mathsf{ZWOP}$ is equivalent to the statement "any set is in bijection with an ordinal" by the representation theorem.

Theorem (Zorn's lemma) open_in_new

Let $\mathbf{P} = (P, \leq)$ be a partial order.

Say $p\in P$ is an (upper) bound of a subset $A\subseteq P$ if $a\leq p$ for all $a\in A$. If such $p$ exists, say $A$ is bounded.

A subset $A \subseteq P$ is a chain if $(A, \leq)$ is a linear order. $P$ is said to be chain-complete if all chains are bounded.

Zorn's lemma $\mathsf{ZL}$ is the statement "all non-empty chain-complete partial orders have a maximal element".

In $\mathsf{FST}$ + $\mathsf{Repl}$, $\mathsf{ZL}$ is equivalent to $\mathsf{AC}$.

Proof

Cardinality open_in_new

Definition (cardinality) open_in_new

Let $X,Y$ be sets.

$X,Y$ are said to be of the same size, equinumerous or equivpollent if there is a bijection $X\to Y$. We write $|X| = |Y|$.

We write $|X| \leq |Y|$ if there is an injection $X\to Y$.

Assuming $\mathsf{AC}$, $|X|\leq |Y|$ iff there is a surjection $Y \to X$.

Theorem (Cantor-Schröder-Bernstein) open_in_new

Work in a model of $\mathsf{ZF}$. Let $X, Y$ be sets.

If $|X|\leq |Y|$ and $|Y| \leq |X|$, then $|X| = |Y|$.

Theorem (Cantor) open_in_new

Work in a model of finite set theory.

For any set $X$, $|X| < |\mathcal{P}(X)|$.

Proof

Definition (initial ordinal, cardinal) open_in_new

An ordinal $α$ is called initial if $|γ| < |α|$ for all $γ<α$. An initial ordinal is called a cardinal.

In $\mathsf{FST}$ + $\mathsf{Repl}$, if $X$ is a set which can be well-ordered (which is always the case assuming $\mathsf{AC}$), write $|X|$ for the unique cardinal in bijection with $X$.

If $κ$ is an initial ordinal, then $κ$ is the minimal element of $\sb{\text{ordinal }α}{|α| = |κ|}$.

If $κ, λ$ are initial ordinals, then either $|κ|<|λ|$, $κ = λ$, or $|κ|>|λ|$.

If $A$ is a set of initial ordinals, then $\bigcup A$ is also an initial ordinal.

Definition (aleph numbers) open_in_new

Work in $\mathsf{FST}$ + $\mathsf{Inf}$ + $\mathsf{Repl}$. Define by transfinite recursion

  • $\aleph_0 :={}$$ω$,

  • $\aleph_{s(α)} :={}$$\aleph$$(\aleph_α)$,

  • $\aleph_γ := \bigcup \sb{\aleph_α}{α<λ}$ if $λ$ is a limit ordinal.

An ordinal is called an aleph if it is $\aleph_α$ for some $α$.

$\aleph_α$ is called a successor cardinal if $α$ is a successor ordinal. Otherwise it is a limit cardinal.

By transfinite induction, $\aleph_α$ is a cardinal for all ordinal $α$.

Theorem (all infinite cardinals are alephs) open_in_new

Work in $\mathsf{FST}$ + $\mathsf{Inf}$ + $\mathsf{Repl}$.

Any infinite cardinal is an aleph.

Proof

Theorem (Hessenberg) open_in_new

Work in a model of $\mathsf{FST}$ + $\mathsf{Inf}$ + $\mathsf{Repl}$.

If $κ$ is an infinite cardinal, then $|κ \times κ|$${}= κ$.

Proof

Proposition (cardinal addition and multiplication) open_in_new

Work in $\mathsf{FST}$ + $\mathsf{Inf}$ + $\mathsf{Repl}$.

Define cardinal addition and multiplication by $$ \begin{align*} κ + λ &:= |κ \oplus λ| = |κ \times \set{0} \cup λ \times \set{1}|, \\ κ \cdot λ &:= |κ \otimes λ| = |κ \times λ|. \end{align*} $$

For cardinals $κ,λ$ with both at least 1 and either infinite, $$ \begin{align*} κ + λ = \max\set{κ, λ} = κ\cdot λ. \end{align*} $$

Proof

Definition (cardinal exponentiation) open_in_new

Work in a model of $\mathsf{FST}$ + $\mathsf{Repl}$ + $\mathsf{AC}$. For cardinals $κ, λ$, define $$ \begin{align*} κ^λ = \left|\sb{f\in \mathcal{P}(λ\times κ)}{f: λ\to κ}\right|. \end{align*} $$

  • $(κ$${}\cdot{}$$λ)^μ = κ^μ \cdot λ^μ$;

  • $κ^{λ + μ} = κ^λ \cdot κ^μ$;

  • $κ^{λ\cdot μ} = (κ^λ)^{μ}$;

  • If $κ\leq λ$, then $κ^μ \leq λ^μ$ and $μ^κ \leq μ^λ$.

  • $|\mathcal{P}(λ)| = 2^λ$.

  • $|\R| = 2^{\aleph_0}$.

Lemma (cardinal exponentiation with small base) open_in_new

Work in $\mathsf{FST}$ + $\mathsf{Inf}$ + $\mathsf{Repl}$ + $\mathsf{AC}$.

Let $κ,λ$ be cardinals. If $λ$ is infinite and $2\leq κ\leq{}$$λ^+$, then the exponentiation satisfies $$ \begin{align*} κ^λ = 2^λ. \end{align*} $$

Proof

Definition (beth numbers) open_in_new

Work in a model of $\mathsf{FST}$ + $\mathsf{Inf}$ + $\mathsf{Repl}$ + $\mathsf{AC}$. Define by transfinite recursion

  • $\beth_0 :={}$$ω$,

  • $\beth_{s(α)} :={}$$2^{\beth_α}$,

  • $\beth_{λ} := \bigcup \sb{2^{\beth_α}}{α<λ}$.

By induction, $\aleph_α$${}\leq \beth_α$ because $\aleph(κ) = κ^+ \leq 2^κ$.

Proposition (infinitely descending sequence) open_in_new

Work in a model of $\mathsf{ZF}$${}= \mathsf{FST} + \mathsf{Inf} + \mathsf{Repl} + \mathsf{Found}$.

There is no infinitely descending sequence, i.e. a function $s$ of domain $\N$ such that $$ \begin{align*} s(n+1) \in s(n) \quad \text{for all $n\in \N$}. \end{align*} $$

Proof

Theorem (epsilon-induction) open_in_new

Work in a model of $\mathsf{ZF}$${}= \mathsf{FST} + \mathsf{Inf} + \mathsf{Repl} + \mathsf{Found}$.

If $ϕ$ is a $\in$-formula which is inductive, i.e. there holds $$ \begin{align*} \forall x (\forall y (y\in x \Rightarrow ϕ(y)) \Rightarrow ϕ(x)), \end{align*} $$ then $ϕ(x)$ holds for all sets $x$.

Proof

Definition (von Neumann universe, Mirimanoff rank) open_in_new

Define by transfinite recursion $$ \begin{align*} V_0 ={}& \emptyset, \\ V_{s(α)} ={}& \mathcal{P}(V_α), \\ V_λ ={}& \bigcup_{α<λ} V_α, &&\text{$λ$ is a limit ordinal}. \end{align*} $$

A set $x$ is a von Neumann set if $x\in V_α$ for some ordinal $α$. The class of all von Neumann sets is called the von Neumann universe.

If $x$ is von Neumann, its Mirimanoff rank is the minimum $α$ such that $x\in V_{α+1}$ (or equivalently $x \subseteq V_α$).

$V_α$ is transitive by transfinite induction.

$α\in V_{α+1}$ for any ordinal $α$. Moreover $\set{\text{ordinals in }V_α} = α$.

For $x$ von Neumann, $$ \begin{align*} ρ(x) = \bigcup \sb{ρ(y)+1}{y \in x}. \end{align*} $$

Theorem (every set is von Neumann) open_in_new

Work in a model of $\mathsf{ZF}$${}= \mathsf{FST} + \mathsf{Inf} + \mathsf{Repl} + \mathsf{Found}$.

Every set is von Neumann.

Proof

Proposition (proper class and boundedness) open_in_new

Consider a model $\mathbf{X}$ of $\mathsf{ZF}$${}= \mathsf{FST} + \mathsf{Inf} + \mathsf{Repl} + \mathsf{Found}$.

A class $A \subseteq X$ is said to be bounded if $A \subseteq V^\mathbf{X}_α$ for some ordinal $α$, where $V^\mathbf{X}_α\subseteq X$ is the class coextensional to the von Neumann stage $V_α$.

A definable subset $A \subseteq X$ is a proper class iff $A$ is unbounded.

Proof

Definition (hereditarily finite) open_in_new

Work in a model of $\mathsf{FST} + \mathsf{Inf} + \mathsf{Repl}$.

A set $x$ is hereditarily finite if $\op{tcl}$$(x)$ is finite.

The class of hereditarily finite sets is $\mathbf{HF}$.

Assuming $\mathsf{Found}$ (so in $\mathsf{ZF}$), $\mathbf{HF} ={}$$V_ω$ is a set. (Proof)

>In $\mathsf{ZFC}$,

$(\mathbf{HF}, \in)$ is a model of $\mathsf{ZFC}$ except $\mathsf{Inf}$. > Note $V_{ω+ω}$ fails replacement: $ω+ω = \sb{ω+n}{n\in \N}\not\in V_{ω+ω}$.