Specification and Automatic Verification of Computational Reductions
Julien Grange, Fabian Vehlken, Nils Vortmeier, Thomas Zeume
TL;DR
This paper addresses the problem of validating candidate computational reductions between problems by introducing cookbook reductions, a graphical, modular language built from building blocks like edge, node, and global gadgets. It demonstrates that cookbook reductions can express many classical graph reductions and that, under a linear input order, they preserve NP-hardness via quantifier-free FO interpretations, while also identifying several natural decidable variants of the Reduction? problem. The authors establish decidability results for restricted cookbook reductions (bounded arity with FO-definable target problems and MSO- definable edge gadgets) and show how reductions can be analyzed via FO/MSO-type equivalences of their recipes, enabling automated counterexample generation in teaching contexts. They also discuss a teaching-oriented prototype integrated into Iltis, illustrating the practical utility of the framework for designing, testing, and giving feedback on reductions in introductory computer science courses.
Abstract
We are interested in the following validation problem for computational reductions: for algorithmic problems $P$ and $P^\star$, is a given candidate reduction indeed a reduction from $P$ to $P^\star$? Unsurprisingly, this problem is undecidable even for very restricted classes of reductions. This leads to the question: Is there a natural, expressive class of reductions for which the validation problem can be attacked algorithmically? We answer this question positively by introducing an easy-to-use graphical specification mechanism for computational reductions, called cookbook reductions. We show that cookbook reductions are sufficiently expressive to cover many classical graph reductions and expressive enough so that SAT remains NP-complete (in the presence of a linear order). Surprisingly, the validation problem is decidable for natural and expressive subclasses of cookbook reductions.
