Hall's marriage theorem
Hall's theorem (1935), also known as the marriage theorem is usually credited to mathematician Philip Hall. The theorem is a combinatorial result that gives the condition allowing the selection of a distinct element from each of a collection of finite sets.
Definitions and statement of the theorem
Let S = {S1, S2, ... } be a (not necessarily countable) collection of finite sets. A transversal for S, also known as a system of distinct representatives (SDR) for S, is a set X = {x1, x2, ...} of distinct elements with the property that for all i, xi∈Si.
The marriage condition for S is that, for any subcollection ,
(where |T| denotes the cardinality of the collection T).
Hall's theorem then states that there exists an SDR X if and only if S meets the marriage condition.
Discussion and examples
Example 1: Consider S = {S1, S2, S3} with
- S1 = {1, 2, 3}
- S2 = {1, 4, 5}
- S3 = {3, 5}.
A valid SDR would be {1, 4, 5}. (Note this is not unique: {2, 1, 3} works equally well, for example.)
Example 2: Consider S = {S1, S2, S3, S4} with
- S1 = {2, 3, 4, 5}
- S2 = {4, 5}
- S3 = {5}
- S4 = {4}.
No valid SDR exists; the marriage condition is violated as is shown by the subcollection {S2, S3, S4}.
The standard example of an application of the marriage theorem is to imagine two groups; one of n men, and one of n women. Each woman would happily marry some subset of the men; and any man would be happy to marry a woman who wants to marry him. Consider whether it is possible to pair up (in marriage) the men and women so that every person is happy.
If we let Si be the set of men that the i-th woman would be happy to marry, then the marriage theorem states that each woman can happily marry a man if and only if the collection of sets {Si} meets the marriage condition.
Note that the marriage condition is that, for any subset of the women, the number of men whom at least one of the women would be happy to marry, , be at least as big as the number of women in that subset, . It is obvious that this condition is necessary, as if it does not hold, there are not enough men to share among the women. What is interesting is that it is also a sufficient condition.
The theorem has many other interesting "non-marital" applications. For example, take a standard deck of cards, and deal them out into 13 piles of 4 cards each. Then, using the marriage theorem, we can show that it is always possible to select exactly 1 card from each pile, such that the 13 selected cards contain exactly one card of each rank (ace, 2, 3, ..., queen, king).
More abstractly, let G be a group, and H be a finite subgroup of G. Then the marriage theorem can be used to show that there is a set X such that X is an SDR for both the set of left cosets and right cosets of H in G.
The more general problem of selecting a (not necessarily distinct) element from each of a collection of sets is permitted in general only if the axiom of choice is accepted.
Proof
We prove the finite case of Hall's marriage theorem by induction on , the size of . The infinite case follows by a compactness argument.
The theorem is trivially true for .
Assuming the theorem true for all , we prove it for .
First suppose that we have the stronger condition for any nonempty proper subset T of S. Pick any to be a representative of to be part of an SDR R for S. If there is an SDR R' for , then is an SDR for S. But if then, by our assumption, . By the already-proven case of the theorem for we see that we can indeed pick an SDR for .
Otherwise, for some we have the exact size . Inside itself, for any we have , so by an already-proven case of the theorem we can pick an SDR for .
It remains to pick an SDR for which avoids all elements of (these elements are in the SDR for ). To use the already-proven case of the theorem (again) and do this, we must show that for any , even after discarding elements of there remain enough elements in : we must prove .
But
using the disjointness of and , and keeping in mind we are considering the case where . So by an already-proven case of the theorem, does indeed have an SDR which avoids all elements of
Graph theory
The marriage theorem has applications in the area of graph theory. Formulated in graph theoretic terms the problem can be stated as:
Given a finite bipartite graph G:= (S + T, E) with two equally sized partitions S and T, does there exist a perfect matching, i.e. a set of edges so that every vertex of G is incident to precisely one of them?
The marriage theorem provides the answer:
For a set X of vertices of G, let denote the neighborhood of X in G, i.e. the set of all vertices adjacent to some element of X. The Marriage theorem (Hall's Theorem) for Graph theory states that a perfect matching exists if and only if for every subset X of S
In other words every subset X of S has enough adjacent vertices in T.
A generalization to arbitrary graphs is provided by Tutte theorem.
A more general statement
Let G:= (S + T, E) be a finite bipartite graph with S and T not necessarily equally sized. Then G contains a matching of S into T if and only if
for all subsets X of S.
Logical equivalences
This theorem is part of a collection of remarkably powerful theorems in combinatorics, all of which are related to each other in an informal sense in that it is more straightforward to prove one of these theorems from another of them than from first principles. These include:
- König's theorem
- The König-Egerváry theorem (1931) (Dénes Kőnig, Jenő Egerváry)
- Menger's theorem (1927)
- The max-flow min-cut theorem (Ford-Fulkerson algorithm)
- The Birkhoff-Von Neumann theorem (1946)
- Dilworth's theorem.
In particular,[1] there are simple proofs of the implications Dilworth's theorem ⇒ Hall's theorem ⇔ König-Egerváry theorem ⇔ König's theorem.