An instance of size 7 with no weakly stable matching for three-sided matching with cyclic preferences
Version 3 / Dec 01, 2026 / CC BY 4.0
Abstract
In three-sided matching with cyclic preferences there are men, women and dogs; men rank women, women rank dogs, dogs rank men, with complete strict lists. A matching into triples is weakly stable if no man, woman and dog all strictly prefer each other to their partners. A weakly stable matching exists whenever ; instances without one were known for sizes and (from a reduction of Lam and Plaxton), and (Lerner), and and (earlier versions of this note). We give an explicit instance of size with no weakly stable matching. Hence the least such size is or , and by a simple padding argument such instances exist for every size from on; size is the only size left open. The instance was found by a counterexample-guided search over instances in which nine lists begin with the lists of the unsolvable instance of size with incomplete lists that is the core of Lerner's construction. That each of its matchings has a blocking triple was checked by exhaustive enumeration with four separately written programs, and by Boolean formulas that several solvers find unsatisfiable, with refutations accepted by three checkers, one of which is proved sound in Lean 4. This is a computation, not a formal proof: the statement about size is not itself in Lean. The earlier results are kept: instances of sizes and for which the tops of the lists ( of entries, of ) already force the conclusion, both machine-checked in Lean 4. There is no proof that a person can follow by hand. The results have not yet been peer reviewed.
Provenance statement
Tools used
- Anthropic
- Claude Fable
- Anthropic
- Claude Code
- Lean
- LeanVersion 4
- Author's own tool
- Economic Modeling Studio
References
- P. Biró and E. McDermid, Three-sided stable matchings with cyclic preferences, Algorithmica 58 (2010).
- E. Boros, V. Gurvich, S. Jaslar and D. Krasner, Stable matchings in three-sided systems with cyclic preferences, Discrete Mathematics 289 (2004).
- Á. Cseh, G. Escamocher, B. Genç and L. Quesada, A collection of Constraint Programming models for the three-dimensional stable matching problem with cyclic preferences, Constraints 27 (2022), 249--283; conference version in CP 2021 , LIPIcs 210.
- Á. Cseh, G. Escamocher and L. Quesada, Computing relaxations for the three-dimensional stable matching problem with cyclic preferences, Constraints 28 (2023), 138--165.
- K. Eriksson, J. Sjöstrand and P. Strimling, Three-dimensional stable matching with cyclic preferences, Mathematical Social Sciences 52 (2006).
- A. Ignatiev, A. Morgado and J. Marques-Silva, PySAT: a Python toolkit for prototyping with SAT oracles, in SAT 2018 , Lecture Notes in Computer Science 10929, Springer, 2018.
- D. E. Knuth, Mariages stables et leurs relations avec d'autres problèmes combinatoires , Les Presses de l'Université de Montréal, 1976. English translation: Stable Marriage and its Relation to Other Combinatorial Problems , CRM Proceedings and Lecture Notes 10, American Mathematical Society, 1997; the quotation in Section 1 is from the translation (p. 64, as cited in the revised version of Lerner20 ).
- C.-K. Lam and C. G. Plaxton, On the existence of three-dimensional stable matchings with cyclic preferences, in SAGT 2019 , Lecture Notes in Computer Science 11801, Springer, 2019, 329--342; arXiv:1905.02844.arXiv
- E. Yu. Lerner, Counterexamples of small size for three-sided stable matching with cyclic preferences, Russian Mathematics 66(6) (2022), 20--27.
- E. Yu. Lerner, Instances of small size with no weakly stable matching for three-sided problem with complete cyclic preferences, arXiv:2107.10102v3 (2022). Journal version: A counterexample of size 20 for the problem of finding a 3-dimensional stable matching with cyclic preferences, Discrete Applied Mathematics 333 (2023), 1--12 (read in an author's revised version).arXiv
Show all 14 referencesShow fewer references
- E. Yu. Lerner and R. E. Lerner, Minimal instances with no weakly stable matching for three-sided problem with cyclic incomplete preferences, arXiv:2101.08223 (2021); Discrete Mathematics, Algorithms and Applications 15(3) (2023), 2250095.arXiv
- C. Ng and D. S. Hirschberg, Three-dimensional stable matching problems, SIAM Journal on Discrete Mathematics 4(2) (1991), 245--252.
- K. Pashkovich and L. Poirrier, Three-dimensional stable matching with cyclic preferences, Optimization Letters 14 (2020); arXiv:1807.05638.arXiv
- N. Wetzler, M. J. H. Heule and W. A. Hunt, DRAT-trim: efficient checking and trimming using expressive clausal proofs, in SAT 2014 , Lecture Notes in Computer Science 8561, Springer, 2014.
Version history
- v1 · 14 pagesSubmitted by Tohid AtashbarVersion 1.1 (30 November 2026), 14 pages. Also archived on Zenodo: https://doi.org/10.5281/zenodo.24671959 (all versions: https://doi.org/10.5281/zenodo.24654696). The programs, the refutation files and the Lean 4 proofs for the two printed instances are at https://github.com/tatashbar/cyclic-three-sided-small-instances . The instances are obtained by a computer search around the construction of E. Lerner (size 20); sizes 6 to 12 remain open. Not yet peer reviewed.SupersededDec 01, 2026
- v2 · 15 pagesSubmitted by Tohid AtashbarVersion 1.2 (1 December 2026), 15 pages. Changes from the previous version here (version 1.1): the list of what is not established now reports, under "Sizes 6 to 12", an unpublished result of E. Lerner on sizes 6 and 7, which he communicated to the author; and there is an acknowledgement. No statement, proof, number, certificate or program has changed. Also archived on Zenodo: https://doi.org/10.5281/zenodo.24654696 (all versions; version 1.2: https://zenodo.org/records/24728072). The programs, the refutation files and the Lean 4 proofs for the two printed instances are at https://github.com/tatashbar/cyclic-three-sided-small-instances . Not yet peer reviewed.SupersededDec 02, 2026
- v3 · 21 pagesSubmitted by Tohid AtashbarVersion 2.0 (3 December 2026), 21 pages. New title: the earlier versions here (versions 1.1 and 1.2 of the note) had the title "An instance of size 13 with no weakly stable matching for three-sided matching with cyclic preferences". Changes from the previous version here (version 1.2): a new main result, an explicit instance of size 7 with no weakly stable matching, with the description of the search and of the checks; a padding proposition (an instance of size n without weakly stable matching gives one of size n+1), so that such instances exist for every size from 7 on and size 6 is the only size left open; the results on sizes 13 and 14 are kept unchanged. Also archived on Zenodo: https://doi.org/10.5281/zenodo.24654696 (all versions; version 2.0: https://doi.org/10.5281/zenodo.24765462). The instance files, the check programs, the refutation files and the Lean 4 proofs for the instances of sizes 13 and 14 are at https://github.com/tatashbar/cyclic-three-sided-small-instances . Not yet peer reviewed.CurrentDec 03, 2026