Computing Unsatisfiable Cores for LTLf Specifications

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

Abstract

Linear-time Temporal Logic on finite traces ($LTL_f$) is a standard language for defining system behavior over finite periods, particularly in AI planning and Business Process Management. However, as specifications grow in complexity, contradictory rules often emerge. This paper addresses the challenge of identifying the specific subsets of rules causing such contradictions, known as "unsatisfiable cores" (UCs). The authors propose four new algorithms—three based on reductions to standard LTL and one native $LTL_f$ approach—to extract these cores, providing a vital debugging tool for system designers.

Introduction

In fields like AI planning and Business Process Management (BPM), $LTL_f$ is the primary language for defining constraints. As specifications scale, it becomes increasingly easy to introduce contradictory rules (e.g., "Step A must happen before Step B" and "Step B must happen before Step A"). When a SAT solver identifies a specification as "unsatisfiable," it typically provides no explanation for the failure. For a developer managing hundreds of constraints, this lack of feedback is a significant hurdle. This research focuses on Unsatisfiable Core (UC) extraction: identifying the smallest subset of formulas responsible for the inconsistency, allowing designers to isolate and fix logical "bugs."

Methods

The authors developed four new algorithms (NA1–NA4) categorized into two primary strategies for extracting UCs in $LTL_f$.

Overview of strategies and algorithms for computing LTLf unsatisfiable cores.

Strategy 1: Reduction to LTL

This strategy leverages the fact that $LTL_f$ (finite traces) can be transformed into standard LTL (infinite traces) by introducing a special "end" marker. Three state-of-the-art LTL techniques were adapted:

  • NA1 (BDD-based): Utilizes Binary Decision Diagrams to symbolically represent the state space.
  • NA2 (SAT-based BMC): Employs Bounded Model Checking to search for contradictions within a finite trace length $k$.
  • NA3 (Temporal Resolution): A theorem-proving approach that applies inference rules to derive a contradiction.

Strategy 2: Native $LTL_f$

  • NA4 (Native SAT): This method extends the high-performance $LTL_f$ satisfiability solver, AALTAF, to support core extraction directly without the overhead of reducing the problem to infinite LTL.

A critical technical component across all methods is the activation variable. By associating each formula with a unique Boolean flag, solvers can track exactly which formulas contribute to the final proof of unsatisfiability.

Experimental Setup and Datasets

The algorithms were evaluated using a massive benchmark of 1,377 unsatisfiable $LTL_f$ problems sourced from existing literature. These benchmarks comprise 25 families representing diverse logical structures, including:

  • Randomly generated conjunctions.
  • Counter-based formulas with varying temporal depths.
  • Real-world patterns from planning and formal verification.

Key Results and Insights

The evaluation revealed several critical trade-offs between the proposed methods:

  • Efficiency vs. Quality: AALTAF (NA4) was the fastest tool, achieving the best runtime in 1,261 out of 1,377 cases. However, while fast, it only produced the smallest core in about half the cases. In contrast, TRP++ (NA3) and NuSMV-B (NA1) were often more effective at finding tighter, smaller cores, which are significantly easier for human developers to debug.
  • Algorithm Complementarity: No single algorithm dominated all problem types. Problems that caused memory exhaustion in BDD-based solvers (NA1) were often solved instantly by the Native SAT solver (NA4), and vice versa.
  • Structural Sensitivity: Performance is highly dependent on "temporal depth" (the nesting of operators) and the number of propositional variables.
  • Handling the Past: The proposed framework robustly handles "past" temporal operators (e.g., "once," "yesterday"), which are essential for business process modeling but frequently unsupported in basic $LTL_f$ tools.

Overall, the tools were highly effective; only 23 out of 1,377 problems remained unsolved by all four tools within a 60-minute timeout window.

Conclusion and Future Work

While this work provides a powerful suite of tools for finding minimal cores, several challenges remain. Finding the minimum (absolute smallest) core is computationally more expensive and is a target for future research. Additionally, extending these techniques to infinite state systems using SMT solvers and developing user interfaces to help designers resolve identified conflicts are key areas for future development.

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