Statistical mechanics forms a separate field, which is closely related with the more mathematical ergodic theory and some parts of probability theory.
Statistical mechanics forms a separate field, which includes the theory of phase transitions. It is closely related with the more mathematical ergodic theory and some parts of probability theory.