In mathematics, in the area of order theory, an **antichain** is a subset of a partially ordered set such that any two distinct elements in the subset are incomparable.

The size of the largest antichain in a partially ordered set is known as its width. By Dilworth's theorem, this also equals the minimum number of chains (totally ordered subsets) into which the set can be partitioned. Dually, the height of the partially ordered set (the length of its longest chain) equals by Mirsky's theorem the minimum number of antichains into which the set can be partitioned.

The family of all antichains in a finite partially ordered set can be given join and meet operations, making them into a distributive lattice. For the partially ordered system of all subsets of a finite set, ordered by set inclusion, the antichains are called Sperner families and their lattice is a free distributive lattice, with a Dedekind number of elements. More generally, counting the number of antichains of a finite partially ordered set is #P-complete.

## Definitions

Let be a partially ordered set. Two elements and of a partially ordered set are called comparable if If two elements are not comparable, they are called incomparable; that is, and are incomparable if neither

A chain in is a subset in which each pair of elements is comparable; that is, is totally ordered. An antichain in is a subset of in which each pair of different elements is incomparable; that is, there is no order relation between any two different elements in (However, some authors use the term "antichain" to mean strong antichain, a subset such that there is no element of the poset smaller than two distinct elements of the antichain.)

## 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 chains then the width of the order must be at most (if the antichain has more than elements, by the pigeonhole principle, there would be 2 of its elements belonging to the same chain, contradiction). 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.^{[1]} 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.^{[2]}

## Sperner families

An antichain in the inclusion ordering of subsets of an -element set is known as a Sperner family. The number of different Sperner families is counted by the Dedekind numbers,^{[3]} the first few of which numbers are

- 2, 3, 6, 20, 168, 7581, 7828354, 2414682040998, 56130437228687557907788 (sequence A000372 in the OEIS).

Even the empty set has two antichains in its power set: one containing a single set (the empty set itself) and one containing no sets.

## Join and meet operations

Any antichain corresponds to a lower set

**join**operation on antichains:

**meet**operation on antichains, corresponding to the intersection of lower sets:

^{[4]}

## Computational complexity

A maximum antichain (and its size, the width of a given partially ordered set) can be found in polynomial time.^{[5]}
Counting the number of antichains in a given partially ordered set is #P-complete.^{[6]}

## References

**^**Dilworth, Robert P. (1950), "A decomposition theorem for partially ordered sets",*Annals of Mathematics*,**51**(1): 161–166, doi:10.2307/1969503, JSTOR 1969503**^**Mirsky, Leon (1971), "A dual of Dilworth's decomposition theorem",*American Mathematical Monthly*,**78**(8): 876–877, doi:10.2307/2316481, JSTOR 2316481**^**Kahn, Jeff (2002), "Entropy, independent sets and antichains: a new approach to Dedekind's problem",*Proceedings of the American Mathematical Society*,**130**(2): 371–378, doi:10.1090/S0002-9939-01-06058-0, MR 1862115**^**Birkhoff, Garrett (1937), "Rings of sets",*Duke Mathematical Journal*,**3**(3): 443–454, doi:10.1215/S0012-7094-37-00334-X**^**Felsner, Stefan; Raghavan, Vijay; Spinrad, Jeremy (2003), "Recognition algorithms for orders of small width and graphs of small Dilworth number",*Order*,**20**(4): 351–364 (2004), doi:10.1023/B:ORDE.0000034609.99940.fb, MR 2079151, S2CID 1363140**^**Provan, J. Scott; Ball, Michael O. (1983), "The complexity of counting cuts and of computing the probability that a graph is connected",*SIAM Journal on Computing*,**12**(4): 777–788, doi:10.1137/0212053, MR 0721012