Chain–antichain duality and Mirsky's theorem #
A colouring f : α → ι with antichain fibres (each f ⁻¹' {i} is an antichain) is a covering of
α by antichains indexed by ι; one with chain fibres is a covering by chains. A chain meets each
antichain at most once and vice versa, which gives weak duality in both directions
(IsChain.card_le_of_isAntichain_fibre, IsAntichain.card_le_of_isChain_fibre).
Mirsky's theorem ([Mir71]; [Sch17], Theorem 7.5) is the strong duality for chains:
in a finite poset, the maximum size of a chain equals the minimum number of antichains covering it.
The proof colours each element by its height (Order.height), the length of the longest strictly
increasing series ending there, which is strictly monotone; an element of maximal height ends a
chain with one element per colour. The dual statement, Dilworth's theorem, is
Cslib.Algorithms.Lean.MaxFlow.exists_isAntichain_and_chain_coloring.
Chains and antichains are Mathlib's IsChain (· ≤ ·) and IsAntichain (· ≤ ·), and finite chains
are Finsets. Mirsky's theorem is stated for every finite partial order, including the empty one
(the empty chain and the empty colouring).
Main results #
IsChain.injOn_of_isAntichain_fibre,IsAntichain.injOn_of_isChain_fibre: a colouring is injective on a chain if its fibres are antichains, and on an antichain if its fibres are chains.IsChain.card_le_of_isAntichain_fibre,IsAntichain.card_le_of_isChain_fibre: weak duality.Order.height_lt_top_of_finite: in a finite preorder every height is finite.exists_isChain_and_antichain_coloring: Mirsky's theorem, a chainCand a covering by|C|antichains.exists_antichain_coloring_iff: Mirsky's theorem, min–max form:αis covered bykantichains if and only if every chain has at mostkelements.
References #
Weak duality for chains ([Sch17], display (17)): a finite chain has at most as many elements as there are colours in any colouring with antichain fibres.
Weak duality for antichains ([Sch17], display (17)): a finite antichain has at most as many elements as there are colours in any colouring with chain fibres.
In a finite preorder every element has finite height: a strictly increasing series has fewer
than Fintype.card β steps.
Mirsky's theorem ([Mir71]; [Sch17], Theorem 7.5): a finite poset has a chain
C and a covering by |C| antichains. Colour by height: the colour classes are antichains, and an
element of maximal height h ends a chain of h + 1 elements. By weak duality C is a longest
chain and the colouring uses the fewest antichains.
Mirsky's theorem, min–max form ([Sch17], Theorem 7.5): a finite poset can be
covered by k antichains if and only if every chain has at most k elements.