Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions content/sets-functions-relations/arithmetization/cauchy.tex
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
It is very easy to model decimal expansions in set theory: simply
consider them as functions $d \colon \Nat \to \Nat$, where $d(n)$ is
the $n$th decimal place that we are interested in. We will then need a
bit of tweak, to handle the bit of the real number that comes before
bit of a tweak, to handle the bit of the real number that comes before
the decimal point (here, just $1$). We will also need a further tweak
(an equivalence relation) to guarantee that, for example, $0.999\ldots
= 1$. But it is not difficult to offer a perfectly rigorous
Expand All @@ -53,7 +53,7 @@
\item Every real can be written as a (perhaps infinite) decimal
expansion.
\item The information encoded by a (perhaps infinite) decimal
expansion can be equally be encoded by a sequence of rational
expansion can equally be encoded by a sequence of rational
numbers.
\item A sequence of rational numbers can be thought of as a
function from $\Nat$ to $\Rat$; just let $f(n)$ be the $n$th
Expand Down Expand Up @@ -98,7 +98,7 @@
\emph{is} any Cauchy sequence. But, as in the constructions of $\Int$
and $\Rat$, this would be too na\"{i}ve: for any given real number,
multiple different Cauchy sequences indicate that real number. A
simple way to see this as follows. Given a Cauchy sequence~$f$, define
simple way to see this is as follows. Given a Cauchy sequence~$f$, define
$g$ to be exactly the same function as~$f$, except that $g(0)\neq
f(0)$. Since the two sequences agree everywhere after the first
number, we will (ultimately) want to say that they have the same
Expand Down Expand Up @@ -127,7 +127,7 @@
\begin{prob}
Let $f(n) = 0$ for every $n$. Let $g(n) = \frac{1}{(n+1)^2}$. Show
that both are Cauchy sequences, and indeed that the limit of both
functions is $0$, so that also $f \sim_\Real g$.
functions is $0$, so that also $f \Realequiv g$.
\end{prob}

Having done this, we shall as usual write $\equivrep{f}{\Realequiv}$
Expand All @@ -143,7 +143,7 @@
\end{align*}
where $(f + g)(n) = f(n) + g(n)$ and $(f \times g)(n) = f(n) \times
g(n)$. Of course, we also need to check that each of $(f + g)$,
$(f-g)$ and $(f\times g)$ are Cauchy sequences when $f$ and $g$ are;
$(f-g)$ and $(f\times g)$ is a Cauchy sequence when $f$ and $g$ are;
but they are, and we leave this to you.

Finally, we define a notion of order. Say $\equivrep{f}{}$ is
Expand Down Expand Up @@ -181,13 +181,13 @@
\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
below and above. In particular, we define two functions, $f, g \colon
\Nat \to \Rat$, with the aim that $f$ will hone in on the l.u.b.\ from
above, and $g$ will hone on in it from below. We start by defining:
above, and $g$ will hone in on it from below. We start by defining:
\begin{align*}
f(0) &= p \\
g(0) &= q
Expand All @@ -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
6 changes: 3 additions & 3 deletions content/sets-functions-relations/arithmetization/cuts.tex
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
\begin{align*}
\alpha \leq \beta \text{ iff }\alpha \subseteq \beta
\end{align*}
This definition of an order allows to \emph{state} the central result,
This definition of an order allows us to \emph{state} the central result,
that the set of cuts has the Completeness Property. Spelled out fully,
the statement has this shape. If $S$ is a non-empty set of cuts with
an upper bound, then $S$ has a least upper bound. In more detail: there is a cut, $\lambda$, which is an upper bound for $S$, i.e.\ $(\forall \alpha \in S)\alpha \subseteq
Expand Down 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 @@ -26,7 +26,7 @@
\emph{more} rigorous than thinking of reals in terms of their familiar
(possibly infinite) decimal expansions. This latter ``construction''
of the reals has some resemblance to the construction of the reals via
Cauchy sequence; but in fact, it was essentially known to
Cauchy sequences; but in fact, it was essentially known to
mathematicians from the early 17th century onwards (see
\olref[cauchy]{sec}). The real increase in rigour came from the
realisation that the reals have the Completeness Property; the ability
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 @@ -2,7 +2,7 @@
% Chapter: induction
% Section: induction

\documentclass[../../include/open-logic-section]{subfiles}
\documentclass[../../../include/open-logic-section]{subfiles}

\begin{document}

Expand All @@ -11,7 +11,7 @@
\olsection{Introduction}

\begin{explain}
Induction is a commonly-used proof technique of mathematics in logic.
Induction is a commonly-used proof technique of mathematics and logic.
You may be familiar with it from math, in which you do induction on
natural numbers. As it turns out, there are lots of different kinds of
mathematical and logical sets of objects that lend themselves to induction.
Expand Down 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 All @@ -109,25 +108,25 @@
!!{formula}s. If we are asked to show that every !!{formula} has
property $P$, follow the following steps:\\

\textbf{Base Case.} Let $!!^a$ be an atomic !!{formula}. [\ldots]
Therefore, $!!^a$ has property $P$.
\textbf{Base Case.} Let $!A$ be an atomic !!{formula}. [\ldots]
Therefore, $!A$ has property $P$.

\textbf{Inductive Step.} Let $!!^a$ and $!B$ be !!{formula}s, both of
\textbf{Inductive Step.} Let $!A$ and $!B$ be !!{formula}s, both of
which have the property $P$.

Case $\lnot$: [\ldots] Therefore, $\lnot !!^a$ has property $P$.
Case $\lnot$: [\ldots] Therefore, $\lnot !A$ has property $P$.

Case $\land$: [\ldots] Therefore, $!!^a \land !B$ has property $P$.
Case $\land$: [\ldots] Therefore, $!A \land !B$ has property $P$.

Case $\lor$: [\ldots] Therefore, $!!^a \lor !B$ has property $P$.
Case $\lor$: [\ldots] Therefore, $!A \lor !B$ has property $P$.

Case $\lif$: [\ldots] Therefore, $!!^a \lif !B$ has property $P$.
Case $\lif$: [\ldots] Therefore, $!A \lif !B$ has property $P$.

Case $\liff$: [\ldots] Therefore, $!!^a \liff !B$ has property $P$.
Case $\liff$: [\ldots] Therefore, $!A \liff !B$ has property $P$.

Case $\lforall[]$: [\ldots] Therefore, $\lforall[x] !!^a$ has property $P$.
Case $\lforall[]$: [\ldots] Therefore, $\lforall[x] !A$ has property $P$.

Case $\lexists[]$: [\ldots] Therefore, $\lexists[x] !!^a$ has property $P$. \\
Case $\lexists[]$: [\ldots] Therefore, $\lexists[x] !A$ has property $P$. \\

Therefore, every !!{formula} has property $P$.
\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
Loading
Loading