content/model-theory/basics/basics.tex
1% Part: model-theory2% Chapter: basics34\documentclass[../../../include/open-logic-chapter]{subfiles}56\begin{document}78\olchapter{mod}{bas}{Basics of Model Theory}910\olimport{reducts-and-expansions}1112\olimport{substructures}1314\olimport{overspill}1516\olimport{isomorphism}1718\olimport{theory-of-m}1920\olimport{partial-iso}2122\olimport{dlo}2324%\olimport{nonstandard-arithmetic}2526\OLEndChapterHook2728\end{document}
content/model-theory/basics/reducts-and-expansions.tex
1% Part: first-order-logic2% Chapter: model-theory3% Section: reducts-and-expansions45\documentclass[../../../include/open-logic-section]{subfiles}67\begin{document}89\olfileid{mod}{bas}{red}10\section{Reducts and Expansions}1112Often it is useful or necessary to compare languages which have13symbols in common, as well as !!{structure}s for these languages. The14most common case is when all the symbols in !!a{language}~$\Lang{L}$15are also part of !!a{language}~$\Lang{L'}$, i.e., $\Lang{L} \subseteq16\Lang{L'}$. An $\Lang{L}$-!!{structure}~$\Struct{M}$ can then always17be expanded to an $\Lang{L'}$-!!{structure} by adding interpretations18of the additional symbols while leaving the interpretations of the19common symbols the same. On the other hand, from an20$\Lang{L'}$-structure~$\Struct{M'}$ we can obtain an21$\Lang{L}$-structure simply by ``forgetting'' the interpretations of22the symbols that do not occur in~$\Lang{L}$.2324\begin{defn}25\ollabel{defn:reduct}26Suppose $\Lang L \subseteq \Lang L'$, $\Struct M$ is an27$\Lang L$-!!{structure} and $\Struct M'$ is an $\Lang L'$-!!{structure}.28$\Struct M$ is the \emph{reduct} of $\Struct M'$ to $\Lang L$, and29$\Struct M'$ is an \emph{expansion} of $\Struct M$ to $\Lang L'$ iff30\begin{enumerate}31\item $\Domain{M} = \Domain{M'}$32\item For every !!{constant}~$c \in \Lang L$, $\Assign{c}{M} =33 \Assign{c}{M'}$.34\item For every !!{function}~$f \in \Lang L$, $\Assign{f}{M} =35 \Assign{f}{M'}$.36\item For every !!{predicate}~$P \in \Lang L$, $\Assign{P}{M} =37 \Assign{P}{M'}$.38\end{enumerate}39\end{defn}4041\begin{prop}42\ollabel{prop:reduct}43If an $\Lang{L}$-!!{structure}~$\Struct{M}$ is a reduct of an44$\Lang{L'}$-!!{structure}~$\Struct{M'}$, then for all45$\Lang{L}$-!!{sentence}s~$!A$,46\[47\Sat{M}{!A} \text{ iff } \Sat{M'}{!A}.48\]49\end{prop}5051\begin{proof}52 Exercise.53\end{proof}5455\begin{prob}56Prove \olref[mod][bas][red]{prop:reduct}.57\end{prob}5859\begin{defn}60When we have an $\Lang{L}$-structure $\Struct{M}$, and $\Lang{L'} =61\Lang{L} \cup \{P\}$ is the expansion of $\Lang{L}$ obtained by adding62a single $n$-place !!{predicate}~$P$, and $R \subseteq \Domain{M}^n$63is an $n$-place relation, then we write $\Expan{M}{R}$ for the64expansion~$\Struct{M'}$ of~$\Struct{M}$ with $\Assign{P}{M'} = R$.65\end{defn}6667\end{document}
content/model-theory/basics/substructures.tex
1% Part: first-order-logic2% Chapter: model-theory3% Section: substructures45\documentclass[../../../include/open-logic-section]{subfiles}67\begin{document}89\olfileid{mod}{bas}{sub}10\olsection{Sub\printtoken{p}{structure}}1112The !!{domain} of !!a{structure}~$\Struct{M}$ may be a subset of13another~$\Struct{M'}$. But we should obviously only consider14$\Struct{M}$ a ``part'' of $\Struct{M'}$ if not only $\Domain{M}15\subseteq \Domain{M'}$, but $\Struct{M}$ and $\Struct{M'}$ ``agree''16in how they interpret the symbols of the language at least on the17shared part~$\Domain{M}$.1819\begin{defn}20\ollabel{defn:substructure}21Given !!{structure}s $\Struct M$ and $\Struct M'$ for the same22language~$\Lang L$, we say that $\Struct M$ is a \emph{sub!!{structure}}23of $\Struct M'$, and $\Struct M'$ an \emph{extension} of $\Struct M$,24written $\Struct M \substruct \Struct M'$, iff25\begin{enumerate}26\item $\Domain{M} \subseteq \Domain{M'}$,27\item For each constant $c \in \Lang L$, $\Assign{c}{M} =28 \Assign{c}{M'}$;29\item For each $n$-place !!{function} $f \in \Lang L$30 $\Assign{f}{M}(a_1, \dots, a_n) = \Assign{f}{M'}(a_1, \dots, a_n)$31 for all $a_1$, \dots, $a_n \in \Domain{M}$.32\item For each $n$-place !!{predicate} $R \in \Lang L$, $\langle33 a_1, \dots, a_n\rangle \in \Assign{R}{M}$ iff $\langle a_1, \dots,34 a_n\rangle \in \Assign{R}{M'}$ for all $a_1$, \dots, $a_n \in35 \Domain{M}$.36\end{enumerate}37\end{defn}3839\begin{rem}40\ollabel{rem:substructure}41If the language contains no constant or !!{function}s, then any $N42\subseteq \Domain{M}$ determines a sub!!{structure}~$\Struct{N}$ of43$\Struct M$ with !!{domain}~$\Domain{N} = N$ by putting $\Assign{R}{N} =44\Assign{R}{M} \cap N^n$.45\end{rem}4647% prove something about this? Examples?4849\end{document}
content/model-theory/basics/overspill.tex
1% Part: first-order-logic2% Chapter: model-theory3% Section: overspill45\documentclass[../../../include/open-logic-section]{subfiles}67\begin{document}89\olfileid{mod}{bas}{ove}10\olsection{Overspill}1112\begin{thm}13\ollabel{overspill} If a set $\Gamma$ of sentences has arbitrarily14large finite models, then it has an infinite model.15\end{thm}1617\begin{proof}18Expand the language of $\Gamma$ by adding countably many new constants19$c_0$, $c_1$, \dots and consider the set $\Gamma \cup \{c_i \neq c_j :20i \neq j\}$. To say that $\Gamma$ has arbitrarily large finite models21means that for every $m >0$ there is $n\ge m$ such that $\Gamma$ has a22model of cardinality~$n$. This implies that $\Gamma \cup \{c_i \neq23c_j : i \neq j\}$ is finitely satisfiable. By compactness, $\Gamma24\cup \{c_i \neq c_j : i \neq j\}$ has a model $\Struct M$ whose domain25must be infinite, since it satisfies all inequalities $c_i \neq c_j$.26\end{proof}2728\begin{prop}29\ollabel{inf-not-fo} 30There is no sentence $!A$ of any first-order language that is true in31!!a{structure}~$\Struct M$ if and only if the domain $\Domain{M}$ of32the !!{structure} is infinite.33\end{prop}3435\begin{proof}36If there were such a $!A$, its negation $\lnot !A$ would be true in37all and only the finite !!{structure}s, and it would therefore have38arbitrarily large finite models but it would lack an infinite model,39contradicting \olref{overspill}.40\end{proof}4142\end{document}
content/model-theory/basics/isomorphism.tex
1% Part: first-order-logic2% Chapter: model-theory3% Section: isomorphism45\documentclass[../../../include/open-logic-section]{subfiles}67\begin{document}89\olfileid{mod}{bas}{iso}10\olsection{Isomorphic Structures}1112First-order !!{structure}s can be alike in one of two ways. One way in13which they can be alike is that they make the same !!{sentence}s14true. We call such !!{structure}s \emph{elementarily equivalent}. But15structures can be very different and still make the same !!{sentence}s16true---for instance, one can be !!{enumerable} and the other not.17This is because there are lots of features of !!a{structure} that18cannot be expressed in first-order languages, either because the19language is not rich enough, or because of fundamental limitations of20first-order logic such as the L\"owenheim--Skolem theorem. So another,21stricter, aspect in which !!{structure}s can be alike is if they are22fundamentally the same, in the sense that they only differ in the23objects that make them up, but not in their structural features. A way24of making this precise is by the notion of an \emph{isomorphism}.2526\begin{defn}27\ollabel{defn:elem-equiv} 28Given two !!{structure}s $\Struct{M}$ and $\Struct M'$ for the same29!!{language}~$\Lang{L}$, we say that $\Struct{M}$ is \emph{elementarily30 equivalent to} $\Struct M'$, written $\Struct{M} \equiv \Struct M'$,31if and only if for every !!{sentence}~$!A$ of~$\Lang{L}$,32$\Sat{M}{!A}$ iff $\Sat{M'}{!A}$.33\end{defn}3435\begin{defn}36\ollabel{defn:isomorphism} Given two !!{structure}s $\Struct{M}$ and37$\Struct M'$ for the same !!{language}~$\Lang L$, we say that38$\Struct{M}$ is \emph{isomorphic to}~$\Struct M'$, written $\Struct{M}39\simeq \Struct M'$, if and only if there is a function $h \colon40\Domain{M} \to \Domain{M'}$ such that:41\begin{enumerate}42\item $h$ is !!{injective}: if $h(x) =43 h(y)$ then $x = y$; 44\item $h$ is !!{surjective}: for every $y \in \Domain{M'}$ there45 is $x \in \Domain{M}$ such that $h(x) = y$;46\item \ollabel{defn:iso-const}for every !!{constant} $c$:47 $h(\Assign{c}{M}) = \Assign{c}{M'}$;48\item \ollabel{defn:iso-pred}for every $n$-place !!{predicate}~$P$:49 \[50 \tuple{a_1, \dots, a_n}\in \Assign{P}{M} \quad\text{iff}\quad51 \tuple{h(a_1), \dots, h(a_n)} \in \Assign{P}{M'};52 \]53\item \ollabel{defn:iso-func}for every $n$-place !!{function} $f$:54 \[55 h(\Assign{f}{M}(a_1, \dots, a_n)) =56 \Assign{f}{M'}(h(a_1), \dots, h(a_n)).57 \]58\end{enumerate}59\end{defn}6061\begin{thm}62\ollabel{thm:isom}63If $\Struct{M} \iso \Struct M'$ then $\Struct{M} \elemequiv64\Struct{M'}$.65\end{thm}6667\begin{proof}68Let $h$ be an isomorphism of $\Struct{M}$ onto $\Struct M'$. For any69assignment~$s$, $h \circ s$ is the composition of $h$ and $s$, i.e.,70the assignment in $\Struct{M'}$ such that $(h \circ s)(x) = h(s(x))$.71By induction on $t$ and $!A$ one can prove the stronger claims:72\begin{enumerate}73 \item[a.] $h(\Value{t}{M}[s]) = \Value{t}{M'}[h\circ s]$.74 \item[b.] $\Sat{M}{!A}[s]$ iff $\Sat{M'}{!A}[h \circ s]$.75\end{enumerate}76The first is proved by induction on the complexity of~$t$.77\begin{enumerate}78\item If $t \ident c$, then $\Value{c}{M}[s] = \Assign{c}{M}$ and79 $\Value{c}{M'}[h \circ s] = \Assign{c}{M'}$. Thus,80 $h(\Value{t}{M}[s]) = h(\Assign{c}{M}) = \Assign{c}{M'}$ (by81 \olref{defn:iso-const} of \olref{defn:isomorphism}) $=82 \Value{t}{M'}[h \circ s]$.83\item If $t \ident x$, then $\Value{x}{M}[s] = s(x)$ and84 $\Value{x}{M'}[h \circ s] = h(s(x))$. Thus, $h(\Value{x}{M}[s]) =85 h(s(x)) = \Value{x}{M'}[h \circ s]$.86\item If $t \ident f(t_1, \dots, t_n)$, then87 \begin{align*}88 \Value{t}{M}[s] & = \Assign{f}{M}(\Value{t_1}{M}[s], \dots, \Value{t_n}{M}[s]) \quad\text{and}\\89 \Value{t}{M'}[h \circ s] & = \Assign{f}{M}(\Value{t_1}{M'}[h \circ90 s], \dots, \Value{t_n}{M'}[h \circ s]).91 \end{align*}92 The induction hypothesis is that for each $i$, $h(\Value{t_i}{M}[s])93 = \Value{t_i}{M'}[h\circ s]$. So,94 \begin{align}95 h(\Value{t}{M}[s]) 96 & = h(\Assign{f}{M}(\Value{t_1}{M}[s], \dots, \Value{t_n}{M}[s]) \notag\\97 & = \Assign{f}{M'}(h(\Value{t_1}{M}[s]), \dots,98 h(\Value{t_n}{M}[s])) \ollabel{iso-1}\\99 & = \Assign{f}{M'}(\Value{t_1}{M'}[h \circ s], \dots,100 \Value{t_n}{M'}[h \circ s]) \ollabel{iso-2}\\101 & = \Value{t}{M'}[h\circ s] \notag102 \end{align}103 Here, \olref{iso-1} follows by \olref{defn:iso-func} of104 \olref{defn:isomorphism} and \olref{iso-2} by induction hypothesis.105\end{enumerate}106Part (b) is left as an exercise.107108If $!A$ is a sentence, the assignments~$s$ and $h \circ s$ are109irrelevant, and we have $\Sat{M}{!A}$ iff $\Sat{M'}{!A}$.110\end{proof}111112\begin{prob}113Carry out the proof of (b) of \olref[mod][bas][iso]{thm:isom} in114detail. Make sure to note where each of the five properties115characterizing isomorphisms of \olref[mod][bas][iso]{defn:isomorphism}116is used.117\end{prob}118119\begin{defn}120An \emph{automorphism} of a structure $\Struct{M}$ is an isomorphism121of $\Struct{M}$ onto itself.122\end{defn}123124\begin{prob}125Show that for any structure $\Struct{M}$, if $X$ is a definable subset126of $\Struct{M}$, and $h$ is an automorphism of $\Struct{M}$, then $X127= \Setabs{h(x)}{x \in X}$ (i.e., $X$ is fixed under $h$).128\end{prob}129130131\end{document}
content/model-theory/basics/theory-of-m.tex
1% Part: first-order-logic2% Chapter: model-theory3% Section: theory-of-m45\documentclass[../../../include/open-logic-section]{subfiles}67\begin{document}89\olfileid{mod}{bas}{thm}1011\section{The Theory of a \printtoken{S}{structure}}1213Every !!{structure}~$\Struct{M}$ makes some !!{sentence}s true, and14some false. The set of all the !!{sentence}s it makes true is called15its \emph{theory}. That set is in fact a theory, since anything it16entails must be true in all its models, including~$\Struct{M}$.1718\begin{defn}19 Given !!a{structure}~$\Struct M$, the \emph{theory} of20 $\Struct{M}$ is the set $\Theory{M}$ of !!{sentence}s21 that are true in $\Struct{M}$, i.e., $\Theory{M} =22 \Setabs{!A}{\Sat{M}{!A}}$.23\end{defn}2425We also use the term ``theory'' informally to refer to sets26of !!{sentence}s having an intended interpretation, whether deductively27closed or not.2829\begin{prop}30For any $\Struct{M}$, $\Theory{M}$ is complete.31\end{prop}3233\begin{proof}34For any !!{sentence}~$!A$ either $\Sat{M}{!A}$ or $\Sat{M}{\lnot !A}$,35so either $!A \in \Theory{M}$ or $\lnot !A \in \Theory{M}$.36\end{proof}3738\begin{prop}\ollabel{prop:equiv}39 If $\Struct{N} \models !A$ for every $!A \in \Theory{M}$, then40 $\Struct{M} \elemequiv \Struct{N}$.41\end{prop}4243\begin{proof}44Since $\Sat{N}{!A}$ for all $!A \in \Theory{M}$, $\Theory{M} \subseteq45\Theory{N}$. If $\Sat{N}{!A}$, then $\Sat/{N}{\lnot !A}$, so $\lnot !A46\notin \Theory{M}$. Since $\Theory{M}$ is complete, $!A \in47\Theory{M}$. So, $\Theory{N} \subseteq \Theory{M}$, and we have48$\Struct{M} \elemequiv \Struct{N}$.49\end{proof}5051\begin{rem}\ollabel{remark:R}52 Consider $\Struct{R} = \langle\Real, <\rangle$, the !!{structure}53 whose domain is the set $\Real$ of the real numbers, in the !!{language}54 comprising only a 2-place !!{predicate} interpreted as the $<$55 relation over the reals. Clearly $\Struct{R}$ is !!{nonenumerable};56 however, since $\Theory{R}$ is obviously consistent, by the57 L\"owenheim--Skolem theorem it has !!a{enumerable} model, say58 $\Struct{S}$, and by \olref{prop:equiv}, $\Struct{R}59 \equiv \Struct{S}$. Moreover, since $\Struct{R}$ and $\Struct{S}$60 are not isomorphic, this shows that the converse of61 \olref[iso]{thm:isom} fails in general.62\end{rem}6364\end{document}
content/model-theory/basics/partial-iso.tex
1% Part: first-order-logic2% Chapter: model-theory3% Section: partial-iso45\documentclass[../../../include/open-logic-section]{subfiles}67\begin{document}89\olfileid{mod}{bas}{pis}10\section{Partial Isomorphisms}1112\begin{defn}13 Given two !!{structure}s $\Struct{M}$ and $\Struct{N}$, a14 \emph{partial isomorphism} from $\Struct{M}$ to $\Struct{N}$ is a15 finite partial function $p$ taking arguments in $\Domain M$ and returning16 values in $\Domain N$, which satisfies the isomorphism conditions from17 \olref[iso]{defn:isomorphism} on its domain:18 \begin{enumerate}19 \item $p$ is !!{injective};20 \item for every !!{constant}~$c$: if $p(\Assign{c}{M})$ is defined,21 then $p(\Assign{c}{M}) = \Assign{c}{N}$;22 \item for every $n$-place !!{predicate} $P$: if $a_1$, \dots, $a_n$23 are in the domain of $p$, then $\langle a_1, \dots, a_n\rangle \in24 \Assign P M$ if and only if $\langle p(a_1), \dots, p(a_n) \rangle25 \in \Assign P N$;26 \item for every $n$-place !!{function} $f$: if $a_1$, \dots, $a_n$27 are in the domain of $p$, then $p(\Assign f M (a_1, \dots,a_n))28 = \Assign f N (p(a_1), \dots, p(a_n))$.29 \end{enumerate}30 That $p$ is finite means that $\dom{p}$ is finite.31\end{defn}3233Notice that the empty function~$\emptyset$ is always a partial34isomorphism between any two !!{structure}s.3536\begin{defn}\ollabel{defn:partialisom}37 Two !!{structure}s $\Struct{M}$ and $\Struct{N}$, are38 \emph{partially isomorphic}, written $\Struct{M} \iso[p]39 \Struct{N}$, if and only if there is a non-empty set $I$40 of partial isomorphisms between $\Struct{M}$ and $\Struct{N}$41 satisfying the \emph{back-and-forth} property:42 \begin{enumerate}43 \item (\emph{Forth}) For every $p \in I$ and $a \in \Domain M$44 there is $q \in I$ such that $p \subseteq q$ and $a$ is45 in the domain of $q$;46 \item (\emph{Back}) For every $p \in I$ and $b \in \Domain N$47 there is $q \in I$ such that $p \subseteq q$ and $b$ is48 in the range of $q$.49 \end{enumerate}50\end{defn}5152\begin{thm}\ollabel{thm:p-isom1}53 If $\Struct{M} \iso[p] \Struct{N}$ and $\Struct{M}$ and54 $\Struct{N}$ are !!{enumerable}, then $\Struct{M} \iso55 \Struct{N}$.56\end{thm}5758\begin{proof}59 Since $\Struct{M}$ and $\Struct{N}$ are !!{enumerable}, let $\Domain{M} =60 \{a_0, a_1, \ldots \}$ and $\Domain{N} = \{b_0, b_1, \ldots \}$. Starting61 with an arbitrary $p_0 \in I$, we define an increasing62 sequence of partial isomorphisms $p_0 \subseteq p_1 \subseteq p_263 \subseteq \cdots$ as follows:64 \begin{enumerate}65 \item if $n+1$ is odd, say $n = 2r$, then using the Forth property66 find a $p_{n+1} \in I$ such that $p_n \subseteq p_{n+1}$67 and $a_r$ is in the domain of $p_{n+1}$;68 \item if $n+1$ is even, say $n+1 =2r$, then using the Back property69 find a $p_{n+1} \in I$ such that $p_n \subseteq p_{n+1}$70 and $b_r$ is in the range of $p_{n+1}$.71 \end{enumerate}72If we now put:73\[74p = \bigcup_{n\ge 0} p_n,75\]76we have that $p$ is a an isomorphism between $\Struct{M}$ and77$\Struct{N}$.78\end{proof}7980\begin{prob}81 Show in detail that $p$ as defined in82 \olref[mod][bas][pis]{thm:p-isom1} is in fact an isomorphism.83\end{prob}8485\begin{thm}\ollabel{thm:p-isom2}86 Suppose $\Struct{M}$ and $\Struct{N}$ are !!{structure}s for a87 purely relational !!{language} (!!a{language} containing only88 !!{predicate}s, and no !!{function}s or constants). Then if89 $\Struct{M} \iso[p] \Struct{N}$, also $\Struct{M} \elemequiv90 \Struct{N}$.91\end{thm}9293\begin{proof}94 By induction on !!{formula}s, one shows that if $a_1$, \dots, $a_n$ and95 $b_1$, \dots, $b_n$ are such that there is a partial isomorphism $p$96 mapping each $a_i$ to $b_i$ and $s_1(x_i) =a_i$ and $s_2(x_i) =b_i$97 (for $i =1$, \dots,~$n$), then $\Sat{M}{!A}[s_1]$ if98 and only if $\Sat{N}{!A}[s_2]$. The case for $n=0$99 gives $\Struct{M} \elemequiv \Struct{N}$.100\end{proof}101102\begin{rem}103If !!{function}s are present, the previous result is still true, but104one needs to consider the isomorphism induced by $p$ between the105sub!!{structure} of $\Struct{M}$ generated by $a_1$, \dots, $a_n$ and the106sub!!{structure} of $\Struct{N}$ generated by $b_1$, \dots, $b_n$.107\end{rem}108109The previous result can be ``broken down'' into stages by establishing a110connection between the number of nested quantifiers in !!a{formula} and111how many times the relevant partial isomorphisms can be extended.112113\begin{defn}114 For any !!{formula}~$!A$, the \emph{quantifier rank} of $!A$, denoted115 by $\QuantRank{!A} \in \Nat$, is recursively defined as116 the highest number of nested quantifiers in $!A$. Two117 !!{structure}s $\Struct{M}$ and $\Struct{N}$ are \emph{$n$-equivalent},118 written $\Struct{M} \elemequiv[n] \Struct{N}$, if they agree on all119 sentences of quantifier rank less than or equal to~$n$.120\end{defn}121122\begin{prop}\ollabel{prop:qr-finite}123 Let $\Lang{L}$ be a finite purely relational !!{language}, i.e., a124 !!{language} containing finitely many !!{predicate}s and !!{constant}s,125 and no !!{function}s. Then for each $n \in \Nat$ there are126 only finitely many first-order !!{sentence}s in the !!{language}127 $\Lang{L}$ that have quantifier rank no greater than $n$, up to128 logical equivalence.129\end{prop}130131\begin{proof}132 By induction on $n$.133\end{proof}134135\begin{defn}136 Given !!a{structure}~$\Struct{M}$, let $\Domain M^{<\omega}$ be the set of137 all finite sequences over $\Domain{M}$. We use $\mathbf{a},138 \mathbf{b}, \mathbf{c}, \ldots$ to range over finite sequences of139 elements. If $\mathbf{a} \in \Domain{M}^{<\omega}$ and $a \in \Domain{M}$, then140 $\mathbf{a}a$ represents the \emph{concatenation} of $\mathbf{a}$ with $a$.141\end{defn}142143\begin{defn}144 Given !!{structure}s $\Struct{M}$ and $\Struct{N}$, we define145 relations $I_n \subseteq \Domain M^{<\omega} \times \Domain N^{<\omega}$ between146 sequences of equal length, by recursion on $n$ as follows:147 \begin{enumerate}148 \item $I_0(\mathbf{a},\mathbf{b})$ if and only if $\mathbf{a}$ and149 $\mathbf{b}$ satisfy the same atomic !!{formula}s in $\Struct{M}$150 and $\Struct{N}$; i.e., if $s_1(x_i) = a_i$ and $s_2(x_i) =151 b_i$ and $!A$ is atomic with all !!{variable}s among152 $x_1$, \dots,~$x_n$, then $\Sat{M}{!A}[s_1]$ if and153 only if~$\Sat{N}{!A}[s_2]$.154 \item $I_{n+1} (\mathbf{a},\mathbf{b})$ if and only if for every155 $a\in \Domain M$ there is a $b\in \Domain N$ such that $I_n156 (\mathbf{a}a,\mathbf{b}b)$, and vice-versa.157 \end{enumerate}158\end{defn}159160161\begin{defn}162 Write $\Struct{M} \approx_n \Struct{N}$ if163 $I_n(\emptyseq,\emptyseq)$ holds of $\Struct{M}$ and164 $\Struct{N}$ (where $\emptyseq$ is the empty sequence).165\end{defn}166167\begin{thm}\ollabel{thm:b-n-f}168 Let $\Lang{L}$ be a purely relational !!{language}. Then $I_n169 (\mathbf{a},\mathbf{b})$ implies that for every $!A$ such that170 $\QuantRank{!A} \le n$, we have $\Sat{M}{!A}[\mathbf{a}]$ if and171 only if $\Sat{N}{!A}[\mathbf{b}]$ (where again $\mathbf{a}$172 satisfies $!A$ if any $s$ such that $s(x_i) = a_i$ satisfies173 $!A$). Moreover, if $\Lang{L}$ is finite, the converse also holds.174\end{thm}175176\begin{proof}177 The proof that $I_n(\mathbf{a},\mathbf{b})$ implies that178 $\mathbf{a}$ and $\mathbf{b}$ satisfy the same !!{formula}s of179 quantifier rank no greater than $n$ is by an easy induction on180 $!A$. For the converse we proceed by induction on $n$, using181 \olref{prop:qr-finite}, which ensures that for each $n$182 there are at most finitely many non-equivalent !!{formula}s of that183 quantifier rank.184185 For $n=0$ the hypothesis that $\mathbf{a}$ and $\mathbf{b}$ satisfy186 the same quantifier-free !!{formula}s gives that they satisfy the same187 atomic ones, so that $I_0(\mathbf{a},\mathbf{b})$.188189 For the $n+1$ case, suppose that $\mathbf{a}$ and $\mathbf{b}$190 satisfy the same !!{formula}s of quantifier rank no greater than191 $n+1$; in order to show that $I_{n+1}(\mathbf{a},\mathbf{b})$192 suffices to show that for each $a \in \Domain M$ there is a $b \in193 \Domain N$ such that $I_n(\mathbf{a}a,\mathbf{b}b)$, and by the194 inductive hypothesis again suffices to show that for each $a \in195 \Domain M$ there is a $b \in \Domain N$ such that $\mathbf{a}a$ and196 $\mathbf{b}b$ satisfy the same !!{formula}s of quantifier rank no197 greater than $n$.198199 Given $a \in \Domain M$, let $!T^a_n$ be set of !!{formula}s200 $!B(x,\mathbf{y})$ of rank no greater than $n$ satisfied by201 $\mathbf{a}a$ in $\Struct{M}$; $!T^a_n$ is finite, so we can202 assume it is a single first-order !!{formula}. It follows that203 $\mathbf{a}$ satisfies $\lexists[x][!T^a_n(x,\mathbf{y})]$, which204 has quantifier rank no greater than $n+1$. By hypothesis205 $\mathbf{b}$ satisfies the same !!{formula} in $\Struct{N}$, so that206 there is a $b \in \Domain N$ such that $\mathbf{b}b$ satisfies207 $!T^a_n$; in particular, $\mathbf{b}b$ satisfies the same208 !!{formula}s of quantifier rank no greater than $n$ as209 $\mathbf{a}a$. Similarly one shows that for every $b \in \Domain N$210 there is $a\in \Domain M$ such that $\mathbf{a}a$ and $\mathbf{b}b$211 satisfy the same !!{formula}s of quantifier rank no greater than $n$,212 which completes the proof.213\end{proof}214215\begin{cor}\ollabel{cor:b-n-f}216 If $\Struct{M}$ and $\Struct{N}$ are purely relational !!{structure}s217 in a finite !!{language}, then $\Struct{M} \approx_n\Struct{N}$ if and218 only if $\Struct{M} \elemequiv[n] \Struct{N}$. In particular219 $\Struct{M} \elemequiv \Struct{N}$ if and only if for each $n$,220 $\Struct{M} \approx_n \Struct{N}$ .221\end{cor}222223\end{document}
content/model-theory/basics/dlo.tex
1% Part: first-order-logic2% Chapter: model-theory3% Section: partial-iso45\documentclass[../../../include/open-logic-section]{subfiles}67\begin{document}89\olfileid{mod}{bas}{dlo}10\section{Dense Linear Orders}1112\begin{defn}13 A \emph{dense linear ordering without endpoints} is !!a{structure}14 $\Struct{M}$ for the !!{language} containing a single 2-place15 !!{predicate}~$<$ satisfying the following sentences:16 \begin{enumerate}17 \item $\lforall[x][\lnot x < x]$;18 \item $\lforall[x][\lforall[y][\lforall[z][(x < y \lif (y < z \lif x19 <z ))]]]$;20 \item $\lforall[x][\lforall[y][(x< y \lor \eq[x][y] \lor y < x)]]$;21 \item $\lforall[x][\lexists[y][x < y]]$;22 \item $\lforall[x][\lexists[y][y < x]]$;23 \item $\lforall[x][\lforall[y][(x < y \lif \lexists[z][(x < z \land24 z < y))]]]$.25 \end{enumerate}26\end{defn}2728\begin{thm}\ollabel{thm:cantorQ}29 Any two !!{enumerable} dense linear orderings without30 endpoints are isomorphic.31\end{thm}3233\begin{proof}34 Let $\Struct{M_1}$ and $\Struct{M_2}$ be !!{enumerable} dense linear35 orderings without endpoints, with ${<_1} = \Assign{<}{M_1}$ and ${<_2} =36 \Assign{<}{M_2}$, and let $\PIso{I}$ be the set of all partial37 isomorphisms between them. $\PIso{I}$ is not empty since at least38 $\emptyset \in \PIso{I}$. We show that $\PIso{I}$ satisfies the39 Back-and-Forth property. Then $\Struct{M_1} \iso[p] \Struct{M_2}$,40 and the theorem follows by \olref[pis]{thm:p-isom1}.4142 To show $\PIso{I}$ satisfies the Forth property, let $p \in43 \PIso{I}$ and let $p(a_i) = b_i$ for $i = 1$, \dots,~$n$, and44 without loss of generality suppose $a_1 <_1 a_2 <_1 \cdots <_145 a_n$. Given $a \in \Domain{M_1}$, find $b \in \Domain{M_2}$ as46 follows:47 \begin{enumerate}48 \item if $a <_1 a_1$ let $b \in \Domain{M_2}$ be such that $b <_249 b_1$;50 \item if $a_n <_1 a$ let $b \in \Domain{M_2}$ be such that $b_n <_2 b$;51 \item if $a_i <_1 a <_1 a_{i+1}$ for some $i$, then let $b \in52 \Domain{M_2}$ be such that $b_i <_2 b <_2 b_{i+1}$.53 \end{enumerate}54 It is always possible to find a $b$ with the desired property since55 $\Struct{M_2}$ is a dense linear ordering without endpoints. Define56 $q = p \cup \{ \langle a, b \rangle \}$ so that $q \in \PIso{I}$ is57 the desired extension of $p$. This establishes the Forth58 property. The Back property is similar. So $\Struct{M_1} \iso[p]59 \Struct{M_2}$; by \olref[pis]{thm:p-isom1}, $\Struct{M_1} \iso60 \Struct{M_2}$.61\end{proof}6263\begin{prob}64 Complete the proof of \olref[mod][bas][dlo]{thm:cantorQ} by65 verifying that $\PIso{I}$ satisfies the Back property.66\end{prob}6768\begin{rem}69 Let $\Struct{S}$ be any !!{enumerable} dense linear ordering without70 endpoints. Then (by \olref{thm:cantorQ}) $\Struct{S} \iso71 \Struct{Q}$, where $\Struct{Q} = (\Rat, <)$ is the !!{enumerable}72 dense linear ordering having the set $\Rat$ of the rational numbers73 as its domain. Now consider again the !!{structure}~$\Struct{R} =74 (\Real, <)$ from \olref[thm]{remark:R}. We saw that there is75 !!a{enumerable} !!{structure}~$\Struct{S}$ such that $\Struct{R}76 \elemequiv \Struct{S}$. But $\Struct{S}$ is !!a{enumerable} dense77 linear ordering without endpoints, and so it is isomorphic (and78 hence elementarily equivalent) to the !!{structure}~$\Struct{Q}$. By79 transitivity of elementary equivalence, $\Struct{R} \elemequiv80 \Struct{Q}$. (We could have shown this directly by establishing81 $\Struct{R} \iso[p] \Struct{Q}$ by the same back-and-forth82 argument.)83\end{rem}84\end{document}