Boyle's law states that at constant temperature, the volume of a given amount of gas is inversely proportional to its pressure. If you've taken a freediving class you've probably been taught that if you dive to 90m you will experience a 10-fold increase in pressure, and therefore the air in your lungs will get compressed to a 10th of the volume it occupied at the surface.
Well, no, not quite, because if we're talking about the air inside your lungs, then to apply Boyle's law we have to use the pressure inside your lungs too, and having 10 atmospheres of environment pressure does not mean there's 10 atmospheres also in your lungs. It's certainly not the case for a submarine: if a U-boat goes down to 90m, the pressure inside the vessel does not increase 10-fold, so why would it be for your lungs? True, your thoracic cage is more flexible than a sub, but your ribs will still oppose those 10 atmospheres quite stubbornly.
Well, no, not quite, because if we're talking about the air inside your lungs, then to apply Boyle's law we have to use the pressure inside your lungs too, and having 10 atmospheres of environment pressure does not mean there's 10 atmospheres also in your lungs. It's certainly not the case for a submarine: if a U-boat goes down to 90m, the pressure inside the vessel does not increase 10-fold, so why would it be for your lungs? True, your thoracic cage is more flexible than a sub, but your ribs will still oppose those 10 atmospheres quite stubbornly.