arXiv:2610.05617cs.DSOct 2026

Manuscript Offprint

arXiv:2610.05617

Prime factorisation of stable-matching instances: uniqueness, simultaneous products, and an exact census

Yoshiteru Ishida

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Every balanced instance of the stable marriage problem with strict complete preferences has a unique finest partition into prime blocks, and that single partition simultaneously factors three different structures: the reachable execution digraph as a Cartesian product, the proposal-prefix antimatroid as a direct sum, and the stable-matching lattice as a direct product. The converse fails, and fails at every size from two on: two explicit families share the identical Boolean-cube execution while one is maximally decomposable with a single stable matching and the other is prime with n. Uniqueness yields an exact census, a recursion counting the prime instances at every size, under which exactly 88,478,208 of the 110,075,314,176 profiles with four agents on each side are decomposable and the decomposable fraction is asymptotically n!/n2nn! / n^{2n}. The blocks are characterised as the square components of the mutual-rank filtration, so the partition is computable in polynomial time and the factorisation is a tool rather than only a fact.

1. Introduction

Deferred acceptance is normally analysed through its terminal stable matching. This paper analyses the instance instead, and asks the question one asks of an integer: can it be broken into smaller pieces, is the breaking unique, and what is preserved by it.

The answer is that it can, that it is, and that a surprising amount is preserved. An instance decomposes when its agents split into paired blocks of proposers and receivers, each block mutually top-ranked within itself. Such a partition always has a unique finest refinement (Theorem 6), and the blocks of that refinement are the prime instances of the title. What makes the decomposition worth having is not the uniqueness alone but what one partition does at once (Theorem 7): the execution digraph becomes a Cartesian product over the blocks, the antimatroid of feasible proposal prefixes becomes a direct sum, and the lattice of stable matchings becomes a direct product. Three structures that are otherwise studied separately are factored by the same object.

That makes the theorem a reduction tool. Any quantity that composes over a product - the state count, the proposal total, the number of stable matchings, the commutation index - is determined by its values on prime blocks, and Corollary 7.2 sorts those quantities into the multiplicative ones and the additive ones. To compute such a quantity it suffices to find the finest partition, which Theorem 9.4 reduces to reading off the square components of a filtration of bipartite graphs, and this can be done in polynomial time.

*Toyohashi University of Technology, Toyohashi, Japan. ishida@cs.tut.ac.jp. ORCID 0000-0003-1641-5385.

The limits of the tool are as sharp as the tool. Behavioural independence - the execution splitting as a direct sum - does not imply input independence (Theorem 8), and the failure is not exceptional: Proposition 12.3 exhibits two families, one at every size, that share the identical Boolean-cube execution while sitting at opposite ends of both of the things the execution cannot see. Section 5 makes that precise, and Proposition 9.10 shows that the behavioural decomposition, unlike the input one, carries no nesting at all: its factorisations form an interval in the partition lattice and their number is a Bell number depending on nothing but how many prime factors there are.

Finally, uniqueness is what makes counting possible. Theorem 9 turns the finest partition into a recursion for the number of prime instances at every size, with exact values at small sizes and an asymptotic decomposable fraction of n!/n2nn! / n^{2n}. The small values are given in full so that a reader can check an independent implementation against them; that is the part of a structure theory that makes it usable by other people.

