Algebraic Number Fields and Rings of Integers

⚡ Key Takeaways

An algebraic number field KK is a finite-degree field extension of Q\mathbb{Q}; its ring of integers OK\mathcal{O}_K is the set of elements satisfying monic integer polynomials. Key result: OK\mathcal{O}_K is a Dedekind domain — a Noetherian, integrally closed domain of Krull dimension 1 — so every nonzero ideal factors uniquely into prime ideals, restoring "unique factorization" at the level of ideals even when elements fail it. Applies to algebraic number theory, Diophantine equations, class field theory, and cryptography. Foundations laid by Kummer, Dedekind, and Hilbert (1840s–1900s).

💡 The Core Insight

Replace numbers by ideals. The multiplicative structure that breaks for elements (non-unique factorization) is repaired by passing to the monoid of nonzero ideals, which becomes a free abelian object on the prime ideals. The two great finiteness theorems — finiteness of the class number and Dirichlet's unit theorem — quantify how far OK\mathcal{O}_K is from being a PID and how big its group of units is. Everything in classical algebraic number theory orbits these two invariants.

Formal Statement

DefinitionNumber Field

A number field is a field KK with Q⊆K\mathbb{Q} \subseteq K and [K:Q]=n<∞[K : \mathbb{Q}] = n < \infty. The integer nn is the degree of KK. By the primitive element theorem, K=Q(θ)K = \mathbb{Q}(\theta) for some θ\theta, and θ\theta is a root of an irreducible monic polynomial mθ∈Q[x]m_\theta \in \mathbb{Q}[x] of degree nn.

DefinitionAlgebraic Integer and Ring of Integers

An element α∈K\alpha \in K is an algebraic integer if it is a root of a monic polynomial with coefficients in Z\mathbb{Z}:

1
αm+cm−1αm−1+⋯+c1α+c0=0,ci∈Z.\quad \alpha^m + c_{m-1}\alpha^{m-1} + \cdots + c_1\alpha + c_0 = 0,\qquad c_i \in \mathbb{Z}.

Derivation hint: equivalently α\alpha generates a finitely generated Z\mathbb{Z}-module Z[α]\mathbb{Z}[\alpha]; integrality is closure under such finite generation. The set of all algebraic integers in KK is the ring of integers OK\mathcal{O}_K, equal to the integral closure of Z\mathbb{Z} in KK.

The embeddings of KK into C\mathbb{C} partition into r1r_1 real embeddings σ1,…,σr1\sigma_1,\dots,\sigma_{r_1} and r2r_2 conjugate pairs of complex embeddings, with

2
n=r1+2r2.\quad n = r_1 + 2r_2 .

Derivation hint: the nn distinct roots of mθm_\theta over C\mathbb{C} are either real or come in complex-conjugate pairs; counting gives the signature (r1,r2)(r_1, r_2). For α∈K\alpha \in K with embeddings σi\sigma_i, define the norm and trace as products and sums over all nn embeddings:

3
NK/Q(α)=∏i=1nσi(α),TrK/Q(α)=∑i=1nσi(α).\quad N_{K/\mathbb{Q}}(\alpha) = \prod_{i=1}^{n}\sigma_i(\alpha), \qquad \mathrm{Tr}_{K/\mathbb{Q}}(\alpha) = \sum_{i=1}^{n}\sigma_i(\alpha).

Derivation hint: these are the determinant and trace of the Q\mathbb{Q}-linear multiplication-by-α\alpha map on KK; both lie in Q\mathbb{Q}, and in Z\mathbb{Z} when α∈OK\alpha \in \mathcal{O}_K. The discriminant of an integral basis {ω1,…,ωn}\{\omega_1,\dots,\omega_n\} of OK\mathcal{O}_K is

