A pathconnected compact abelian matrix group $H$ is a torus (i.e. it's isomorphic to $U{(1)}^{n}$ for some $n$ ).
Optional: Compact connected abelian groups are tori
Compact connected abelian groups are tori
This video is optional.
Proof
Since $H$ is abelian, we have $$\mathrm{exp}({X}_{1})\mathrm{exp}({X}_{2})=\mathrm{exp}({X}_{1}+{X}_{2})\text{for all}{X}_{1},{X}_{2}\in \U0001d525.$$ Therefore the exponential map is a group homomorphism $\mathrm{exp}:\U0001d525\to H$ where we think of $\U0001d525$ as ${\mathbf{R}}^{n}$ with addition.
Here's how the proof will go:

We'll prove that exp is surjective.

The first isomorphism theorem for groups will then show that $H=\U0001d525/\mathrm{ker}\mathrm{exp}$ .

Then we will identify $\mathrm{ker}\mathrm{exp}\subset \U0001d525$ with ${\mathbf{Z}}^{n}\subset {\mathbf{R}}^{n}$ .
Why is exp surjective? Because $H$ is pathconnected, we know from an earlier exercise that $H$ is generated by any neighbourhood of the identity matrix. In particular, $H$ is generated by the image of an exponential chart. We can always add generators to a generating set to get a bigger generating set, so $H$ is generated by $\mathrm{exp}(\U0001d525)$ . But $\mathrm{exp}(\U0001d525)$ is a subgroup, as we saw in the last video, so the subgroup generated by $\mathrm{exp}(\U0001d525)$ is $\mathrm{exp}(\U0001d525)$ itself, therefore $H=\mathrm{exp}(\U0001d525)$ , and the exponential map is surjective.
We now identify the kernel of the exponential map.
Take $k$
linearly independent vectors ${v}_{1},\mathrm{\dots},{v}_{k}$
and take all possible integer linear combinations of them to get a subgroup $$\mathrm{\Lambda}=\{\sum _{i=1}^{k}{a}_{i}{v}_{i}:{a}_{i}\in \mathbf{Z}\}\subset {\mathbf{R}}^{n}.$$
A subgroup of this form is called a
${\mathbf{Z}}^{n}\subset {\mathbf{R}}^{n}$ is a lattice, taking ${v}_{i}$ to be the $i$ th standard basis vector.
$\mathrm{ker}\mathrm{exp}\subset \U0001d525$ is a lattice of rank $n$ (where $n=dim\U0001d525$ ).
Once we have established this, we are done. To see why, consider the basis of $\U0001d525$ given by the ${v}_{i}$ s. This identifies $\U0001d525$ with ${\mathbf{R}}^{n}$ in such a way that $\mathrm{ker}\mathrm{exp}$ is identified with ${\mathbf{Z}}^{n}$ . Therefore $H=\U0001d525/\mathrm{ker}\mathrm{exp}$ is isomorphic to ${\mathbf{R}}^{n}/{\mathbf{Z}}^{n}={(\mathbf{R}/\mathbf{Z})}^{n}=U{(1)}^{n}$ .
Note that $U(1)=\mathbf{R}/\mathbf{Z}$ because we have a surjective homomorphism $\mathbf{R}\to U(1)$ , $\theta \mapsto {e}^{2\pi i\theta}$ , with kernel $\mathbf{Z}$ , so the first isomorphism theorem tells us $U(1)\cong \mathbf{R}/\mathbf{Z}$ .
The fact that the rank must be $n$ is easy to see once you know that $\mathrm{ker}\mathrm{exp}$ is a lattice. If the rank were strictly less than $n$ then we would get $H\cong {(\mathbf{R}/\mathbf{Z})}^{k}\times {\mathbf{R}}^{nk}$ , so $H$ would fail to be compact because ${\mathbf{R}}^{nk}$ is not compact unless $k=n$ .
We will need to assume the following lemma:
A discrete subgroup of ${\mathbf{R}}^{n}$ is a lattice.
The proof of this lemma would take us too far away from the main business of the course. You can find it in Arnold's book "Mathematical Methods of Classical Mechanics" (on page 276 in my version of the book, where he is proving the (Arnold)Liouville theorem on integrable systems).
We will just define discrete subgroups and prove that $\mathrm{ker}\mathrm{exp}$ is discrete.
A subgroup $\mathrm{\Gamma}\subset {\mathbf{R}}^{n}$
is
In other words, the points of $\mathrm{\Gamma}$ are sufficiently spaced out that you can separate them by balls.
An example of something that is not discrete would be $\mathbf{Q}\subset \mathbf{R}$ : any ball (interval) contains infinitely many rational numbers.
By constrast, the integers $\mathbf{Z}\subset \mathbf{R}$ are discrete: an interval of length $$ containing an integer contains only one integer.
$\mathrm{ker}\mathrm{exp}$ is a discrete subgroup of $\U0001d525$ .
The origin $0\in \U0001d525$ is in $\mathrm{ker}\mathrm{exp}$ , so let's start by finding a ball $B\subset \U0001d525$ such that $B\cap \mathrm{ker}\mathrm{exp}=\{0\}$ . We can take $B$ to be the domain of an exponential chart.
Remember that we have the exponential map $\mathrm{exp}:\U0001d525\to H$ and that we can find neighbourhoods $U\subset \U0001d525$ of the origin and $V\subset H$ of the identity such that ${\mathrm{exp}}_{U}:U\to V$ is bijective. In particular, ${\mathrm{exp}}_{U}$ is injective, so $\mathrm{ker}\mathrm{exp}\cap U=\{0\}$ (i.e. $0$ is the only possible preimage of the identity in this neighbourhood).
For a general $X\in \mathrm{ker}\mathrm{exp}$ , we will take $B=\{X+Y:Y\in U\}$ . This works because $$B\cap \mathrm{ker}\mathrm{exp}=\{X+Y:Y\in U\text{and}\mathrm{exp}(X+Y)=I\},$$ but $\mathrm{exp}(X+Y)=\mathrm{exp}(X)\mathrm{exp}(Y)=\mathrm{exp}(Y)$ because $H$ is abelian and $X\in \mathrm{ker}\mathrm{exp}$ , so we deduce that $Y\in \mathrm{ker}\mathrm{exp}$ . Since $Y\in U$ , this implies $Y=0$ . Therefore $$B\cap \mathrm{ker}\mathrm{exp}=\{X\}.$$
Summary
This final lemma shows that $\mathrm{ker}\mathrm{exp}$ is a discrete subgroup of $\U0001d525$ , so by the previous (unproven) lemma, it is a lattice (which we saw has rank $n$ ). This implies that $H=\U0001d525/\mathrm{ker}\mathrm{exp}$ is isomorphic to $U{(1)}^{n}$ as required.