Every degree- number field has a ring of integers that is a free abelian group of rank . To prove this without assuming finite generation, scale a rational basis to algebraic integers and set . Their trace pairing has an invertible integer matrix , since the trace form of a number field is nondegenerate. For , all are integers. The adjugate matrix formula gives . The submodule theorem for free modules over a principal ideal domain makes the middle group free of rank , and a group basis is an integral basis.
For a number field of degree of a field extension , an integral basis is a basis over such that
Thus every algebraic integer in has a unique expression with integer coefficients in this basis. Merely requiring its entries to be algebraic integers would not suffice: for example, is a rational basis of but misses the algebraic integer in its integer span.
Here is a proof of the existence of an integral basis. Start with any rational basis . Each has a nonzero integer multiple that is an algebraic integer. Indeed, if
choose a positive integer clearing all the denominators. Then satisfies the monic polynomial
The are still a rational basis. Put and form the matrix
Its entries are integers, because products and sums of algebraic integers are algebraic integers and a rational algebraic integer is an integer. The nondegeneracy of the trace form of a number field gives : if , then .
For , each is an integer, so
The adjugate matrix formula for gives . Consequently
The submodule theorem for free modules over a principal ideal domain says that every subgroup of the finite-rank free abelian group is again a free abelian group of rank at most . Since contains , its rank is exactly . A basis of this free abelian group is the required integral basis.
Prove the submodule theorem for free modules over a principal ideal domain by induction on the rank of . For a submodule , project onto its first coordinate. The image is an ideal . If , then is a submodule of and induction applies. Otherwise choose projecting to . Every has first coordinate and hence lies in the projection kernel. The domain property shows meets that kernel only at zero. Thus
and the kernel is a free module by induction. This proves that is free, of rank at most .
To prove free modules are projective, choose a basis of a free module . For the given surjection , choose with and extend linearly. Finite support of basis expansions makes the resulting module homomorphism well defined, and .
Finally, take a finite generating set of a projective module to obtain a surjection . Projectivity applied to gives a section with . Thus is injective and identifies with a submodule of . The proved submodule theorem for free modules over a principal ideal domain shows that every finitely generated projective module over a principal ideal domain is free.
Induct on to prove the stronger assertion that any submodule is a free module of rank of a free module at most . For this is immediate. Project onto the first coordinate by . Its image is an ideal of the principal ideal domain, so .
If , then embeds in the remaining coordinates and the induction hypothesis applies. Otherwise choose with . Put , a submodule of , which is free by induction. For every , there is with , so . If , then ; the integral domain property and give . Therefore
Appending to a basis of proves that is a free module of rank of a free module at most . This proof of the submodule theorem for free modules over a principal ideal domain does not assume in advance that is a finitely generated module.
A subset freely generates when every has a unique expression
with and only finitely many nonzero coefficients. Equivalently, is a basis of a module and is the free module on .
If freely generates and is any function, define
Unique coordinates make well defined; it is an -module homomorphism and is the only extension of . Conversely, apply the proposed universal property to the free module and the inclusion of into . It gives maps and extending the corresponding functions on . Uniqueness makes both composites identity maps, so and freely generates . This is the universal property of a free module.
Now let generate the free module and . Choose a maximal ideal of the nontrivial ring . Then is a field, and
is a -vector space. The images of a basis of form a vector-space basis, while the images of span it. Therefore
In particular is finite. Applying this result in both directions to two finite bases shows that they have equal cardinality, the rank of a free module .
A Euclidean domain is a principal ideal domain. By the submodule theorem for free modules over a principal ideal domain, every submodule of the finite-rank free module is free. Since a basis of generates it, the preceding inequality applied in the standard proof gives
The primary decomposition theorem for finitely generated modules over a principal ideal domain states that
where ranges over finitely many nonassociate irreducibles and the positive exponents are uniquely determined up to order. Equivalently, the torsion part decomposes into its primary cyclic summands.
Let be a finite subgroup of the multiplicative group of a field. It is a finite abelian group, hence the theorem over gives an invariant-factor decomposition
Its exponent is , so every element of is a root of . A degree- polynomial over a field has at most roots, whence
But , and equality forces all earlier factors to be trivial. Thus
If (i) holds, the submodule theorem for free modules over a principal ideal domain says that any submodule is free. Its rank is at most , since tensoring the inclusion with embeds into . Hence has at most generators, proving (iv).
Conversely, apply (iv) with . Every ideal is an -submodule of and therefore has one generator, which is (i). Thus all four conditions are equivalent.
We prove by induction on that every submodule is free. The case is immediate. Let be projection onto the first coordinate. Since is a principal ideal domain,
for some . If , then and induction applies. Otherwise choose with . For every , write ; then . Also because is a domain and . Therefore
The kernel is a submodule of and is free by induction, while . Hence is free. This is the submodule theorem for free modules over a principal ideal domain.
If is finitely generated and projective, choose a surjection . Projectivity supplies with , so
Thus is a submodule of the finitely generated free module , and the result just proved shows that is free.