[guided]Fix a natural number $n \in \omega$. The goal is to prove that below the master condition $q$, the $n$th value of $\dot{f}$ cannot reach $\delta = M \cap \omega_1$.
Start with an arbitrary condition $s \leq q$. We cannot use the set $D_n$ as a [dense subset](/page/Dense%20Subset) of all of $P$, because the original condition $p$ only controls extensions below $p$. Instead we use the dense set $E_n$, whose conditions either are incompatible with $p$ or decide the value of $\dot{f}(\check{n})$. Since $s \leq q \leq p$, the condition $s$ is compatible with $p$. Density of $E_n$ gives a strengthening $t \leq s$ with $t \in E_n$. Because $t \leq s \leq p$, the condition $t$ is compatible with $p$, so $t$ cannot belong to the incompatible-with-$p$ part of $E_n$. Therefore $t \in D_n$, and by the definition of $D_n$ there is an ordinal $\alpha < \omega_1^V$ such that
\begin{align*}
t \Vdash \dot{f}(\check{n}) = \check{\alpha}.
\end{align*}
Now we use properness through the master condition. Since $E_n \in M$ is dense in $P$ and $q$ is $(M,P)$-generic, the set $E_n \cap M$ is predense below $q$. Because $t \leq q$, there is a condition $r \in E_n \cap M$ compatible with $t$.
The compatibility with $t$ forces $r$ to be a deciding condition rather than an incompatible condition. Indeed, $t \leq p$, so any common extension of $r$ and $t$ is also a common extension of $r$ and $p$. Thus $r$ is compatible with $p$, and hence $r$ is not in the incompatible-with-$p$ part of $E_n$. Therefore $r \in D_n \cap M$. Since $r \in D_n$, in $H_\theta$ there exists an ordinal $\beta < \omega_1$ such that
\begin{align*}
r \Vdash \dot{f}(\check{n}) = \check{\beta}.
\end{align*}
The parameters $r$, $P$, $\dot{f}$, and $n$ all belong to $M$, so elementarity of $M \prec H_\theta$ gives such a witness $\beta$ inside $M$. Therefore $\beta \in M \cap \omega_1 = \delta$, so $\beta < \delta$.
Because $r$ and $t$ are compatible, choose a common extension $u \leq r,t$. Then $u$ extends $t$, so
\begin{align*}
u \Vdash \dot{f}(\check{n}) = \check{\alpha}.
\end{align*}
Also $u$ extends $r$, so
\begin{align*}
u \Vdash \dot{f}(\check{n}) = \check{\beta}.
\end{align*}
A condition cannot force the same name for an ordinal to be two distinct ground-model ordinals. Hence $\alpha=\beta$, and therefore $\alpha < \delta$.
We have shown that every condition $s \leq q$ has a stronger condition forcing $\dot{f}(\check{n}) < \check{\delta}$. By the density characterization of forcing, this is exactly the forcing assertion
\begin{align*}
q \Vdash \dot{f}(\check{n}) < \check{\delta}.
\end{align*}[/guided]