From laws of inference to protein folding dynamics.