Skip to content
4 changes: 2 additions & 2 deletions content/sets-functions-relations/arithmetization/cauchy.tex
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@
\begin{proof}[Proof sketch] Let $S$ be any non-empty set of Cauchy
sequences with an upper bound. So there is some $p \in \Rat$ such that
$p_{\Real}$ is an upper bound for $S$. Let $r \in S$; then there is
some $q \in \Rat$ such that $q_{\Real} < r$. So if a least upper bound
some $q \in \Rat$ such that $q_{\Real} < \equivrep{r}{}$. So if a least upper bound
on $S$ exists, it is between $q_\Real$ and $p_\Real$ (inclusive).

We will hone in on the l.u.b., by approaching it simultaneously from
Expand Down Expand Up @@ -209,7 +209,7 @@
\end{align*}
Both $f$ and $g$ are Cauchy sequences. (This can be checked fairly
easily, but we leave it as an exercise.) Note that the function $(f-g)$
tends to $0$, since the difference between $f$ and $g$ halves at each
tends to $0$, since the difference between $f$ and $g$ is at most halved at each
step. Hence $\equivrep{f}{} = \equivrep{g}{}$.

We first show that $\equivrep{f}{}$ is an upper bound on $S$, i.e.\ that $(\forall h \in S)\equivrep{h}{} \leq \equivrep{f}{}$.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
&= \equivrep{a_1, b_1}{} \times \equivrep{a_2 + a_3,b_2+b_3}{}\\
&= \equivrep{a_1 (a_2 + a_3) + b_1 (b_2+b_3), a_1 (b_2 + b_3) + b_1 (a_2 + a_3)}{}\\
&= \equivrep{a_1 a_2 + a_1a_3 + b_1 b_2+b_1b_3, a_1 b_2 + a_1b_3 + a_2b_1 + a_3b_1}{}\\
% &= \equivrep{a_1 a_2 + b_1b_2 + a_1a_3 + b_1 b_2+b_1b_3, a_1 b_2 + a_1b_3 + a_2b_1 + a_3b_1}{}\\
% &= \equivrep{a_1 a_2 + b_1b_2 + a_1a_3 + b_1b_3, a_1 b_2 + a_1b_3 + a_2b_1 + a_3b_1}{}\\
&= \equivrep{a_1a_2 + b_1b_2, a_1b_2 + a_2b_1}{} + \equivrep{a_1a_3 + b_1b_3, a_1b_3 + a_3b_1}{}\\
&= (\equivrep{a_1, b_1}{} \times \equivrep{a_2,b_2}{}) + (\equivrep{a_1, b_1}{} \times \equivrep{a_3, b_3}{})\\
&= (i \times j) + (i \times k)
Expand All @@ -105,8 +105,8 @@
from \olref[sfr][rel][ord]{def:linearorder} that a total order
is a relation which is reflexive, transitive, anti-symmetric, and connected.
In the context of order relations, connectedness is sometimes called
\emph{trichotomy}, since for any $a$ and $b$ we have $a \leq b \lor a
= b \lor a \geq b$.}
\emph{trichotomy}, since for any $a$ and $b$ we have $a < b \lor a
= b \lor a > b$.}

