Heterogeneity versus homogeneity: A conceptual and mathematical theory in terms of scale-invariant and scale-covariant distributions