4
dK=det⁡(TrK/Q(ωiωj))i,j=1n=det⁡(σi(ωj))2.\quad d_K = \det\big(\mathrm{Tr}_{K/\mathbb{Q}}(\omega_i\omega_j)\big)_{i,j=1}^{n} = \det(\sigma_i(\omega_j))^2 .

Derivation hint: the trace form matrix factors as MTMM^TM where M=(σi(ωj))M=(\sigma_i(\omega_j)), so its determinant is the square of det⁡M\det M; nonvanishing follows from separability of K/QK/\mathbb{Q}.

TheoremStructure of OK\mathcal{O}_K

Let KK be a number field of degree nn. Then: 1. OK\mathcal{O}_K is a free Z\mathbb{Z}-module of rank nn; it admits an integral basis {ω1,…,ωn}\{\omega_1,\dots,\omega_n\} with OK=Zω1⊕⋯⊕Zωn\mathcal{O}_K = \mathbb{Z}\omega_1 \oplus \cdots \oplus \mathbb{Z}\omega_n. 2. OK\mathcal{O}_K is a Dedekind domain: Noetherian, integrally closed, and of Krull dimension 1 (every nonzero prime ideal is maximal). 3. Every nonzero ideal a⊆OK\mathfrak{a} \subseteq \mathcal{O}_K factors uniquely as a product of prime ideals,

5
a=p1e1 p2e2⋯pgeg,\quad \mathfrak{a} = \mathfrak{p}_1^{e_1}\,\mathfrak{p}_2^{e_2}\cdots \mathfrak{p}_g^{e_g},

Derivation hint: Dedekind domains are precisely the domains where the monoid of nonzero ideals is free abelian on the prime ideals; uniqueness follows by localizing at each pi\mathfrak{p}_i to a DVR.

TheoremClass Number and Unit Theorems

For a number field KK of signature (r1,r2)(r_1, r_2):

(Finiteness of class number) The ideal class group Cl(K)=IK/PK\mathrm{Cl}(K) = I_K / P_K, the quotient of fractional ideals by principal fractional ideals, is finite. Its order hKh_K is the class number.

