I was reading a book review by Freeman Dyson at http://www.nybooks.com/articles/2018/05/10/the-key-to-everything/ and he makes the following statement at the end of the 13th paragraph (3rd dropcap) and beginning of the 14th:
Any object whose motions are dominated by gravity will have energy decreasing as temperature increases and energy increasing as temperature decreases.
As a consequence of the second law of thermodynamics, when energy flows from one such object to another, the hot object will grow hotter and the cold object will grow colder. That is why the sun grew hotter and the planets grew cooler as the solar system evolved.
Could someone help me understand that statement? Doesn't the second statement imply a violation of the first law of thermodynamics? What are the "objects" here? Clouds of gas? Planets? Balls falling from towers?