An instance of size 13 with no weakly stable matching for three-sided matching with cyclic preferences

A mix of human-written and AI-generated textHuman understanding: all partsmath.CO — Combinatoricscs.DM — Discrete Mathematics

Contributed by Tohid Atashbar ↗

Version 1 / Dec 01, 2026 / CC BY 4.0

Abstract

In three-sided matching with cyclic preferences there are nn men, nn women and nn 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 n≤5n\le 5; instances without one were known for sizes 9090 and 4545 (from a reduction of Lam and Plaxton), 2424 and 2020 (Lerner), and Lerner states that the least such size is not less than 66 and not greater than 2020. We give an explicit instance of size 1313 with no weakly stable matching. A stronger form holds: 141141 of its 507507 list entries, the tops of the lists, already force the conclusion, whatever the order of the remaining entries. We also give an instance of size 1414 with the same two properties (171171 of 588588 entries), which is the end of a chain of instances of sizes 19,18,…,1419,18,\dots,14 without weakly stable matching, each obtained from the previous one by deleting one agent of each side. The instance of size 1313 is not obtained from it by deleting agents: it comes from a second instance of size 1414, obtained from the same instance of size 1515 as the first, by deleting one agent of each side and then reordering ranks that Lerner's construction leaves free. Every deletion of one agent of each side from either printed instance gives an instance that has a weakly stable matching. The statements are certified by exact Boolean computation with checked refutations and were reproduced by separately written programs; the four statements about the two printed instances are in addition machine-checked in Lean 4. There is no proof that a person can follow by hand. A search aimed at size 1212 found nothing and establishes nothing; sizes 66 to 1212 remain open. The results have not yet been peer reviewed.

Author comments: Version 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.

Provenance statement

This work was carried out by the author with extensive use of the AI system Claude (Anthropic) and his own tool, Economic Modeling Studio ("The Studio"), https://github.com/tatashbar/Economic-Modeling-Studio, under the author's direction and step-by-step guidance. The author chose the problem, directed the work at each stage, decided which results to pursue, set the standards of verification, and required independent re-derivations, exact computations and adversarial readings before a claim was kept. Under that direction the AI system was used to derive and check proofs, to write the formal (Lean) proofs and the programs, to run the computations and to draft the text. The statements obtained by computation were reproduced by separately written programs; these reproductions relied on the same AI system and may therefore share blind spots. The author is responsible for the content and for any errors. The results have not yet been peer reviewed.

Tools used

Anthropic
Claude Fable
Anthropic
Claude Code
Lean
LeanVersion 4
Author's own tool
Economic Modeling Studio

References

  1. P. Biró and E. McDermid, Three-sided stable matchings with cyclic preferences, Algorithmica 58 (2010).
  2. E. Boros, V. Gurvich, S. Jaslar and D. Krasner, Stable matchings in three-sided systems with cyclic preferences, Discrete Mathematics 289 (2004).
  3. Á. 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.
  4. Á. Cseh, G. Escamocher and L. Quesada, Computing relaxations for the three-dimensional stable matching problem with cyclic preferences, Constraints 28 (2023), 138--165.
  5. K. Eriksson, J. Sjöstrand and P. Strimling, Three-dimensional stable matching with cyclic preferences, Mathematical Social Sciences 52 (2006).
  6. 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.
  7. 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 ).
  8. 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
  9. E. Yu. Lerner, Counterexamples of small size for three-sided stable matching with cyclic preferences, Russian Mathematics 66(6) (2022), 20--27.
  10. 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
  1. 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
  2. C. Ng and D. S. Hirschberg, Three-dimensional stable matching problems, SIAM Journal on Discrete Mathematics 4(2) (1991), 245--252.
  3. K. Pashkovich and L. Poirrier, Three-dimensional stable matching with cyclic preferences, Optimization Letters 14 (2020); arXiv:1807.05638.arXiv
  4. 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

  1. 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.CurrentDec 01, 2026