Canonical: https://knowlpedia.com/algebra-modules/basis-module/

# Basis of a free module

A set of elements giving unique finite linear combinations in a free module.

Let \(F\) be an \(R\)-[module](https://knowlpedia.com/algebra-modules/module/). A **basis** of \(F\) is a [subset](https://knowlpedia.com/shared-foundations/subset/) \(B\subseteq F\) such that every \(x\in F\) can be written uniquely as a finite sum
\[
x=\sum_{b\in B} r_b\, b
\]
with coefficients \(r_b\in R\), where all but finitely many \(r_b\) are zero. Uniqueness is equivalent to the familiar notions of [linear independence](https://knowlpedia.com/convex-analysis/linearly-independent-and-linearly-dependent-sets/) and spanning (compare [linear combinations](https://knowlpedia.com/convex-analysis/linear-combination/) in linear algebra).

Bases generalize the concept of a basis in a [vector space](https://knowlpedia.com/linear-algebra/vector-space/), but over rings bases can fail to exist even for finitely generated modules.

## Examples

- The standard vectors \(e_1,\dots,e_n\) form a basis of \(R^n\).
- \(\{1\}\) is a basis of the free \(R\)-module \(R\).
- (Nonexample) The \(\mathbb Z\)-module \(\mathbb Z/2\mathbb Z\) has no basis, so it is not free.
