Based on the discussion with chemomechanics under his answer of this post, I post this new question on how the mechanical work to construct a system is $PV$.
From ChemoMechanics's answer:
Me:Why is the energy required to make space for the rabbit exactly given as pV? How would we prove that it is so from first principle?
Mechanical work is calculated as $dW=p\,dV$. The pressure is that of the atmosphere, which can be assumed to remain constant because it's much larger than the system. Integrate over the system volume $V$ to obtain $pV$
Suppose that instead of the rabbit we wanted to construct a ideal gas ensemble from out of thin air with the gas having state variables $(P,V,T)$ source
I am assuming the conjuration is not instantaneous, that is it takes some time to conjure up the system. In this case, the gas in system will reach a significant pressure state relative to the atm before the total process is complete. At this point, the piston pressure would equilibrate with the atmosphere and how much work that is done when reach the final state is dependent on what path we take. (maybe we go from the state we have to final adiabatically, or maybe isothermally etc).
Hence, how can it be that the work is always pV?
