Theory of the iron phase diagram at Earth core conditions