\begin{defn}
An \emph{ordered ring} is a commutative ring which is also equipped
Expand All @@ -129,7 +129,7 @@
rationals form an ordered \emph{field}, under our given definitions of
$+$, $\times$, and $\leq$:
\begin{defn}\ollabel{orderedfield}
An \emph{ordered field} is an ordered ring which also satisfies:
An \emph{ordered field} is an ordered ring with $0 \neq 1$ which also satisfies:
\begin{align*}
\emph{Multiplicative Inverse}& & (\forall a \in S \setminus \{0\})(\exists b \in S) a\times b& = 1
\end{align*}
Expand Down
4 changes: 2 additions & 2 deletions content/sets-functions-relations/arithmetization/cuts.tex
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@
\alpha \times \beta &\defis
\begin{cases}
\mathord{-}\alpha \times \mathord{-}\beta &\text{if }\alpha < 0_\Real\text{ and }\beta < 0_\Real\\
\mathord{-}(\mathord{-}\alpha \times \beta) &\text{if }\alpha < 0_\Real \text{ and }\beta > 0_\Real\\
\mathord{-}(\alpha \times \mathord{-}\beta) &\text{if }\alpha > 0_\Real \text{ and }\beta < 0_\Real
\mathord{-}(\mathord{-}\alpha \times \beta) &\text{if }\alpha < 0_\Real \text{ and }\beta \geq 0_\Real\\
\mathord{-}(\alpha \times \mathord{-}\beta) &\text{if }\alpha \geq 0_\Real \text{ and }\beta < 0_\Real
\end{cases}
\end{align*}
We then need to check that each of these definitions always yields a
Expand Down
12 changes: 6 additions & 6 deletions content/sets-functions-relations/arithmetization/reals.tex
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
was first proved by Cantor. But it's been known for about two and a
half millennia that there are irrational numbers, i.e., reals which
are not rational. Indeed:
%\footnote{Now: ``$\sqrt{2}$'' equally refers to both the positive and the negative roots; but in the next few pages, I'll forget about this, and consider only the positive root.}
%\footnote{Now: ``$\sqrt{2}$'' refers to the positive square root; in the next few pages, this is the root we consider.}
\begin{thm}\ollabel{root2irrational}
$\sqrt{2}$ is not rational, i.e., $\sqrt{2} \notin \Rat$
\end{thm}
Expand Down Expand Up @@ -60,24 +60,24 @@
is even. (It is easy to show that, if $x$ is odd, then $x^2$ is odd.)
So $m = 2r$, for some $r \in \Nat$. Rearranging, $2r^2 = n^2$,
% \begin{align*}
% (2q)^{2} &= 2n^{2}\\
% 4q^{2} &= 2n^{2}\\
% 2q^{2} &= n^{2}
% (2r)^{2} &= 2n^{2}\\
% 4r^{2} &= 2n^{2}\\
% 2r^{2} &= n^{2}
% \end{align*}
so $n$ is also even. So both $m$ and $n$ are even, and hence the
fraction $\nicefrac{m}{n}$ \emph{can} be reduced further.
Contradiction!
\end{proof}

In passing, this diagrammatic proof allows us to revisit the material from \olref[his][set][mythology]{sec}. Tennenbaum (1927--2006) was a thoroughly modern mathematician; but the proof is undeniably lovely, completely rigorous, and appeals to geometric intuition!
In passing, this diagrammatic proof allows us to revisit the material from \olref[his][set][mythology]{sec}. Tennenbaum (1927--2005) was a thoroughly modern mathematician; but the proof is undeniably lovely, completely rigorous, and appeals to geometric intuition!

In any case: the reals are ``more expansive'' than the rationals. In some sense, there are ``gaps'' in the rationals, and these are filled by the reals. Weierstrass realised that this describes a single property of the real numbers, which distinguishes them from the rationals, namely the Completeness Property: \emph{Every non-empty set of real numbers with an upper bound has a least upper bound.}

It is easy to see that the rationals do not have the Completeness Property. For example, consider the set of rationals less than $\sqrt{2}$, i.e.:
\[
\Setabs{p \in \Rat}{p^2 < 2 \text{ or }p < 0}
\]
This has an upper bound in the rationals; its !!{element}s< are all smaller than $3$, for example. But what is its least upper bound? We want to say `$\sqrt{2}$'; but we have just seen that $\sqrt{2}$ is \emph{not} rational. And there is no \emph{least} rational number greater than $\sqrt{2}$. So the set has an upper bound but no least upper bound. Hence the rationals lack the Completeness Property.
This has an upper bound in the rationals; its !!{element}s are all smaller than $3$, for example. But what is its least upper bound? We want to say `$\sqrt{2}$'; but we have just seen that $\sqrt{2}$ is \emph{not} rational. And there is no \emph{least} rational number greater than $\sqrt{2}$. So the set has an upper bound but no least upper bound. Hence the rationals lack the Completeness Property.

By contrast, the continuum ``morally ought'' to have the Completeness Property. We do not just want $\sqrt{2}$ to be a real number; we want to fill all the ``gaps'' in the rational line. Indeed, we want the continuum itself to have no ``gaps'' in it. That is just what we will get via Completeness.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
\Nat$. By contrast, mapping a natural number~$n$ to a real~$x$ such
that $x^2 = n$ is not functional, since each positive integer~$n$ has two
square roots: $\sqrt{n}$ and~$-\sqrt{n}$. We can make it functional by
only returning the positive square root: $\sqrt{\phantom{X}} \colon
only returning the non-negative square root: $\sqrt{\phantom{X}} \colon
\Nat \to \Real$.
\end{ex}

Expand Down Expand Up @@ -102,7 +102,7 @@
\begin{ex}\ollabel{examplefunext}
Let $g \colon \Nat \to \Nat$ be defined such that $g(x) = x+2-1$. This
tells us that $g$ is a function which takes in natural numbers and
outputs natural numbers. Given a natural number~$n$, $g$ will output
outputs natural numbers. Given a natural number~$x$, $g$ will output
the predecessor of the successor of the successor of~$x$, i.e.,
$x+1$.
\end{ex}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@
\end{proof}

\begin{explain}
Every function $f\colon A \to B$ has a graph, i.e., a relation on $A
\times B$ defined by $f(x) = y$. On the other hand, every relation~$R
Every function $f\colon A \to B$ has a graph, i.e., a relation between $A$
and~$B$ defined by $f(x) = y$. On the other hand, every relation~$R
\subseteq A \times B$ with the properties given in
\olref{prop:graph-function} is the graph of a function~$f \colon A \to
B$. Because of this close connection between functions and their
Expand Down Expand Up @@ -92,9 +92,11 @@
\begin{explain}
It follows from these definitions that $\ran{f} =
\funimage{f}{\dom{f}}$, for any function~$f$.
\oliflabeldef{sfr:rel:ops:sec}{These notions are exactly as one would
\oliflabeldef{sfr:rel:ops:sec}{The application of~$f$ to~$C$ is exactly as one would
expect, given the definitions in \olref[sfr][rel][ops]{sec} and our
identification of functions with relations. But two other
identification of functions with relations. The restriction of~$f$
to~$C$, however, restricts only the first coordinate, so it is in
general not $R_f \cap C^2$. But two other
operations---inverses and relative products---require a little more
detail. We will provide that in \olref[inv]{sec} and
\olref[cmp]{sec}.}{}
Expand Down
3 changes: 2 additions & 1 deletion content/sets-functions-relations/functions/inverses.tex
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@
\olref[kin]{sec} that every function $f$ induces !!a{surjection} $f'
\colon A \to \ran{f}$ by letting $f'(x) = f(x)$ for all $x \in A$.
Clearly, if $f$~is !!{injective}, then $f'$~is !!{bijective}, so that
it has a unique inverse by \olref{prop:bijection-inverse}. By a very
it has an inverse by \olref{prop:bijection-inverse}, which is unique by
\olref{prop:inverse-unique}. By a very
minor abuse of notation, we sometimes call the inverse of $f'$ simply
``the inverse of~$f$.''
\end{explain}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,18 +51,17 @@

Induction works on natural numbers because every natural number can be
reached from 0 by applying the successor function a finite number of
times. This is characteristic of any set upon which we can do
induction.
times. This characterizes the form of induction considered here.
\end{explain}

\begin{defn}[Induction on $\Nat$]
If 0 has some property $P$, and if $P$ is preserved under the
successor function, then every natural number has property $P$.
\end{defn}

\begin{ex} The sum of the first $n$ natural numbers is $\frac{n(n+1)}{2}$. \\
\begin{ex} The sum of the natural numbers up to~$n$ is $\frac{n(n+1)}{2}$. \\

\textbf{Base case.} The sum of the first 0 natural numbers is $0=
\textbf{Base case.} The sum of the natural numbers up to~$0$ is $0=
\frac{0\cdot 1}{2}$.\\

\textbf{Inductive step.} Suppose the property holds for $k$. We will
Expand All @@ -78,7 +77,7 @@
0 + 1 + \ldots + k + (k+1) &= \frac{k(k+1)}{2} + (k+1)
\tag{Add $k+1$ to both sides} \\
&= \frac{k(k+1) + 2(k+1)}{2} \\
&= \frac{2k + k + 2k +2}{2} \\
&= \frac{k^2 + k + 2k +2}{2} \\
&=\frac{(k+1)(k+2)}{2}
\end{align*}
Hence, the inductive step goes through, and we have proved the claim.
Expand All @@ -89,12 +88,12 @@
complex !!{formula}s are obtained by joining together less-complicated
!!{formula}s using operators. Each operator can be seen as
corresponding to a function of !!{formula}s that returns a new
!!{formula} joining these two together with the operator in
question. For example, the function that joins two !!{formula}s $!!^a$
and $!B$ into a conjunction can be written as $\mathcal E _\land (!!^a,
!B) = !!^a \land !B$. We can call these \emph{formula-building
functions}. The set of !!{formula}s is closed these functions:
whenever $!!^a$ and $!B$ are !!{formula}s, so are $\lnot !!^a$, $!!^a \land
!!{formula} by applying the operator to its arguments (one for negation
and for a quantifier with a fixed variable, two for a binary connective). For example, the function that joins two !!{formula}s $!A$
and $!B$ into a conjunction can be written as $\mathcal E _\land (!A,
!B) = !A \land !B$. We can call these \emph{formula-building
functions}. The set of !!{formula}s is closed under these functions:
whenever $!A$ and $!B$ are !!{formula}s, so are $\lnot !A$, $!A \land
!B$, etc.
\end{explain}

Expand Down
8 changes: 4 additions & 4 deletions content/sets-functions-relations/infinite/card-sb.tex
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@
Using similar notation as \olref[sfr][infinite][dedekind]{Closure},
let
\[
\Closureofunder{f}{B} = \bigcap \Setabs{X}{B \subseteq X
\Closureofunder{f}{B} = \bigcap \Setabs{X \subseteq U}{B \subseteq X
\text{ and $X$ is $f$-closed}}
\]
for each set $B$ and function~$f$. Defined thus,
for each function $f\colon U \to U$ and set $B \subseteq U$. Defined thus,
$\Closureofunder{f}{B}$ is the smallest $f$-closed set containing~$B$,
in that:

\begin{lem}\ollabel{Closureprops}
For any function $f$, and any $B$:
For any function $f\colon U \to U$, and any $B \subseteq U$:
\begin{enumerate}
\item\ollabel{Closurehaselem} $B \subseteq \Closureofunder{f}{B}$; and
\item\ollabel{Closureclosed} $\Closureofunder{f}{B}$ is $f$-closed; and
Expand All @@ -49,7 +49,7 @@
We need one last fact to get to Schr\"oder-Bernstein:

\begin{prop}\ollabel{sbhelper}
If $A \subseteq B \subseteq C$ and $\cardeq{A}{C}$, then $\cardeq{A}{B}$ and~$\cardeq{}{C}$.
If $A \subseteq B \subseteq C$ and $\cardeq{A}{C}$, then $\cardeq{A}{B}$ and~$\cardeq{B}{C}$.
\end{prop}

\begin{proof}
Expand Down
10 changes: 5 additions & 5 deletions content/sets-functions-relations/infinite/dedekind-algebra.tex
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,17 @@
using first-order logic. Dedekind's breakthrough was to reformulate
condition \olref{repeatedapplication}, set-theoretically, as follows:
\begin{enumerate}
\item[3$'$.] The natural numbers are the smallest set that is
\item[3$'$.] The natural numbers are the smallest set containing $0$ that is
\emph{closed under the successor function}: that is, if we apply
$s$ to any !!{element} of the set, we obtain another !!{element}
of the set.
\end{enumerate}
But we shall need to spell this out slowly.

\begin{defn}\ollabel{Closure}
For any function $f$, the set $X$ is $f$-\emph{closed} {iff}
$(\forall x \in X)f(x) \in X$. Now define, for any $o$:
$$\closureofunder{f}{o} = \bigcap\Setabs{X}{o \in X\text{ and }X
For any function $f\colon A \to A$, a set $X \subseteq A$ is $f$-\emph{closed} {iff}
$(\forall x \in X)f(x) \in X$. Now define, for any $o \in A$:
$$\closureofunder{f}{o} = \bigcap\Setabs{X \subseteq A}{o \in X\text{ and }X
\text{ is $f$-closed}}$$
\end{defn}

Expand All @@ -51,7 +51,7 @@
as !!a{element}. This next result makes that intuitive thought
precise;
\begin{lem}\ollabel{closureproperties}
For any function $f$ and any $o \in A$:
For any function $f\colon A \to A$ and any $o \in A$:
\begin{enumerate}
\item\ollabel{closurehaselem} $o \in \closureofunder{f}{o}$; and
\item\ollabel{closureclosed} $\closureofunder{f}{o}$ is $f$-closed; and
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@

\begin{ex}
A nice example of equivalence relations comes from modular arithmetic.
For any $a$, $b$, and $n \in \PosInt$, say that $a \equiv_n b$ iff
For any $a$, $b \in \Nat$ and $n \in \PosInt$, say that $a \equiv_n b$ iff
dividing $a$ by~$n$ gives the same remainder as dividing $b$ by~$n$.
(Somewhat more symbolically: $a \equiv_n b$ iff, for some $k \in
\Int$, $a - b = kn$.) Now, $\equiv_n$ is an equivalence relation, for
Expand Down
2 changes: 1 addition & 1 deletion content/sets-functions-relations/relations/orders.tex
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
sequence), $s = s'$, or $s = \tuple{s_1, \dots, s_n}$ and $s' =
\tuple{s_1, \dots, s_n, s_{n+1}, \dots, s_m}$. If $s \sqsubseteq s'$
we also say that $s$ is an \emph{initial segment} of~$s'$. The
extension relation on $A^*$ is a partial order but not a linear order,
extension relation on $A^*$ is a partial order but not in general a linear order,
e.g., if $a \neq b$, then $ab \not\sqsubseteq ba$ and $ba \not\sqsubseteq ab$.
\end{ex}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@
2,1 }, \tuple{ 3,0 },\tuple{ 3,1 },\tuple{ 3,2 }, \dots\},
\]
is the \emph{greater than} relation, i.e., $Gnm$ iff $n>m$. The union
of $L$ with $I$, which we might call $K=L\cup I$, is the \emph{less
of $L$ with $\Id{\Nat}$, which we might call $K=L\cup \Id{\Nat}$, is the \emph{less
than or equal to} relation: $Knm$ iff $n \le m$. Similarly, $H=G \cup
I$ is the \emph{greater than or equal to relation.} These relations
\Id{\Nat}$ is the \emph{greater than or equal to relation.} These relations
$L$, $G$, $K$, and $H$ are special kinds of relations called
\emph{orders}. $L$ and $G$ have the property that no number bears $L$
or $G$ to itself (i.e., for all $n$, neither $Lnn$ nor $Gnn$).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@

Note that if $A \neq \emptyset$, then no irreflexive relation on~$A$
is reflexive and every asymmetric relation on~$A$ is also
anti-symmetric. However, there are $R \subseteq A^2$ that are not
anti-symmetric. However, if $A$ has at least two !!{element}s, there
are $R \subseteq A^2$ that are not
reflexive and also not irreflexive, and there are anti-symmetric
relations that are not asymmetric.

Expand Down
2 changes: 1 addition & 1 deletion content/sets-functions-relations/relations/trees.tex
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
Slightly more generally, the set of finite sequences of natural
numbers~$\Nat^*$ with the extension relation~$\sqsubseteq$ is also a
tree. It is obviously not finitely branching: every $s \in \Nat^*$ has
infinitely many successors~$sn$, one for every $n \in \Nat$. Every $A
infinitely many successors~$sn$, one for every $n \in \Nat$. Every non-empty $A
\subseteq \Nat^*$ which is closed under~$\sqsubseteq$ is a
\emph{subtree} of~$\Nat^*$. (That is, $A$ is such that if $s \in A$
and $s' \sqsubseteq s$, then also $s' \in A$.) All finite trees can be
Expand Down
8 changes: 5 additions & 3 deletions content/sets-functions-relations/sets/pairs-and-products.tex
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,13 @@
!!{element}s of~$A$. For instance, if $A = \{a, b, c\}$, then the
sequence ``$bac$'' can be thought of as the triple~$\tuple{b, a, c}$.
Words, i.e., sequences of symbols, are of crucial importance in
computer science. By convention, we count !!{element}s of~$A$ as
sequences of length~$1$, and $\emptyset$ as the sequence of length~$0$.
computer science. To distinguish words of different lengths, represent a word of length
$n$ by $\tuple{n,w}$, where $w \in A^n$, and put
$A^0 = \{\emptyset\}$. Thus $\tuple{0,\emptyset}$ represents the
empty word, and $\tuple{1,a}$ represents the one-letter word~$a$.
The set of \emph{all} words over~$A$ then is
\[
A^* = \{\emptyset\} \cup A \cup A^2 \cup A^3 \cup \dots
A^* = \bigcup_{n \in \Nat} (\{n\} \times A^n)
\]
\end{ex}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
\end{defn}

\begin{defn}
If $A$ is a set of sets, then $\bigcap A$ is the set of objects which
If $A$ is a non-empty set of sets, then $\bigcap A$ is the set of objects which
all elements of~$A$ have in common:
\begin{align*}
\bigcap A & = \Setabs{x}{x \text{ belongs to every !!{element} of } A},
Expand Down
12 changes: 7 additions & 5 deletions content/sets-functions-relations/size-of-sets/comparing-size.tex
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@

It is clear that this relation is irreflexive
and transitive. (This is left as an exercise.) Using this notation, we
can say that a set $A$ is !!{enumerable} iff $\cardle{A}{\Nat}$, and
that $A$ is !!{nonenumerable} iff $\cardless{\Nat}{A}$. This allows us
can say that a set $A$ is !!{enumerable} iff $\cardle{A}{\Nat}$, and,
using the Axiom of Choice, that $A$ is !!{nonenumerable} iff
$\cardless{\Nat}{A}$. This allows us
to restate
\oliflabeldef{sfr:siz:nen-alt:thm:nonenum-pownat}{%
\olref[sfr][siz][nen-alt]{thm:nonenum-pownat}
Expand Down Expand Up @@ -83,10 +84,11 @@
of~$g$. Let $x \in A$ be arbitrary, we will show that $\overline{A} \neq
g(x)$. If $x \in g(x)$, then it does not satisfy $x \notin g(x)$,
and so by the definition of~$\overline{A}$, we have $x \notin
\overline{A}$. If $x \in \overline{A}$, it must satisfy the
\overline{A}$. If $x \notin g(x)$, it satisfies the
defining property of~$\overline{A}$, i.e., $x \in A$ and $x \notin
g(x)$. Since $x$ was arbitrary, this shows that for each $x \in
\overline{A}$, $x \in g(x)$ iff $x \notin \overline{A}$, and so
g(x)$, and so $x \in \overline{A}$. Since $x$ was arbitrary, this
shows that for each $x \in A$, $x \in g(x)$ iff $x \notin
\overline{A}$, and so
$g(x) \neq \overline{A}$. In other words, $\overline{A}$ cannot be
in the range of~$g$, contradicting the assumption that~$g$ is
surjective.}{It remains to show that $\cardneq{A}{\Pow{A}}$. For
Expand Down
Loading
Loading