# A counterexample to the law of stable equilibrium?

This is the law of stable equilibrium, according to Hatsopoulos and Keenan:

A system having specified allowed states and an upper bound in volume can reach from any given state one and only one stable state and leave no net effect on its environment.

Consider the following system: two sealed containers of gas. Container A contains a weight on a raised platform. Container B contains a flywheel. A string-pulley system connects the flywheel to container A. Let our system be both containers combined.

Here are two options to reach stable equilibrium

1. We slide the weight in A off the platform; it crashes to the bottom, raising the temperature of A.
2. Instead, we slide the weight onto the string's hook, such that, as the weight gently falls, the flywheel spins and raises the temperature of B.

It seems we have reached two different stable states despite making no effect on the environment, contrary to the law. What am I missing here?