Let $L$ be the first-order language consisting of a unary function symbol $f$ and a binary relation symbol $R$. Let $A$ denote the conjunction of the following seven formulas:
$$
\begin{aligned}
&\forall v_{0} R v_{0} v_{0} \\
&\forall v_{0} \forall v_{1}\left(\left(R v_{0} v_{1} \Leftrightarrow R v_{1} v_{0}\right) \Rightarrow v_{0} \simeq v_{1}\right) \\
&\forall v_{0} \forall v_{1} \forall v_{2}\left(\left(R v_{0} v_{1} \wedge R v_{1} v_{2}\right) \Rightarrow R v_{0} v_{2}\right) \\
&\forall v_{0} \exists v_{1}\left(f v_{1} \simeq v_{0} \wedge \forall v_{2}\left(f v_{2} \simeq v_{0} \Rightarrow v_{2} \simeq v_{1}\right)\right) \\
&\forall v_{0} \forall v_{\mathrm{I}}\left(R v_{0} v_{1} \Leftrightarrow R f v_{0} f v_{1}\right) ; \\
&\forall v_{0}\left(R v_{0} f v_{0} \wedge \neg v_{0} \simeq f v_{0}\right) ; \\
&\forall v_{0} \forall v_{1}\left(\left(\neg v_{0} \simeq v_{1} \wedge R v_{0} v_{1}\right) \Rightarrow R f v_{0} v_{1}\right)
\end{aligned}
$$
(a) Show that in every model of the formula $A$, the interpretation of the symbol $R$ is a total ordering of the base set of the model, with no least or greatest element, such that every element has a successor, i.e. a strict least upper bound.
(b) Show that $\mathbb{Z}$ with its usual ordering and the successor function is a model of $A$.
Let $X=\langle B, \leq\rangle$ be an arbitrary totally ordered set. Consider the following $L$-structure $\mathcal{M}_{X}$ :
- the base set of $\mathcal{M}_{X}$ is the set $B \times \mathbb{Z}$;
- the interpretation of $R$ in $\mathcal{M}_{X}$ is the set
$$
\left\{((x, n),(y, m)) \in(B \times \mathbb{Z})^{2}: x<y \text { or }(x=y \text { and } n \leq m)\right\}
$$
- the interpretation of $f$ in $\mathcal{M}_{X}$ is the mapping that, with $(x, n) \in(B \times \mathbb{Z})$, associates $(x, n+1)$.
Show that $\mathcal{M}_{X}$ is a model of $A$.
(c) Let $\mathcal{M}=\langle M, \bar{f}, \bar{R}\rangle$ be a model of $A$. We wish to prove that there exists a totally ordered set $X$ such that $\mathcal{M}$ is isomorphic to $\mathcal{M}_{X}$.
On the base set $M$ of $\mathcal{M}$, we define two binary relations $\ll$ and $\approx$ as follows: for all $a$ and $b$ in $M$,
$a \ll b \quad$ if and only if $\quad$ for all $n \in \mathbb{N}, \mathcal{M} \vDash R f^{n} a b$
and
$a \approx b$ if and only if there exist integers $n$ and $p$
such that $\mathcal{M} \vDash f^{n} a \simeq f^{p} b$.
Show that $\ll$ is irreflexive and transitive, that $\approx$ is an equivalence relation, and that
$a \approx b$ if and only if $a \ll b$ and $b \ll a$ are both false.
Show that each equivalence class modulo $\approx$ is a substructure of $\mathcal{M}$ that is isomorphic to $\mathbb{Z}$.
Show that the relation $\ll$ allows us to define a total ordering on the set $M / \approx$ of equivalence classes.
Show that if $X=\langle C, \Delta\rangle$ is the ordered set obtained in this way, then $\mathcal{M}$ is isomorphic to $\mathcal{M}_{X}$.
(d) Show that if $X$ and $Y$ are two totally ordered sets, then $\mathcal{M}_{X}$ and $\mathcal{M}_{Y}$ are isomorphic if and only if $X$ and $Y$ are isomorphic.
Show that $A$ only has infinite models and is not categorical in any infinite cardinal.
(e) We wish to show that $\{A\}$ is a complete theory.
(1) Show that if $a$ and $b$ are two points in a model $\mathcal{M}$ of $A$ which satisfy $a \ll b$, then there exists an elementary extension $\mathcal{M}_{1}$ of $\mathcal{M}$ and a point $c$ in $\mathcal{M}_{1}$ such that
(2) Show also that if $a$ is a point of $M$, then there exists an elementary extension $\mathcal{M}_{1}$ of $\mathcal{M}$ and points $b$ and $c$ of $M_{1}$ such that
$$
b \ll a \text { and } a \ll c .
$$
(3) Let $\mathcal{M}$ and $\mathcal{N}$ be two models of $A$ and let $\left(a_{1}, a_{2}, \ldots, a_{n}\right)$ and $\left(b_{1}, b_{2}, \ldots, b_{n}\right)$ be two finite sequences of the same length from $\mathcal{M}$ and $\mathcal{N}$, respectively.
Consider the following condition
$$
P\left(\left(\mathcal{M}, a_{1}, a_{2}, \ldots, a_{n}\right),\left(\mathcal{N}, b_{1}, b_{2}, \ldots, b_{n}\right)\right):
$$
for every atomic formula $F\left[v_{1}, v_{2}, \ldots, v_{n}\right]$ of $L$,
$\mathcal{M} \vDash F\left[a_{1}, a_{2}, \ldots, a_{n}\right] \quad$ if and only if $\mathcal{N} \vDash F\left[b_{1}, b_{2}, \ldots, b_{n}\right]$
Show that this condition is equivalent to
for all integers $i$ and $j$ such that $1 \leq i, j \leq n$ and for all $k \in \mathbb{N}$, $\mathcal{M} \vDash a_{i} \simeq f^{k} a_{j} \quad$ if and only if $\quad \mathcal{N} \vDash b_{i} \simeq f^{k} b_{j}$, and $\mathcal{M} \vDash R a_{i} a_{j} \quad$ if and only if $\quad \mathcal{N} \vDash R b_{i} b_{j}$
(4) Assume that the condition
$$
P\left(\left(\mathcal{M}, a_{1}, a_{2}, \ldots, a_{n}\right),\left(\mathcal{N}, b_{1}, b_{2}, \ldots, b_{n}\right)\right)
$$
is satisfied.
Show that if $c$ is an element of $M$, then
- if $c \approx a_{i}$ for some index $i$ between 1 and $n$ inclusive, then there exists a point $d \in N$ such that
$$
P\left(\left(\mathcal{M}, a_{1}, a_{2}, \ldots, a_{n}, c\right),\left(\mathcal{N}, b_{1}, b_{2}, \ldots, b_{n}, d\right)\right)
$$
- if not, there exists an elementary extension $\mathcal{N}^{\prime}$ of $\mathcal{N}$ and a point $d$ of $N^{\prime}$ such that $P\left(\left(\mathcal{M}, a_{1}, a_{2}, \ldots, a_{n}, c\right),\left(\mathcal{N}^{\prime}, b_{1}, b_{2}, \ldots, b_{n}, d\right)\right)$.
(5) Use induction on the height of the formula $G\left[v_{1}, v_{2}, \ldots, v_{n}\right]$ to prove the following assertion:
If $\mathcal{M}$ and $\mathcal{N}$ are two models of $A$ and if $\left(a_{1}, a_{2}, \ldots, a_{n}\right)$ and $\left(b_{1}, b_{2}, \ldots, b_{n}\right)$ are two sequences from $\mathcal{M}$ and $\mathcal{N}$, respectively, then $P\left(\left(\mathcal{M}, a_{1}, a_{2}, \ldots, a_{n}\right),\left(\mathcal{N}, b_{1}, b_{2}, \ldots, b_{n}\right)\right)$ implies $\mathcal{M} \vDash G\left[a_{1}, a_{2}, \ldots, a_{n}\right]$ if and only if $\mathcal{N} \vDash G\left[b_{1}, b_{2}, \ldots, b_{n}\right] .$
(6) Conclude from this that $\{A\}$ is a complete theory.