Rate–Distortion theory and pragmatic reasoning