In mathematics, the Tamari lattice of order n, introduced by and sometimes notated T<sub>n</sub> or Y<sub>n</sub>, is a partially ordered set in which the elements consist of all ways of bracketing a sequence of n+1 letters using n pairs of parentheses, with the ordering induced by only rightward applications of the associative law ((xy)z) â (x(yz)). For instance, T<sub>3</sub> contains five elements (((ab)c)d), ((ab)(cd)), ((a(bc))d), (a((bc)d)), and (a(b(cd))), with (((ab)c)d) < ((ab)(cd)) < (a(b(cd))) and (((ab)c)d) < ((a(bc))d) < (a((bc)d)) < (a(b(cd))). (The outermost pair of parentheses is redundant and often omitted when naming the elements of T<sub>n</sub>, as in the depiction of T<sub>4</sub> shown in the figure.)
The number of elements in the Tamari lattice of order n is the nth Catalan number C<sub>n</sub>. Its Hasse diagram is isomorphic to the skeleton of the associahedron of dimension n-1.
The lattice property for the order (i.e., that any two bracketings have a join and meet) is non-trivial and was first established rigorously by , with another simpler proof later given by .
The Tamari lattice can be described in several other equivalent ways:
The notation Y<sub>n</sub> is sometimes used for the Tamari lattice of order n , which has the mnemonic value that the elements of the lattice may be considered as binary trees with n Y-shaped binary nodes. Note that the corresponding associahedron of dimension n-1 is notated K<sub>n+1</sub> since the indexing is by the number of leaves in the binary trees that form its vertices, rather than by the number of nodes.