[step:Define the restricted form and the vertical fundamental vectors]
Let $\iota: Q \to P$ denote the inclusion map. Define
\begin{align*}
\omega_Q := \iota^*\omega \in \Omega^1(Q;\mathfrak g).
\end{align*}
Equivalently, for $q \in Q$ and $v \in T_qQ$,
\begin{align*}
(\omega_Q)_q(v) = \omega_q(d\iota_q(v)).
\end{align*}
Since $Q$ is an embedded principal $H$-subbundle of $P$, we identify $T_qQ$ with its image $d\iota_q(T_qQ) \subset T_qP$.
Let $\exp_G: \mathfrak g \to G$ and $\exp_H: \mathfrak h \to H$ denote the Lie group exponential maps of $G$ and $H$, respectively. For each $\xi \in \mathfrak g$, let $\xi_P: P \to TP$ denote the fundamental vector field on $P$ generated by the right $G$-action. At $p \in P$, it is given by
\begin{align*}
(\xi_P)_p = \frac{d}{dt}\Big|_{t=0} p\exp_G(t\xi).
\end{align*}
For each $\eta \in \mathfrak h$, let $\eta_Q: Q \to TQ$ denote the fundamental vector field on $Q$ generated by the right $H$-action. At $q \in Q$, it is given by
\begin{align*}
(\eta_Q)_q = \frac{d}{dt}\Big|_{t=0} q\exp_H(t\eta).
\end{align*}
Because the $H$-action on $Q$ is the restriction of the $G$-action on $P$ and the differential of the inclusion $H \hookrightarrow G$ identifies $\mathfrak h$ with a Lie subalgebra of $\mathfrak g$, we have
\begin{align*}
d\iota_q((\eta_Q)_q) = (\eta_P)_q
\end{align*}
for every $q \in Q$ and every $\eta \in \mathfrak h$.
[claim:Identify vertical tangent spaces with fundamental vectors]
For every $q \in Q$, the maps
\begin{align*}
\theta_{P,q}: \mathfrak g \to \ker(d\pi_q), \quad \zeta \mapsto (\zeta_P)_q
\end{align*}
and
\begin{align*}
\theta_{Q,q}: \mathfrak h \to \ker(d(\pi|_Q)_q), \quad \eta \mapsto (\eta_Q)_q
\end{align*}
are linear isomorphisms. Moreover $d\iota_q \circ \theta_{Q,q} = \theta_{P,q}|_{\mathfrak h}$.
[/claim]
[proof]
This is the standard vertical-space identification for a principal bundle. For $P$, the orbit map $G \to \pi^{-1}(\pi(q))$, $g \mapsto qg$, is a diffeomorphism because the right $G$-action is free and transitive on each fiber. Its differential at the identity element $e_G \in G$ identifies $T_{e_G}G = \mathfrak g$ with $T_q(\pi^{-1}(\pi(q))) = \ker(d\pi_q)$, and this differential is exactly $\theta_{P,q}$. The same argument applied to the principal $H$-bundle $Q \to M$ gives the isomorphism $\theta_{Q,q}: \mathfrak h \to \ker(d(\pi|_Q)_q)$. Finally, the equality $\iota(qh) = \iota(q)h$ for $h \in H$ differentiates at $h = e_H$ in the direction $\eta \in \mathfrak h$ to give $d\iota_q((\eta_Q)_q) = (\eta_P)_q$, which is the asserted intertwining identity.
[/proof]
[/step]