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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions content/second-order-logic/metatheory/compactness.tex
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@
\]
It is finitely satisfiable, since for any finite subset~$\Gamma_0
\subseteq \Gamma$
there is some $k$ so that $!A^{\ge k} \in \Gamma$ but no $!A^{\ge n}
\in \Gamma$ for $n>k$. If $\Domain{M}$ has $k$ !!{element}s,
let $k$ be the largest $n$ such that $!A^{\ge n}\in\Gamma_0$,
taking $k=1$ if no such sentence occurs. If $\Domain{M}$ has $k$ !!{element}s,
$\Sat{M}{\Gamma_0}$. But, $\Gamma$ is not satisfiable: if
$\Sat{M}{\lnot \fn{Inf}}$, $\Domain{M}$ must be finite, say, of
size~$k$. Then $\Sat/{M}{!A^{\ge k+1}}$.
Expand Down
2 changes: 1 addition & 1 deletion content/second-order-logic/metatheory/introduction.tex
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
First-order logic also has two more properties: it is compact (if
every finite subset of a set~$\Gamma$ of !!{sentence}s is satisfiable,
$\Gamma$ itself is satisfiable) and the L\"owenheim--Skolem Theorem
holds for it (if $\Gamma$ has an infinite model it has
holds for it (if a set~$\Gamma$ of !!{sentence}s of !!a{enumerable} !!{language} has an infinite model it has
!!a{denumerable} model). Both of these results fail for second-order
logic. Again, the reason is that second-order logic can express facts
about the size of !!{domain}s that first-order logic cannot.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,17 +109,18 @@
\[
!B(x, Y) \ident Y(x) \land \lforall[y][(Y(y) \lif Y(y'))]
\]
Clearly, $!B(\num n, Y)$ is satisfied by a set $Y \subseteq \Nat$ iff
$\Setabs{m}{n \le m} \subseteq Y$, so we can take $!A_\le(x, y) \ident
If $!B(\num n, Y)$ is satisfied by a set $Y \subseteq \Nat$, then
$\Setabs{m}{n \le m} \subseteq Y$. This tail itself satisfies
$!B(\num n, Y)$, so we can take $!A_\le(x, y) \ident
\lforall[Y][(!B(x, Y) \lif Y(y))]$.

To see that addition is definable observe that $k+l=m$ iff there is a
function $u$ such that $u(0)=k$, $u(n')=u(n)'$ for all $n$, and $m = u(l)$.
We can use this equivalence to define addition in $\Th{PA^{2\dagger}}$
by the following formula:
\[
!A_+(x,y,z) \ident \lexists[u][(u(\Obj 0)=x \land \lforall[w][u(x')=u
(x)'] \land u(y)=z)]
!A_+(x,y,z) \ident \lexists[u][(u(\Obj 0)=x \land \lforall[w][u(w')=u
(w)'] \land u(y)=z)]
\]
It should be clear that $\Sat{N}{!A_+(\num k, \num l, \num m)}$
iff $k+l=m$.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@
Let $!A$ be !!a{sentence} in the language of arithmetic. $\Sat{N}{!A}$
iff $\Th{PA^2} \Entails !A$. Let $!P$ be the conjunction of the nine
axioms of~$\Th{PA^2}$. $\Th{PA^2} \Entails !A$ iff $\Entails !P \lif
!A$, i.e., $\Sat{M}{!P \lif !A}$. Now consider the !!{sentence}
!A$, i.e., $\Sat{M}{!P \lif !A}$ for every arithmetic !!{structure}~$\Struct{M}$. Now consider the !!{sentence}
$\lforall[z][\lforall[u][\lforall[u'][\lforall[u''][\lforall[L][(!P' \lif !A')]]]]]$ resulting by
first renaming bound variables so that $z$, $u$, $u'$, $u''$, and~$L$
do not occur in~$!P$ or~$!A$, and then
replacing $\Obj{0}$ by $z$, $\prime$ by the one-place function
variable $u$, $+$ and $\times$ by the two-place function-variables
$u'$ and $u''$, respectively,
Expand Down
18 changes: 10 additions & 8 deletions content/second-order-logic/sol-and-set-theory/cardinalities.tex
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
\begin{prop}
The formula $\fn{Inf}(X) \ident$
\begin{multline*}
\lexists[u][(\lforall[x][\lforall[y][(\eq[u(x)][u(y)] \lif
\lexists[u][(\lforall[x][(X(x) \lif X(u(x)))] \land {} \\\lforall[x][\lforall[y][(\eq[u(x)][u(y)] \lif
\eq[x][y])]] \land {} \\\lexists[y][(X(y) \land \lforall[x][(X(x)
\lif \eq/[y][u(x)])]])]
\lif \eq/[y][u(x)])])])]
\end{multline*}
is satisfied with respect to a variable assignment~$s$ iff $s(X)$ is
infinite.
Expand All @@ -31,9 +31,10 @@
\begin{prop}
The formula $\fn{Count}(X) \ident $
\begin{multline*}
\lforall[x][\lnot X(x)] \lor {} \\
\lexists[z][\lexists[u][(X(z) \land
\lforall[x][(X(x) \lif X(u(x)))] \land {} \\ \lforall[Y][((Y(z) \land
\lforall[x][(Y(x) \lif Y(u(x)))]) \lif X = Y])]])
\lforall[x][(Y(x) \lif Y(u(x)))]) \lif X \subseteq Y)])]]
\end{multline*}
is satisfied with respect to a variable assignment~$s$ iff $s(X)$ is
!!{enumerable}.
Expand All @@ -50,11 +51,12 @@
smallest size a set can be without being countable (i.e., of
size~$\aleph_0$). We can define ``$X$ has size $\aleph_0$'' as
$\fn{Aleph}_0(X) \liff \fn{Inf}(X) \land \fn{Count}(X)$. $X$ has size
$\aleph_1$ iff all its subsets are finite or have size~$\aleph_0$, but
is not itself of size~$\aleph_0$. Hence we can express this by the
formula $\fn{Aleph_1}(X) \ident \lforall[Y][(Y \subseteq X \lif
(\lnot\fn{Inf}(Y) \lor \fn{Aleph}_0(Y)))] \land \lnot
\fn{Aleph}_0(X)$. Being of size $\aleph_2$ is defined similarly, etc.
$\aleph_1$ iff it is infinite, is not of size~$\aleph_0$, and every
subset not equinumerous with it is finite or has size~$\aleph_0$.
Hence we can express this by the formula
$\fn{Aleph_1}(X) \ident \fn{Inf}(X) \land \lnot\fn{Aleph}_0(X) \land
\lforall[Y][((Y \subseteq X \land \lnot\cardeq{X}{Y}) \lif
(\lnot\fn{Inf}(Y) \lor \fn{Aleph}_0(Y)))]$. Being of size $\aleph_2$ is defined similarly, etc.

There is one size of special interest, the so-called cardinality of
the continuum. It is the size of $\Pow{\Nat}$, or, equivalently, the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
\fn{Pow}(Y, R, X) \ident \\
\lforall[Z][(Z \subseteq X \lif \lexists[x][(Y(x) \land
\fn{Codes}(x, R, Z))])] \land {} \\ \lforall[x][(Y(x) \lif
\lforall[Z][(\fn{Codes}(x, R, Z) \lif Z \subseteq X)]]
\lforall[Z][(\fn{Codes}(x, R, Z) \lif Z \subseteq X)])]
\end{multline*}
expresses that $s(Y)$ $s(R)$-codes the power set of~$s(X)$, i.e., the
elements of $s(Y)$ $s(R)$-code exactly the subsets of $s(X)$.
Expand Down Expand Up @@ -93,7 +93,8 @@
number line,~$\Real$. If the !!{domain} is large enough to code the
power set of !!a{denumerable} set, we can express that a set is the
size of the continuum by saying that it is equinumerous with any
set~$Y$ that codes the power set of set~$X$ of size~$\aleph_0$. (If the
set~$Y$ that codes each subset of a set~$X$ of size~$\aleph_0$
exactly once. (If the
domain is not large enough, i.e., it contains no subset equinumerous
with~$\Real$, then there can also be no relation that codes~$\Pow{X}$.)
\end{explain}
Expand All @@ -115,16 +116,16 @@
of~$s(X)$, which $\fn{Aleph}_0(X)$ says is countable. So $s(Y)$ is
at least as large as the power of the continuum, although it may be
larger (if multiple elements of $s(Y)$ code the same subset of~$X$).
This is ruled out be the last conjunct, which requires the
association between elements of $s(Y)$ and subsets of $s(Z)$ via
This is ruled out by the last conjunct, which requires the
association between elements of $s(Y)$ and subsets of $s(X)$ via
$s(R)$ to be !!{injective}.
\end{proof}

\begin{prop}
$\cardeq{\Domain{M}}{\Real}$ iff
\begin{multline*}
\Sat{M}{\lexists[X][\lexists[Y][\lexists[R][(\fn{Aleph}_0(X) \land \fn{Pow}(Y, R, X) \land \\
\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)]])])])]]]}.
\Sat{M}{\lexists[Y][(\fn{Cont}(Y) \land {} \\
\lexists[u][(\lforall[x][\lforall[y][(\eq[u(x)][u(y)] \lif \eq[x][y])]] \land \lforall[x][Y(u(x))])])]}.
\end{multline*}
\end{prop}

Expand Down
9 changes: 5 additions & 4 deletions content/second-order-logic/syntax-and-semantics/inf-count.tex
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@
\[
m_0, m_1, m_2, \dots
\]
of its !!{element}s (without repetitions but possibly finite). Such an enumeration exists
of its !!{element}s (without repetitions but possibly finite). For nonempty~$M$, such an enumeration exists
iff there is !!a{element} $z \in M$ and a function $f\colon M \to M$
such that $z$, $f(z)$, $f(f(z))$, \dots, are all the !!{element}s of~$M$. For
if the enumeration exists, $z = m_0$ and $f(m_k) = m_{k+1}$ (or
$f(m_k) = m_k$ if $m_k$ is the last !!{element} of the enumeration)
are the requisite !!{element} and function. On the other hand, if such
a $z$ and $f$ exist, then $z$, $f(z)$, $f(f(z))$, \dots, is an
enumeration of~$M$, and $M$ is !!{enumerable}. We can express the
a $z$ and $f$ exist, then removing repetitions from $z$, $f(z)$,
$f(f(z))$, \dots, gives an enumeration of~$M$, and $M$ is !!{enumerable}. We can express the
existence of $z$ and~$f$ in second-order logic to produce a
!!{sentence} true in !!a{structure} iff the !!{structure} is
!!{enumerable}:
Expand All @@ -84,7 +84,8 @@
\begin{proof}
Suppose $\Domain{M}$ is !!{enumerable}, and let $m_0$, $m_1$, \dots, be an
enumeration. By removing repetitions we can guarantee that no $m_k$
appears twice. Define $f(m_k) = m_{k+1}$ and let $s(z) = m_0$ and
appears twice. Define $f(m_k) = m_{k+1}$ (or $f(m_k) = m_k$ if $m_k$ is the last
!!{element} of the enumeration) and let $s(z) = m_0$ and
$s(u) = f$. We show that
\[
\Sat{M}{\lforall[X][((X(z) \land \lforall[x][(X(x) \lif X(u(x)))])
Expand Down
17 changes: 9 additions & 8 deletions content/second-order-logic/syntax-and-semantics/satisfaction.tex
Original file line number Diff line number Diff line change
Expand Up @@ -66,21 +66,21 @@
If $s$ is !!a{variable} assignment for !!a{structure}~$\Struct M$
and $m \in \Domain{M}$, then the assignment~$\Subst{s}{m}{x}$ is the
!!{variable} assignment defined by
\[\Subst{s}{m}{y} = \begin{cases}
\[\Subst{s}{m}{x}(y) = \begin{cases}
m & \text{if } y \ident x\\
s(y) & \text{otherwise},
\end{cases}\]
If $X$ is an $n$-place relation !!{variable} and $M \subseteq
\Domain{M}^n$, then $\Subst{s}{M}{X}$ is the !!{variable} assignment
defined by
\[\Subst{s}{M}{y} = \begin{cases}
\[\Subst{s}{M}{X}(y) = \begin{cases}
M & \text{if } y \ident X\\
s(y) & \text{otherwise}.
\end{cases}\]
If $u$ is an $n$-place function !!{variable} and $f\colon \Domain{M}^n
\to \Domain{M}$, then $\Subst{s}{f}{u}$ is the !!{variable} assignment
defined by
\[\Subst{s}{f}{y} = \begin{cases}
\[\Subst{s}{f}{u}(y) = \begin{cases}
f & \text{if } y \ident u\\
s(y) & \text{otherwise}.
\end{cases}\]
Expand Down Expand Up @@ -121,8 +121,8 @@
contain the second-order !!{variable}s $X$ and~$Y$ (here understood to
be one-place). The corresponding first-order !!{sentence}
$\lforall[z][(\Atom{P}{z} \liff \lnot \Atom{R}{z})]$ says that
whatever falls under the interpretation of~$P$ does not fall under
the interpretation of~$R$ and vice versa. In !!a{structure}, the
each object falls under the interpretation of~$P$ iff it does not
fall under the interpretation of~$R$. In !!a{structure}, the
interpretation of !!a{predicate}~$P$ is given by the
interpretation~$\Assign{P}{M}$. But for second-order !!{variable}s
like $X$ and~$Y$, the interpretation is provided, not by the
Expand All @@ -133,8 +133,8 @@
assignment~$s$.

$\Sat{M}{\lforall[z][(\Atom{X}{z} \liff \lnot \Atom{Y}{z})]}[s]$
whenever the !!{element}s of~$s(X)$ are not !!{element}s of~$s(Y)$,
and vice versa, i.e., iff $s(Y) = \Domain{M} \setminus s(X)$. For
iff every object is in exactly one of~$s(X)$ and~$s(Y)$,
i.e., iff $s(Y) = \Domain{M} \setminus s(X)$. For
instance, take $\Domain{M} = \{1, 2, 3\}$. Since no !!{predicate}s,
!!{function}s, or !!{constant}s are involved, the domain
of~$\Struct{M}$ is all that is relevant. Now for $s_1(X) = \{1, 2\}$
Expand Down Expand Up @@ -201,7 +201,8 @@
\begin{enumerate}
\item Prove that in second-order logic $!A \land !B$ is equivalent
to $\lforall[X][(!A \lif (!B \lif \lforall[x][X(x)])\lif
\lforall[x][X(x)])]$.
\lforall[x][X(x)])]$, where the one-place relation variable~$X$
does not occur free in~$!A$ or~$!B$.
\item Find a second-order formula using only $\lforall$ and $\lif$
equivalent to $!A \lor !B$.
\end{enumerate}
Expand Down
Loading