Related work. Deferred acceptance and the lattice of stable matchings are classical [1,2,3]. The structure of what an algorithm is able to do next is the greedoid tradition of Korte, Lovasz and Schrader [4]; antimatroids induced by matchings are studied by Kawase and Yamaguchi [5], and which preference profiles determine the proposals the Gale-Shapley algorithm makes is the question of Sukegawa and Yamamoto [6]. A uniqueness statement of the kind proved here was first isolated for lattices by Dilworth [7] and for graphs under the Cartesian product by Sabidussi [8], with later extensions to graphs with loops [9]; convex geometries, the duals of antimatroids, are due to Edelman and Jamison [10]. That independent proposals commute is the phenomenon trace theory [11] and Keller's parallel program schemata [12] axiomatise, and Section 4 says exactly how far commutation alone goes. Bounds on the number of stable matchings are due to Karlin, Oveis Gharan and Weber [13] from above, to Benjamin, Converse and Krieger [14] from below, and at small sizes to Thurber [15]. Order-independence of the kind Section 2 proves is the defining property of abelian networks [16] and was established for threshold dynamics by Goles and Olivos [17]. Closest to the subject of this paper, the decomposability of a single instance was studied by Veklerov [18], whose first criterion is the static condition used here, and the Latin instances - those in which the two ranks of a pair sum to n+1n + 1 - go back to Knuth [19] and are the latin marriages of [14]. The paper continues the author's [20], which gives the operator formulation of the run used in Section 2, and [21], whose regular anti-phase templates supply the two families of Section 5.

Relation to the author’s monograph. Some of the material below was presented without proof, through worked examples rather than statements, in the author’s monograph [22]. Its Chapter 3 classifies the size-three instances by diagrams and introduces the decomposition of an instance informally, Chapter 4 studies the Latin instances of [19,14], Chapter 5 introduces a cyclic family with two stable matchings, and Chapter 7 states the block condition used here in the form of [18]; the size-three classification of Chapter 3 first appeared in [23]. The monograph proves none of it. Its Chapter 1 names the gap directly - “for the classification and efficient solving of the stable marriage problem, characterization of the conditions for decomposing instances of SMP to non-decomposable ones is critical. Although several versions of decompositions of SMP are possible, their characterization has not yet been completed” - and its Section 3.5 adds that the decomposition of an instance need not be unique. This paper closes that gap for one precise sense of the word: a finest partition into input-independent blocks always exists and is unique (Theorem 6), the blocks are the square components of a filtration and so are computable (Theorem 9.4), they form a partition exactly when the maximal ones cover (Theorem 9.6), and the instances admitting none can be counted at every size (Theorem 9). Apart from the sentence quoted above, no text, figure, table or numerical value is taken from the monograph; the figure below is generated from the definitions by the accompanying code.

Recent work in other directions. Deferred acceptance continues to be studied from several directions that this paper does not touch: agents who misreport or mistake their own preferences [24], matroid and partial-order constraints on what counts as a matching [25], preferences that change after the fact [26,27], distributed and truthful implementations [28], the running time of the algorithm itself [29], lattice-linear predicate methods for constrained variants with ties [30], and local search when ties are broken [31]. Small instances have also been catalogued before, as integer sequences [32] and in the OEIS [33]. The present paper is orthogonal to all of these: it is about the structure of a single instance and what that structure does to the algorithm run on it, and it stays inside strict complete preferences throughout. Two further preprints of the author study the same instance space from other angles [34,35].

How the statements are labelled. Every numbered statement carries a tag saying how it is established, because this paper mixes proofs with complete computations and the difference matters. PROVED means a proof is given here or cited. EXHAUSTIVE means the claim was checked on every instance of the size named; at size three that is all 46,656 profiles with strict complete preferences on both sides. EXACT means a finite candidate set was fixed in advance by a proved statement and every candidate in it was then settled, which is how sizes four to six are reached where enumerating instances is out of the question. TARGETED means a particular instance was constructed or searched for and is supplied as a certificate. A tag never promotes a computation to a proof: where a statement holds at every size the tag says PROVED, and where it was verified only at certain sizes the tag names them.

Organisation. Section 2 fixes the execution model and proves the two facts the rest depends on: a reachable state is its pointer vector, and the reachable set is scheduler-independent. Section 3 defines the blocks, proves that a finest partition into them exists and is unique, and characterises them as the square components of a filtration. Section 4 is the products theorem and the composition laws. Section 5 shows that the converse fails and how far. Section 6 is the census, its asymptotics and the recursion behind it. Section 7 lists five open problems. Two companion papers are referred to: one on the Latin-rank-balance setting, and a computational classification of the execution structure at small sizes, in preparation, which is where the atlas of size-three executions and the enumerable quotient at sizes five and six are developed.

References (37)