[step:Define the projection and right action and verify the principal bundle axioms]The map
\begin{align*}
\pi_g: P_g \to M
\end{align*}
is smooth because, in the chart $\Psi_i$, it is the projection
\begin{align*}
U_i \times G \to U_i,
\qquad
(p,h)\mapsto p.
\end{align*}
Define a right action
\begin{align*}
P_g \times G \to P_g
\end{align*}
by
\begin{align*}
[p,h]_i \cdot a := [p,ha]_i.
\end{align*}
This is well-defined: if $[p,h]_j=[p,g_{ij}(p)h]_i$, then
\begin{align*}
[p,ha]_j=[p,g_{ij}(p)ha]_i=[p,(g_{ij}(p)h)a]_i.
\end{align*}
The [group action](/page/Group%20Action) identities follow from associativity and the identity element in $G$:
\begin{align*}
([p,h]_i \cdot a)\cdot b=[p,(ha)b]_i=[p,h(ab)]_i=[p,h]_i\cdot(ab)
\end{align*}
and
\begin{align*}
[p,h]_i\cdot e=[p,he]_i=[p,h]_i.
\end{align*}
The action is smooth because, in each chart $\Psi_i$, it is the smooth map
\begin{align*}
(U_i \times G)\times G \to U_i \times G,
\qquad
((p,h),a)\mapsto (p,ha).
\end{align*}
For each $i \in I$, the map $\Psi_i$ is a $G$-equivariant local trivialization of $\pi_g$ over $U_i$, since
\begin{align*}
\pi_g(\Psi_i(p,h))=p
\end{align*}
and
\begin{align*}
\Psi_i(p,h)\cdot a=[p,ha]_i=\Psi_i(p,ha).
\end{align*}
The right action is free and transitive on every fibre because, under $\Psi_i$, the fibre over $p$ is identified with $\{p\}\times G$ and the action is ordinary right multiplication on $G$. Hence $\pi_g: P_g \to M$ is a smooth principal right $G$-bundle.[/step]