In abstract algebra, a free abelian group is an abelian group that has a "basis" in the sense that every element of the group can be written in one and only one way as a finite linear combination of elements of the basis, with integer coefficients. Unlike vector spaces, not all abelian groups have a basis, hence the special name for those that do. A typical example of a free abelian group is the direct sum Z ⊕ Z of two copies of the infinite cyclic group Z; a basis is {(1,0),(0,1)}. The trivial abelian group {0} is also considered to be free abelian, with basis the empty set. A point on terminology: a free abelian group is not the same as a free group that is abelian; in fact the only free groups that are abelian are those of rank 0 (the trivial group) and rank 1 (the infinite cyclic group). If F is a free abelian group with basis B, then we have the following universal property: for every arbitrary function f from B to some abelian group A, there exists a unique group homomorphism from F to A which extends f. This universal property can also be used to define free abelian groups. For every set B, there exists a free abelian group with basis B, and all such free abelian groups having B as basis are isomorphic. One example may be constructed as the abelian group of functions on B, taking integer values all but finitely many of which are zero. This is the direct sum of copies of Z, one copy for each element of B. Formal sums of elements of a given set B are nothing but the elements of the free abelian group with basis B. Every finitely generated free abelian group is therefore isomorphic to Zn for some natural number n called the rank of the free abelian group. In general, a free abelian group F has many different bases, but all bases have the same cardinality, and this cardinality is called the rank of F. This rank of free abelian groups can be used to define the rank of all other abelian groups: see rank of an abelian group. The relationships between different bases can be interesting; for example, the different possibilities for choosing a basis for the free abelian group of rank two is reviewed in the article on the fundamental pair of periods. Given any abelian group A, there always exists a free abelian group F and a surjective group homomorphism from F to A. This follows from the universal property mentioned above. Importantly, every subgroup of a free abelian group is free abelian (proof in the end of the article). As a consequence, to every abelian group A there exists a short exact sequence
- 0 → G → F → A → 0
with F and G being free abelian (which means that A is isomorphic to the factor group F/G). This is called a free resolution of A. Furthermore, the free abelian groups are precisely the projective objects in the category of abelian groups. All free abelian groups are torsion-free, and all finitely generated torsion-free abelian groups are free abelian. (The same applies to flatness, since an abelian group is torsion-free if and only if it is flat.) The additive group of rational numbers Q is a (not finitely generated) torsion-free group that's not free abelian. The reason: Q is divisible but non-zero free abelian groups are never divisible. Free abelian groups are a special case of free modules, as abelian groups are nothing but modules over the ring Z. It can be surprisingly difficult to determine whether a concretely given group is free abelian. Consider for instance the Baer-Specker group ZN, the direct product of countably many copies of Z. Reinhold Baer proved in 1937 that this group is not free abelian; Specker proved in 1950 that every countable subgroup of ZN is free abelian.
Subgroups of free abelian groups are free
This is related to the Nielsen-Schreier theorem that a free subgroup of a free group is free. Theorem: Let <math>F</math> be a free abelian group generated by the set <math>X=\{x_k\,|\,k\in I\}</math> and let <math>G\subset F</math> be a subgroup. Then <math>G</math> is free. Proof: This proof is an application of Zorn's lemma and due to Serge Lang's Algebra, Appendix 2 §2. If <math>G=\{0\}</math>, the statement holds, so we can assume that <math>G</math> is non-trivial. For each subset <math>J</math> of <math>I</math> let <math>F_J</math> be the free group generated by <math>\{x_i\mid i\in J\}</math>, thus <math>F_J\subset F</math> is a free subgroup and denote <math>G_J=F_J\cap G</math>. Now set <math> S=\{(G_J,w)\mid G_J {\rm\; is\; a\; non-trivial\; free\; group\;and\; }w{\rm\; is\; a\; basis\; of\;}G_J\}. </math> Formally <math>w</math> is an injective map <math>w:J'\to G_J</math> such that <math>w[J']</math> generates <math>G_J</math>. Clearly <math>S</math> is non-empty: because <math>G\ne \{0\}</math>, for some singelton <math>J=\{i\}\subset I</math>, <math>G_J</math> is a non-trivial subgroup of the group generated by <math>\{x_i\}</math>, which is isomorphic to <math>\Z</math> but any non-trivial subgroup of integers is isomorphic to integers and hence free. If <math>(G_J,w),(G_K,u)\in S</math>, define order <math>(G_J,w)\le(G_K,u)</math> if and only if <math>J\subset K</math> and the basis <math>u</math> is an extension of <math>w</math>; formally if <math>w:J'\to G_J</math> and <math>u:K'\to G_K</math>, then <math>J'\subset K'</math> and <math>u\restriction w=w</math>. If <math>(G_{J_r},w_r)_{r\in L}</math> is a <math>\le</math>-chain (<math>L</math> is some linear order) of elements of <math>S</math>, then obiously <math>(\bigcup_{r\in L}G_{J_r},\bigcup_{r\in L}w_r)\in S</math>, so we can apply Zorn's lemma and conclude that there exists a maximal <math>(G_J,w)</math>. Since <math>G_I=G</math>, it is enough to prove now that <math>J=I</math>. Assume on contrary that there is <math>k\in I\setminus J</math>. Put <math>K=J\cup\{k\}</math>. If <math>G_K=F_K\cap G=G_J,</math> then it means that <math>(G_J,w)\le (G_K,w)</math>, but they are not equal, so <math>(G_K,w)</math> is bigger, which contradicts maximality of <math>(G_J,w)</math>. Otherwise there is an element <math>nx_k + y\in G_K</math> such that <math>n\in\Z\setminus\{0\}</math> and <math>y\in G_J\subset F_J</math>. The set of <math>n\in\Z</math> for which there exists <math>y\in G_J</math> such that <math>nx_k+y\in G</math> forms a subgroup of <math>\Z</math>. Let <math>n_0</math> be a generator of this group and let <math>w_k=n_0x_k+y\in G,</math> with <math>y\in F_J</math>. Now if <math>z\in G_K</math>, then for some <math>m\in Z</math> <math>z=z-mw_k+mw_k</math>, where <math>z-mw_k\in G_J</math>. On the other hand clearly <math>w_k\Z\cap G_J=\{0\}</math>, so <math>w'=w\cup \{\langle k,w_k\rangle\}</math> is a basis of <math>G_K</math>, so <math>(G_K,w')\ge (G_J,w)</math> contradicting the maximality again.


