[Paper Review] Computing Minimal Distinguishing Hennessy-Milner Formulas is NP-Hard, but Variants are Tractable
This paper proves that computing minimal-sized distinguishing Hennessy-Milner logic formulas for non-bisimilar states in finite LTSs is NP-hard, but introduces polynomial-time algorithms for minimizing formulas based on observation-depth and negation-depth—achieving significantly smaller formulas than Cleaveland's method. A prototype implementation confirms up to 10x reduction in formula depth and size, demonstrating practical superiority for debugging behavioural inequivalence.
We study the problem of computing minimal distinguishing formulas for non-bisimilar states in finite LTSs. We show that this is NP-hard if the size of the formula must be minimal. Similarly, the existence of a short distinguishing trace is NP-complete. However, we can provide polynomial algorithms, if minimality is formulated as the minimal number of nested modalities, and it can even be extended by recursively requiring a minimal number of nested negations. A prototype implementation shows that the generated formulas are much smaller than those generated by the method introduced by Cleaveland.
Motivation & Objective
- To determine the computational complexity of finding minimal distinguishing Hennessy-Milner logic formulas for non-bisimilar states in finite LTSs.
- To investigate whether alternative minimality criteria—beyond formula size—can yield tractable and practical algorithms.
- To develop and evaluate a new algorithm that generates more concise distinguishing formulas than existing methods, such as Cleaveland's partition refinement approach.
- To demonstrate that minimizing observation-depth and negation-depth leads to compact, human-readable formulas that are easier to debug.
Proposed method
- Reduces CNF-SAT to the problem of determining whether a distinguishing trace exists in an acyclic LTS, proving NP-hardness of minimal-size formula computation.
- Introduces a dynamic programming-based algorithm to compute minimal observation-depth distinguishing formulas in polynomial time.
- Extends the algorithm to simultaneously minimize both observation-depth and negation-depth by recursively tracking nested modalities and negations.
- Employs k-bisimilarity and m-nested similarity relations to guide formula construction and ensure minimality with respect to depth metrics.
- Uses a splitting tree data structure to optimize memory usage and efficiently compute equivalence classes during partition refinement.
- Implements a prototype that generates shared, irreducible formulas using memoization to avoid redundant computation.
Experimental results
Research questions
- RQ1Is computing a minimal-sized distinguishing Hennessy-Milner formula for non-bisimilar states in finite LTSs NP-hard?
- RQ2Can minimizing the number of nested modalities (observation-depth) lead to tractable and compact distinguishing formulas?
- RQ3Can the number of nested negations (negation-depth) be minimized in polynomial time while preserving formula minimality?
- RQ4How does the proposed algorithm compare in practice to Cleaveland’s method in terms of formula size and depth?
Key findings
- Computing a minimal-sized distinguishing Hennessy-Milner formula is NP-hard, as proven via a direct reduction from CNF-SAT.
- The existence of a distinguishing trace for non-bisimilar states is NP-complete, confirming the inherent complexity of minimal formula synthesis.
- The proposed algorithm computes minimal observation-depth formulas in polynomial time, with O(|S|³) recursive calls due to dynamic programming.
- The algorithm further guarantees minimal negation-depth by tracking nested alternations of box and diamond modalities.
- In experiments on a 188,568-state model, the new method reduced formula depth by up to a factor of 10 compared to Cleaveland’s approach.
- The prototype implementation consistently generated smaller formulas across all metrics, with average size reductions of over 50% in several benchmarks.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.