Using Certifying Constraint Solvers for Generating Step-wise Explanations
Ignace Bleukx, Maarten Flippo, Bart Bogaerts, Emir Demirović, Tias Guns
TL;DR
The paper tackles the computational bottleneck of generating step-wise explanations for unsatisfiable constraint solving. It introduces a general abstract-proof framework that unifies solver proofs (DRCP) and human-oriented explanations, and a pipeline to convert a DRCP proof into concise, user-friendly explanation steps through simplification and MUS-based minimization. Empirical results across Sudoku, Job-shop, and modeling benchmarks show up to ~100x speedups with explanation quality comparable to the current state of the art, enabling scalable explanatory capabilities for certifying solvers. This work enhances practical explainability in constraint solving and points to future work on shorter proofs, solver-guided proof generation, and better handling of auxiliary variables in user explanations.
Abstract
In the field of Explainable Constraint Solving, it is common to explain to a user why a problem is unsatisfiable. A recently proposed method for this is to compute a sequence of explanation steps. Such a step-wise explanation shows individual reasoning steps involving constraints from the original specification, that in the end explain a conflict. However, computing a step-wise explanation is computationally expensive, limiting the scope of problems for which it can be used. We investigate how we can use proofs generated by a constraint solver as a starting point for computing step-wise explanations, instead of computing them step-by-step. More specifically, we define a framework of abstract proofs, in which both proofs and step-wise explanations can be represented. We then propose several methods for converting a proof to a step-wise explanation sequence, with special attention to trimming and simplification techniques to keep the sequence and its individual steps small. Our results show our method significantly speeds up the generation of step-wise explanation sequences, while the resulting step-wise explanation has a quality similar to the current state-of-the-art.
