Before you go down the caustic soda route try using Coca Cola. Turn the bike upside down, plug all the holes in the frame ( so that the coca-cola doesn’t run out). Orientate the bike so that the seat tube is vertical then, using the holes in the bottom bracket shell, fill the seat tube all the way to the top with Coca Cola. Leave to soak for approx 48 hours, re-checking periodically to ensure that the seat tube is filled all the way to the top.
After 48 hours (or thereabouts) empty the coke from the frame (messy!), rinse out well, then put seat pin in vice or similar and twist. The seat pin should then release.
Buy large tub of copper grease, use a reasonable sized splodge of it to lubricate the new seat pin…or the old one depending what damage you did it trying to release it, and re-insert into frame.