Invia SMS: Mathematical foundations of statistical mechanics