  Using a game theory approach and a new extremal problem, Gibbs formula is
proved in a most simple and general way for the classical mechanics case. A
corresponding conjecture on the asymptotics of the classical entropy is
formulated. For the ordinary quantum mechanics case, the third law of
thermodynamics is derived. Some results on the number of ground states and
residual entropy are obtained rigorously.
