Let S be a partially ordered set. Two elements a and b of a partially ordered set are called comparable if a ≤ b or b ≤ a. If two elements are not comparable, they are called incomparable; that is, x and y are incomparable if neitherx ≤ y nor y ≤ x. A chain in S is a subset C of S in which each pair of elements is comparable; that is, C is totally ordered. An antichain in S is a subset A of S in which each pair of different elements is incomparable; that is, there is no order relation between any two different elements in A.
Height and width
A maximal antichain is an antichain that is not a proper subset of any other antichain. A maximum antichain is an antichain that has cardinality at least as large as every other antichain. The width of a partially ordered set is the cardinality of a maximum antichain. Any antichain can intersect any chain in at most one element, so, if we can partition the elements of an order into k chains then the width of the order must be at most k. Dilworth's theorem states that this bound can always be reached: there always exists an antichain, and a partition of the elements into chains, such that the number of chains equals the number of elements in the antichain, which must therefore also equal the width. Similarly, one can define the height of a partial order to be the maximum cardinality of a chain. Mirsky's theorem states that in any partial order of finite height, the height equals the smallest number of antichains into which the order may be partitioned.
Sperner families
An antichain in the inclusion ordering of subsets of an n-element set is known as a Sperner family. The number of different Sperner families is counted by the Dedekind numbers, the first few of which numbers are Even the empty set has two antichains in its power set: one containing a single set and one containing no sets.
Any antichain A corresponds to a lower set In a finite partial order all lower sets have this form. The union of any two lower sets is another lower set, and the union operation corresponds in this way to a join operation on antichains: Similarly, we can define a meet operation on antichains, corresponding to the intersection of lower sets: The join and meet operations on all finite antichains of finite subsets of a set X define a distributive lattice, the free distributive lattice generated by X. Birkhoff's representation theorem for distributive lattices states that every finite distributive lattice can be represented via join and meet operations on antichains of a finite partial order, or equivalently as union and intersection operations on the lower sets of the partial order.
Computational complexity
A maximum antichain can be found in polynomial time. Counting the number of antichains in a given partially ordered set is #P-complete.