When you mix ice cream and a soft drink (like coke,) a reaction happens that creates a thick foam. I am assuming the foam id composed of carbon dioxide gas and milk curd, which is produced by the milk reacting with an acid.
Is the milk curd produced by the carbonic acid or the phosphoric acid? Is the carbon dioxide released by the added sugar, or another ingredient? Are there other important processes going on in there?