Proof (Mackey's restriction formula)

The partition of $G$ into double cosets (orbits of $H\times K \actson G$) $$ \begin{align*} G = \bigsqcup_{HwK\in H\backslash G/K} HwK \end{align*} $$ results in the decomposition $$ \begin{align*} \C[G] = \bigoplus_{HwK\in H\backslash G/K} \C[HwK] \end{align*} $$ into $(H\times K)$-invariant subspaces. Therefore $$ \begin{align*} \Hom_H(\C[G], V) = \bigoplus_{KwH\in K\backslash G/H} \Hom_H(\C[HwK], V) \end{align*} $$ as $K$-spaces. It suffices to show there is a $K$-isomorphism $$ \begin{align*} ψ: \Hom_H(\C[HwK], V) \xrightarrow{\sim} \Hom_{K \cap w\inv Hw}(\C[K], \prescript{w\inv}{}V). \end{align*} $$

Explicitly write $ρ: H\to \GL(V)$ for the $H$-action on $V$. Define $$ \begin{align*} ψ: θ \mapsto (e_k \mapsto θ(e_{wk})) \end{align*} $$ and extend linearly.

Construct its inverse: $$ \begin{align*} \bar ψ: \Hom_{K\cap w\inv Hw}(\C[K], \prescript{w\inv}{}V) &\to \Hom_H(\C[HwK], V) \\ ϕ &\mapsto (e_{hwk} \mapsto ρ(h)\,ϕ(e_k)). \end{align*} $$