Chains and Antichains
How many mutually compatible tasks can you schedule? How many must remain forever unrelated? This single question, phrased abstractly, drives the theory of chains and antichains. These structures live inside a partially ordered set. Once a set carries an order relation, two extreme kinds of substructure emerge. Chains are substructures where every pair of elements is comparable. Antichains are substructures where no pair is comparable. These are the order-theoretic analogues of "totally sorted lists" and "mutually incomparable items." Together they measure the shape of a poset, the way length and width measure a rectangle. The idea matters because comparability is rarely all-or-nothing. Tasks with dependencies, divisibility among integers, subsets under inclusion, and words under the prefix relation all produce posets. These posets are neither totally ordered nor totally disordered. Chains capture the longest thread of forced sequencing. Antichains capture the largest cluster of tasks that could happen in parallel, with no order constraint among them. The two invariants built from these ideas — height and width — are the first quantitative fingerprints of a poset's structure. The big picture is that height and width are dual lenses on the same object. A chain is a witness that the poset has "depth" in at least one direction. An antichain is a witness that the poset has "breadth" — many elements no rule forces into an order. Later results (most famously Dilworth's Theorem) show that these two notions are tied together by an exact numerical identity. This turns a qualitative distinction into a precise combinatorial law. This article gives the formal definitions of chains, antichains, height, and width. It builds visual intuition via Hasse Diagrams. It proves the basic structural facts relating these quantities, including Mirsky's theorem, a clean special case of the Dilworth circle of ideas. It works two concrete non-symmetric examples. It closes with a look at where the concepts recur across mathematics and computer science.
- A chain in a poset is a subset in which every two elements are comparable (a totally ordered subset).
- An antichain is a subset in which no two distinct elements are comparable.
- The height of a poset is the largest size of a chain; the width is the largest size of an antichain.
- Chains and antichains intersect in at most one point — a single element is trivially both.
- Height relates to the minimum number of antichains needed to cover the poset (Mirsky's Theorem).
- Key idea: chains measure how deeply ordered a poset is, antichains measure how much of it is mutually incomparable, and both are computed by looking for the longest or largest such substructure.
Where this lives today
Chains and antichains are not a museum piece confined to poset theory; they surface wherever "comparability" models a real constraint.
Scheduling and project management. In a task-dependency graph (a poset where means "task must finish before task starts"), a chain is a sequence of tasks forced into strict order, and an antichain is a set of tasks that could run in parallel with no dependency conflicts. The width of the poset is exactly the minimum number of parallel "workers" or processors needed if tasks in an antichain may run simultaneously — a direct real-world reading of Dilworth's Theorem.
Combinatorics of Young tableaux and the RSK correspondence. In the study of permutations, the longest increasing subsequence and longest decreasing subsequence of a sequence correspond exactly to the longest chain and longest antichain in an associated poset (points in the plane ordered coordinatewise). The Erdős–Szekeres theorem is a direct corollary of the chain/antichain product bound: any sequence of more than distinct numbers contains an increasing subsequence of length or a decreasing subsequence of length .
Cryptography and access control. Role-based and lattice-based access control models represent permission hierarchies as posets; an antichain of roles represents mutually non-dominating privilege levels, while chains capture strict escalation paths — width bounds the number of independent "clearance tracks" a system must support.
Statistics and multivariate ordering. Pareto-optimality in multi-objective optimization is precisely the notion of an antichain in the product order on outcome vectors: the "Pareto frontier" is a maximal antichain, and its size measures the genuine diversity of non-dominated trade-offs.
Coding theory and extremal set theory. Sperner's theorem, computing the width of the Boolean lattice (shown to equal ), is a direct width computation in the sense defined here, and underlies bounds in extremal combinatorics and coding theory involving antichains of subsets.
Ask the tutor: How does the proof of Dilworth's Theorem differ in difficulty from the proof of Mirsky's Theorem given here, and why does the "easy" chain-covering direction fail to have an equally short argument?
Let be a partially ordered set (poset): a set with a relation that is reflexive, antisymmetric, and transitive.
Chain. A subset is a chain if any two elements satisfy or . Equivalently, with the restricted order is a totally ordered set (a linear order). The length of a finite chain is ; its size is .
Antichain. A subset is an antichain if any two distinct elements satisfy and — that is, no two distinct elements of are comparable.
Height. For a finite poset , the height is the maximum size of a chain in :
Width. The width is the maximum size of an antichain in :
Both maxima exist whenever is finite, since there are only finitely many subsets to check; for infinite one instead speaks of the supremum of chain or antichain sizes (possibly ), or of the existence of infinite chains/antichains as a separate structural question.
Intuition
Picture a Hasse diagram: elements are dots, and an edge is drawn upward from to whenever covers (i.e. with nothing strictly between). A chain is any path you can trace by repeatedly moving upward through the diagram, possibly skipping levels — it is a "staircase" of mutually comparable elements. An antichain, by contrast, is a set of elements you could draw as a horizontal slice: none reachable from another by moving only upward or only downward. The key subtlety is that a horizontal level of a Hasse diagram (elements at the same height above the minimum) is always an antichain, but the converse fails: an antichain can zig-zag across several levels, so long as no two chosen elements are joined by any upward path at all. This is exactly what makes width a genuinely global invariant, not something read off level-by-level.
Here is the power set of ordered by inclusion — a standard example built from Partially Ordered Sets itself. The bold path is a chain of size , so (no larger chain exists, since 's ranks only go from size to size , giving ranks). The middle level is an antichain of size ; one checks directly that no 4-element subset of is pairwise incomparable, so .
The central results
Let be a finite poset. Define, for each ,
Then: 1. Each level set , for , is an antichain. 2. These level sets partition into exactly antichains, and is the minimum number of antichains into which can be partitioned. Equivalently:
We use the proof technique of extremal chain functions combined with a minimality argument, and we verify both the covering claim and the optimality claim.
Step 0: is well defined. Since is finite, every chain has finite size, and the set of chains with maximum element is nonempty (the singleton is always such a chain, of size ) and bounded above in size by . Hence the maximum defining exists, for every , by finiteness.
Step 1: each is an antichain. Suppose, for contradiction, that are distinct and comparable, say (the case is symmetric). Let be a chain with maximum element and . Since , the set is again a chain (every element of is , so comparable to ), it has maximum element , and it has size . Hence , contradicting , i.e. . So no two distinct elements of are comparable, proving is an antichain.
Step 2: the partition into exactly nonempty classes. Every has some well-defined value , so the sets (over all values taken by ) cover and are pairwise disjoint by definition of a function's level sets. We claim the values taken by are exactly .
- ( takes value .) Let be a chain of maximum size , with top element . Then ; but is itself the size of some chain in , so by maximality of over all chains. Hence .
- ( never exceeds .) For any , is the size of a chain in , so by definition of as the maximum chain size.
- ( takes every value from to .) Take a chain realizing the height. We show for each . The prefix is a chain with top element and size , so . If , there would be a chain of size with top element ; then would be a chain (every element of is ) of size , contradicting the maximality of . Hence exactly, for every .
Thus are all nonempty, pairwise disjoint, cover , and each is an antichain by Step 1. This proves can be partitioned into exactly antichains.
Step 3: no partition into fewer than antichains exists. Suppose with each an antichain, and suppose . Let be a maximum chain. Each lies in some , giving a function . Since , by the pigeonhole principle two indices satisfy , i.e. and lie in the same antichain . But makes them comparable and distinct, contradicting that is an antichain. Hence no partition into fewer than antichains exists, so is indeed the minimum number of antichains needed.
∎For any finite poset , and any chain and antichain in :
Consequently and are each at most , and if is covered by antichains then ; dually if is covered by chains then .
If are distinct, then forces them comparable (chain property), while forces them incomparable (antichain property, since ) — a direct contradiction. So . For the covering bounds: if (antichains) and is any chain, each element of lies in some , and by the intersection bound just proved, for each . Summing over the (at most ) parts, . Taking to be a maximum chain gives . The dual statement ( when is covered by chains) follows by the symmetric argument, swapping the roles of "chain" and "antichain" throughout — each antichain meets each chain part in at most one element.
∎This corollary is the easy half of the identity that Dilworth's Theorem completes: it shows a cover by chains always gives an upper bound , and dually a cover by antichains gives (which Mirsky's theorem shows is tight for the antichain direction). Dilworth's theorem asserts the chain direction is also always tight: the minimum number of chains needed to cover equals exactly, not merely bounds it from above.
Worked examples
Example 1: Divisibility poset on . Let ordered by divisibility: iff . Height. A chain is a sequence of numbers each dividing the next. Consider
This is a chain of size (all terms lie in , since is excluded). Could there be a longer chain? Any chain with satisfies whenever (since a proper multiple of is at least ), so a strictly increasing chain of length starting at has . Requiring forces , i.e. (since ). Hence . Width. Consider the set of integers in , i.e. , of size . If with and , then , impossible since . So is an antichain of size . Is there a larger one? By Mirsky's theorem in reverse — or directly — one can partition into antichains matching the "highest power of 2 dividing the odd part's chain position" stratification, but a cleaner argument: every integer can be written uniquely as with odd; group by the odd part . Each group is a chain (all terms are comparable via divisibility, forming a chain of consecutive powers of times ). The odd numbers in are , giving exactly such chains, and they partition (every integer has a unique odd part). By the corollary above, covering by chains gives . Combined with the antichain of size exhibited above, exactly.
Example 2: Subsets of ordered by inclusion, restricted to sizes only (an asymmetric sub-poset). Let consist of all subsets of of size , , , or (sizes deliberately omitted), ordered by inclusion. Concretely:
so . Height. A maximal chain must go where is a -element set containing . For instance is a valid chain (each inclusion strict and holds), of size . Since ranks in only take values (four distinct rank values), no chain can have more than elements — each element of a chain must have a distinct rank (comparable, unequal sets under inclusion have different sizes), and only rank values are present. So . Width. The size- singletons form an antichain of size (no singleton contains another). Likewise the four -sets form an antichain of size . Can we do better, e.g. mixing singletons and triples? Check against : is ? No. Is ? No. They're incomparable! In fact (for a -set ) happens iff , and each -set omits exactly one element of , so fails only when is the unique -set omitting . So pick, for each singleton , the -set that omits : then and (as ), so and are incomparable. Concretely take
matched so that pairs with the -set omitting — but we must check all cross pairs, not just matched ones. Take and : here , so — comparable! So the full union of all singletons and all triples is not an antichain; only a careful mixed selection can work, and in fact no such 8-element mix is antichain since each singleton is contained in exactly three of the four triples (all except the one it's excluded from), giving many comparable cross-pairs. Testing shows the largest antichain stays at size : any antichain containing a singleton can include at most the one triple avoiding (all three others contain ), and one checks by exhaustion over the candidate -subsets that no -element antichain exists (adding a fifth element to either all-singletons or all-triples always creates a containment, since and the full set are comparable to everything, and mixing singleton/triple pairs beyond one clash quickly forces comparability by the pigeonhole argument on the excluded elements). Hence .
Why the hypotheses matter
The theorem defining height and width as a maximum implicitly used finiteness of to guarantee that maximum exists (Step 0 of the Mirsky proof invoked finiteness explicitly). Consider , the positive integers under the usual order . This is itself a single infinite chain, so "height" as a max is not attained by any finite number — has chains of every finite size but no single largest finite chain achieves a maximum (only a supremum, , or an infinite chain equal to itself). This does not break Mirsky's theorem's statement (one can still discuss as one infinite antichain-free chain), but it shows why the maximum-defining formalism in the definition, and the finiteness hypothesis in the Mirsky/covering proof (used to guarantee is well-defined via a finite maximum, and to run the pigeonhole argument on a finite chain), is not idle: replacing "max" with "sup" changes the theorem's content, and the pigeonhole step in Step 3 of the proof requires a finite chain to conclude two indices collide — with an infinite chain and infinitely many antichain-parts, no contradiction need arise. Concretely, take partitioned into the countably many antichains (each singleton): this uses infinitely many antichains to cover an object of "height" , and the clean finite identity becomes a statement about cardinals rather than a finite equality, requiring separate (and more delicate) infinite combinatorics to even state correctly.
Scope, edge cases & common traps
| Situation | What happens | Why |
|---|---|---|
| finite, nonempty | are well-defined positive integers | Finite max over a nonempty finite collection of subsets exists |
| by convention | The empty poset has no elements, so the largest chain/antichain is the empty set | |
| a single chain (totally ordered) | , | Every two elements are comparable, so any antichain has size |
| an antichain (no two comparable) | , | Every two elements are incomparable, so any chain has size |
| Confusing "chain" with "a level of the Hasse diagram" | Leads to wrong width computations | A single level is always an antichain, but a maximum antichain may span several levels (as in Example 2) |
| Confusing (chain size) with chain length | Off-by-one errors in height formulas | Length is conventionally (number of edges/steps), while height as defined here counts elements |
The mathematician behind it
Origins · 1 minLeon Mirsky and how this was discovered
Leon Mirsky was a Russian-born British mathematician whose broad work in number theory, linear algebra, and combinatorics included the clean antichain-covering theorem now bearing his name. Mirsky's theorem is the height-dual companion to Dilworth's 1950 width-dual theorem, and Mirsky himself noted the striking symmetry: while Dilworth's theorem (relating maximum antichains to minimum chain covers) requires a genuinely nontrivial combinatorial argument, its "mirror image" — relating maximum chains to minimum antichain covers — has an easy, almost immediate proof, precisely the greedy stratification by given above.
What is the difference between a chain's "length" and its "size"?
Size is simply the number of elements in the chain, . Length, in the classical convention used across order theory, is one less than size: , reflecting the number of "steps" or covering relations traversed from the bottom to the top of the chain if it happens to be a chain of consecutive covers. The height as defined in this article counts elements (size), so a poset consisting of a single element has height , not height ; some texts instead define height using length, giving height for a single point, so always check which convention a given source uses before comparing numbers across texts.
Is every level of a graded poset's Hasse diagram automatically the maximum antichain?
No. Every rank level is an antichain (elements at the same rank are never comparable, since comparable elements have different ranks in a graded poset), but it need not be the largest one. Example 2 in this article exhibits a poset where the maximum antichain (size 4) can be found at either the singleton level or the triple level, and in more complex posets the true maximum antichain can even combine elements from multiple ranks, as Sperner-type extremal problems on non-Boolean posets sometimes show.
How are height and width related to the size of the poset overall?
There is no equality in general, only inequalities from the covering corollary: if is partitioned into chains (which Dilworth's theorem guarantees is always possible), then , since each of the chains has size at most . This inequality, sometimes phrased via the Erdős–Szekeres philosophy, says a poset cannot be simultaneously "short" and "narrow" if it has many elements — at least one of height or width must grow.
Does every finite poset actually contain a chain and an antichain of the extremal sizes and simultaneously, sharing a common element?
Not necessarily the same element structure, but the intersection bound in the corollary shows any chain and antichain overlap in at most one element regardless of which extremal ones you pick. There is no general guarantee that a maximum chain and a maximum antichain intersect at all; they may be entirely disjoint subsets of , as in Example 2, where the maximum chain and the maximum antichain of all four singletons do share the element , but one can construct posets where an optimal choice of each is fully disjoint.
Why is Mirsky's theorem considered "the easy half" compared to Dilworth's theorem?
Mirsky's proof constructs the antichain partition directly and explicitly, via the rank function , and the minimality argument is a one-line pigeonhole contradiction. Dilworth's theorem, by contrast, asks for a chain cover matching the width, and no comparably simple greedy rank function accomplishes this directly; its standard proofs use induction on poset size or a reduction to matching/flow arguments (e.g. via König's theorem in bipartite graphs), which is substantially more machinery than the level-set argument sufficing here.
Can a poset have height 1 and width 1 simultaneously?
Yes, precisely when . If has two or more elements , they are either comparable (giving a chain of size , so ) or incomparable (giving an antichain of size , so ), by the very definition of a partial order (any two elements are either comparable or not — there is no third option). So forces ; this is a quick corollary of trichotomy failing to hold in general posets, only "comparable or incomparable" holding.