content/second-order-logic/sol-and-set-theory/sol-and-set-theory.tex
1% Part: second-order-logic2% Chapter: sol-and-set-theory34\documentclass[../../../include/open-logic-chapter]{subfiles}56\begin{document}78\olchapter{sol}{set}{Second-order Logic and Set Theory}910\begin{editorial}11This section deals with coding powersets and the continuum in12second-order logic. The results are stated but proofs have yet to be13filled in. There are no problems yet---and the definitions and results14themselves may have problems. Use with caution and report anything15that's false or unclear.16\end{editorial}1718\olimport{introduction}1920\olimport{comparing-sets}2122\olimport{cardinalities}2324\olimport{power-of-continuum}2526\OLEndChapterHook2728\end{document}
content/second-order-logic/sol-and-set-theory/introduction.tex
1% Part: second-order-logic2% Chapter: sol-and-sets3% Section: introduction45\documentclass[../../../include/open-logic-section]{subfiles}67\begin{document}89\olfileid{sol}{set}{int}1011\olsection{Introduction}1213Since second-order logic can quantify over subsets of the domain as14well as functions, it is to be expected that some amount, at least, of15set theory can be carried out in second-order logic. By ``carry out,''16we mean that it is possible to express set theoretic properties and17statements in second-order logic, and is possible without any special,18non-logical vocabulary for sets (e.g., the membership !!{predicate} of19set theory). For instance, we can define unions and intersections of20sets and the subset relationship, but also compare the sizes of sets,21and state results such as Cantor's Theorem.2223\end{document}
content/second-order-logic/sol-and-set-theory/comparing-sets.tex
1% Part: second-order-logic2% Chapter: sol-and-sets3% Section: comparing-sets45\documentclass[../../../include/open-logic-section]{subfiles}67\begin{document}89\olfileid{sol}{set}{cmp}1011\olsection{Comparing Sets}1213\begin{prop}14The !!{formula} $\lforall[x][(X(x) \lif Y(x))]$ defines the subset15relation, i.e., $\Sat{M}{\lforall[x][(X(x) \lif Y(x))]}[s]$ iff $s(X)16\subseteq s(Y)$.17\end{prop}1819\begin{prop}20The !!{formula} $\lforall[x][(X(x) \liff Y(x))]$ defines the identity21relation on sets, i.e., $\Sat{M}{\lforall[x][(X(x) \liff Y(x))]}[s]$22iff $s(X) = s(Y)$.23\end{prop}2425\begin{prop}26The !!{formula} $\lexists[x][X(x)]$ defines the property of being27non-empty, i.e., $\Sat{M}{\lexists[x][X(x)]}[s]$ iff $s(X) \neq28\emptyset$.29\end{prop}3031A set~$X$ is no larger than a set~$Y$, $\cardle{X}{Y}$, iff there is32!!a{injective} function $f\colon X \to Y$. Since we can express that33a function is injective, and also that its values for arguments in~$X$34are in~$Y$, we can also define the relation of being no larger than on35subsets of the domain.3637\begin{prop}38The formula39\[40\lexists[u][(\lforall[x][(X(x) \lif Y(u(x)))] \land \lforall[x][\lforall[y][(\eq[u(x)][u(y)] \lif41 \eq[x][y])]])]42\]43defines the relation of being no larger than.44\end{prop}4546Two sets are the same size, or ``equinumerous,'' $\cardeq{X}{Y}$, iff47there is !!a{bijective} function~$f\colon X \to Y$.4849\begin{prop}50The formula51\begin{multline*}52 \lexists[u][(\lforall[x][(X(x) \lif Y(u(x)))] \land {}\\53 \lforall[x][\lforall[y][(\eq[u(x)][u(y)] \lif \eq[x][y])]]54 \land {} \\\lforall[y][(Y(y) \lif \lexists[x][(X(x)55 \land \eq[y][u(x)])])])]56\end{multline*}57defines the relation of being equinumerous with.58\end{prop}5960We will abbreviate these !!{formula}s, respectively, as $X \subseteq Y$,61$X = Y$, $X \neq \emptyset$, $\cardle{X}{Y}$, and62$\cardeq{X}{Y}$. (This may be slightly confusing, since we use the63same notation when we speak informally about sets $X$ and $Y$---but64here the notation is an abbreviation for !!{formula}s in second-order65logic involving one-place relation variables $X$ and~$Y$.)6667\begin{prop}68The !!{sentence} $\lforall[X][\lforall[Y][((\cardle{X}{Y} \land69 \cardle{Y}{X}) \lif \cardeq{X}{Y})]]$ is valid.70\end{prop}7172\begin{proof}73The !!{sentence} is satisfied in !!a{structure}~$\Struct{M}$ if, for74any subsets $X \subseteq \Domain{M}$ and $Y \subseteq \Domain{M}$, if75$\cardle{X}{Y}$ and $\cardle{Y}{X}$ then $\cardeq{X}{Y}$. But this76holds for \emph{any} sets $X$ and $Y$---it is the Schr\"oder-Bernstein77Theorem.78\end{proof}798081\end{document}
content/second-order-logic/sol-and-set-theory/cardinalities.tex
1% Part: second-order-logic2% Chapter: sol-and-sets3% Section: cardinalities45\documentclass[../../../include/open-logic-section]{subfiles}67\begin{document}89\olfileid{sol}{set}{crd}1011\olsection{Cardinalities of Sets}1213\begin{explain}14Just as we can express that the domain is finite or infinite,15!!{enumerable} or !!{nonenumerable}, we can define the property of a16subset of~$\Domain{M}$ being finite or infinite, !!{enumerable} or17!!{nonenumerable}.18\end{explain}1920\begin{prop}21The formula $\fn{Inf}(X) \ident$22\begin{multline*}23\lexists[u][(\lforall[x][\lforall[y][(\eq[u(x)][u(y)] \lif 24 \eq[x][y])]] \land {} \\\lexists[y][(X(y) \land \lforall[x][(X(x)25 \lif \eq/[y][u(x)])]])]26\end{multline*}27is satisfied with respect to a variable assignment~$s$ iff $s(X)$ is28infinite.29\end{prop}3031\begin{prop}32The formula $\fn{Count}(X) \ident $33\begin{multline*}34\lexists[z][\lexists[u][(X(z) \land 35 \lforall[x][(X(x) \lif X(u(x)))] \land {} \\ \lforall[Y][((Y(z) \land36 \lforall[x][(Y(x) \lif Y(u(x)))]) \lif X = Y])]])37\end{multline*}38is satisfied with respect to a variable assignment~$s$ iff $s(X)$ is39!!{enumerable}.40\end{prop}4142We know from Cantor's Theorem that there are !!{nonenumerable} sets,43and in fact, that there are infinitely many different levels of44infinite sizes. Set theory develops an entire arithmetic of sizes of45sets, and assigns infinite cardinal numbers to sets. The natural46numbers serve as the cardinal numbers measuring the sizes of finite47sets. The cardinality of !!{denumerable} sets is the first infinite48cardinality, called~$\aleph_0$ (``aleph-nought'' or49``aleph-zero''). The next infinite size is~$\aleph_1$. It is the50smallest size a set can be without being countable (i.e., of51size~$\aleph_0$). We can define ``$X$ has size $\aleph_0$'' as52$\fn{Aleph}_0(X) \liff \fn{Inf}(X) \land \fn{Count}(X)$. $X$ has size53$\aleph_1$ iff all its subsets are finite or have size~$\aleph_0$, but54is not itself of size~$\aleph_0$. Hence we can express this by the55formula $\fn{Aleph_1}(X) \ident \lforall[Y][(Y \subseteq X \lif56 (\lnot\fn{Inf}(Y) \lor \fn{Aleph}_0(Y)))] \land \lnot57\fn{Aleph}_0(X)$. Being of size $\aleph_2$ is defined similarly, etc.5859There is one size of special interest, the so-called cardinality of60the continuum. It is the size of $\Pow{\Nat}$, or, equivalently, the61size of~$\Real$. That a set is the size of the continuum can also be62expressed in second-order logic, but requires a bit more work.6364\end{document}
content/second-order-logic/sol-and-set-theory/power-of-continuum.tex
1% Part: second-order-logic2% Chapter: sol-and-sets3% Section: power-of-continuum45\documentclass[../../../include/open-logic-section]{subfiles}67\begin{document}89\olfileid{sol}{set}{pow}1011\olsection{The Power of the Continuum}1213\begin{explain}14In second-order logic we can quantify over subsets of the !!{domain},15but not over sets of subsets of the !!{domain}. To do this directly,16we would need \emph{third-order} logic. For instance, if we wanted to17state Cantor's Theorem that there is no !!{injective} function from18the power set of a set to the set itself, we might try to formulate it19as ``for every set~$X$, and every set~$P$, if $P$ is the power set20of~$X$, then not $\cardle{P}{X}$''. And to say that $P$ is the power set21of~$X$ would require formalizing that the !!{element}s of $P$ are all22and only the subsets of~$X$, so something like $\lforall[Y][(P(Y)23 \liff Y \subseteq X)]$. The problem lies in $P(Y)$: that is not24!!a{formula} of second-order logic, since only terms can be arguments25to one-place relation variables like~$P$.2627We can, however, \emph{simulate} quantification over sets of sets, if28the domain is large enough. The idea is to make use of the fact that29two-place relations~$R$ relates !!{element}s of the !!{domain} to30!!{element}s of the !!{domain}. Given such an~$R$, we can collect all31the !!{element}s to which some~$x$ is $R$-related: $\Setabs{y \in32 \Domain{M}}{R(x,y)}$ is the set ``coded by''~$x$. Conversely, if33$Z \subseteq \Pow{\Domain{M}}$ is some collection of subsets34of~$\Domain{M}$, and there are at least as many !!{element}s35of~$\Domain{M}$ as there are sets in~$Z$, then there is also a36relation~$R \subseteq \Domain{M}^2$ such that every $Y \in Z$ is coded37by some~$x$ using~$R$.38\end{explain}3940\begin{defn}41If $R \subseteq \Domain{M}^2$, then \emph{$x$ $R$-codes} $\Setabs{y42 \in \Domain{M}}{R(x, y)}$.43\end{defn}4445If !!a{element}~$x \in \Domain{M}$ $R$-codes a set $Z \subseteq46\Domain{M}$, then a set $Y \subseteq \Domain{M}$ codes a set of sets,47namely the sets coded by the !!{element}s of~$Y$. So a set $Y$ can48$R$-code $\Pow{X}$. It does so iff for every $Z \subseteq X$, some $x49\in Y$ $R$-codes~$Z$, and every $x \in Y$ $R$-codes a~$Z \subseteq X$.5051\begin{prop}52The !!{formula}53 \[54 \fn{Codes}(x, R, Z) \ident \lforall[y][(Z(y) \liff55 R(x, y))]56 \]57expresses that $s(x)$ $s(R)$-codes $s(Z)$. The58!!{formula} 59\begin{multline*}60 \fn{Pow}(Y, R, X) \ident \\61 \lforall[Z][(Z \subseteq X \lif \lexists[x][(Y(x) \land62 \fn{Codes}(x, R, Z))])] \land {} \\ \lforall[x][(Y(x) \lif63 \lforall[Z][(\fn{Codes}(x, R, Z) \lif Z \subseteq X)]]64\end{multline*}65expresses that $s(Y)$ $s(R)$-codes the power set of~$s(X)$, i.e., the66elements of $s(Y)$ $s(R)$-code exactly the subsets of $s(X)$.67\end{prop}6869\begin{explain}70With this trick, we can express statements about the power set by71quantifying over the codes of subsets rather than the subsets72themselves. For instance, Cantor's Theorem can now be expressed73by saying that there is no !!{injective} function from the domain74of any relation that codes the power set of~$X$ to~$X$ itself.75\end{explain}7677\begin{prop}78The sentence79\begin{multline*}80 \lforall[X][\lforall[Y][\lforall[R][(\fn{Pow}(Y, R, X) \lif \\81 \lnot \lexists[u][(\lforall[x][\lforall[y][(\eq[u(x)][u(y)] \lif82 \eq[x][y])]] \land {}\\83 \lforall[x][(Y(x) \lif X(u(x)))])])]]]84\end{multline*}85is valid.86\end{prop}8788\begin{explain}89The power set of !!a{denumerable} set is !!{nonenumerable}, and so its90cardinality is larger than that of any !!{denumerable} set (which is91$\aleph_0$). The size of $\Pow{\Nat}$ is called the ``power of the92continuum,'' since it is the same size as the points on the real93number line,~$\Real$. If the !!{domain} is large enough to code the94power set of !!a{denumerable} set, we can express that a set is the95size of the continuum by saying that it is equinumerous with any96set~$Y$ that codes the power set of set~$X$ of size~$\aleph_0$. (If the97domain is not large enough, i.e., it contains no subset equinumerous98with~$\Real$, then there can also be no relation that codes~$\Pow{X}$.)99\end{explain}100101\begin{prop}102If $\cardle{\Real}{\Domain{M}}$, then the !!{formula}103\begin{multline*}104\fn{Cont}(Y) \ident 105\lexists[X][\lexists[R][((\fn{Aleph}_0(X) \land106 \fn{Pow}(Y, R, X)) \land \\ 107 \lforall[x][\lforall[y][((Y(x) \land {} 108 Y(y) \land \lforall[z][R(x,z) \liff R(y,z)]) \lif \eq[x][y])]])]]109\end{multline*}110expresses that $\cardeq{s(Y)}{\Real}$.111\end{prop}112113\begin{proof}114 $\fn{Pow}(Y, R, X)$ expresses that $s(Y)$ $s(R)$-codes the power set115 of~$s(X)$, which $\fn{Aleph}_0(X)$ says is countable. So $s(Y)$ is116 at least as large as the power of the continuum, although it may be117 larger (if multiple elements of $s(Y)$ code the same subset of~$X$).118 This is ruled out be the last conjunct, which requires the119 association between elements of $s(Y)$ and subsets of $s(Z)$ via120 $s(R)$ to be !!{injective}.121\end{proof}122123\begin{prop}124$\cardeq{\Domain{M}}{\Real}$ iff125\begin{multline*}126 \Sat{M}{\lexists[X][\lexists[Y][\lexists[R][(\fn{Aleph}_0(X) \land \fn{Pow}(Y, R, X) \land \\127 \lexists[u][(\lforall[x][\lforall[y][(\eq[u(x)][u(y)] \lif \eq[x][y])]] \land {} \\\lforall[y][(Y(y) \lif \lexists[x][\eq[y][u(x)]])])])]]]}.128 \end{multline*}129 \end{prop}130131\begin{explain}132The Continuum Hypothesis is the statement that the size of the133continuum is the first !!{nonenumerable} cardinality, i.e, that134$\Pow{\Nat}$ has size~$\aleph_1$. 135\end{explain}136137\begin{prop}138The Continuum Hypothesis is true iff \[\fn{CH} \ident139\lforall[X][(\fn{Aleph}_1(X) \liff \fn{Cont}(X))]\] is valid.140\end{prop}141142Note that it isn't true that $\lnot \fn{CH}$ is valid iff the143Continuum Hypothesis is false. In !!a{enumerable} domain, there are no144subsets of size~$\aleph_1$ and also no subsets of the size of the145continuum, so $\fn{CH}$ is always true in !!a{enumerable}146domain. However, we can give a different sentence that is valid iff147the Continuum Hypothesis is false:148149\begin{prop}150The Continuum Hypothesis is false iff \[\fn{NCH} \ident151\lforall[X][(\fn{Cont}(X) \lif \lexists[Y][(Y \subseteq X \land \lnot152 \fn{Count}(Y) \land \lnot \cardeq{X}{Y})])]\] is valid.153\end{prop}154155\end{document}