The phenomenon where valley air moves up surrounding mountains during the day is primarily due to the Sun warming the tops of hills and mountains more than it does the valley. This warming causes the air around the mountains to heat up and rise, creating a flow of air from the valley (which is relatively cooler and denser) up the slopes. This process is known as upslope or valley breeze.
Therefore, the correct statement is: The Sun warms the tops of hills and mountains more than it does the valley.