Dilworth's theorem by Fulkerson's reduction to König's theorem #
Dilworth's decomposition theorem ([Dil50]; [Sch17], Theorem 7.6): in a finite
poset, the maximum size of an antichain equals the minimum number of chains covering it. The dual
statement, Mirsky's theorem, is exists_isChain_and_antichain_coloring.
This file follows the bipartite-matching proof usually credited to Fulkerson ([Ful56]).
Join a left copy of x to a right copy of y whenever x < y (ltGraph, a graph on α × α in
the sense of IsMatching). Then:
- Matchings give chains. Start with every element in its own chain and, for each matching
edge
(u, v), appendv's chain afteru(mergeLabel). Because no other matching edge leavesuor entersv,uis the top of its chain andvthe bottom of its chain, so the result is again a chain, and the number of chains drops by one per edge (foldl_mergeLabel_spec). A matchingMtherefore yields a covering by|α| - |M|chains (exists_chain_coloring_of_isMatching). - Vertex covers give antichains. If
Cis a vertex cover, the elements whose left and right copies are both uncovered (VertexCover.uncovered) form an antichain, since a comparable pair among them would be an uncovered edge (isAntichain_uncovered). There are at least|α| - |C|of them (card_sub_size_le_card_uncovered).
König's theorem (exists_maxMatching_eq_minVertexCover) supplies M and C with |M| = |C|,
which gives an antichain A and a covering by |A| chains. Weak duality
(IsAntichain.card_le_of_isChain_fibre) makes both optimal.
Chains and antichains are Mathlib's IsChain (· ≤ ·) and IsAntichain (· ≤ ·). A covering by k
chains is a colouring α → Fin k whose fibres are chains. The results are for finite posets only.
The executable version, through Hopcroft–Karp, is Cslib.Algorithms.Lean.MaxFlow.minChainCover
(with its O(n^{5/2}) word-RAM realization in CslibFrontier.Algorithms.WordRAM.HopcroftKarp).
Main definitions #
ltGraph: Fulkerson's bipartite graph of a strict order.mergeLabel: merge the chain ofvinto the chain ofu.VertexCover.uncovered: the elements missed on both sides by a vertex cover.
Main results #
foldl_mergeLabel_spec,exists_chain_coloring_of_isMatching: matchings give chain covers.isAntichain_uncovered,card_sub_size_le_card_uncovered: vertex covers give antichains.exists_isAntichain_and_chain_coloring: Dilworth's theorem, an antichainAand a covering by|A|chains.exists_chain_coloring_iff: Dilworth's theorem, min–max form:αis covered bykchains if and only if every antichain has at mostkelements.
References #
Fulkerson's bipartite graph of a strict order: the left copy of x is joined to the right copy
of y when x < y.
Relabel along the edge (u, v): every element carrying v's label receives u's label.
Fulkerson's chain construction. Folding mergeLabel over the edges of a matching of
ltGraph, starting from an injective labelling, leaves chain fibres, and the number of labels
drops by one per edge.
Fulkerson's reduction, matchings to chains. A matching M of ltGraph yields a covering
by |α| - |M| chains.
The elements whose left and right copies are both missed by a vertex cover of a graph on
α × α.
Fulkerson's reduction, covers to antichains. The elements that a vertex cover of ltGraph
misses on both sides form an antichain.
A vertex cover of size |C| misses at least |α| - |C| elements on both sides.
Dilworth's decomposition theorem ([Dil50]; [Sch17], Theorem 7.6): a finite
poset has an antichain A and a covering by |A| chains. The proof is Fulkerson's reduction
([Ful56]): a maximum matching M of ltGraph gives |α| - |M| chains, and König's
theorem gives a vertex cover of size |M|, which misses an antichain of at least |α| - |M|
elements. By weak duality A is a largest antichain and the covering uses the fewest chains.
Dilworth's decomposition theorem, min–max form ([Sch17], Theorem 7.6): a finite
poset can be covered by k chains if and only if every antichain has at most k elements.