Counting Minimal Unsatisfiable Subsets

Jaroslav Bendík, Kuldeep S. MeelCAV 2021

Abstract

Given an unsatisfiable Boolean formula $F$ in CNF, an unsatisfiable subset of clauses $U$ of $F$ is called a Minimal Unsatisfiable Subset (MUS) if every proper subset of $U$ is satisfiable. Since MUSes serve as explanations for the unsatisfiability of $F$, they find applications in a wide variety of domains. The availability of efficient SAT solvers has aided the development of scalable techniques for finding and enumerating MUSes in the past two decades. Building on the recent developments in the design of scalable model counting techniques for SAT, Bendík and Meel initiated the study of MUS counting techniques. They succeeded in designing the first approximate MUS counter, $\mathsf{AMUSIC}$, that does not rely on exhaustive MUS enumeration. $\mathsf{AMUSIC}$, however, suffers from two shortcomings: the lack of exact estimates and limited scalability due to its reliance on 3-QBF solvers. This paper introduces CountMUST, the first exact MUS counter that scales without needing to find every single MUS individually.

Introduction

In the world of formal methods, hitting an "UNSAT" result often leads to the question: Why? The answer typically lies in Minimal Unsatisfiable Subsets (MUSes)—the smallest sets of constraints that make a formula impossible to solve. While finding a single MUS is useful for debugging, counting all of them is critical for calculating inconsistency metrics in fields like system diagnosis and knowledge representation.

Counting MUSes is notoriously difficult because a single formula can have an exponential number of them. Traditional methods attempt to enumerate them one by one, which quickly hits a scalability wall. CountMUST addresses this by reducing the problem to "projected model counting," allowing it to solve nearly twice as many benchmarks as previous state-of-the-art approximate counters and enumeration-based tools.

Methodology: The Subtractive Reduction Approach

The core innovation of CountMUST is a strong subtractive reduction. Instead of counting MUSes directly, the authors count two other sets and subtract them. They introduce the concepts of a Wrapper ($\mathcal{W}$) and a Remainder ($\mathcal{R}$):

  • Wrapper: A set of clause subsets that includes all MUSes plus some extra "spurious" satisfiable subsets.
  • Remainder: The set of those extra satisfiable subsets.
  • The Logic: $|MUSes| = |\mathcal{W}| - |\mathcal{R}|$.
A Hasse diagram representing the lattice of clause subsets. Green nodes represent satisfiable subsets, while red dashed nodes represent unsatisfiable subsets. MUSes are the minimal elements of the unsatisfiable region.

The authors developed 10 different base wrappers based on mathematical properties of MUSes, such as intersection/union bounds and cardinality. A novel concept introduced is Evidence Models, where they encode the requirement that for every clause in an MUS, there must exist a "witness" assignment that satisfies all other clauses in that subset. To perform the counting, these wrappers are encoded into Boolean formulas and processed by GANAK, a state-of-the-art projected model counter.

Experimental Evaluation

The authors evaluated CountMUST on a massive suite of 2,553 instances drawn from prior MUS and MSS (Maximal Satisfiable Subset) literature. Formulas ranged from 78 to 1,000 clauses, with MUS counts varying from a single MUS to over 1.7 billion.

Key Results

  • Superior Performance: CountMUST successfully returned exact counts for 1,500 instances. In contrast, the best enumerators (UNIMUS and MARCO) handled 833 and 799 instances, respectively, while the approximate counter AMUSIC managed only 623.
  • Efficiency: The best-performing configuration (named Wno5) excluded certain computationally expensive cardinality constraints, proving that a slightly "looser" mathematical wrapper can be faster to solve.
  • Tight Wrappers: In many cases, the "Remainder" was zero, meaning the wrapper perfectly described the MUS set.

Conclusion

CountMUST represents a leap forward in exact MUS counting by shifting the heavy lifting from high-complexity QBF solvers to more efficient projected model counting. While it faces challenges with astronomical MUS counts (exceeding $10^7$), its propositional encodings open doors for future research in MUS sampling and membership testing. The results suggest a "portfolio" approach is best, as CountMUST and previous tools like AMUSIC exhibit complementary strengths regarding clause counts versus MUS density.

Summary updated

BibTeX
@inproceedings{bendik2021counting,
  author = {Jaroslav Bendík and Kuldeep S. Meel},
  title = {{Counting Minimal Unsatisfiable Subsets}},
  booktitle = {CAV},
  year = {2021},
  url = {https://openreview.net/forum?id=vXh1cMj2C0},
}
Figure