The logic of power