(Dirichlet's unit theorem) The unit group factors as

6
OK×≅μK×Z r1+r2−1,\quad \mathcal{O}_K^\times \cong \mu_K \times \mathbb{Z}^{\,r_1 + r_2 - 1},

Derivation hint: the logarithmic embedding sends units into a hyperplane of Rr1+r2\mathbb{R}^{r_1+r_2}; its image is a full lattice (covolume = regulator), and the kernel is the finite group of roots of unity μK\mu_K. where μK\mu_K is the finite cyclic group of roots of unity in KK.

Why It Holds / Derivation

ProofOK\mathcal{O}_K is a free Z\mathbb{Z}-module of rank nn

Step 1 — Integers form a ring. If α,β\alpha,\beta are integral, then Z[α,β]\mathbb{Z}[\alpha,\beta] is a finitely generated Z\mathbb{Z}-module. Any element of a ring that is finitely generated as a Z\mathbb{Z}-module is integral (Cayley–Hamilton applied to multiplication). Hence α±β\alpha\pm\beta, αβ\alpha\beta are integral, so OK\mathcal{O}_K is a ring.

Step 2 — OK\mathcal{O}_K spans KK over Q\mathbb{Q}. For any α∈K\alpha \in K, clearing denominators of its minimal polynomial gives mα∈OKm\alpha \in \mathcal{O}_K for some m∈Z>0m \in \mathbb{Z}_{>0}. So K=Q⊗ZOKK = \mathbb{Q}\otimes_\mathbb{Z} \mathcal{O}_K and OK\mathcal{O}_K contains a Q\mathbb{Q}-basis of KK.

Step 3 — Sandwiching by lattices. Pick a Q\mathbb{Q}-basis {β1,…,βn}⊆OK\{\beta_1,\dots,\beta_n\}\subseteq \mathcal{O}_K of KK. The trace form is nondegenerate (separability), so there is a dual basis {β1∗,…,βn∗}\{\beta_1^*,\dots,\beta_n^*\} with Tr(βiβj∗)=δij\mathrm{Tr}(\beta_i\beta_j^*)=\delta_{ij}. For α=∑ajβj∗∈OK\alpha = \sum a_j \beta_j^* \in \mathcal{O}_K, the coefficients are aj=Tr(αβj)∈Za_j = \mathrm{Tr}(\alpha\beta_j) \in \mathbb{Z}. Hence

7
⨁jZβj  ⊆  OK  ⊆  ⨁jZβj∗.\quad \bigoplus_{j} \mathbb{Z}\beta_j \;\subseteq\; \mathcal{O}_K \;\subseteq\; \bigoplus_j \mathbb{Z}\beta_j^* .

Derivation hint: integrality forces traces Tr(αβj)\mathrm{Tr}(\alpha\beta_j) to be rational integers, locking OK\mathcal{O}_K between two free modules of rank nn.

Step 4 — Conclusion. A subgroup of a free abelian group of rank nn that contains a free subgroup of rank nn is itself free of rank nn (structure theorem for f.g. modules over the PID Z\mathbb{Z}). Therefore OK≅Zn\mathcal{O}_K \cong \mathbb{Z}^n. ■\blacksquare

∎
ProofUnique factorization of ideals — sketch

Step 1 — Noetherian. OK≅Zn\mathcal{O}_K \cong \mathbb{Z}^n is a Noetherian Z\mathbb{Z}-module, hence Noetherian as a ring.

Step 2 — Dimension 1. If p≠0\mathfrak{p}\neq 0 is prime, then p∩Z=(p)\mathfrak{p}\cap\mathbb{Z} = (p) for a rational prime pp, and OK/p\mathcal{O}_K/\mathfrak{p} is a finite integral domain, hence a field. So p\mathfrak{p} is maximal.

Step 3 — Integrally closed. OK\mathcal{O}_K is by definition the integral closure of Z\mathbb{Z} in KK, hence integrally closed in its fraction field KK.

Step 4 — Containment is divisibility. In a Dedekind domain one shows every ideal contains a product of primes, and that for any nonzero ideal a\mathfrak{a} there is a fractional ideal a−1\mathfrak{a}^{-1} with aa−1=OK\mathfrak{a}\mathfrak{a}^{-1} = \mathcal{O}_K. Invertibility makes the monoid of nonzero ideals a group modulo cancellation, forcing unique factorization into primes exactly as in Z\mathbb{Z}. ■\blacksquare

∎
mathematician · Richard Dedekind | 1831–1916

Dedekind, a student of Gauss and Dirichlet at Göttingen, introduced the modern concept of an ideal in his 1871 supplement to Dirichlet's Vorlesungen über Zahlentheorie, generalizing Kummer's "ideal numbers" into actual subsets of a ring. He defined the ring of integers, proved unique factorization of ideals, and effectively created the axiomatic theory of what we now call Dedekind domains. His insistence on set-theoretic, structural definitions — ideals as sets rather than formal symbols — was a decisive step toward abstract algebra. Dedekind also gave the modern definition of infinite sets and constructed the reals via Dedekind cuts.

Building Intuition

🧠 Intuition

Think of OK\mathcal{O}_K as a lattice sitting inside the real vector space K⊗QR≅Rr1×Cr2K\otimes_\mathbb{Q}\mathbb{R} \cong \mathbb{R}^{r_1}\times\mathbb{C}^{r_2}, via the embedding α↦(σ1(α),… )\alpha\mapsto(\sigma_1(\alpha),\dots). This is the Minkowski embedding, and it turns arithmetic questions into geometry-of-numbers questions: ideals become sublattices, the norm becomes a covolume ratio, and Minkowski's convex-body theorem produces small elements in any ideal — the engine behind class-number finiteness. For unique factorization, the mental model is: primes of Z\mathbb{Z} can split, stay inert, or ramify when lifted to OK\mathcal{O}_K. A prime pp becomes p1e1⋯pgeg\mathfrak{p}_1^{e_1}\cdots\mathfrak{p}_g^{e_g}, and the fundamental identity ∑eifi=n\sum e_i f_i = n (with fif_i the residue degrees) governs the bookkeeping. The class group measures the "twisting" that prevents prime ideals from all being principal: if hK=1h_K = 1, every ideal is principal and OK\mathcal{O}_K is a PID with genuine unique factorization of elements.

Figure
Minkowski lattice of OK\mathcal{O}_K for an imaginary quadratic field, with a fundamental domain and a small ideal element found inside a convex body
Minkowski embedding of O_K (Im. quadratic field) Re Im fund. domain convex body α ∈ 𝔞 covolume = 2^{-r2}·√|d_K|

Worked Examples

ExampleRing of integers of Q(d)\mathbb{Q}(\sqrt{d}) and a factorization

Given. Let dd be a squarefree integer, K=Q(d)K=\mathbb{Q}(\sqrt{d}), n=2n=2.

Step 1 — Integral basis. Standard computation: an element a+bda+b\sqrt d (a,b∈Qa,b\in\mathbb{Q}) is integral iff its trace 2a2a and norm a2−db2a^2-db^2 are in Z\mathbb{Z}. Analysis of cases gives:

8
OK={Z[d],d≡2,3(mod4),Z ⁣[1+d2],d≡1(mod4).\quad \mathcal{O}_K=\begin{cases}\mathbb{Z}[\sqrt d], & d\equiv 2,3 \pmod 4,\\[4pt]\mathbb{Z}\!\left[\dfrac{1+\sqrt d}{2}\right], & d\equiv 1 \pmod 4.\end{cases}

Derivation hint: solve the integrality conditions 2a∈Z2a\in\mathbb{Z}, a2−db2∈Za^2-db^2\in\mathbb{Z} modulo 4; the half-integer basis appears exactly when d≡1d\equiv1.

Step 2 — Discriminant. dK=dd_K = d if d≡1 ⁣(mod4)d\equiv1\!\pmod4, else dK=4dd_K=4d.

Step 3 — Take d=−5d=-5. Then d≡3 ⁣(mod4)d\equiv3\!\pmod4, so OK=Z[−5]\mathcal{O}_K=\mathbb{Z}[\sqrt{-5}], dK=−20d_K=-20. Here 6=2⋅3=(1+−5)(1−−5)6=2\cdot3=(1+\sqrt{-5})(1-\sqrt{-5}) — non-unique factorization of elements. As ideals:

9
(6)=p22 p3 p3′,p2=(2,1+−5), p3=(3,1+−5), p3′=(3,1−−5).\quad (6)=\mathfrak{p}_2^2\,\mathfrak{p}_3\,\mathfrak{p}_3',\quad \mathfrak{p}_2=(2,1+\sqrt{-5}),\ \mathfrak{p}_3=(3,1+\sqrt{-5}),\ \mathfrak{p}_3'=(3,1-\sqrt{-5}).

Derivation hint: factor (2),(3)(2),(3) via reduction of x2+5x^2+5 mod 2 and mod 3, then regroup the principal factorizations.

Boxed answer.  OQ(−5)=Z[−5], dK=−20, hK=2 \boxed{\,\mathcal{O}_{\mathbb{Q}(\sqrt{-5})}=\mathbb{Z}[\sqrt{-5}],\ d_K=-20,\ h_K=2\,} — the class number 2 is precisely the obstruction making 66 factor two ways.

ExampleUnit group and regulator of Q(2)\mathbb{Q}(\sqrt{2})

Given. K=Q(2)K=\mathbb{Q}(\sqrt2), real quadratic, signature (r1,r2)=(2,0)(r_1,r_2)=(2,0), so unit rank =r1+r2−1=1=r_1+r_2-1=1.

Step 1 — Roots of unity. A real field has μK={±1}\mu_K=\{\pm1\}.

Step 2 — Fundamental unit. Solve Pell: x2−2y2=±1x^2-2y^2=\pm1. Smallest nontrivial solution (x,y)=(1,1)(x,y)=(1,1) gives the fundamental unit

10
ε=1+2,NK/Q(ε)=(1+2)(1−2)=−1.\quad \varepsilon = 1+\sqrt2,\qquad N_{K/\mathbb{Q}}(\varepsilon)=(1+\sqrt2)(1-\sqrt2)=-1.

Derivation hint: units have norm ±1\pm1; the minimal Pell solution generates all units modulo ±1\pm1 by Dirichlet's theorem with rank 1.

Step 3 — Structure and regulator. OK×={±(1+2)k:k∈Z}≅{±1}×Z\mathcal{O}_K^\times=\{\pm(1+\sqrt2)^k:k\in\mathbb{Z}\}\cong\{\pm1\}\times\mathbb{Z}. The regulator is

11
RK=∣log⁡∣σ1(ε)∣∣=log⁡(1+2)≈0.8814.\quad R_K=\big|\log|\sigma_1(\varepsilon)|\big|=\log(1+\sqrt2)\approx 0.8814.

Derivation hint: with unit rank 1 the regulator is the single entry ∣log⁡∣ε∣∣|\log|\varepsilon|| of the 1×11\times1 logarithmic-embedding matrix.

Boxed answer.  OK×≅{±1}×⟨1+2⟩, RK=log⁡(1+2)≈0.8814 \boxed{\,\mathcal{O}_K^\times\cong\{\pm1\}\times\langle 1+\sqrt2\rangle,\ R_K=\log(1+\sqrt2)\approx0.8814\,}

Common Misconceptions

⚠️ Common mistake

OK≠Z[θ]\mathcal{O}_K \neq \mathbb{Z}[\theta] in general. Even when K=Q(θ)K=\mathbb{Q}(\theta), the ring of integers can be strictly larger than Z[θ]\mathbb{Z}[\theta]. The index [OK:Z[θ]]2=disc(mθ)/dK[\mathcal{O}_K : \mathbb{Z}[\theta]]^2 = \mathrm{disc}(m_\theta)/d_K measures the gap. The classic failure: θ=−3\theta=\sqrt{-3} gives Z[−3]⊊OK=Z[1+−32]\mathbb{Z}[\sqrt{-3}] \subsetneq \mathcal{O}_K = \mathbb{Z}[\frac{1+\sqrt{-3}}{2}], index 2. A field is called monogenic when some generator gives OK=Z[θ]\mathcal{O}_K=\mathbb{Z}[\theta] — not all are.

⚠️ Common mistake

Unique factorization of ideals is NOT unique factorization of elements. OK\mathcal{O}_K always has unique ideal factorization, but is a UFD iff it is a PID iff hK=1h_K=1. Conflating these is the single most common error. Likewise, a∣b  ⟺  a⊇b\mathfrak{a}\mid\mathfrak{b} \iff \mathfrak{a}\supseteq\mathfrak{b} — "to divide is to contain," which reverses the naive intuition.

Counterexample

A non-monogenic ring of integers. Dedekind's own example: K=Q(θ)K=\mathbb{Q}(\theta) with θ3−θ2−2θ−8=0\theta^3-\theta^2-2\theta-8=0. Here OK\mathcal{O}_K is not of the form Z[α]\mathbb{Z}[\alpha] for any single α\alpha; the prime 22 splits completely as (2)=p1p2p3(2)=\mathfrak{p}_1\mathfrak{p}_2\mathfrak{p}_3 with three distinct primes of residue degree 1, which is impossible for Z[α]/(2)\mathbb{Z}[\alpha]/(2) to realize since a cubic over F2\mathbb{F}_2 cannot have three distinct linear factors (only two monic linear polynomials exist mod 2). This "common index divisor" obstruction shows monogenicity genuinely fails.

Connections

connection

The theory threads through much of algebra and number theory. The factorization of primes connects to Galois Theory: for K/QK/\mathbb{Q} Galois, the Galois group acts transitively on primes above each pp, and the decomposition/inertia groups encode splitting. Class Field Theory generalizes the class group into a description of all abelian extensions of KK via the idele class group. The Minkowski embedding ties the subject to Geometry of Numbers and lattice theory. The analytic side — the Dedekind Zeta Function ζK(s)\zeta_K(s) — packages hKh_K, RKR_K, dKd_K, and ∣μK∣|\mu_K| into the class number formula as its residue at s=1s=1. Finally, Dedekind Domains abstract the purely algebraic content, and Valuation Theory / pp-adic completions give the local-global perspective via Adeles and Ideles.

Real-World Applications

🔬 Where this appears

Historical Development

⏳ History
- 1801 — Gauss's Disquisitiones Arithmeticae studies binary quadratic forms and composition, implicitly the class group of quadratic fields.
- 1832 — Gauss introduces the Gaussian integers Z[i]\mathbb{Z}[i], the first ring of integers studied as such, and proves it is a UFD.
- 1844–1847 — Kummer, attacking Fermat's Last Theorem, discovers that cyclotomic integers Z[ζp]\mathbb{Z}[\zeta_p] fail unique factorization and invents "ideal numbers" to restore it; proves FLT for regular primes.
- 1871 — Dedekind defines ideals as sets, the ring of integers, and proves unique factorization of ideals in his supplement to Dirichlet's lectures.
- 1882 — Kronecker develops a parallel divisor-theoretic foundation; Dedekind's set-theoretic approach ultimately prevails.
- 1846 / 1871 — Dirichlet's unit theorem established and refined; the regulator emerges as a key invariant.
- 1896 — Minkowski's geometry of numbers gives clean proofs of class-number finiteness and bounds on discriminants (no unramified extensions of Q\mathbb{Q}).
- 1897 — Hilbert's Zahlbericht unifies and systematizes the field, setting the agenda (ramification, Hilbert class field) for the 20th century.
- 1920s–1930s — Artin, Hasse, Chevalley, and Takagi build class field theory; Chevalley introduces ideles, completing the local-global synthesis.

Subtleties & Limits

open-problem

Gauss's class number problem (imaginary quadratic). Determining all imaginary quadratic fields with a given class number was hard: the complete list of the nine fields with hK=1h_K=1 (d=−1,−2,−3,−7,−11,−19,−43,−67,−163d=-1,-2,-3,-7,-11,-19,-43,-67,-163) was only settled by Heegner (1952, with gaps), Baker, and Stark (1960s). For each fixed hh, effective determination came from Goldfeld–Gross–Zagier.

Real quadratic class number 1. Conjecturally infinitely many real quadratic fields have hK=1h_K=1 (Gauss), but this is open — we cannot even prove infinitely many number fields are PIDs. The Cohen–Lenstra heuristics predict densities of class-group structures, yet remain conjectural.

Monogenicity. Deciding whether a given field is monogenic, and counting power-integral bases, is a deep and largely open problem (Gaál, Győry). Most number fields of degree ≥4\geq 4 are conjecturally non-monogenic in a density sense (Bhargava–Shankar–Wang).

Vandiver's conjecture. Whether p∤hQ(ζp)+p \nmid h^+_{\mathbb{Q}(\zeta_p)} (the plus-part class number) holds for all primes is open and has consequences in Iwasawa theory and FLT-style arguments.

See Also

Dedekind Domains · Galois Theory · Class Field Theory · Geometry of Numbers · Dedekind Zeta Function · Cyclotomic Fields · Quadratic Forms · Valuation Theory · Adeles and Ideles · Minkowski's Theorem