The independence number of a subset of an abelian group