Theorem 6.17 — Dilworth's Theorem
ProvedAppliedComb.Posets.dilworthLet be a finite poset and let be the largest size of an antichain (a set of pairwise incomparable points). Then can be partitioned into chains,
and there is no partition of into fewer than chains.
Thus the least number of chains needed to cover a finite poset equals the size of its largest antichain. The theorem is equivalent to König's theorem on bipartite matchings and to Hall's marriage theorem, and it is the capstone of the chapter.
Formalization Note. Stated for a finite type α (the book defines width as a maximum, which presumes finiteness). Width is defined from antichains (AppliedComb.Posets.width), never as a minimum number of chains, so the statement is not true by definition. The partition is indexed by Fin (width α); the "no fewer" clause quantifies over every k and every chain partition indexed by Fin k, and concludes width α ≤ k. The empty poset () is included.
import Mathlib import Definitions.Def_AppliedComb_Posets_width import Definitions.Def_AppliedComb_Posets_chainPartition
namespace AppliedComb.Posets
/-- Theorem 6.17 (Dilworth's Theorem), Keller & Trotter p. 122: a finite poset of width `w`
has a partition into `w` chains, and every chain partition has at least `w` parts. -/
theorem dilworth (α : Type*) [PartialOrder α] [Fintype α] :
(∃ C : Fin (width α) → Finset α, IsChainPartition C) ∧
∀ (k : ℕ) (C : Fin k → Finset α), IsChainPartition C → width α ≤ k := by sorry
end AppliedComb.Posets
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Let be any type with a partial order that has finitely many elements. The statement uses two notions that are imported from other files, and their definitions are not included in the code given to me:
- , a natural number attached to the ordered type (it is a natural number because it is used both as the size of an index set and in a comparison with a natural number );
- , a property of a family of finite subsets of , indexed by the elements of .
This read-back cannot expand either definition. Their names suggest "the maximum size of an antichain" and "the sets are chains that partition ", but nothing in the code shown confirms this. What the statement means depends entirely on how those two definitions are written. In particular, the code shown does not settle whether empty parts are allowed, whether the must be pairwise disjoint, or whether they must cover .
Under these assumptions, the statement asserts that both of the following hold:
- Existence. Let . There is a family of exactly finite subsets of such that
holds.
- Lower bound. For every natural number and every family of finite subsets of ,
Taken together, the two parts say that is the smallest for which some family indexed by satisfies . The inequality is non-strict (), and the family in part 1 has exactly indices. Whether that means exactly nonempty parts depends on whether allows empty . There are no hypotheses beyond these three: is a type, it is partially ordered, and it is finite. The descriptive comment attached to the declaration is not part of what it asserts.
Degenerate cases. If is empty, then the value of comes from the unseen definition; it is typically for a maximum over an empty collection of antichains. If it is , part 1 asserts that the empty family (indexed by the empty set ) satisfies . Part 2 with then asserts , and it only has force if the empty family satisfies . If has one element, both parts depend on the width that the unseen definition gives a single point. For any , part 2 with says that if the empty family satisfies , then the width is . If allows empty parts, part 2 covers families padded with any number of empty sets. Part 1 then only needs some family of exactly sets, some of which may be empty. The statement contains no division, natural-number subtraction, integrals or suprema, so no default ("junk") values appear in the code shown. Any such behaviour would sit inside the unseen definitions of and .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.
Confirmed by the moderator at approval.