compositional

The meaning of an expression is compositional if its meaning can be determined by the meaning of its constituent parts and by its syntax. Such semantics is also called synthetic or syntax-driven.

Example 1 The expression “three cats” is completely determined by the meaning of “three” and “cats” and the English rule that adjectives come before nouns. (The meaning of “cats” could of course be whips or animals; that is determined by context.)

In contrast, the meaning of a word cannot usually be synthesized from its spelling; the relationship between spelling and meaning is essentially arbitrary. As an example, consider the different roles of the letter “i” in the symbol “sin” and in the expression “$3 - 2i$”.

Remark 1 In spite of Example 1, the meaning of general English discourse is commonly not compositional.

Compositionality in the symbolic language The symbolic language of mathematics has compositional semantics, with some exceptions. Some examples are given under symbolic expression; see also syntax.

Most of the examples of failure of compositionality that I have been able to find are examples of one of the following four phenomena (which overlap, but no one of them includes another):

Examples are given under those headings.

Remark 2 Some symbolic expressions are multivalued, for example

$$\int x^{2}\,dx$$

which is determined only up to an added constant. I don’t regard this as failure of compositionality; the standard meaning of the expression is multivalued.

Pages 40–41 of the book (PDF).