A Theory of Inequality