I really dont know much about it so please go in depth
Well it pretty much relies on the gas laws to work - what do you want to know?
how does it rely on the gas law please explain
Probably the important fact is that pressure * volume is a constant.
So you take 80 cu ft of air at atmospheric pressure (15psi) and squeeze it down into a small cylinder at 3000psi
Then underwater the regulator (the bit in your mouth) delivers air at the same pressure as the water so you can breath with no effort.
With each breath you take about the same volume (1litre) but at a pressure that depends on the depth so the amount of air you use depends on the depth
Separate names with a comma.