Symbolic combinatorics is a technique of analytic combinatorics (a sub-branch of combinatorics) that uses symbolic representations of combinatorial classes to derive their generating functions.
Procedure
Typically, one starts with the neutral class , containing a single object of size 0 (the neutral object, often denoted by ), and one or more atomic classes , each containing a single object of size 1. Next, set theoretic relations involving various simple operations, such as disjoint unions, products, sets, sequences, and multisets define more complex classes in terms of the already defined classes. These relations may be recursive. The elegance of symbolic combinatorics lies in that the set theoretic, or symbolic, relations translate directly into algebraic relations involving the generating functions.
In this article, we will follow the convention of using script uppercase letters to denote combinatorial classes and the corresponding plain letters for the generating functions (so the class has generating function ).
There are two types of generating functions commonly used in symbolic combinatorics — ordinary generating functions, used for combinatorial classes of unlabelled objects, and exponential generating functions, used for classes of labelled objects.
It is trivial to show that the generating functions (either ordinary or exponential) for and are and , respectively. The disjoint union is also simple — for disjoint sets and , implies . The relations corresponding to other operations depend on whether we are talking about labelled or unlabelled structures (and ordinary or exponential generating functions).
Combinatorial sum
The restriction of unions to disjoint unions is an important one; however, in the formal specification of symbolic combinatorics, it is too much trouble to keep track of which sets are disjoint. Instead, we make use of a construction that guarantees there is no intersection (be careful, however; this affects the semantics of the operation as well). In defining the combinatorial sum of two sets and , we mark members of each set with a distinct marker, for example for members of and for members of . The combinatorial sum is then:
This is the operation that formally corresponds to addition.
Unlabelled structures
With unlabelled structures, an ordinary generating function (OGF) is used. The OGF of a sequence is defined as
Product
The product of two combinatorial classes and is specified by defining the size of an ordered pair as the sum of the sizes of the elements in the pair. Thus we have for and , . This should be a fairly intuitive definition. We now note that the number of elements in of size n is
Using the definition of the OGF and some elementary algebra, we can show that
- implies
Sequence
The sequence construction, denoted by is defined as
In other words, a sequence is the neutral element, or an element of , or an ordered pair, ordered triple, etc. This leads to the relation
Set
The set (or powerset) construction, denoted by is defined as
which leads to the relation
where the expansion
- was used to go from line 4 to line 5.
Multiset
The multiset construction, denoted is a generalization of the set construction. In the set construction, each element can occur zero or one times. In a multiset, each element can appear an arbitrary number of times. Therefore,
This leads to the relation
where, similar to the above set construction, we expand , swap the sums, and substitute for the OGF of .
Other elementary constructions
Other important elementary constructions are the cycle construction ( ), which are like sequences except that cyclic rotations are not considered distinct, pointing ( ), in which each member of is augmented by a neutral (zero size) pointer to one of its atoms, and substitution ( ), in which each atom in a member of is replaced by a member of .
The derivations for these constructions are too complicated to show here. Here are the results:
Construction | Generating function |
(where is the Euler totient function) | |