[step:Show that transitions between two such charts are affine]Suppose $(U, x)$ and $(U', y)$ are two local coordinate systems constructed as in the previous step, with a non-empty overlap $U \cap U'$. Each $dx_j$ and $dy_i$ is a closed $1$-form on its domain satisfying $d_{A^*}(dx_j) = 0$ and $d_{A^*}(dy_i) = 0$ (by the previous steps — they come from parallel coframes).
On $U \cap U'$, the $\{dx_1, \dots, dx_n\}$ are a pointwise basis of $T^*M$, so we may expand
\begin{align*}
dy_i = \sum_{j=1}^n B_{ij}\, dx_j, \qquad B_{ij} \in C^\infty(U \cap U').
\end{align*}
We claim the $B_{ij}$ are locally constant. To see this, apply $d_{A^*}$ to both sides. The Leibniz rule for $d_{A^*}$ on products of a scalar function and a $1$-form reads
\begin{align*}
d_{A^*}(B_{ij}\, dx_j) = dB_{ij} \otimes dx_j + B_{ij}\, d_{A^*}(dx_j) = dB_{ij} \otimes dx_j,
\end{align*}
using $d_{A^*}(dx_j) = 0$. Therefore
\begin{align*}
0 = d_{A^*}(dy_i) = \sum_j dB_{ij} \otimes dx_j.
\end{align*}
Since $\{dx_j\}_{j=1}^n$ is pointwise linearly independent in $T^*M$, the sum $\sum_j dB_{ij} \otimes dx_j$ vanishes in $T^*M \otimes T^*M$ only if each coefficient vanishes:
\begin{align*}
dB_{ij} = 0 \qquad \text{on } U \cap U', \quad \text{for all } i, j.
\end{align*}
Hence each $B_{ij}$ is locally constant. Restricting to a connected component of $U \cap U'$, each $B_{ij}$ equals a real constant $b_{ij}$.
On the connected component, the $1$-form $d(y_i - \sum_j b_{ij} x_j) = dy_i - \sum_j b_{ij}\, dx_j$ vanishes, so the function $y_i - \sum_j b_{ij} x_j$ is constant, equal to some $a_i \in \mathbb{R}$:
\begin{align*}
y_i = \sum_{j=1}^n b_{ij} x_j + a_i \qquad \text{on the connected component of } U \cap U'.
\end{align*}
This is an affine transformation. Since $\{dy_i\}$ and $\{dx_j\}$ are both bases of $T^*M$ on the overlap, the matrix $(b_{ij})$ is invertible, so the transition $y = Bx + a$ lies in the affine group $\mathrm{GL}_n(\mathbb{R}) \ltimes \mathbb{R}^n$.[/step]