Let be a finite set. A partition
of
is a decomposition of
into disjoint non-empty subsets. That is
where ,
, and
for any
,
. The subsets
are called blocks of the partition
.
The set of all partitions of is denoted
. In combinatorics, we usually take the canonical choice
, for which we denote
.
Partition of a set should not be confused with a partition of a number. Any partition of a set induces a partition of a number if we remember only the sizes of the sets. Indeed, if is a partition of
, then
is a partition of
.
Often we consider the set to be a totally ordered set. In this case, we can define the notion of a non-crossing partition. A partition
of a totally ordered set
is called non-crossing if for every four elements
of
having
and
implies
. The name non-crossing is motivated by the graphical representation of such partitions (see below).
We can represent elements , that is, partitions of a set
as diagrams as follows. Put
points on one line representing the elements of the set
. For each block
connect all the points representing elements of
by a node.
For example, consider and a partition
. This can be represented by the following diagram
If we draw all the nodes above the points (equivalently all the nodes bellow the points), we can characterize the non-crossing partitions using the graphical representation. A partition is non-crossing if and only if the lines corresponding to different blocks do not cross.
As an example, we see that the partition above is not non-crossing. Indeed, we have the sequence 2<3<5<6, where the points 2 and 5 belong to the first block and the points 3 and 6 belong to the second block. And indeed, in the graphical representation, the lines corresponding to the first and second block must cross each other.
When using partitions to build diagramatical categories (such as the category of all partitions), we usually divide the points in our set into upper points (modeling domain of a morphism) and lower points (modeling codomain of a morphism). Thus, in this case, the canonical choice for
is something like
, where the first
elements are called upper points and the last
elements are called lower points. The set of all partitions with
upper and
lower points is denoted
The idea of drawing the diagrams is very similar. Put all the upper points to one line and all the lower points to a second line below. Then connect by nodes those points that belong to the same block.
As an example, consider a partition
This is a partition, where four upper and three lower points are divided into four blocks. One block consists of the upper point 1 and lower points 2 and 3. Second block consists of upper point 2 and the first lower point. Finally the last two blocks contain only one point, namely the third and the fourth point of the upper row.
In this case, we again can define non-crossing partitions in the natural way – a partition is non-crossing if and only if there is a graphical representation of
, where the nodes representing different blocks do not cross (following the rule that the nodes can be drawn only between the two lines). This corresponds to the original definition if we consider the so-called cyclic order of the points. That is, the point in the right top corner is the lowest, then follow all the points on the upper row from right to left, then comes the left bottom point and going on the bottom line from left to right we reach the greatest point in the bottom right corner.
Consider again partitions on one line . Another possibility to represent them is using words. Choose some alphabet with at least
letters and assign a unique letter to each block of
. Then
is represented by a word of the form
, where each
is a letter assigned to a block corresponding to the
-th point.
The above mentioned example
can be the represented by a word
The word representation is of course not unique. We could have assigned a different set of letters to the blocks and write for example