An inversion occurs when warm, less dense air moves over cold, dense air causing the temperature to increase with altitude instead of the normal decrease. This creates an absolutely stable environment where the environmental lapse rate is less than the moist adiabatic lapse rate, meaning a rising air parcel will continue to cool with altitude rather than warm, becoming denser than the surrounding air. An inversion therefore represents an absolutely stable atmosphere where any rising air will continue to cool after passing through the inversion layer.