Lecture 19: images, diagonalisation, and well-foundedness [00N5]
- February 2, 2024
- Jon Sterling, with contributions from Marcelo Fiore
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.
Image factorisation [016C]
- February 6, 2025
- Jon Sterling
In Lecture 18 we learned about injective and surjective functions. In this section, we will see that any function f\colon A\to B can be factored as the composition of a surjection followed by an injection.
Definition Image of a function [016D]
- February 6, 2025
- Jon Sterling
Let f\colon A\to B be an arbitrary function. The image of f in defined to be the subset \mathrm {Im}(f)\subseteq B spanned by the values of f:
\mathrm {Im}(f) = {\mathopen {}\left \{f(a)\,\middle \vert \,a:A\right \}\mathclose {}}We may at times write m_f\colon \mathrm {Im}(f)\hookrightarrow B for the subset inclusion, which is an injective function.
A function f\colon A\to B also restricts to a function onto its image. In particular, we have:
\begin {aligned} e_f&\colon A\to \mathrm {Im}(f)\\ e_f(x) &= f(x) \end {aligned}In fact, e_f is a surjection. To see that this is the case, we fix an element b\in \mathrm {Im}(f) and we must find an element a:A such that f(a)=b. But by definition of images, we know that b is of the form f(a) for some a so we are done.
Furthermore, function f\colon A\to B is equal to the composite m_f\circ e_f as can be quickly seen: given a:A we compute m_f(e_f(a)) = m_f(f(a)) = f(a).
Relational images [00NC]
- January 31, 2024
- Jon Sterling, with contributions from Marcelo Fiore
Definition Direct image [00N6]
- January 31, 2024
- Jon Sterling, with contributions from Marcelo Fiore
Let R\colon A\mathbin {\nrightarrow } B be a relation. The direct image of X\subseteq A under R is the set R_*X\subseteq B defined below:
R_*X = {\mathopen {}\left \{b: B\,\middle \vert \,\exists x: X\mathpunct {.} x\mathrel {R}b\right \}\mathclose {}}Definition Inverse image [00N7]
- January 31, 2024
- Jon Sterling, with contributions from Marcelo Fiore
Let R\colon A\mathbin {\nrightarrow } B be a relation. The inverse image of Y\subseteq B under R is the set R^*Y\subseteq A defined below:
R^*Y = {\mathopen {}\left \{a: A\,\middle \vert \, \forall b:B\mathpunct {.} a\mathrel {R}b\implies b\in Y \right \}\mathclose {}}Diagonalisation and Cantor’s theorem [00NE]
- January 31, 2024
- Jon Sterling, with contributions from Marcelo Fiore
Theorem Cantor’s theorem [00NF]
- January 31, 2024
- Jon Sterling, with contributions from Marcelo Fiore
Given any set A, there can be no surjection from A to \mathcal {P}{\mathopen {}\left (A\right )\mathclose {}}.
Proof.
- January 31, 2024
- Jon Sterling
Assume that we do have a surjection e\colon A\twoheadrightarrow \mathcal {P}{\mathopen {}\left (A\right )\mathclose {}}. Consider the subset U\in \mathcal {P}{\mathopen {}\left (A\right )\mathclose {}} defined below:
U = {\mathopen {}\left \{x: A\,\middle \vert \,x\not \in e{\mathopen {}\left (x\right )\mathclose {}}\right \}\mathclose {}}Because e\colon A\twoheadrightarrow \mathcal {P}{\mathopen {}\left (A\right )\mathclose {}} is surjective, we may find some a:A such that e{\mathopen {}\left (a\right )\mathclose {}}=U.
Thus for each x:A, we have x\in e{\mathopen {}\left (a\right )\mathclose {}} \Longleftrightarrow x\in U \Longleftrightarrow x\not \in e{\mathopen {}\left (x\right )\mathclose {}} . Setting x:= a, we have a\in e{\mathopen {}\left (a\right )\mathclose {}} \Longleftrightarrow a\not \in e{\mathopen {}\left (a\right )\mathclose {}}, a contradiction.
Corollary Uncountability of the reals [00NJ]
- January 31, 2024
- Jon Sterling, with contributions from Marcelo Fiore
The set \mathbb {R} of real numbers is uncountable.
Proof.
- January 31, 2024
- Jon Sterling
Of course, as \mathbb {R} is non-empty, it is enough to show that it is not enumerable. We know that \mathbb {R}\cong {\mathopen {}\left [0,1\right ]\mathclose {}}\cong {\mathopen {}\left (\mathbb {N}\to {\mathopen {}\left [2\right ]\mathclose {}}\right )\mathclose {}}\cong \mathcal {P}{\mathopen {}\left (\mathbb {N}\right )\mathclose {}}, and and it follows from Theorem [00NF] that the latter is not enumerable.
Well-foundedness and induction [00NK]
- January 31, 2024
- Jon Sterling, with contributions from Marcelo Fiore
Definition Well-founded relation [00NL]
- January 31, 2024
- Jon Sterling, with contributions from Marcelo Fiore
Let \prec \colon A\mathbin {\nrightarrow } A be a relation on a set A.
- An element m\in S\subseteq A is a \prec -minimal (henceforth, “minimal”) element of S when \lnot {\mathopen {}\left (\exists x: S\mathpunct {.} x\prec m\right )\mathclose {}}.
- The binary relation \prec on A is called well-founded whenever each non-empty subset of A has a minimal element.
Example A well-founded relation on the naturals [00NM]
- January 31, 2024
- Jon Sterling
The “strictly less-than” relation <\colon \mathbb {N}\mathbin {\nrightarrow }\mathbb {N} is well-founded.
Proof.
- January 31, 2024
- Jon Sterling
Almost immediate: give a non-empty set of naturals, pick the smallest number.
Counterexample A non-well-founded relation on the integers [00NN]
- January 31, 2024
- Jon Sterling
The strictly less-than relation <\colon \mathbb {Z}\mathbin {\nrightarrow }\mathbb {Z} is not well-founded.
Proof.
- January 31, 2024
- Jon Sterling
There is no smallest integer, so the set \mathbb {Z} has no <-minimal element.
Proposition Characterisation of well-foundness in terms of chains [00NO]
- January 31, 2024
- Jon Sterling, with contributions from Marcelo Fiore
A relation \prec \colon A\mathbin {\nrightarrow } A is well-founded if and only if there are no infinite descending \prec -chains in A, i.e. no infinite sequences a_0,a_1,\ldots ,a_i,\ldots such that a_0\succ a_1\succ \cdots a_i\succ \cdots .
Proposition The principle of well-founded induction [00NP]
- January 31, 2024
- Jon Sterling, with contributions from Marcelo Fiore
Let \prec \colon A\mathbin {\nrightarrow } A be a well-founded relation and fix a subset S\subseteq A. Then A\subseteq S holds if and only if for each x:A such that \forall y:A\mathpunct {.} y\prec x\implies y\in S, we have x\in S.
In other words, to show that every element of A lies in S, it is enough to show that for any element x:A, the elements below x lie in S.
Proof.
- January 31, 2024
- Jon Sterling
One direction is trivial: suppose A\subseteq S and thus A=S, and fix x:A such that \forall y:A\mathpunct {.} y\prec x \implies y \in S holds. To show x\in S we use our assumption that A\subseteq S.
In the other direction, we suppose that for all x:A such that \forall y:A\mathpunct {.} y\prec x\implies y\in S we have x\in S. We need to show that A\subseteq S.
Fixing x:A, we need to show that x\in S. Suppose to the contrary that x\not \in S. Then the complement A\setminus S is non-empty and therefore has a minimal element m:A.
We will deduce that m\in S, which is contradictory. By assumption we have (\forall y:A\mathpunct {.} y\prec m\implies y\in S)\implies m\in S\text {.}
It therefore sufices to prove the antecedent:
\forall y:A\mathpunct {.} y\prec m \implies y\in SFixing y:A such that y\prec m, we see that y cannot lie outside S because it is smaller than m and m is the smallest element that lies outside S. Therefore, we have m\in S which contradicts our assumption m\not \in S.
Corollary Strong induction as well-founded induction [00NQ]
- January 31, 2024
- Jon Sterling, with contributions from Marcelo Fiore
The “strong” or “complete” induction principle for natural numbers states that for any subset S\subseteq \mathbb {N}, we have \forall x:\mathbb {N}\mathpunct {.} x\in S if and only if we have 0\in S and, for any n\in \mathbb {N} such that m\in S for all m<n, we have n\in S. This is precisely the statement of well-founded induction for the strictly less-than relation.
Additional material [016B]
- February 2, 2024
- Jon Sterling, with contributions from Marcelo Fiore
Fixed point theorems [016E]
- February 2, 2024
- Jon Sterling, with contributions from Marcelo Fiore
Definition Fixed point [00NG]
- January 31, 2024
- Jon Sterling, with contributions from Marcelo Fiore
A fixed point of a function f\colon X\to X is an element x: X such that f{\mathopen {}\left (x\right )\mathclose {}}=x.
Theorem Lawvere’s fixed point theorem [00NH]
- January 31, 2024
- Jon Sterling, with contributions from Marcelo Fiore
Given sets A and X, if there exists a surjection A\twoheadrightarrow {\mathopen {}\left (A\to X\right )\mathclose {}} then every function X\to X has a fixed point; and hence X is a singleton.
Proof.
- January 31, 2024
- Jon Sterling
Let e\colon A\twoheadrightarrow {\mathopen {}\left (A\to X\right )\mathclose {}} be a surjection. Let f\colon X\to X be a function of which are trying to find a fixed point. Let h\colon A\to X be the following function:
h{\mathopen {}\left (a\right )\mathclose {}} = f{\mathopen {}\left (e{\mathopen {}\left (a\right )\mathclose {}}{\mathopen {}\left (a\right )\mathclose {}}\right )\mathclose {}}Because e\colon A\twoheadrightarrow {\mathopen {}\left (A\to X\right )\mathclose {}} is a surjection, we may find a_h:A such that e{\mathopen {}\left (a_h\right )\mathclose {}} = h. Therefore, we have e{\mathopen {}\left (a_h\right )\mathclose {}}{\mathopen {}\left (a_h\right )\mathclose {}} = f{\mathopen {}\left (e{\mathopen {}\left (a_h\right )\mathclose {}}{\mathopen {}\left (a_h\right )\mathclose {}}\right )\mathclose {}} and so e{\mathopen {}\left (a_h\right )\mathclose {}}{\mathopen {}\left (a_h\right )\mathclose {}} is a fixed point of f.
Finally, we conclude that X is a singleton: first of all X has at least one element (the fixed point of the identity function). Now, let x_0\not = x_1 be two unequal elements of X and let f\colon X\to X be the function that sends x_0 to x_1 and everything else to x_0. By assumption, we have a fixed point p: X of f. We now proceed by cases:
- If p=x_0, then we have f{\mathopen {}\left (p\right )\mathclose {}}=x_1 and f{\mathopen {}\left (p\right )\mathclose {}}=p and thus x_0=x_1, a contradiction.
- If p\not = x_0, then we have f{\mathopen {}\left (p\right )\mathclose {}}=x_0 and f{\mathopen {}\left (p\right )\mathclose {}}=p, also a contradiction.
Deducing Cantor’s theorem à la Lawvere [00NI]
- January 31, 2024
- Jon Sterling
To deduce Theorem [00NF] from Theorem [00NH], we suppose that there is a surjection A\twoheadrightarrow \mathcal {P}{\mathopen {}\left (A\right )\mathclose {}}; by Theorem [00LN], this is equivalent to saying that we have a surjection e\colon A\twoheadrightarrow {\mathopen {}\left (A\to {\mathopen {}\left [2\right ]\mathclose {}}\right )\mathclose {}}. From Theorem [00NH], it follows that {\mathopen {}\left [2\right ]\mathclose {}} is a singleton — a contradiction.