"Fairly" according to whom? One of the nations? Some individual? Or do you want the AI to come up with the definition of "fair"? What if some people disagree? What if the majority of people disagree? In any case, this could be achieved with extreme violence. Do you really want "AI" imposing its (or someone's) will on the world?