Discrete curvature and abelian groups