Using Small MUSes to Explain How to Solve Pen and Paper Puzzles

Joan Espasa, Ian P. Gent, Ruth Hoffmann, Christopher Jefferson, Alice M. Lynch +2 more
4/30/2021
cs.AIcs.HC

Official code: stacs-cp/demystify (9 stars, Python, MPL-2.0, last commit 2026-03-23).

Abstract

In this paper, we present Demystify, a general tool for creating human-interpretable step-by-step explanations of how to solve a wide range of pen and paper puzzles from a high-level logical description. Demystify is based on Minimal Unsatisfiable Subsets (MUSes), which allow Demystify to solve puzzles as a series of logical deductions by identifying which parts of the puzzle are required to progress.

Show full abstract

This paper makes three contributions over previous work. First, we provide a generic input language, based on the Essence constraint language, which allows us to easily use MUSes to solve a much wider range of pen and paper puzzles. Second, we demonstrate that the explanations that Demystify produces match those provided by humans by comparing our results with those provided independently by puzzle experts on a range of puzzles. We compare Demystify to published guides for solving a range of different pen and paper puzzles and show that by using MUSes, Demystify produces solving strategies which closely match human-produced guides to solving those same puzzles (on average 89% of the time). Finally, we introduce a new randomised algorithm to find MUSes for more difficult puzzles. This algorithm is focused on optimised search for individual small MUSes.

View on arXivView PDF

Code Implementations(1)

stacs-cp/demystifyOfficial100%
MPL-2.0
92Python, TeXJul 18, 20208 months agoMPL-2.0

Similar Papers

Cite this paper

@article{espasa2021using,
  title  = {Using Small MUSes to Explain How to Solve Pen and Paper Puzzles},
  author = {Joan Espasa and Ian P. Gent and Ruth Hoffmann and Christopher Jefferson and Alice M. Lynch and András Salamon and Matthew J. McIlree},
  year   = {2021},
  eprint = {2104.15040},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2104.15040}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2104.15040.svg)](https://codeofpaper.com/paper/2104.15040)

Discussion