发送短信: An algebraic approach to multi-sorted constraints