premise: If a gas is driven out of the flask during the reaction, the system does work on its surroundings.
hypothesis: A sealed, vacuum-insulated reaction flask approximates the condition of a isolated system, in which neither matter nor heat can be exchanged between system and surroundings.