Computing unsatisfiable cores for LTLf specifications

Marco Roveri, Claudio Di Ciccio, Chiara Di Francescomarino, Chiara Ghidini · DOI

Introduction

Linear-time Temporal Logic on finite traces ($LTL_f$) has emerged as a cornerstone for specifying system behavior in domains such as AI planning, business process management, and automated synthesis. As these specifications grow in complexity, designers frequently encounter "unsatisfiable" requirements—sets of constraints that are logically impossible to fulfill simultaneously. While modern solvers can efficiently detect unsatisfiability, they traditionally offer little insight into the cause of the failure. This paper presents the first systematic approach to identifying unsatisfiable cores (UCs) in $LTL_f$, providing a vital debugging mechanism for formal specifications.

The Problem: Debugging Complex Specifications

In a complex system, a specification might contain hundreds of requirements. If a solver determines the specification is unsatisfiable, the designer is left with a binary result but no diagnostic information. Manually identifying the conflicting constraints is often impossible. An unsatisfiable core is a subset of the original formulas that remains unsatisfiable; identifying a small or minimal core allows designers to pinpoint the exact source of the logical contradiction (e.g., "Step A must precede B" while "Step B must precede A").

Methodology and Algorithms

The authors explore two primary pathways for extracting UCs, implementing four distinct algorithms to evaluate their effectiveness:

1. The Reduction Pathway

This approach leverages the maturity of standard LTL tools (designed for infinite traces) by transforming $LTL_f$ formulas into equi-satisfiable LTL formulas. Three classic techniques were adapted:

  • BDD-based (NuSMV-B): Utilizes Binary Decision Diagrams to represent state spaces symbolically.
  • SAT-based BMC (NuSMV-Z): Employs Bounded Model Checking to search for contradictions within a specific path length $k$.
  • Temporal Resolution (trp++): A theorem-proving method that applies inference rules directly to temporal operators, often benefiting from powerful pre-processing.

2. The Native Pathway

The authors adapted aaltaf, a state-of-the-art native SAT-based solver, to handle $LTL_f$ directly without the overhead of translation to infinite-trace LTL.

The "Activation Variable" Technique

To track which constraints contribute to a contradiction, the researchers used an instrumentation technique involving "activation variables." By attaching a unique propositional "switch" to each constraint, the solver can return the specific set of switches necessary to trigger the unsatisfiability, effectively isolating the core.

Experimental Evaluation

The study utilized a comprehensive benchmark of 1,377 unsatisfiable $LTL_f$ problems across 25 families, including industrial-style specifications like the "GenBuf" arbiter and various synthetic stress tests.

Key Results

  • Efficiency: The extraction of UCs is highly practical. The "virtual best" solver (the fastest result among all tools) averaged just 1.49 seconds per problem.
  • Solver Dominance: The native SAT-based tool, aaltaf, was the fastest in 91.5% of cases.
  • Core Quality: Speed does not always correlate with core minimality. While aaltaf found the smallest core in 50% of cases, the Resolution-based trp++ found the smallest in 39%, and the BDD-based NuSMV-B in 7.5%. This suggests that different logic structures are better handled by different algorithmic backends.
  • Complementarity: No single algorithm outperformed others across all benchmarks. BDDs were more effective for deep logic with few variables, while SAT-based methods scaled better with high variable counts.

Insights and Future Work

The research demonstrates that automated debugging for $LTL_f$ is not only feasible but efficient enough for interactive design environments. However, the current tools find a core, not necessarily the minimum core (the absolute smallest subset of constraints).

Future research directions include:

  • Minimal UC Extraction: Developing specialized search strategies to guarantee the smallest possible core without prohibitive computational costs.
  • SMT Integration: Extending these techniques to Satisfiability Modulo Theories to support specifications involving numerical or data constraints.
  • Domain Expansion: Applying these tools to emerging challenges in AI planning and complex business process modeling.

Summary updated

BibTeX
@article{roveri2024computing,
  author = {Marco Roveri and Claudio Di Ciccio and Chiara Di Francescomarino and Chiara Ghidini},
  title = {{Computing unsatisfiable cores for LTLf specifications}},
  journal = {JAIR},
  year = {2024},
  doi = {10.1613/jair.1.15313},
}
Figure