[step:Use the cocycle identities to prove that the gluing relation is an equivalence relation]Let $X := \bigsqcup_{i \in I} U_i \times F$. For $i,j \in I$, $x \in U_i \cap U_j$, and $y \in F$, the relation is
\begin{align*}
(i,x,y) \sim (j,x,g_{ji}(x)(y)).
\end{align*}
Reflexivity follows from $g_{ii}(x)=\operatorname{id}_F$: for every $(i,x,y) \in X$,
\begin{align*}
(i,x,y) \sim (i,x,g_{ii}(x)(y)) = (i,x,y).
\end{align*}
For symmetry, suppose
\begin{align*}
(i,x,y) \sim (j,x,z).
\end{align*}
Then $z=g_{ji}(x)(y)$. The cocycle identity with indices $i,j,i$ gives
\begin{align*}
g_{ij}(x)\circ g_{ji}(x)=g_{ii}(x)=\operatorname{id}_F,
\end{align*}
so $g_{ij}(x)(z)=y$. Hence
\begin{align*}
(j,x,z) \sim (i,x,g_{ij}(x)(z))=(i,x,y).
\end{align*}
For transitivity, suppose
\begin{align*}
(i,x,y) \sim (j,x,z), \qquad (j,x,z) \sim (l,x,w).
\end{align*}
Then $z=g_{ji}(x)(y)$ and $w=g_{lj}(x)(z)$. Therefore
\begin{align*}
w = g_{lj}(x)(g_{ji}(x)(y)) = (g_{lj}(x)\circ g_{ji}(x))(y) = g_{li}(x)(y),
\end{align*}
where the last equality is the cocycle identity on $U_i \cap U_j \cap U_l$. Hence
\begin{align*}
(i,x,y) \sim (l,x,g_{li}(x)(y))=(l,x,w).
\end{align*}
Thus $\sim$ is an equivalence relation.[/step]