From 2274f57fdbe585f4d8e6ee69d01a8c8aa817ff3e Mon Sep 17 00:00:00 2001 From: KokunoYumeto <208192274+KokunoYumeto@users.noreply.github.com> Date: Mon, 30 Nov 2026 22:30:18 +0100 Subject: [PATCH 1/7] sets-functions-relations/arithmetization: corrections (10 places) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit cauchy.tex: - l. 184: The explicit comparison q_Realb. The printed weak inequalities overlap on equality and duplicate the middle case. The branch uses the strict inequalities corresponding to the claimed three-way comparison. - l. 132: The one-element ring satisfies every equation at 24–35, the order clauses at 112–117, and the inverse clause at 134 vacuously. Thus nontriviality is missing, not implied. cuts.tex: - l. 105: The nonnegative clause (91–92) and the three strict-sign clauses (104–106) omit negative×zero and zero×negative. reals.tex: - l. 24: The commented footnote asserts that sqrt(2) denotes both roots. The chapter’s square-root function convention selects the nonnegative root, and the active proof subsequently uses that root. - l. 63: The immediately preceding active equation binds m=2r; q is unbound in this commented alternate derivation. Use r in all three equations, preserving their inactive status. - l. 72: Tennenbaum died on 4 May 2005 (memorial record). - l. 80: The less-than sign is outside mathematics, has no operands, and interrupts the prose before are all smaller than 3. Delete only that character. Co-Authored-By: Claude Opus 5.5 --- .../arithmetization/cauchy.tex | 4 ++-- .../arithmetization/checking-details.tex | 8 ++++---- .../arithmetization/cuts.tex | 4 ++-- .../arithmetization/reals.tex | 12 ++++++------ 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/content/sets-functions-relations/arithmetization/cauchy.tex b/content/sets-functions-relations/arithmetization/cauchy.tex index c2313f5b..4c19fcf9 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 72a66ae5..0ce27a8a 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 21e714e6..adbcbfb8 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 bd91a72d..377e384c 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. From 63262e38c958393c3d315217f61915684dc3b7f3 Mon Sep 17 00:00:00 2001 From: KokunoYumeto <208192274+KokunoYumeto@users.noreply.github.com> Date: Mon, 30 Nov 2026 22:30:18 +0100 Subject: [PATCH 2/7] sets-functions-relations/functions: corrections (6 places) function-basics.tex: - l. 70: Nat includes 0 (important-sets.tex); 0 has no positive square root. Its unique nonnegative square root is 0, while every positive n has exactly one positive root. The branch correction therefore makes the displayed map total on its stated domain. - l. 105: Replacing that isolated n by x restores the binding in the worked example. functions-relations.tex: - l. 61: The earlier definition distinguishes a relation between A and B (a subset of A x B) from a relation on a carrier C (a subset of C squared). - l. 95, 97: The prior relation restriction is R intersect C squared; function restriction retains every pair whose first coordinate lies in C. For f(n)=n+1 and C={0}, the function restriction contains (0,1), while R_f intersect C squared is empty. inverses.tex: - l. 149: prop:bijection-inverse states existence of a two-sided inverse. The earlier prop:inverse-unique proves its uniqueness. Both labels exist; the branch separates the two assertions and cites the corresponding propositions. Co-Authored-By: Claude Opus 5.5 --- .../functions/function-basics.tex | 4 ++-- .../functions/functions-relations.tex | 10 ++++++---- .../sets-functions-relations/functions/inverses.tex | 3 ++- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/content/sets-functions-relations/functions/function-basics.tex b/content/sets-functions-relations/functions/function-basics.tex index c22b7816..f676a93b 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 6a446cf2..9d2bf55a 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 aa786be0..03421a2c 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} From 165242d0fa72308388e5fe428095f00f0f23a4f9 Mon Sep 17 00:00:00 2001 From: KokunoYumeto <208192274+KokunoYumeto@users.noreply.github.com> Date: Mon, 30 Nov 2026 22:30:18 +0100 Subject: [PATCH 3/7] sets-functions-relations/inductive-defs-proofs: corrections (5 places) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit introduction.tex: - l. 54: The paragraph identifies generation by finitely many applications. That characterizes the finite-construction induction discussed here, but not transfinite induction, which the book later proves for ordinals including limit ordinals. - l. 63, 65: Nat starts with 0, so its first n members sum to n(n-1)/2. The displayed induction instead sums 0 through n and proves n(n+1)/2. The branch aligns the verbal claim and base case with the summation actually proved. - l. 81: Expanding k(k+1)+2(k+1) gives k^2+k+2k+2, not 2k+k+2k+2. For k=1 the printed numerator is 7 instead of 6. The branch restores the missing square and matches the following factorization. - l. 92: The induction recipe at 118–130 explicitly includes unary negation and fixed-variable quantifiers as well as binary connectives. The universal claim that each constructor joins two formulas is therefore false. - l. 92: The formula macro contract in open-logic-config.sty:30 and sty/open-logic-formulas.sty assigns !A to a formula metavariable. The distinct !!^a prefix in open-logic-config.sty:1338–1349 is a capitalized indefinite-article term prefix requiring a token argument. - l. 92: Closed requires under before the functions under which the set is closed; the preceding formal definition uses exactly that construction. Co-Authored-By: Claude Opus 5.5 --- .../inductive-defs-proofs/introduction.tex | 21 +++++++++---------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/content/sets-functions-relations/inductive-defs-proofs/introduction.tex b/content/sets-functions-relations/inductive-defs-proofs/introduction.tex index 1dd4f06c..84c87827 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} From 25780b188927b4f5d4b6b69a7f7b8bef3f968e04 Mon Sep 17 00:00:00 2001 From: KokunoYumeto <208192274+KokunoYumeto@users.noreply.github.com> Date: Mon, 30 Nov 2026 22:30:18 +0100 Subject: [PATCH 4/7] sets-functions-relations/infinite: corrections (7 places) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit card-sb.tex: - l. 28, 31, 36: As in dedekind-algebra.tex, closure requires f to be defined throughout an ambient invariant set and B to lie in it. f:{0}→{1}, B={0} otherwise has no such closed domain subset. - l. 52: The proposition assumes A⊆B⊆C and A≈C. Its proof at 66–68 explicitly constructs C→B bijective and says B≈C, while the second cardeq in the statement has an empty left argument. dedekind-algebra.tex: - l. 34: The empty set is successor-closed vacuously. Condition 3 at 26–27 requires every number be generated from 0, and the following closure definition explicitly contains its base element. Add the missing seed requirement to 3-prime. - l. 42, 54: For f:{0}→{1}, the proposed witness ran(f)∪{0} contains 1 outside dom(f), so f(1) is undefined. The definition and lemma require a self-map with seed in its carrier. Restrict the closure family to subsets of A; ran(f)∪{o} is then a valid closed subset. Co-Authored-By: Claude Opus 5.5 --- content/sets-functions-relations/infinite/card-sb.tex | 8 ++++---- .../infinite/dedekind-algebra.tex | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/content/sets-functions-relations/infinite/card-sb.tex b/content/sets-functions-relations/infinite/card-sb.tex index 7013ce39..3b17a8d1 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 9088149b..e63d3b02 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 From fba1f327015913d13535194fe88e5c2c3d8ca51e Mon Sep 17 00:00:00 2001 From: KokunoYumeto <208192274+KokunoYumeto@users.noreply.github.com> Date: Mon, 30 Nov 2026 22:30:19 +0100 Subject: [PATCH 5/7] sets-functions-relations/relations: corrections (6 places) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit equivalence-relations.tex: - l. 65: The displayed quotient is Nat/equiv_n and explicitly includes the class of 0. Defining the relation only for positive a,b leaves that class undefined. Taking a,b in Nat and positive n yields exactly the residue classes 0 through n-1. orders.tex: - l. 78: For a singleton alphabet there is one word of each length and any two words are comparable by extension; the empty alphabet gives only the empty word. The printed incomparable example assumes two distinct letters. relations-as-sets.tex: - l. 98, 100: The identity relation is defined earlier as Id(ℕ); I is not defined. special-properties.tex: - l. 81: On a singleton the two binary relations are empty and identity, respectively irreflexive and reflexive; none is neither. On the empty carrier its sole relation is both. trees.tex: - l. 114: The definition of a tree requires a least/root element. Empty A is downward closed vacuously but has no root. A nonempty downward-closed subset of Nat* contains the empty sequence and inherits the tree order. Co-Authored-By: Claude Opus 5.5 --- .../relations/equivalence-relations.tex | 2 +- content/sets-functions-relations/relations/orders.tex | 2 +- .../sets-functions-relations/relations/relations-as-sets.tex | 4 ++-- .../sets-functions-relations/relations/special-properties.tex | 3 ++- content/sets-functions-relations/relations/trees.tex | 2 +- 5 files changed, 7 insertions(+), 6 deletions(-) diff --git a/content/sets-functions-relations/relations/equivalence-relations.tex b/content/sets-functions-relations/relations/equivalence-relations.tex index d8a9b17a..647cbd6d 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 be5603f3..fbed246a 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 8fe71fc8..316c58a4 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 252cb95a..319af5c0 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 bd04588a..d2bf7c12 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 From 3aedb8961290139a30bb0119f452ef47ec6163af Mon Sep 17 00:00:00 2001 From: KokunoYumeto <208192274+KokunoYumeto@users.noreply.github.com> Date: Mon, 30 Nov 2026 22:30:19 +0100 Subject: [PATCH 6/7] sets-functions-relations/sets: corrections (3 places) pairs-and-products.tex: - l. 121, 125: The preceding definitions set A^1=A and define higher powers by actual Kuratowski pairs. unions-and-intersections.tex: - l. 121: For A empty, the displayed universal membership condition is vacuous for every object and would define a universal set. With A nonempty, choose B in A and obtain the intersection by separation inside B. Co-Authored-By: Claude Opus 5.5 --- .../sets-functions-relations/sets/pairs-and-products.tex | 8 +++++--- .../sets/unions-and-intersections.tex | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/content/sets-functions-relations/sets/pairs-and-products.tex b/content/sets-functions-relations/sets/pairs-and-products.tex index 19b18d62..5686fae3 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 6d68115c..dc63977a 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}, From a76763d034da2303ae29928513af1474156c4a8e Mon Sep 17 00:00:00 2001 From: KokunoYumeto <208192274+KokunoYumeto@users.noreply.github.com> Date: Mon, 30 Nov 2026 22:30:20 +0100 Subject: [PATCH 7/7] sets-functions-relations/size-of-sets: corrections (30 places) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit comparing-size.tex: - l. 44: That every nonenumerable set has at least the size of ℕ uses a choice principle. - l. 86, 88: For each x in A, the diagonal set definition gives x in Abar iff x notin g(x). The printed second case repeats the contrapositive of the first and then quantifies only over Abar. enumerability.tex: - l. 39: An order of type omega+Z has a first element and a unique immediate predecessor for each nonfirst element, but its Z-part has infinite predecessors. Finite positions are required independently by the definition at 27–31. - l. 46: The displayed list is 1,4,9,16,25; the natural-number convention includes 0 (120–121), whereas the exercise at 137 correctly calls this sequence positive squares. The qualifier prevents a mismatch in the named first five squares. - l. 151: The header and formula row at 148–150 include f(7). Substitution in f(n)=(-1)^n ceil((n-1)/2) gives f(7)=-ceil(3)=-3. The last row is missing exactly that seventh entry. equinumerous-sets.tex: - l. 75, 91: The assumed bijection A->B is f. In the empty-A case an enumeration g has not been chosen, and even in the other case g maps PosInt to A, not A to B. Both conditional proof versions must use f(x)=y to contradict surjectivity of f; the branch fixes both. non-enumerability-alt.tex: - l. 26, 33, 99: enumerability-alt.tex:39–42 and 58–61 includes finite sets. Absence of a Nat-bijection characterizes nonenumerability only for infinite A: a singleton has no such bijection but is enumerable. - l. 62: Under the bijection convention finite subsets have finite enumerations, so s_n need not exist for every n. The strings with one 1 show the ambient set is infinite. - l. 64: The list is s_0,s_1,... of strings, and the displayed matrix puts s_n(m) in row n and column m. Its argument therefore specifies digit m of string n. The source prose interchanges those roles; the branch matches the matrix and diagonal construction. - l. 81: The defining cases immediately below map 0 to 1 and 1 to 0, ensuring d(n) differs from s_n(n). - l. 141, 144: The declared N_0 contains every natural number, so columns 3,4,5 must be filled. N_3={2,3,4,...} also contains 5. The governing iff membership condition makes the blank cells incorrect; the branch supplies exactly those missing entries. non-enumerability.tex: - l. 17: The alternative non-enumerability section declares file ID nen-alt; enm-alt is the alternative definition of enumerability. The editorial compares two non-enumerability proofs, so the branch selects the matching section and closes the sentence. - l. 26: The governing enumerable definition explicitly includes the empty set as a separate case. No function from nonempty PosInt onto the empty set exists. Restricting this sentence to nonempty enumerable A makes the stated surjection characterization correct. pairing.tex: - l. 30: The array is indexed by natural numbers beginning at 0. Moving from column m to m-1 is defined only for m>0; for m=0 the asserted position does not exist. The diagonal formula at 38 agrees with the guarded step. - l. 34: The displayed expression k(k+1)/2 is the sum from 0 through k, not the sum of naturals strictly below k. At k=1 the latter is 0 while the displayed expression is 1. Replacing < by <= matches both the displayed formula and the row 0,1,3,6. - l. 93: The immediately following condition is Nat\A finite. Therefore the complement is relative to Nat and the finite object is a subset of Nat; the printed phrase wrongly identifies Nat itself as the finite set. - l. 108: A pairing function is only required to be injective. Its inverse is defined on its image, which need not be all Nat, so it need not itself be an enumeration with the declared domain. reduction-alt.tex: - l. 38: The chapter uses bijective enumerations (enumerability-alt.tex:39–42). A surjection can identify x_i and x_j; remove later repetitions to obtain the required bijective finite or infinite enumeration. - l. 53: This version maps an arbitrary N to one characteristic string; k is never bound in that definition. The branch names that resulting string s consistently, preserving its value 1 exactly at members of N. - l. 93: The displayed function is g(s)=s(1) while this chapter indexes strings from 0 (non-enumerability-alt.tex:63–74). Thus index 1 is the second element. The surjectivity explanation must refer to the same entry. - l. 98: The commented explanatory block continues the reduction f:A→B from 34–40; Y is never bound. Correct the named codomain while retaining the comment. - l. 101: The declared codomain is Bin^omega, the infinite binary strings; n zeroes alone is finite. Appending an infinite tail of ones gives a well-defined injection that is not surjective, as this commented example requires. reduction.tex: - l. 52: The map takes an arbitrary set Z to its characteristic sequence. No k is fixed or introduced in this definition. Naming that single resulting sequence s consistently removes the stray free index; the values remain 1 exactly at n in Z. - l. 97: A finite block of n zeros is not an element of Bin^omega. Appending an infinite tail of ones makes a total infinite binary sequence for each n. The image still omits many sequences (for example all zeros), giving the intended non-surjective counterexample. size-of-sets-complete.tex: - l. 14: The alternative definition in enumerability-alt.tex:39–42 explicitly allows finite initial segments; the overview omits them and incorrectly excludes nonempty finite sets. The later overview at 44–46 confirms the intended scope. Co-Authored-By: Claude Opus 5.5 --- .../size-of-sets/comparing-size.tex | 12 +++++++----- .../size-of-sets/enumerability.tex | 6 +++--- .../size-of-sets/equinumerous-sets.tex | 4 ++-- .../size-of-sets/non-enumerability-alt.tex | 18 +++++++++--------- .../size-of-sets/non-enumerability.tex | 4 ++-- .../size-of-sets/pairing.tex | 8 ++++---- .../size-of-sets/reduction-alt.tex | 16 ++++++++-------- .../size-of-sets/reduction.tex | 6 +++--- .../size-of-sets/size-of-sets-complete.tex | 2 +- 9 files changed, 39 insertions(+), 37 deletions(-) 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 15649d15..71dbdef7 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 6989a613..2b398ca0 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 d7f2c425..7be154e6 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 3c7661bf..215a3875 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 35cea38a..efdd8ad1 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 ae51346b..e6be2897 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 09807d97..aa8dcbe3 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 cadd3684..bf2fd8f3 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 77422620..5bb37da2 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}