ConceptComplete

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

Definition6.3Hall's Marriage Condition

For a bipartite graph G=(XβˆͺY,E)G = (X \cup Y, E), define N(S)={y∈Y:xy∈EΒ forΒ someΒ x∈S}N(S) = \{y \in Y : xy \in E \text{ for some } x \in S\} for SβŠ†XS \subseteq X. Hall's condition: ∣N(S)∣β‰₯∣S∣|N(S)| \geq |S| for all SβŠ†XS \subseteq X. A system of distinct representatives (SDR) for subsets A1,…,AnA_1, \ldots, A_n of a set YY is a choice of distinct elements ai∈Aia_i \in A_i. An SDR exists iff Hall's condition holds for the bipartite graph with edges {(i,y):y∈Ai}\{(i, y) : y \in A_i\}.

ExampleLatin Squares from Hall's Theorem

A Latin square of order nn is an nΓ—nn \times n array filled with nn 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 nn rows can be completed.


Deficiency and Matching Extensions

Definition6.4Hall's Deficiency Version

The deficiency of GG relative to XX is def(G)=max⁑SβŠ†X(∣Sβˆ£βˆ’βˆ£N(S)∣)\mathrm{def}(G) = \max_{S \subseteq X}(|S| - |N(S)|). The maximum matching saturating XX has size ∣Xβˆ£βˆ’def(G)|X| - \mathrm{def}(G). When def=0\mathrm{def} = 0, Hall's condition holds and XX can be completely matched.

RemarkApplications of Hall's Theorem

(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

Definition6.5Stable Matching

Given nn men and nn women with preference lists, a stable matching has no blocking pair: a man mm and woman ww who prefer each other to their current partners. The Gale-Shapley algorithm (1962) produces a stable matching in O(n2)O(n^2) 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.