What is the meaning of the ideal class group?

Everyone says the class group "measures" the failure of unique factorization, but the only sense of measuring that failure is exactly what you noticed: class number 1 vs. class number greater than 1. That is the only justification for such terms as "measuring the failure". Edit: By "only sense" I mean that the people who teach about ideal class groups in algebraic number theory classes have no grander meaning in mind than the distinction $h=1$ and $h > 1$ when they speak about class groups measuring the failure of unique factorization. There are descriptions of the structure of the ideal class group in terms of how elements factors into other elements (see the link in Bill Dubuque's comment above), but that is not what people have in mind when they speak about ideal class groups "measuring the failure" of unique factorization.

This is typical in math: you construct a group (or vector space, etc.) for each object in some family and the group is nontrivial iff some nice property doesn't hold. Let's call the nice property "wakalixes". Then you say to the world "this group measures the failure of wakalixes" and that leads generations of students to ask "What do you mean it measures the failure? What does having one nontrivial wakalixes group or some other nonisomorphic nontrivial wakalixes group actually mean?" And the answer is "All that means is that wakalixes fails in both cases." There is no other meaning intended in geneal. In number theory, topology, etc., when you try to do something and run into a gadget that is trivial when you can do what you want and nontrivial when you can't do what you want, you call the gadget "a measure of the failure" to do what you want or "an obstruction" to do what you want.

Ideal class groups have interpretations and applications that are not directly about the failure or not of unique factorization, and such applications are much more important for the role of ideal class groups in number theory than trying to intuit some down to earth meaning about a class group being cyclic of order $4$.

Maybe the following point will interest you. If you replace $\mathcal O_K$ with $\mathcal O_K[1/\alpha]$ where $\alpha$ is a nonzero element of $\mathcal O_K$ such that the ideal class group of $K$ is generated by ideal classes of the prime ideals dividing $(\alpha)$, then $\mathcal O_K[1/\alpha]$ is a PID. For instance, $\mathbf Z[\sqrt{-5}]$ has class number 2 generated by the ideal class of the prime ideal $\mathfrak p = (2,1+\sqrt{-5})$. We have $\mathfrak p^2 = (2)$ and $\mathbf Z[\sqrt{-5},1/2]$ is a PID. More generally, for a ring of $S$-integers $\mathcal O_{K,S}$, where $S$ is a finite set of places of $K$ containing all the archimedean places, the ideal class group is a quotient group of the ideal class group of $\mathcal O_K$ (details are in the answer here), so by putting into $S$ a suitable set of primes you can gradually kill off the whole class group and you're left with a PID. In this way, the class group tells you how to enlarge $\mathcal O_K$ in a mild way to recover unique factorization while maintaining other nice properties (like a finitely generated unit group, which would not happen if you did something extreme and just replaced $\mathcal O_K$ by $K$).

When I was a grad student I was really bothered by encountering the same slogan ("it measures the failure...") in algebraic topology with homology groups. I asked a postdoc "If I told you $H_{37}(X)$ has a particular value, does that automatically mean something to you?" And the postdoc said "Nope."


Maybe you can adopt another point of view: the class group measures the failure of ideals being principal.

This is more meaningful:

  • if the class group is $\Bbb Z/2\times\Bbb Z/2$, then there are ideals that are not principal, but the square of any ideal is principal.
  • if the class group of $\Bbb Z/4$, then it is even possible that the square of an ideal is still not principal.

Note however that the class group does not measure the number of generators needed for an ideal, as any ideal (of an integer ring) can be generated by two elements.


To expand more on the unique factorization part:

Let us recall that the name "ideal" comes from "ideal numbers", which were invented by Kummer when he noticed that unique factorization does not hold for the integer ring of a cyclotomic field (which was used in a famous "proof" of Fermat's last theorem).

Kummer then found that, if we add some more "numbers" to the integer ring, then we can have unique factorization. Today we understand that Kummer was talking about the unique factorization of ideals of a Dedekind domain.

These extra "numbers" are what he called "ideal numbers". Note that usual numbers (i.e. elements of the integer ring) can be viewed as ideal numbers by identifying a number with the principal ideal it generates.

It then makes sense to say that the class group measures failure of unique factorization: the class group measures "how many" extra ideal numbers should be added, so as to achieve unique factorization.

E.g. if the class group has order $4$, then we should add three times more ideal numbers to the usual numbers.

Moreover, the group structure of the class group reflects "how" the ideal numbers should be added into usual numbers. This is a bit harder to visualize, but imagine something like $\Lambda = \Bbb Z(1, 0)\oplus \Bbb Z(0, 1)$, and two ways of "adding three times more numbers": $\Lambda_1 = \Bbb Z(\frac 1 4, 0) \oplus \Bbb Z(0, 1)$ vs $\Lambda_2 = \Bbb Z(\frac 1 2, 0) \oplus \Bbb Z(0, \frac 1 2)$.