I'm trying to solve this exercise 2.5.9 of David Marker's model theory. The exercise is:
Take three L-structures: $\cal{M}_0 \subset\cal{M}_1 \subset\cal{M}_2$. If $\cal{M}_0 \prec \cal{M}_2$ and $\cal{M}_1 \prec \cal{M}_2$, then show that $\cal{M}_0 \prec \cal{M}_1$.
I know that this is the coherence property of abstract elementary classes. However, I have no idea how to prove the exercise. Does it use the compactness theorem?
Just use the definition: let $a$ be a tuple from $M_0$, and let $\varphi$ be a formula. We want to show $\mathcal{M_0}\models \varphi(a)$ iff $\mathcal{M_1}\models\varphi(a)$
Since $\mathcal{M_0}\prec \mathcal{M_2}$, and $a\in M_0$, $\mathcal{M_0}\models \varphi(a)$ iff $\mathcal{M_2}\models\varphi(a)$. Since $\mathcal{M_1}\prec \mathcal{M_2}$, and $a\in M_1$, $\mathcal{M_2}\models \varphi(a)$ iff $\mathcal{M_1}\models\varphi(a)$. And we're done!