orderpolynomial
The order polynomial, usually denoted Omega(P; m) or Ω(P; m), is a polynomial associated with a finite partially ordered set (poset) P. It counts the number of order-preserving maps from P into a chain with m elements, typically the set {1, 2, ..., m} with the natural order. Equivalently, Omega(P; m) is the number of colorings of the elements of P with colors 1 through m that respect the poset order (if x ≤ y in P, then the color of x is not greater than the color of y).
As a function of m, Omega(P; m) is a polynomial of degree equal to the size of
Two simple examples illustrate the concept. If P is an antichain on n elements, every labeling is
There is a reciprocity theorem due to Stanley: Omega(P; −m) = (−1)^{|P|} Omega^*(P; m), where Omega^*(P; m)