Describir: The logic of categorial grammars