diff --git a/content/sets-functions-relations/arithmetization/cauchy.tex b/content/sets-functions-relations/arithmetization/cauchy.tex index c2313f5b7..d085bea0a 100644 --- a/content/sets-functions-relations/arithmetization/cauchy.tex +++ b/content/sets-functions-relations/arithmetization/cauchy.tex @@ -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 @@ -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 @@ -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 @@ -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}$ @@ -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 @@ -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 @@ -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}{}$. diff --git a/content/sets-functions-relations/arithmetization/checking-details.tex b/content/sets-functions-relations/arithmetization/checking-details.tex index 72a66ae5d..0ce27a8ae 100644 --- a/content/sets-functions-relations/arithmetization/checking-details.tex +++ b/content/sets-functions-relations/arithmetization/checking-details.tex @@ -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) @@ -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 @@ -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*} diff --git a/content/sets-functions-relations/arithmetization/cuts.tex b/content/sets-functions-relations/arithmetization/cuts.tex index 21e714e67..b55b7c792 100644 --- a/content/sets-functions-relations/arithmetization/cuts.tex +++ b/content/sets-functions-relations/arithmetization/cuts.tex @@ -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 @@ -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 diff --git a/content/sets-functions-relations/arithmetization/reals.tex b/content/sets-functions-relations/arithmetization/reals.tex index bd91a72db..377e384c7 100644 --- a/content/sets-functions-relations/arithmetization/reals.tex +++ b/content/sets-functions-relations/arithmetization/reals.tex @@ -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} @@ -60,16 +60,16 @@ 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.} @@ -77,7 +77,7 @@ \[ \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. diff --git a/content/sets-functions-relations/arithmetization/reflections.tex b/content/sets-functions-relations/arithmetization/reflections.tex index 394aa8ef3..fd9bcb9b9 100644 --- a/content/sets-functions-relations/arithmetization/reflections.tex +++ b/content/sets-functions-relations/arithmetization/reflections.tex @@ -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 diff --git a/content/sets-functions-relations/functions/function-basics.tex b/content/sets-functions-relations/functions/function-basics.tex index c22b78162..f676a93bb 100644 --- a/content/sets-functions-relations/functions/function-basics.tex +++ b/content/sets-functions-relations/functions/function-basics.tex @@ -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} @@ -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} diff --git a/content/sets-functions-relations/functions/functions-relations.tex b/content/sets-functions-relations/functions/functions-relations.tex index 6a446cf27..9d2bf55ad 100644 --- a/content/sets-functions-relations/functions/functions-relations.tex +++ b/content/sets-functions-relations/functions/functions-relations.tex @@ -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 @@ -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}.}{} diff --git a/content/sets-functions-relations/functions/inverses.tex b/content/sets-functions-relations/functions/inverses.tex index aa786be01..03421a2c6 100644 --- a/content/sets-functions-relations/functions/inverses.tex +++ b/content/sets-functions-relations/functions/inverses.tex @@ -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} diff --git a/content/sets-functions-relations/inductive-defs-proofs/introduction.tex b/content/sets-functions-relations/inductive-defs-proofs/introduction.tex index 1dd4f06c0..7499c506a 100644 --- a/content/sets-functions-relations/inductive-defs-proofs/introduction.tex +++ b/content/sets-functions-relations/inductive-defs-proofs/introduction.tex @@ -2,7 +2,7 @@ % Chapter: induction % Section: induction -\documentclass[../../include/open-logic-section]{subfiles} +\documentclass[../../../include/open-logic-section]{subfiles} \begin{document} @@ -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. @@ -51,8 +51,7 @@ 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$] @@ -60,9 +59,9 @@ 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 @@ -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. @@ -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} @@ -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} diff --git a/content/sets-functions-relations/infinite/card-sb.tex b/content/sets-functions-relations/infinite/card-sb.tex index 7013ce39c..3b17a8d13 100644 --- a/content/sets-functions-relations/infinite/card-sb.tex +++ b/content/sets-functions-relations/infinite/card-sb.tex @@ -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 @@ -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} diff --git a/content/sets-functions-relations/infinite/dedekind-algebra.tex b/content/sets-functions-relations/infinite/dedekind-algebra.tex index 9088149b7..e63d3b027 100644 --- a/content/sets-functions-relations/infinite/dedekind-algebra.tex +++ b/content/sets-functions-relations/infinite/dedekind-algebra.tex @@ -31,7 +31,7 @@ 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. @@ -39,9 +39,9 @@ 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} @@ -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 diff --git a/content/sets-functions-relations/infinite/hilberts-hotel.tex b/content/sets-functions-relations/infinite/hilberts-hotel.tex index c50f74223..ae977407d 100644 --- a/content/sets-functions-relations/infinite/hilberts-hotel.tex +++ b/content/sets-functions-relations/infinite/hilberts-hotel.tex @@ -11,7 +11,7 @@ The set of the natural numbers is obviously infinite. So, if we do not want to \emph{help ourselves} to the natural numbers, our first step -must be characterize an infinite set in terms that do not require +must be to characterize an infinite set in terms that do not require mentioning the natural numbers themselves. Here is a nice approach, presented by Hilbert in a lecture from 1924. He asks us to imagine \begin{quote} diff --git a/content/sets-functions-relations/relations/equivalence-relations.tex b/content/sets-functions-relations/relations/equivalence-relations.tex index d8a9b17ab..647cbd6d3 100644 --- a/content/sets-functions-relations/relations/equivalence-relations.tex +++ b/content/sets-functions-relations/relations/equivalence-relations.tex @@ -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 diff --git a/content/sets-functions-relations/relations/orders.tex b/content/sets-functions-relations/relations/orders.tex index be5603f31..fbed246a3 100644 --- a/content/sets-functions-relations/relations/orders.tex +++ b/content/sets-functions-relations/relations/orders.tex @@ -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} diff --git a/content/sets-functions-relations/relations/reflections.tex b/content/sets-functions-relations/relations/reflections.tex index 49861c656..e714938b5 100644 --- a/content/sets-functions-relations/relations/reflections.tex +++ b/content/sets-functions-relations/relations/reflections.tex @@ -43,12 +43,12 @@ be a particular set. Indeed, it would have to be the set $\Setabs{\tuple{x,y}}{x \in y}$. But does this set exist? Given Russell's Paradox, it is a non-trivial claim that such a set exists. -In fact, \oliflabeldef{cumul:::part}{the theory of sets which we develop in -\olref[cumul][][]{part} will \emph{deny} the existence of this +In fact, \oliflabeldef{sth:::part}{the theory of sets which we develop in +\olref[sth][][]{part} will \emph{deny} the existence of this set.\footnote{Skipping ahead, here is why. For reductio, suppose $I = \Setabs{\tuple{x,y}}{x \in y}$ exists. Then $\bigcup \bigcup I$ is the universal set, contradicting -\olref[sfr][z][sep]{thm:NoUniversalSet}.}}{it is possible to +\olref[sth][z][sep]{thm:NoUniversalSet}.}}{it is possible to develop set theory in a rigorous way as an axiomatic theory, and that theory will indeed deny the existence of this set.} So, even if some relations can be treated as sets, the relation of diff --git a/content/sets-functions-relations/relations/relations-as-sets.tex b/content/sets-functions-relations/relations/relations-as-sets.tex index 8fe71fc85..316c58a42 100644 --- a/content/sets-functions-relations/relations/relations-as-sets.tex +++ b/content/sets-functions-relations/relations/relations-as-sets.tex @@ -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$). diff --git a/content/sets-functions-relations/relations/special-properties.tex b/content/sets-functions-relations/relations/special-properties.tex index 252cb95a9..9e4e2ee11 100644 --- a/content/sets-functions-relations/relations/special-properties.tex +++ b/content/sets-functions-relations/relations/special-properties.tex @@ -45,7 +45,7 @@ In a symmetric relation, $Rxy$ and $Ryx$ always hold together, or neither holds. In an anti-symmetric relation, the only way for $Rxy$ and $Ryx$ to hold together is if $x = y$. Note that this does not -\emph{require} that $Rxy$ and $Ryx$ holds when $x = y$, only that it +\emph{require} that $Rxy$ and $Ryx$ hold when $x = y$, only that it isn't ruled out. So an anti-symmetric relation can be reflexive, but it is not the case that every anti-symmetric relation is reflexive. Also note that being anti-symmetric and merely not being @@ -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. diff --git a/content/sets-functions-relations/relations/trees.tex b/content/sets-functions-relations/relations/trees.tex index bd04588ac..d2bf7c12a 100644 --- a/content/sets-functions-relations/relations/trees.tex +++ b/content/sets-functions-relations/relations/trees.tex @@ -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 diff --git a/content/sets-functions-relations/sets/important-sets.tex b/content/sets-functions-relations/sets/important-sets.tex index 85245afcc..4f290b4df 100644 --- a/content/sets-functions-relations/sets/important-sets.tex +++ b/content/sets-functions-relations/sets/important-sets.tex @@ -34,8 +34,8 @@ \Rat$, since $-1$ is an integer but not a natural number, and $\nicefrac{1}{2}$ is rational but not integer. It is less obvious that $\Rat \subsetneq \Real$, i.e., that there are some real numbers -which are not rational\oliflabeldef{sfr:arith:real:realline}{, but we'll -return to this in \olref[arith][real]{realline}}{}. +which are not rational\oliflabeldef{sfr:arith:real:sec}{, but we'll +return to this in \olref[arith][real]{sec}}{}. We'll sometimes also use the set of positive integers $\PosInt = \{1, 2, 3, \dots\}$ and the set containing just the first two natural @@ -53,7 +53,7 @@ =\{\Lambda,0,1,00,01,10,11,\\ 000,001,010,011,100,101,110,111,0000,\ldots\}. \end{multline*} -If $x=x_{1}\ldots x_{n}\in A^{*}$is a string consisting of $n$ +If $x=x_{1}\ldots x_{n}\in A^{*}$ is a string consisting of $n$ ``letters'' from $A$, then we say \emph{length} of the string is~$n$ and write $\len{x}=n$. \end{ex} diff --git a/content/sets-functions-relations/sets/pairs-and-products.tex b/content/sets-functions-relations/sets/pairs-and-products.tex index 19b18d62d..5686fae3e 100644 --- a/content/sets-functions-relations/sets/pairs-and-products.tex +++ b/content/sets-functions-relations/sets/pairs-and-products.tex @@ -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} diff --git a/content/sets-functions-relations/sets/proofs-about-sets.tex b/content/sets-functions-relations/sets/proofs-about-sets.tex index 09043fd94..29f0af538 100644 --- a/content/sets-functions-relations/sets/proofs-about-sets.tex +++ b/content/sets-functions-relations/sets/proofs-about-sets.tex @@ -10,7 +10,7 @@ \olsection{Proofs about Sets} \begin{editorial} -This section is superseded by \verb|content/method/proofs| and has +This section is superseded by \verb|content/methods/proofs| and has been removed from this chapter by default. \end{editorial} diff --git a/content/sets-functions-relations/sets/russells-paradox.tex b/content/sets-functions-relations/sets/russells-paradox.tex index b3e14850c..8c7ab012c 100644 --- a/content/sets-functions-relations/sets/russells-paradox.tex +++ b/content/sets-functions-relations/sets/russells-paradox.tex @@ -80,8 +80,8 @@ \emph{genuinely na\"ive}. It tells you only that sets obey extensionality and that, if you have some sets, you can form their union, intersection, etc. It is possible to develop set theory more -rigorously than this. \oliflabeldef{cumul:::part}{That rigour will be -reserved for Part \olref[cumul][][]{part}. For now, we will proceed +rigorously than this. \oliflabeldef{sth:::part}{That rigour will be +reserved for Part \olref[sth][][]{part}. For now, we will proceed na\"ively, and carefully try to sidestep contradictions.}{} \end{digress} diff --git a/content/sets-functions-relations/sets/unions-and-intersections.tex b/content/sets-functions-relations/sets/unions-and-intersections.tex index 6d68115ce..a810c862d 100644 --- a/content/sets-functions-relations/sets/unions-and-intersections.tex +++ b/content/sets-functions-relations/sets/unions-and-intersections.tex @@ -22,7 +22,7 @@ \begin{figure} \olasset{assets/diagrams/union.tikz} - \caption{The union $A \cup B$ of two sets is set of !!{element}s of + \caption{The union $A \cup B$ of two sets is the set of !!{element}s of $A$ together with those of~$B$.} \ollabel{fig:union} \end{figure} @@ -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}, diff --git a/content/sets-functions-relations/size-of-sets/comparing-size.tex b/content/sets-functions-relations/size-of-sets/comparing-size.tex index 15649d152..71dbdef76 100644 --- a/content/sets-functions-relations/size-of-sets/comparing-size.tex +++ b/content/sets-functions-relations/size-of-sets/comparing-size.tex @@ -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} @@ -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 diff --git a/content/sets-functions-relations/size-of-sets/enumerability-alt.tex b/content/sets-functions-relations/size-of-sets/enumerability-alt.tex index 5831c1565..fc97f4dab 100644 --- a/content/sets-functions-relations/size-of-sets/enumerability-alt.tex +++ b/content/sets-functions-relations/size-of-sets/enumerability-alt.tex @@ -18,7 +18,7 @@ that section. \end{editorial} -We can specify finite set is by simply enumerating its +We can specify a finite set by simply enumerating its !!{element}s. We do this when we define a set like so: \[ A = \{a_1, a_2, \ldots, a_n\}. diff --git a/content/sets-functions-relations/size-of-sets/enumerability.tex b/content/sets-functions-relations/size-of-sets/enumerability.tex index 6989a613f..2b398ca06 100644 --- a/content/sets-functions-relations/size-of-sets/enumerability.tex +++ b/content/sets-functions-relations/size-of-sets/enumerability.tex @@ -36,14 +36,14 @@ \begin{enumerate} \item We count as enumerations only lists which have a beginning and in which every !!{element} other than the first has a single - !!{element} immediately preceding it. In other words, there are + !!{element} immediately preceding it. In addition, there are only finitely many elements between the first !!{element} of the list and any other !!{element}. In particular, this means that every !!{element} of an enumeration has a finite position: the first !!{element} has position~$1$, the second position~$2$, etc. \item We can have different enumerations of the same set~$A$ which differ by the order in which the !!{element}s appear: $4$, $1$, - $25$, $16$,~$9$ enumerates the (set of the) first five square + $25$, $16$,~$9$ enumerates the (set of the) first five positive square numbers just as well as $1$, $4$, $9$, $16$,~$25$ does. \item Redundant enumerations are still enumerations: $1$, $1$, $2$, $2$, $3$, $3$,~\dots{} enumerates the same set as $1$, $2$, @@ -148,7 +148,7 @@ f(1) & f(2) & f(3) & f(4) & f(5) & f(6) & f(7) & \dots \\ \\ - \lceil \tfrac{0}{2} \rceil & \lceil \tfrac{1}{2}\rceil & - \lceil \tfrac{2}{2} \rceil & \lceil \tfrac{3}{2} \rceil & - \lceil \tfrac{4}{2} \rceil & \lceil \tfrac{5}{2} \rceil & - \lceil \tfrac{6}{2} \rceil & \dots \\ \\ -0 & 1 & -1 & 2 & -2 & 3 & \dots +0 & 1 & -1 & 2 & -2 & 3 & -3 & \dots \end{array} \] You can also think of $f$ as defined by cases as follows: diff --git a/content/sets-functions-relations/size-of-sets/equinumerous-sets.tex b/content/sets-functions-relations/size-of-sets/equinumerous-sets.tex index d7f2c4251..7be154e60 100644 --- a/content/sets-functions-relations/size-of-sets/equinumerous-sets.tex +++ b/content/sets-functions-relations/size-of-sets/equinumerous-sets.tex @@ -72,7 +72,7 @@ Then either $A = \emptyset$ or there is !!a{surjective} function $g\colon \PosInt \to A$. If $A = \emptyset$, then $B = \emptyset$ also (otherwise there would be !!a{element}~$y \in B$ but no $x \in - A$ with $g(x) = y$). If, on the other hand, $g\colon \PosInt \to A$ + A$ with $f(x) = y$). If, on the other hand, $g\colon \PosInt \to A$ is !!{surjective}, then $\comp{g}{f} \colon \PosInt \to B$ is !!{surjective}. To see this, let $y \in B$. Since $f$ is !!{surjective}, there is an $x \in A$ such that $f(x) = y$. Since @@ -88,7 +88,7 @@ range is $A$ and whose domain is either $\Nat$ or an initial sequence of natural numbers. If $A = \emptyset$, then $B = \emptyset$ also (otherwise there would be some~$y \in B$ with no $x - \in A$ such that $g(x) = y$). So suppose we have our + \in A$ such that $f(x) = y$). So suppose we have our !!{bijection}~$g$. Then $\comp{g}{f}$ is !!a{bijection} with range~$B$ and domain the same as that of~$g$ (i.e., either $\Nat$ or an initial segment of it), so that $B$ is !!{enumerable}.} diff --git a/content/sets-functions-relations/size-of-sets/non-enumerability-alt.tex b/content/sets-functions-relations/size-of-sets/non-enumerability-alt.tex index 3c7661bf7..cb28f2a44 100644 --- a/content/sets-functions-relations/size-of-sets/non-enumerability-alt.tex +++ b/content/sets-functions-relations/size-of-sets/non-enumerability-alt.tex @@ -23,14 +23,14 @@ \emph{!!{nonenumerable}} sets, i.e., sets which are not !!{enumerable} (see \olref[sfr][siz][enm-alt]{defn:enumerable}). -This might be surprising. After all, to say that $A$ is +This might be surprising. After all, to say that an infinite set $A$ is !!{nonenumerable} is to say that there is \emph{no} !!{bijection} $f \colon \Nat \to A$; that is, no function mapping the infinitely many !!{element}s of~$\Nat$ to~$A$ exhausts all of~$A$. So if $A$ is !!{nonenumerable}, there are ``more'' !!{element}s of~$A$ than there are natural numbers. -To prove that a set is !!{nonenumerable}, you have to show that no +To prove that an infinite set is !!{nonenumerable}, you have to show that no appropriate !!{bijection} can exist. The best way to do this is to show that every attempt to enumerate !!{element}s of~$A$ must leave at least one !!{element} out; this shows that no function $f\colon \Nat @@ -44,13 +44,13 @@ is the set~$\Bin^\omega$ of all infinite strings of $0$'s and $1$'s. (The `$\Bin$' stands for binary, and we can just think of it as the two-element set -$\{0,1\}$.)\oliflabeldef{sfr:card-arithmetic:card-opps:sec}{\footnote{More +$\{0,1\}$.)\oliflabeldef{sth:card-arithmetic:opps:sec}{\footnote{More accurately, we should stipulate that $\Bin^\omega$ is the set of all $\omega$-sequences of $0$'s and $1$s, i.e., the set $\funfromto{\omega}{\{0,1\}}$. But the meaning of this will only -become clear in \olref[sfr][card-arithmetic][card-opps]{sec}.}{} This +become clear in \olref[sth][card-arithmetic][opps]{sec}. This slightly loose formulation should not cause any confusions -for now, however.} +for now, however.}}{} \end{explain} \begin{thm} @@ -59,10 +59,10 @@ \end{thm} \begin{proof} -Consider any enumeration of a subset of $\Bin^\omega$. So we have some +The set $\Bin^\omega$ is infinite: the strings with a single $1$ in each possible position are distinct. Consider any enumeration of an infinite subset of $\Bin^\omega$. So we have some list $s_{0}$, $s_{1}$, $s_{2}$, \dots{} where every $s_n$ is an -infinite string of $0$'s and~$1$'s. Let $s_n(m)$ be the $n$th digit of -the $m$th string in this list. So we can now think of our list as an +infinite string of $0$'s and~$1$'s. Let $s_n(m)$ be the $m$th digit of +the $n$th string in this list. So we can now think of our list as an array, where $s_n(m)$ is placed at the $n$th row and $m$th column: \[ \begin{array}{c|c|c|c|c|c} @@ -78,7 +78,7 @@ which is not on this list. We will do this by specifying each of its entries, i.e., we specify $d(n)$ for all $n \in \Nat$. Intuitively, we do this by reading down the diagonal of the array above (hence the -name ``diagonal method'') and then changing every $1$ to a $0$ and +name ``diagonal method'') and then changing every $0$ to a $1$ and every $1$ to a~$0$. More abstractly, we define $d(n)$ to be $0$ or $1$ according to whether the $n$-th !!{element} of the diagonal, $s_n(n)$, is $1$ or $0$, that is: @@ -96,7 +96,7 @@ $s_0$, $s_1$, $s_2$, \dots -We have shown, given an arbitrary enumeration of some subset of +We have shown, given an arbitrary enumeration of some infinite subset of $\Bin^\omega$, that it will omit some !!{element} of $\Bin^\omega$. So there is no enumeration of the set $\Bin^\omega$, i.e., $\Bin^\omega$ is !!{nonenumerable}. @@ -138,10 +138,10 @@ $\{2,3,4,\dots\}$; then our array would begin with \[ \begin{array}{r@{}rrrrrrr} - N_0 = \{ & \mathbf{0}, & 1, & 2, & & & & \dots\}\\ + N_0 = \{ & \mathbf{0}, & 1, & 2, & 3, & 4, & 5, & \dots\}\\ N_1 = \{ & & \mathbf{1}, & & 3, & & 5, & \dots\}\\ N_2 = \{ & 0, & 1, & & & 4\phantom{,} & & \}\\ - N_3 = \{ & & & 2, & \mathbf{3}, & 4, & & \dots\}\\ + N_3 = \{ & & & 2, & \mathbf{3}, & 4, & 5, & \dots\}\\ &\vdots & & & & & & \ddots\phantom{\}} \end{array} \] diff --git a/content/sets-functions-relations/size-of-sets/non-enumerability.tex b/content/sets-functions-relations/size-of-sets/non-enumerability.tex index 35cea38a1..a004aaa21 100644 --- a/content/sets-functions-relations/size-of-sets/non-enumerability.tex +++ b/content/sets-functions-relations/size-of-sets/non-enumerability.tex @@ -14,7 +14,7 @@ This section proves the non-enumerability of $\Bin^\omega$ and $\Pow{\PosInt}$ using the definition in \olref[enm]{sec}. It is designed to be a little more elementary and a little more detailed - than the version in \olref[enm-alt]{sec} + than the version in \olref[nen-alt]{sec}. \end{editorial} Some sets, such as the set $\PosInt$ of positive integers, are @@ -23,7 +23,7 @@ have this property. Such sets are called \emph{!!{nonenumerable}}. First of all, it is perhaps already surprising that there are -!!{nonenumerable} sets. For any !!{enumerable} set~$A$ there is +!!{nonenumerable} sets. For any nonempty !!{enumerable} set~$A$ there is !!a{surjective} function $f \colon \PosInt \to A$. If a set is !!{nonenumerable} there is no such function. That is, no function mapping the infinitely many !!{element}s of~$\PosInt$ to~$A$ can @@ -193,7 +193,7 @@ \end{array} \] Then $\overline{Z}$ is the set obtained by going down the diagonal, -leaving out any numbers that appear along the diagonal and include +leaving out any numbers that appear along the diagonal and including those $j$ where the array has a gap in the $j$-th row/column. In the above case, we would leave out $1$ and $2$, include~$3$, leave out~$4$, etc. diff --git a/content/sets-functions-relations/size-of-sets/pairing-alt.tex b/content/sets-functions-relations/size-of-sets/pairing-alt.tex index 2fae234c5..a91e17ca0 100644 --- a/content/sets-functions-relations/size-of-sets/pairing-alt.tex +++ b/content/sets-functions-relations/size-of-sets/pairing-alt.tex @@ -27,7 +27,7 @@ \tuple{0,0} & & \tuple{0,1} & & \tuple{0,2} & & \tuple{0,3} & & \tuple{0,4} & & \dots \\ \end{array} \] -Repeat this with pairs $\tuple{1,m}$ for the place that still remain +Repeat this with pairs $\tuple{1,m}$ for the places that still remain empty, again skipping every other empty place: \[\small \begin{array}{@{}c c c c c c c c c c c@{}} diff --git a/content/sets-functions-relations/size-of-sets/pairing.tex b/content/sets-functions-relations/size-of-sets/pairing.tex index ae51346bc..6b5e996e3 100644 --- a/content/sets-functions-relations/size-of-sets/pairing.tex +++ b/content/sets-functions-relations/size-of-sets/pairing.tex @@ -27,17 +27,17 @@ in our enumeration. In fact, we can define $g$ directly by making two observations. First: -if the $n$th row and $m$th column contains value~$v$, then the +if $m > 0$ and the $n$th row and $m$th column contains value~$v$, then the $(n+1)$st row and $(m-1)$st column contains value $v + 1$. Second: the first row of our enumeration consists of the triangular numbers, starting with $0$, $1$, $3$, $6$, etc. The $k$th triangular number is -the sum of the natural numbers $< k$, which can be computed as +the sum of the natural numbers $\le k$, which can be computed as $k(k+1)/2$. Putting these two observations together, consider this function: \[ g(n,m) = \frac{(n+m+1)(n+m)}{2} + n \] -We often just write $g(n, m)$ rather that $g(\tuple{n, m})$, since it +We often just write $g(n, m)$ rather than $g(\tuple{n, m})$, since it is easier on the eyes. This tells you first to determine the $(n+m)^\text{th}$ triangle number, and then add $n$ to it. And it populates the array in exactly the way we would like. So in @@ -90,7 +90,7 @@ \begin{prob} A subset of $\Nat$ is said to be \emph{cofinite} iff it is the -complement of a finite set $\Nat$; that is, $A \subseteq \Nat$ is +complement in $\Nat$ of a finite subset of $\Nat$; that is, $A \subseteq \Nat$ is cofinite iff $\Nat\setminus A$ is finite. Let $I$ be the set whose !!{element}s are exactly the finite and cofinite subsets of $\Nat$. Show that $I$ is !!{enumerable}. @@ -105,7 +105,7 @@ \begin{prob} Let $f \colon A \times B \to \Nat$ be an arbitrary pairing function. -Show that the inverse of $f$ is an enumeration of $A \times B$. +Use the inverse of~$f$ to show that $A \times B$ is !!{enumerable}. \end{prob} \begin{prob} diff --git a/content/sets-functions-relations/size-of-sets/reduction-alt.tex b/content/sets-functions-relations/size-of-sets/reduction-alt.tex index 09807d977..864a2291b 100644 --- a/content/sets-functions-relations/size-of-sets/reduction-alt.tex +++ b/content/sets-functions-relations/size-of-sets/reduction-alt.tex @@ -35,7 +35,7 @@ a set~$A$, we provide a way of turning an enumeration of~$A$ into an enumeration of~$B$. The easiest way to do that is to define !!a{surjection} $f\colon A \to B$. If $x_1$, $x_2$, \dots{} -enumerates~$A$, then $f(x_1)$, $f(x_2)$, \dots{} would enumerate~$B$. +enumerates~$A$, then $f(x_1)$, $f(x_2)$, \dots{}, with repetitions removed, would enumerate~$B$. In our case, we are looking for !!a{surjection} $f\colon \Pow{\Nat} \to \Bin^\omega$. @@ -50,8 +50,8 @@ there is an enumeration of it, $N_{1}$, $N_{2}$, $N_{3}$, \dots Define the function $f \colon \Pow{\Nat} \to \Bin^\omega$ by letting -$f(N)$ be the string $s_{k}$ such that $s_{k}(n) = 1$ iff $n \in N$, -and $s_k(n) = 0$ otherwise. +$f(N)$ be the string $s$ such that $s(n) = 1$ iff $n \in N$, +and $s(n) = 0$ otherwise. This clearly defines a function, since whenever $N \subseteq \Nat$, any $n \in \Nat$ either is !!a{element} of $N$ or isn't. For @@ -63,7 +63,7 @@ It is also !!{surjective}: every string of $0$s and $1$s corresponds to some set of natural numbers, namely the one which has as its members those natural numbers corresponding to the places where the string -contains a~$1$s. More precisely, if $s \in \Bin^\omega$, then define $N +contains a~$1$. More precisely, if $s \in \Bin^\omega$, then define $N \subseteq \Nat$ by: \[ N = \Setabs{n \in \Nat}{s(n) = 1} @@ -90,15 +90,15 @@ %For instance, !!a{surjective} function $g \colon \Bin^\omega \to X$ %does \emph{not} establish that $X$ is !!{nonenumerable}. (Consider $g %\colon \Bin^\omega \to \Bin$ defined by $g(s) = s(1)$, the function -%that maps a sequence of $0$'s and $1$'s to its first !!{element}. It -%is surjective, because some sequences start with $0$ and some start -%with $1$. But $\Bin$ is finite.) Note also that the function $f$ must +%that maps a sequence of $0$'s and $1$'s to its second !!{element}. It +%is surjective, because some sequences have $0$ as their second entry and some have +%$1$. But $\Bin$ is finite.) Note also that the function $f$ must %be surjective, or otherwise the argument does not go through: %$f(x_1)$, $f(x_2)$, \dots{} would then not be guaranteed to include -%all the !!{element}s of~$Y$. For instance, $h\colon \Nat \to +%all the !!{element}s of~$B$. For instance, $h\colon \Nat \to %\Bin^\omega$ defined by %\[ -%h(n) = \underbrace{000\dots0}_{\text{$n$ $0$'s}} +%h(n) = \underbrace{000\dots0}_{\text{$n$ $0$'s}}111\dots %\] %is a function, but $\Nat$ is !!{enumerable}. %\end{explain} diff --git a/content/sets-functions-relations/size-of-sets/reduction.tex b/content/sets-functions-relations/size-of-sets/reduction.tex index cadd36849..bf2fd8f3d 100644 --- a/content/sets-functions-relations/size-of-sets/reduction.tex +++ b/content/sets-functions-relations/size-of-sets/reduction.tex @@ -49,8 +49,8 @@ there is an enumeration of it, $Z_{1}$, $Z_{2}$, $Z_{3}$, \dots Define the function $f \colon \Pow{\PosInt} \to \Bin^\omega$ by letting -$f(Z)$ be the sequence $s_{k}$ such that $s_{k}(n) = 1$ iff $n \in Z$, -and $s_k(n) = 0$ otherwise. This clearly defines a function, since +$f(Z)$ be the sequence $s$ such that $s(n) = 1$ iff $n \in Z$, +and $s(n) = 0$ otherwise. This clearly defines a function, since whenever $Z \subseteq \PosInt$, any $n \in \PosInt$ either is !!a{element} of $Z$ or isn't. For instance, the set $2\PosInt = \{2, 4, 6, \dots\}$ of positive even numbers gets mapped to the sequence @@ -94,7 +94,7 @@ $f(x_1)$, $f(x_2)$, \dots{} would then not be guaranteed to include all the !!{element}s of~$B$. For instance, \[ -h(n) = \underbrace{000\dots0}_{\text{$n$ $0$'s}} +h(n) = \underbrace{000\dots0}_{\text{$n$ $0$'s}}111\dots \] defines a function $h\colon \PosInt \to \Bin^\omega$, but $\PosInt$ is !!{enumerable}. diff --git a/content/sets-functions-relations/size-of-sets/schroder-bernstein.tex b/content/sets-functions-relations/size-of-sets/schroder-bernstein.tex index d2991de0a..fe011ed64 100644 --- a/content/sets-functions-relations/size-of-sets/schroder-bernstein.tex +++ b/content/sets-functions-relations/size-of-sets/schroder-bernstein.tex @@ -35,9 +35,9 @@ Indeed, although Cantor stated the result, others proved it.\footnote{For more on the history, see e.g., \citet[pp.~165--6]{Potter2004}.} -\oliflabeldef{sfr:cardinals:card-sb:sec}{We will only be in +\oliflabeldef{sfr:infinite:card-sb:sec}{We will only be in a position to \emph{prove} Schr\"oder-Bernstein in -\olref[sfr][cardinals][card-sb]{sec}.}{}% +\olref[sfr][infinite][card-sb]{sec}.}{} For now, you can (and must) take it on trust. diff --git a/content/sets-functions-relations/size-of-sets/size-of-sets-complete.tex b/content/sets-functions-relations/size-of-sets/size-of-sets-complete.tex index 774226206..cba36b2e9 100644 --- a/content/sets-functions-relations/size-of-sets/size-of-sets-complete.tex +++ b/content/sets-functions-relations/size-of-sets/size-of-sets-complete.tex @@ -11,7 +11,7 @@ This chapter discusses enumerations, countability and uncountability. Several sections come in two versions: a more elementary one, that takes enumerations to be lists, or surjections from $\PosInt$; and a -more abstract one that defines enumerations as bijections with $\Nat$. +more abstract one that defines enumerations as bijections with $\Nat$ or an initial segment. \end{editorial} \olimport{introduction} @@ -40,7 +40,7 @@ alternative versions of \olref[sfr][siz][enm]{sec}, \olref[sfr][siz][nen]{sec}, \olref[sfr][siz][red]{sec} due to Tim Button for use in his Open Set Theory text. They are slightly more -advanced and use a difference definition of enumerability more +advanced and use a different definition of enumerability more suitable in a set theory context (i.e., bijection with $\Nat$ or an initial segment, rather than being listable or being the range of a surjective function from $\PosInt$).