Foundations of Social Inequality