[step:Translate names recursively and identify the generic extensions]First suppose $G \subset P$ is $P$-generic over $M$ and $H$ is generated from $G$ by
\begin{align*}
H = \{q \in Q : \exists p \in G \text{ such that } i(p) \le_Q q\}.
\end{align*}
We record the membership equivalence
\begin{align*}
p \in G \quad \Longleftrightarrow \quad i(p) \in H.
\end{align*}
The forward implication follows from reflexivity of $\le_Q$. For the reverse implication, assume $i(p) \in H$. We first show that $p$ is compatible with every member of $G$. Let $g \in G$. Since $i(g) \in H$ by the forward implication and $i(p) \in H$ by assumption, downward directedness of $H$ gives $u \in H$ such that
\begin{align*}
u \le_Q i(g)
\end{align*}
and
\begin{align*}
u \le_Q i(p).
\end{align*}
Thus $i(g)$ and $i(p)$ are compatible in $Q$. Since $i$ preserves incompatibility, its contrapositive gives that $g$ and $p$ are compatible in $P$.
Define
\begin{align*}
D_p := \{r \in P : r \le_P p \text{ or } r \perp_P p\}.
\end{align*}
Since $p \in P \in M$ and $M$ is transitive, $p \in M$; hence Separation in $M$ gives $D_p \in M$. The set $D_p$ is dense in $P$: for any $r_0 \in P$, either $r_0 \perp_P p$, in which case $r_0 \in D_p$, or $r_0$ is compatible with $p$, in which case there is $r_1 \in P$ such that $r_1 \le_P r_0$ and $r_1 \le_P p$, so $r_1 \in D_p$ below $r_0$. By $P$-genericity, choose $r \in G \cap D_p$. The alternative $r \perp_P p$ is impossible because the preceding paragraph shows that every member of $G$ is compatible with $p$. Therefore $r \le_P p$. Since $G$ is upward closed and $r \in G$, it follows that $p \in G$.
Define the forward translation on $P$-names by recursion:
\begin{align*}
\widehat{\tau} := \{(\widehat{\sigma}, i(p)) : (\sigma,p) \in \tau\}.
\end{align*}
Here $\tau$ and $\sigma$ range over $P$-names, and $\widehat{\tau}$ is a $Q$-name. The recursion is legitimate in $M$: if $\tau \in M$ is a $P$-name, then all lower-rank translated names belong to $M$ by the induction hypothesis, and Replacement in $M$ together with $i,P,Q \in M$ gives $\widehat{\tau} \in M$. A rank induction on $P$-names proves that $\widehat{\tau}^{\,H} = \tau^G$ for every $P$-name $\tau$. Indeed, assuming the equality for all names of smaller rank than $\tau$, we have
\begin{align*}
\widehat{\tau}^{\,H} = \{\widehat{\sigma}^{\,H} : \exists p \in P \text{ such that } (\sigma,p) \in \tau \text{ and } i(p) \in H\}.
\end{align*}
Using the membership equivalence and the induction hypothesis, this becomes
\begin{align*}
\widehat{\tau}^{\,H} = \{\sigma^G : \exists p \in G \text{ such that } (\sigma,p) \in \tau\} = \tau^G.
\end{align*}
Therefore $M[G] \subset M[H]$.
For the reverse inclusion for this same pair $(G,H)$, use the backward translation on $Q$-names defined recursively by
\begin{align*}
\rho^\flat := \{(\sigma^\flat,p) : \exists q \in Q \text{ such that } (\sigma,q) \in \rho \text{ and } i(p) \le_Q q\}.
\end{align*}
As above, this recursion is legitimate in $M$ because $i,P,Q \in M$. A rank induction on $Q$-names, using the defining equivalence $q \in H \Longleftrightarrow \exists p \in G \text{ such that } i(p) \le_Q q$, gives $(\rho^\flat)^G = \rho^H$ for every $Q$-name $\rho$. Hence $M[H] \subset M[G]$, and therefore $M[G]=M[H]$ in the forward construction.
Now suppose conversely that $H \subset Q$ is $Q$-generic over $M$ and $G$ is the upward closure of the directed base $G_0$ constructed above. First we prove the preimage equivalence
\begin{align*}
p \in G \quad \Longleftrightarrow \quad i(p) \in H
\end{align*}
for every $p \in P$. If $p \in G$, choose $p_0 \in G_0$ such that $p_0 \le_P p$. By the definition of $G_0$, choose $h \in H$ such that $h \le_Q i(p_0)$. Since $i$ is order-preserving, $i(p_0) \le_Q i(p)$, and hence $h \le_Q i(p)$. Upward closure of $H$ gives $i(p) \in H$. Conversely, if $i(p) \in H$, then the same condition $i(p)$ witnesses $p \in G_0$, so $p \in G$.
Next we prove that $H$ is exactly the image-generated filter from $G$:
\begin{align*}
q \in H \quad \Longleftrightarrow \quad \exists p \in G \text{ such that } i(p) \le_Q q.
\end{align*}
For the reverse implication, if $p \in G$ and $i(p) \le_Q q$, then the preimage equivalence gives $i(p) \in H$, and upward closure of $H$ gives $q \in H$.
For the forward implication, fix $q \in H$. Define
\begin{align*}
E_q := \{p \in P : i(p) \le_Q q \text{ or } i(p) \perp_Q q\}.
\end{align*}
Since $q \in Q \in M$ and $M$ is transitive, $q \in M$; hence Separation in $M$ gives $E_q \in M$ from the parameters $P$, $Q$, $i$, and $q$. We prove that $E_q$ is dense in $P$. Let $p_0 \in P$. If $i(p_0) \perp_Q q$, then $p_0 \in E_q$. Otherwise choose $s \in Q$ such that
\begin{align*}
s \le_Q i(p_0)
\end{align*}
and
\begin{align*}
s \le_Q q.
\end{align*}
By the lifting clause for the dense embedding applied to $s \le_Q i(p_0)$, choose $p_1 \in P$ such that
\begin{align*}
p_1 \le_P p_0
\end{align*}
and
\begin{align*}
i(p_1) \le_Q s.
\end{align*}
Then $i(p_1) \le_Q q$, so $p_1 \in E_q$. Thus $E_q$ is dense in $P$.
Since $G$ is $P$-generic over $M$, choose $p \in G \cap E_q$. The alternative $i(p) \perp_Q q$ is impossible because $p \in G$ implies $i(p) \in H$ by the preimage equivalence, while $q \in H$, and downward directedness of $H$ would give a common strengthening of $i(p)$ and $q$. Therefore $i(p) \le_Q q$, with $p \in G$, proving the forward implication.
The recursive name translations now work without invoking any external forcing-equivalence theorem. For every $P$-name $\tau$, the forward translation
\begin{align*}
\widehat{\tau} := \{(\widehat{\sigma}, i(p)) : (\sigma,p) \in \tau\}
\end{align*}
is a $Q$-name in $M$ by rank recursion and Replacement in $M$. The rank induction already given for the forward construction applies verbatim, using $p \in G \Longleftrightarrow i(p) \in H$, and gives $\widehat{\tau}^{\,H}=\tau^G$. Thus $M[G] \subset M[H]$.
For every $Q$-name $\rho$, define the backward translation
\begin{align*}
\rho^\flat := \{(\sigma^\flat,p) : \exists q \in Q \text{ such that } (\sigma,q) \in \rho \text{ and } i(p) \le_Q q\}.
\end{align*}
This is a $P$-name in $M$ by rank recursion, Separation, and Replacement in $M$. A rank induction on $Q$-names, using $q \in H \Longleftrightarrow \exists p \in G \text{ such that } i(p) \le_Q q$, gives $(\rho^\flat)^G = \rho^H$ for every $Q$-name $\rho$. Hence $M[H] \subset M[G]$. Combining the two inclusions gives
\begin{align*}
M[G] = M[H].
\end{align*}
This completes the proof.[/step]