many-sorted logic