[guided]We now verify the defining principal-bundle action, rather than only the local triviality.
Define
\begin{align*}
\rho:\operatorname{Fr}_{SO}(E,h)\times SO(r)\to \operatorname{Fr}_{SO}(E,h)
\end{align*}
by changing the frame on the right:
\begin{align*}
\rho((x,u),Q)=\left(x,\left(\sum_{j=1}^{r}u_jQ_{j1},\dots,\sum_{j=1}^{r}u_jQ_{jr}\right)\right).
\end{align*}
Here $u=(u_1,\dots,u_r)$ is a positively oriented $h_x$-orthonormal basis of $E_x$, and $Q=(Q_{ij})$ is a matrix in $SO(r)$. Orthogonality of $Q$ implies that the new basis is still $h_x$-orthonormal: changing coordinates by an orthogonal matrix preserves the Euclidean [inner product](/page/Inner%20Product) matrix of the basis. The determinant condition $\det Q=1$ implies that the orientation is also preserved. Hence $\rho$ is well-defined as a map into $\operatorname{Fr}_{SO}(E,h)$. We also verify the action axioms. Let $I_r\in SO(r)$ denote the $r\times r$ identity matrix. Acting by $I_r$ gives
\begin{align*}
\rho((x,u),I_r)=(x,u),
\end{align*}
because the columns of $I_r$ select the original vectors $u_1,\dots,u_r$. If $Q,R \in SO(r)$, then applying $Q$ and then $R$ forms the frame whose $j$th vector is
\begin{align*}
\sum_{k=1}^{r}\left(\sum_{i=1}^{r}u_iQ_{ik}\right)R_{kj}=\sum_{i=1}^{r}u_i(QR)_{ij}.
\end{align*}
Thus $\rho(\rho((x,u),Q),R)=\rho((x,u),QR)$, where the equality uses the definition of matrix multiplication. Therefore $\rho$ is a right group action.
To check smoothness, use one of the local trivializations already constructed. Let $v=(v_1,\dots,v_r)$ be a local positively oriented orthonormal frame over $U$, and suppose
\begin{align*}
\Theta_v(x,u)=(x,A).
\end{align*}
This means that
\begin{align*}
u_j=\sum_{i=1}^{r}v_i(x)A_{ij}.
\end{align*}
After acting by $Q$, the new frame has $j$th vector
\begin{align*}
\sum_{k=1}^{r}u_kQ_{kj}=\sum_{k=1}^{r}\sum_{i=1}^{r}v_i(x)A_{ik}Q_{kj}=\sum_{i=1}^{r}v_i(x)(AQ)_{ij}.
\end{align*}
Therefore, in the chart $\Theta_v$, the action is exactly
\begin{align*}
(x,A,Q)\mapsto (x,AQ).
\end{align*}
Matrix multiplication in $SO(r)$ is smooth, so the action is smooth. The action is fibre-preserving because the point $x \in M$ is unchanged.
Finally, we verify the two algebraic conditions for a principal action. If $\rho((x,u),Q)=(x,u)$, then the right multiplication by $Q$ leaves the ordered basis $u$ unchanged. Since an ordered basis has unique coordinate expressions, the coordinate matrix must be the identity matrix $I_r$, so $Q=I_r$. Thus the action is free.
For transitivity on the fibre over $x$, take two positively oriented $h_x$-orthonormal bases $u=(u_1,\dots,u_r)$ and $w=(w_1,\dots,w_r)$ of $E_x$. Since $u$ is a basis, there is a unique real matrix $Q=(Q_{ij})$ satisfying
\begin{align*}
w_j=\sum_{i=1}^{r}u_iQ_{ij} \quad \text{for every } 1 \le j \le r.
\end{align*}
Because both bases are $h_x$-orthonormal, this coordinate matrix is orthogonal. Because both bases are positively oriented, its determinant is positive; for an orthogonal matrix the determinant is either $1$ or $-1$, so $\det Q=1$. Hence $Q \in SO(r)$, and $w=\rho((x,u),Q)$. This proves fibrewise transitivity.
The projection $\pi_{SO}$ is therefore locally trivial with fibre $SO(r)$, and the smooth right $SO(r)$ action is free and transitive on each fibre. Hence $\operatorname{Fr}_{SO}(E,h)\to M$ is a principal $SO(r)$-bundle.[/guided]