[step:Complete the local spanning sections to an adapted frame of $E$]Assume conversely that the stated local spanning condition holds. Let $\pi:E\to M$ denote the bundle projection, and let $r:=\operatorname{rank}E$ denote the fibre dimension of $E$. Fix $p\in M$. Choose an open neighbourhood $U\subset M$ of $p$ and sections $s_1,\dots,s_k\in \Gamma(U,E)$ which are fibrewise linearly independent and satisfy
\begin{align*}
S_q=\operatorname{span}\{s_1(q),\dots,s_k(q)\}
\end{align*}
for every $q\in U$.
If $k=0$, then the hypothesis says $S_q=\{0\}$ on a neighbourhood of every point $p\in M$. These local descriptions identify $S$ with the zero section of $E$, giving the rank $0$ smooth vector subbundle. Hence, for the rest of the converse, assume $k>0$.
Shrink $U$, if necessary, to an open neighbourhood of $p$ on which the vector bundle $E$ admits a smooth local frame, and continue to denote this smaller neighbourhood by $U$. Choose a smooth local frame $e_1,\dots,e_r\in \Gamma(U,E)$ of $E$ over $U$. For $1\le i\le k$, write
\begin{align*}
s_i(q)=\sum_{a=1}^{r} A_{ai}(q)e_a(q),
\end{align*}
where each coefficient function $A_{ai}:U\to \mathbb{R}$ is smooth. Since $s_1(p),\dots,s_k(p)$ are linearly independent in $E_p$, the $r\times k$ matrix $A(p)=(A_{ai}(p))$ has rank $k$. Hence some $k\times k$ minor is nonzero at $p$. After relabelling the frame $e_1,\dots,e_r$, assume this minor is
\begin{align*}
B(q):=(A_{ai}(q))_{1\le a,i\le k}.
\end{align*}
Since $\det B:U\to \mathbb{R}$ is smooth and $\det B(p)\ne 0$, after replacing $U$ by the open neighbourhood
\begin{align*}
V:=\{q\in U:\det B(q)\ne 0\}
\end{align*}
of $p$, the matrix $B(q)$ is invertible for every $q\in V$.
Define sections $f_1,\dots,f_r\in \Gamma(V,E)$ by
\begin{align*}
f_i:=s_i\quad \text{for }1\le i\le k,\qquad f_a:=e_a|_V\quad \text{for }k<a\le r.
\end{align*}
Relative to the frame $e_1,\dots,e_r$, the change-of-frame matrix from $(e_1,\dots,e_r)$ to $(f_1,\dots,f_r)$ has determinant $\det B(q)$ at each $q\in V$. Therefore this determinant is nonzero on $V$, so $f_1(q),\dots,f_r(q)$ form a basis of $E_q$ for every $q\in V$. Thus $f_1,\dots,f_r$ is a smooth local frame of $E$ over $V$ adapted to $S$, with
\begin{align*}
S_q=\operatorname{span}\{f_1(q),\dots,f_k(q)\}
\end{align*}
for all $q\in V$.[/step]