  We associate a canonical Hecke pair of semidirect product groups to the ring
inclusion of the algebraic integers $\oo$ in a number field $\kk$, and we
construct a C*-dynamical system on the corresponding Hecke C*-algebra,
analogous to the one constructed by Bost and Connes for the inclusion of the
integers in the rational numbers. We describe the structure of the resulting
Hecke C*-algebra as a semigroup crossed product and then, in the case of class
number one, analyze the equilibrium (KMS) states of the dynamical system. The
extreme KMS$_\beta$ states at low-temperature exhibit a phase transition with
symmetry breaking that strongly suggests a connection with class field theory.
Indeed, for purely imaginary fields of class number one, the group of
symmetries, which acts freely and transitively on the extreme KMS$_\infty$
states, is isomorphic to the Galois group of the maximal abelian extension over
the field. However, the Galois action on the restrictions of extreme
KMS$_\infty$ states to the (arithmetic) Hecke algebra over $\kk$, as given by
class-field theory, corresponds to the action of the symmetry group if and only
if the number field $\kk$ is $\Q$.
