A group $G$ is called directly irreducible if $G \simeq A \times B$ implies $G \simeq A$ or $G \simeq B$. I am looking for proof of the following theorem:
- If $G = G_1 \times G_2 \times \cdots \times G_n \simeq H_1 \times H_2 \times \cdots \times H_m$ , where the $G$'s and $H$'s are directly irreducible groups, and the lattice of congruences on $G$ has finite-length (it satisfies both ACC and DCC), then $n = m$ and there exists a permutation $\sigma \in S_n$ such that $G_i \simeq H_{\sigma(i)}$.
A proof, or a reference to a proof, would be much appreciated.
I have been told that there is a proof that involves the Kurosh-Ore Theorem, on modular lattices. This is specifically the proof that I am looking for, but anything will do, thanks.