[step:Realize the transported type in a forth extension]Suppose $g: C \to D$ is an elementary map between subsets $C,D \subset M$ with $|C|, |D| < \kappa$, and let $c \in M$. We construct an elementary extension of $g$ whose domain contains $c$.
If $c \in C$, take the extension to be $g$. Otherwise, define a set of formulas $p_g(y)$ over parameters from $D$ as follows. For each formula $\varphi(y,z_1,\dots,z_n)$ and each tuple $(a_1,\dots,a_n) \in C^n$, put
\begin{align*}
\varphi(y,g(a_1),\dots,g(a_n)) \in p_g(y)
\end{align*}
exactly when
\begin{align*}
M \models \varphi(c,a_1,\dots,a_n).
\end{align*}
This is the transported complete type of $c$ over $C$ along $g$.
We verify finite satisfiability in $M$. Let $\Delta(y)$ be a finite subset of $p_g(y)$. Then there are formulas $\varphi_i(y,z_{i,1},\dots,z_{i,n_i})$ and tuples $a_i \in C^{n_i}$, for $1 \le i \le r$, such that
\begin{align*}
\Delta(y)=\{\varphi_i(y,g(a_i)) : 1 \le i \le r\},
\end{align*}
where $g(a_i)$ denotes the coordinatewise image of the tuple $a_i$. By the definition of $p_g(y)$,
\begin{align*}
M \models \bigwedge_{i=1}^r \varphi_i(c,a_i).
\end{align*}
Hence
\begin{align*}
M \models \exists y\, \bigwedge_{i=1}^r \varphi_i(y,a_i).
\end{align*}
Since $g$ is elementary, applying elementarity to the displayed existential formula gives
\begin{align*}
M \models \exists y\, \bigwedge_{i=1}^r \varphi_i(y,g(a_i)).
\end{align*}
Thus every finite subset of $p_g(y)$ is realized in $M$. By the [Compactness Theorem](/page/Compactness%20Theorem), this finite satisfiability implies that $p_g(y)$ is a consistent type over $D$.
The set of parameters used by $p_g(y)$ is contained in $D$, and the number of formulas in $p_g(y)$ is at most $|L|+|D|+\aleph_0<\kappa$, using $\kappa>|L|$, $|D|<\kappa$, and regularity of $\kappa$. Therefore $p_g(y)$ is a consistent type over a parameter set of size $<\kappa$ and has size $<\kappa$. By the definition of [$\kappa$-saturation](/page/Saturated%20Model), there is $d \in M$ realizing $p_g(y)$. Since $c\notin C$, for each $a\in C$ the equality-language formula $y\ne a$ is true of $c$ over $C$, so $p_g(y)$ contains $y\ne g(a)$. Hence $d\ne g(a)$ for every $a\in C$, and therefore $d\notin D$. Define
\begin{align*}
g': C \cup \{c\} &\to D \cup \{d\}
\end{align*}
by $g'|_C=g$ and $g'(c)=d$.
Then $g'$ is elementary. Let $\psi(x_1,\dots,x_n)$ be any first-order $L$-formula and let $(u_1,\dots,u_n)\in (C\cup\{c\})^n$. Let $I=\{i: u_i=c\}$, and let $(a_1,\dots,a_r)$ list the distinct elements of $\{u_i: u_i\in C\}$. If $I=\varnothing$, preservation of $\psi$ follows from the elementarity of $g$. If $I\ne\varnothing$, form the formula $\theta(y,z_1,\dots,z_r)$ by replacing every coordinate $x_i$ with $y$ when $u_i=c$ and with the appropriate variable $z_j$ when $u_i=a_j$. The definition of $p_g(y)$ and the choice of $d$ give
\begin{align*}
M \models \theta(c,a_1,\dots,a_r)
\quad \Longleftrightarrow \quad
M \models \theta(d,g(a_1),\dots,g(a_r)).
\end{align*}
Unwinding the definition of $\theta$, this is exactly
\begin{align*}
M \models \psi(u_1,\dots,u_n)
\quad \Longleftrightarrow \quad
M \models \psi(g'(u_1),\dots,g'(u_n)).
\end{align*}
Hence $g'$ is an elementary extension of $g$ with $c$ in its domain.[/step]