WorksEconomics, Econometrics and Finance
Continuity of stable marriage correspondences
Abstract
We study a continuum version of the stable marriage problem, in which each agent has a variable mass to be paired to the opposite side. An agent's mass is interpretable as the divisible time of a single atomistic agent, or as a mass of infinitesimal agents of a particular type. Our object of interest is the mapping between the vector of masses to the set of stable matches. As in the canonical stable marriage model, the set of stable matches can be multi-valued, so this mapping is a correspondence. This correspondence is continuous if and only if the stable match is unique, implying that small changes in the masses may cause discontinuous jumps in the set of stable matches.
Introduction
The stable marriage problem of Gale and Shapley [6] is the canonical two-sided matching market. In their model, two sides of discrete agents seek to match with each other in a way that is stable, in the sense that no man and woman who are not paired would be better off by marrying each other. Baïou and Balinski [3] extend this to a stable allocation problem between “workers” and “employers”. Each agent remains discrete, but there is a divisible mass of each agent. The goal is to allocate the time of workers to employers in a stable way, similarly defined—no mass of a pair of agents would break off and re-match with each other. The mass of an agent can be alternatively interpreted as infinitesimal individuals of a given type.
It is a well-known informal fact of the Gale and Shapley model that small changes to the market composition (e.g. addition or removal of agents) can result in dramatic changes to the set of stable matches.1 We extend and formalize this result to the stable allocation setting, taking advantage of the setting’s additional topological structure. Like in the discrete case, the set of stable matches may be multi-valued. Thus the mapping from the vector of type masses (“populations”) to the set of stable matches is a set-valued function (correspondence). Our main result is that this correspondence is continuous if and only if it is single-valued; that is, when the stable matching is unique. An informal statement is below.
Theorem. The stable matching correspondence is continuous (upper and lower hemicontinuous) at a population vector if and only if is single-valued.
Before we present the model and technical results, we note some applications of the setting and our results.
Gig platforms. On gig platforms, workers and consumers are plentiful and can be modeled symmetrically. The platform seeks to match the time of workers to the needs of consumers.3
Stable allocation of tasks. One side is workers, and the other is employers (or projects). Rather than having a mass of agents, each discrete agent has a mass of available or required time.
Marriage markets. Hiller, Wu, and Zhang [8] build a similar continuum marriage market with four discrete types per side.4 They note that small demographic shifts can drastically alter results. Our main theorem isolates a source of change; since the stable matching correspondence is not generally continuous, even infinitesimal changes to the population vector can cause large shifts in the set of stable matches.
Negative implications. In the model we study, may be multi-valued. This introduces two sources of difficulties for comparative statics: selection of a stable match inside matters; and changes to can cause discontinuous changes in .
Positive implications. There are special cases where is single-valued. Baïou and Balinski [3] note a sufficient condition for a unique stable matching, called “strong nondegeneracy”. Informally, a market is strongly nondegenerate if neither it nor any proper subset has equal mass of the two sides. If the populations are drawn from real numbers (rather than integers), uniqueness and thus continuity is the typical case. We formalize this in § 4.2.
Another immediate case is where at least one side shares identical preferences; e.g. all the men types have the same preferences over the women. In these cases, is continuous.
A number of other papers deal with two-sided matching in continuum settings, including Carmona and Laohakunakorn [4], Che, Kim, and Kojima [5], Greinecker and Kah [7], and Menzel [9].
§ 2 formally describes the model. § 3 describes useful structure of the set of stable matches. § 4 contains the main theorem. § 5 describes an implication of our main result to the approximation of large discrete markets with continuum markets.
Model
We study a two-sided marriage market with discrete agent types, which determine preferences, and masses of each type. The model was first noted in Baïou and Balinski [3].5
There is a finite set of man types, each type with a strict preference order over . Likewise, a finite set of women types, each with a strict preference order over . We use to represent being unmatched, and suppress the set brackets in the future. There is a vector of positive masses of each type (population) .
An aggregate matching is a matrix , where represents the mass of type matched to type . by convention. An aggregate matching is feasible if for all and for all . Given , we denote the support of as .
Definition 1. A pair blocks if there exist such that
and
is pairwise stable (PS) if there does not exist any blocking pair. is individually rational (IR) if, whenever for , , then and . is stable if it is PS and IR.
Example 1. Let a continuum market be with preferences
Table 1.
and population . The unique stable match is
Table 2.
We are interested in the stable matching correspondence defined as
We recount the definitions of hemicontinuity.
Definition 2. Let be compact-valued. Then is upper hemicontinuous (uhc) at if and only if for every sequence in and every sequence such that , we have .
Definition 3. The correspondence is lower hemicontinuous (lhc) at if and only if for every sequence in and every , there exists a subsequence and sequence such that .
Remark 1. These are not the typical primitive definitions of uhc and lhc, but they are equivalent given the compact-valuedness of . We will show that is closed; boundedness is immediate.
Structure of
Many results on the structure of stable matches are analogous to standard results for the original Gale and Shapley setting; we refer the reader to [10].
Using first-order stochastic dominance, we extend the preference of each type to a partial order over matchings as follows. Let be two matchings.
: Let if for all :
: Let if for all :
Now we define a partial order for each side over matchings.
Let if
Let if
The following are due to Baïou and Balinski [3].
Lemma 1 (Existence. Baïou and Balinski [3]. Corollary 1.). For any , is nonempty.
Lemma 2 (Opposing interests. Baïou and Balinski [3]. Theorems 5, 6, and 10.). Let . Then if and only if . Further, there exists a unique -maximal matching, denoted , and a unique -maximal matching .
Lemma 3 (Rural hospitals. Baïou and Balinski [3]. Lemmas 8–9.). In any ,
Further, if has in some , then for all . The analogous is true for any .
We now present original results that are useful for proving the main result. First we introduce an alternative characterization of . The following is straightforward from the definition of stability.
Lemma 4. Fix . Let be two feasible matchings such that . If then . Further, if , then .
Proof. Omitted.
The above also suffices to show that is homogeneous of degree one.
Lemma 5. Let . Then .
Proof. Omitted.
In words, two feasible matchings with the same support have equivalent stability, regardless of the actual masses . Given a stable match , a feasible match with a smaller support is also stable. This is because by definition, there are fewer conditions to check for stability. In particular, if , then the set
is stable. Observe that this set is closed and bounded (since each respects the population ). Since there are finite possible supports of stable matchings given a population , taking the union across supports shows that is compact.
Corollary 1. is compact.
Proof. Let
which is finite, since . Then we can write
which is a finite union of closed and bounded sets.
The next example illustrates a case of multiple stable matches, as well as some of the above properties.
Example 2. Continuing from Example 1, consider the same types and preferences with population . The set of stable matches is
for . Observe that for , we have and .
Continuity
We now turn to the main results. The first result is that is uhc everywhere and thus continuous when it is single-valued.
Theorem 1. The stable matching correspondence is upper hemicontinuous everywhere. If , then is continuous at .
Proof. Let be a convergent sequence in . Let be a convergent sequence such that . We wish to show . That is, we show is feasible, IR, and PS at .
Feasibility. Since row and column sums of are continuous functions of , feasibility is preserved in the limit.
IR. Suppose there is such that but . Then for large enough , , else , a contradiction to stability of . The case is symmetric.
PS. Suppose is a blocking pair for . Then there exists such that
But then for large enough , and , contradicting stability of .
When and is compact-valued, equivalence of uhc to continuity is standard. Let , and choose any . Since is bounded, the corresponding matchings are bounded, and has a convergent subsequence. By uhc, its limit must lie in . Since , every limit of a convergent subsequence is . Hence , as desired.
The second and more difficult result is that is lhc at if and only if is single-valued.
Theorem 2. The stable matching correspondence is lower hemicontinuous at if and only if .
The “if” direction is a corollary of Theorem 1. The remainder is in the following subsection.
Proof of Theorem 2
We first introduce a graph construction. Fix and let . Define the graph with nodes
and edges
By Lemma 4, any feasible matrix such that is also stable.
Supposing is single-valued, so , the graph is acyclic; the converse is also true. (The converse is the important direction for our proof.)
Lemma 6. If , then is acyclic.
Proof. Toward a contradiction, suppose contains a cycle, denoted
where each edge has . Let
where is the basis vector in corresponding to . That is, adds mass to odd edges and subtracts equivalent mass from even edges. For , the matching
is feasible and has the same support . Thus , a contradiction.
Supposing is multi-valued, the following result identifies a cycle along which mass can flow while remaining stable.
First, we describe Baïou and Balinski [3]’s man-improving algorithm. Starting from any stable matching, the algorithm either certifies man type as optimal, or finds a directed cycle that can improve . The usefulness of the algorithm (for our purpose) is that it generates a convex set of stable matches along a cycle; the welfare aspect and exact construction is unimportant for us. Readers may safely skip to Lemma 7, which contains the needed implication for our proof.
Given a stable matching and mutually acceptable pair , call man-stable if
and woman-stable if
The algorithm constructs a chain of men as follows:
Let be the subset of men whose allocations are already man-optimal. That is, for . Initialize with all such that (by 3). If , stop.
Otherwise, choose , and let be ’s worst realized partner in . Call even; we will remove mass from even cells.
At an even cell , consider ’s preference ranking. Consider men such that is not man-stable; so . Choose the one most preferred by , and call him . (Existence is treated below.) Thus
and
The cell is an odd cell; mass will be added to it.
Suppose no such exists. Then Baïou and Balinski [3] (cf. pp. 678–679) show that all men encountered so far in the chain are man-optimal; add them to and return to Step 1.
If exists, let be his worst realized partner in . Since is not man-stable, must have positive mass matched with someone strictly worse than . Hence
Call the next even cell.
Continue alternating even and odd cells until a man or woman repeats. Then there is a simple cycle
where moving mass along improves the man side.
Formally, let
where is the basis vector in denoting a 1 in the entry. Let , and set
is a set of man-side improving matches.
Baïou and Balinski [3] also show that the constructed are stable.6 Concisely, observe that all share the same support and thus have the same support graph . Observe also that is a cycle in . This shows the converse of Lemma 6.
Lemma 7. Let . Then there exists with support graph containing a cycle
Proof. Omitted.
The next example continues the previous one and illustrates the construction.
Example 3. Continuing Example 2, consider the set of stable matches . For , the support graph consists of every edge . These edges also form a cycle (in the order listed).
We next show that the component containing in any support graph is a tree.
Lemma 8. Let . The connected component of the graph containing is a tree.
Proof. Let denote ’s worst realized match, and analogously for . Since is stable, every edge has either or . That is, edges are of the form or .
Each vertex contributes the edge (re-ordering for or belonging), since is binding. The vertex contributes no additional edges beyond these. A connected component with nodes thus contains at most distinct edges. A connected component on vertices with or fewer edges is a tree.
We now turn to the proof of the main result; the sketch is as follows. We start with . The cycle must be part of a connected component of that does not contain . Thus this component has equal mass of both sides. If we introduce infinitesimal mass to the side, the resulting stable matches cannot lie in . Thus we find a discontinuous change in .
Proof of Theorem 2. Let be multivalued. Then fix from Lemma 7 and its support graph , which contains a cycle . Note that each pair has .
Let (that is, adding shrinking mass to the first man in the cycle), so . Toward a contradiction, suppose that is lhc at , so there exists a subsequence of (abusing notation, denoted ) and sequence with . Let be the profile of worst realized matches in .
For large enough , we have whenever , in particular for . Thus each of these edges is in for large enough ; recall that they form a cycle. Denote the component containing this cycle as ; since it contains a cycle, it does not include by Lemma 8. Thus
as this component is fully matched.
Since , we have
There are finitely many possible pairs , so has finitely many possible values. (Note are not indexed by .) But this contradicts that .
Uniqueness
Baïou and Balinski [3] show the following sufficient condition for , which they term strong nondegeneracy.
Lemma 9 (Strong nondegeneracy. Baïou and Balinski, [3], Theorem 9). Fix , , and . Suppose that for all nonempty subsets and ,
Then is single-valued.
Thus, in Euclidean space, uniqueness is the generic case. Formally, the set of strongly nondegenerate vectors is open and dense in , and its complement has Lebesgue measure zero.
Proposition 1. Define
Then is open and dense in , and has Lebesgue measure zero.
Proof. For any nonempty and , define
The set is the intersection of with a proper hyperplane, so it is closed relative to and has Lebesgue measure zero. Observe that
where the union is finite because there are only finitely many possible pairs . Hence has Lebesgue measure zero. Moreover, as a finite union of relatively closed sets with empty interior, it is relatively closed and nowhere dense in . Therefore its complement is open and dense in .
Approximation of discrete markets by continuums
Continuum matching models are often used as approximations to large finite markets, such as in Azevedo and Leshno [2] and Che, Kim, and Kojima [5]. In our setting, the connection is straightforward. A discrete market with many agents of finitely many types can be represented by a vector of type counts. After rescaling individuals to have vanishing mass, this becomes a population vector , and the approximation is governed directly by the properties of .
Two conclusions arise from our continuity results. Upper hemicontinuity gives consistency: any limit of stable outcomes of discrete markets is stable in the limiting continuum market. Uniqueness (and thus lower hemicontinuity) gives robustness: if , then every stable outcome of every sequence of discrete markets converges to . Conversely, if is multi-valued, then there is some and some sequence of discrete markets for which no stable outcomes approach .
Thus our results highlight two issues when choosing approximations via continuums. First is the selection of the population vector —since is not generally continuous, small changes in can result in discontinuous changes in the set of stable matches. Second is the exact nature of the approximation. Selection of the actual sequence of discrete markets can change the available limiting points. In words, the manner in which the market grows and agents shrink affects the available limiting points. When is such that there is a unique stable matching, both issues are resolved.
We introduce notation to formalize the above notions. Fix agent types and preferences . Let be a sequence of discrete counts, where is the count of agent type . Let be an aggregate count matrix, where represents the count of type matched to . Stability is defined analogously to the notion for continuum models. Formally, is stable if7
To represent agents of shrinking mass, let and define
By Lemma 5, implies that . Letting such that converges thus creates a sequence where discrete agents shrink in mass toward a continuum model.
The first result, consistency, guarantees that the limit of any sequence of stable matches is itself stable.
Proposition 2 (Consistency). Fix . Let and . Let be a convergent sequence, where each is a stable aggregate count matrix of the th market. Then .
Proof. This is a consequence of uhc of , by Theorem 1. We know each . Since is convergent and is uhc, .
The next result is a similar consequence of uhc; if is a singleton, any sequence will converge.
Proposition 3 (Robustness I). Fix , and suppose . Let and , and let be any stable aggregate count matrix of the th market. Then
Proof. Since , the sequence is bounded. Since is uhc, every convergent subsequence from has a limit in . Thus as desired.
The next result is the most substantial. Fix a sequence . If is not lhc at , then there will exist such that no sequence will converge to it. Informally, there are continuum stable matches that are not the approximation of any discrete stable matches.
Proposition 4 (Robustness II). Fix , and suppose . Then there exist , , and sequences with , *such that for every stable aggregate
count matrix of the th market,
Proof. Toward a contradiction, suppose is multivalued. By Theorem 2, is not lhc at . Thus there exists some and , with a sequence such that
for infinitely many .
Since is uhc and compact-valued, for each there exists a neighborhood of such that
Suppose not. Then there exists a sequence and
The sequence is bounded, so there exists a convergent subsequence, denoted . Uhc gives and
a contradiction.
We turn to constructing the sequences and . Since rational vectors are dense in , let
such that . Then . Write for some and . Define
so and is integral, with .
Let be any stable aggregate count matrix of the discrete market . Then by construction. But , so
Then we have
as desired; note that was arbitrary.
Intuitively, uhc guarantees that limits of the discrete market stable matches are stable. However, there may be continuum stable aggregate matches that are not approximable by discrete markets. The following example also notes that side-optimal selection may not remove the problem.
Example 4. Continue from Example 2. Recall that for , the stable matches are given by
for , with man-optimal stable match
Now consider . (It is straightforward to write discrete markets and corresponding to .) As in Example 2, the unique stable matching is
Then only, and the limiting market has many stable matches that are not approximable by discrete markets of this form.
Conclusion
We study a continuum stable marriage market. Building on the classic Gale and Shapley [6] model, the additional topological structure allows us to derive continuity results of the correspondence from population vectors to the set of stable matches . The correspondence is upper hemicontinuous everywhere, but lower hemicontinuous at if and only if is single-valued.
When is composed of ones as in the classic discrete setting, is generally multivalued, offering formal explanation for the chaotic nature of the set of stable matchings. However, when is drawn from real numbers, uniqueness and thus continuity is the typical case.
References
- [2]Azevedo, E.M. and Leshno, J.D., 2016. A supply and demand framework for two-sided matching markets. Journal of Political Economy, 124(5).DOI
- [3]Baïou, M. and Balinski, M., 2002. Erratum: The stable allocation (or ordinal transportation) problem. Mathematics of Operations Research, 27(4).DOI
- [4]Carmona, G. and Laohakunakon, K., 2024. Stable matching in large markets with occupational choice. Theoretical Economics, 19(3).DOI
- [5]Che, Y.K., Kim, J. and Kojima, F., 2019. Stable matching in large economies. Econometrica, 87(1).DOI
- [6]Gale, D. and Shapley, L.S., 1962. College admissions and the stability of marriage. The American mathematical monthly, 69(1).
- [7]Greinecker, M. and Kah, C., 2021. Pairwise stable matching in large economies. Econometrica, 89(6), pp. 2929–2974.DOI
- [8]Hiller, V., Wu, J. and Zhang, H., 2023. Marital preferences and stable matching in cultural evolution. Journal of Economic Theory, 210.
- [9]Menzel, K., 2015. Large matching markets as two-sided demand systems. Econometrica, 83(3).DOI
- [10]Roth, A.E. and Sotomayor, M., 1992. Two-sided matching. Handbook of game theory with economic applications, 1.