diff --git a/content/sets-functions-relations/arithmetization/cauchy.tex b/content/sets-functions-relations/arithmetization/cauchy.tex index c2313f5b7..4c19fcf9b 100644 --- a/content/sets-functions-relations/arithmetization/cauchy.tex +++ b/content/sets-functions-relations/arithmetization/cauchy.tex @@ -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 @@ -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..adbcbfb82 100644 --- a/content/sets-functions-relations/arithmetization/cuts.tex +++ b/content/sets-functions-relations/arithmetization/cuts.tex @@ -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/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..84c87827d 100644 --- a/content/sets-functions-relations/inductive-defs-proofs/introduction.tex +++ b/content/sets-functions-relations/inductive-defs-proofs/introduction.tex @@ -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} 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/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/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..319af5c01 100644 --- a/content/sets-functions-relations/relations/special-properties.tex +++ b/content/sets-functions-relations/relations/special-properties.tex @@ -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/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/unions-and-intersections.tex b/content/sets-functions-relations/sets/unions-and-intersections.tex index 6d68115ce..dc63977a1 100644 --- a/content/sets-functions-relations/sets/unions-and-intersections.tex +++ b/content/sets-functions-relations/sets/unions-and-intersections.tex @@ -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.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..215a38756 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 @@ -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..efdd8ad17 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 diff --git a/content/sets-functions-relations/size-of-sets/pairing.tex b/content/sets-functions-relations/size-of-sets/pairing.tex index ae51346bc..e6be28972 100644 --- a/content/sets-functions-relations/size-of-sets/pairing.tex +++ b/content/sets-functions-relations/size-of-sets/pairing.tex @@ -27,11 +27,11 @@ 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: \[ @@ -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..aa8dcbe35 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 @@ -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/size-of-sets-complete.tex b/content/sets-functions-relations/size-of-sets/size-of-sets-complete.tex index 774226206..5bb37da20 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}