Adding energy to a closed system
If u had a indistructable pipe of 10 ft vertical ,with an object in it that is not compressable. Fill the pipe with water. Having the object weigh as much as water displaced. Now compress the water in the pipe to increse its density. The object is now lighter and will move to the top of the pipe.
My question is:
Is the pressure needed to compress water vs pressure left after object moved to the top of the pipe equal.
Guessing energy is lost somewhere or transformed to make the object move .