Hall's Theorem and Systems of Distinct Representatives
Hall's marriage theorem characterizes when a bipartite graph has a matching that saturates one side. It is equivalent to several fundamental results in combinatorics and has elegant applications to Latin squares, permutation matrices, and fair division.
Hall's Condition
For a bipartite graph , define for . Hall's condition: for all . A system of distinct representatives (SDR) for subsets of a set is a choice of distinct elements . An SDR exists iff Hall's condition holds for the bipartite graph with edges .
A Latin square of order is an array filled with symbols so each appears exactly once per row and column. Hall's theorem proves existence: the first row is any permutation. For subsequent rows, the bipartite graph (positions vs. symbols) satisfies Hall's condition because each symbol appears equally often in available positions. By induction, all rows can be completed.
Deficiency and Matching Extensions
The deficiency of relative to is . The maximum matching saturating has size . When , Hall's condition holds and can be completely matched.
(1) Doubly stochastic matrices: Birkhoff's theorem says every doubly stochastic matrix is a convex combination of permutation matrices. The proof uses Hall's theorem iteratively to find permutation matrices. (2) Dilworth's theorem: in a partially ordered set, the minimum number of chains covering all elements equals the maximum antichain size. This follows from Hall's theorem applied to an associated bipartite graph.
Stable Matchings
Given men and women with preference lists, a stable matching has no blocking pair: a man and woman who prefer each other to their current partners. The Gale-Shapley algorithm (1962) produces a stable matching in time: men propose to their most preferred unmatched woman; women tentatively accept their best proposal and reject others. The result is man-optimal (each man gets his best stable partner) and woman-pessimal.