Cycle Detection in Computation Tree Logic

Gaëlle Fontaine, Fabio Mogavero, Aniello Murano, Giuseppe Perelli, Loredana SorrentinoarXiv 2016 · DOI

TL;DR

The authors introduce Cycle-CTL, an extension of the classical branching-time temporal logic CTL that adds explicit quantifiers for reasoning about cycles. This new logic allows researchers to directly specify and verify properties that repeat infinitely often, maintaining the same PSPACE-complete model-checking complexity as CTL* while offering greater expressive power.

What Problem Does This Paper Address?

In formal verification, we often model systems as state-transition graphs (Kripke structures) and check if they satisfy certain temporal properties. Many fundamental algorithms in this field—such as checking the non-emptiness of a Büchi automaton or finding winning strategies in parity games—rely on detecting specific types of cycles, often called "lassos."

Surprisingly, standard temporal logics like LTL, CTL, and CTL* lack the explicit vocabulary to talk about these cycles. While they can describe infinite paths, they cannot distinguish between a path that wanders off into new states forever and one that recurrently visits its starting point. This gap makes it difficult to naturally express properties related to "promptness" (where a request must be fulfilled within a bounded, albeit unknown, number of steps) or specific fairness constraints in finite-state systems.

Methods

The paper introduces two new path quantifiers to the CTL* syntax:

  • $E^\circlearrowleft \psi$: "There exists a cycle path starting here that satisfies $\psi$."
  • $A^\circlearrowleft \psi$: "For all cycle paths starting here, $\psi$ holds."

A "cycle" is formally defined as an infinite path that returns to its initial state infinitely often.

To analyze this new logic, the authors had to overcome a major theoretical hurdle: Cycle-CTL* does not have the "tree-model property." In standard branching-time logics, if a formula is satisfiable, it is satisfiable in a tree-like structure. Because trees are acyclic by definition, they cannot satisfy formulas that explicitly require cycles.

To solve this, the authors introduced:

  1. Cycle-Bisimulation: A new notion of structural equivalence that preserves cycle properties between different models.
  2. Trees with Back Edges: A specialized model class where a standard tree is augmented with "back edges" that point from a node to one of its ancestors, creating controlled cycles without destroying the underlying tree-like hierarchy.

For decision problems, they adapted the classical automata-theoretic approach. For model checking, they used Büchi word automata with an added check for infinite recurrence of the start state. For satisfiability, they employed symmetric two-way alternating tree automata to search for "tree-like unwinding" representations of models.

Figure 2: The tree with back edges T (K).

Key Insights and Ideas

  • Expressive Power: Cycle-CTL is strictly more expressive than CTL. Interestingly, it is orthogonal to the $\mu$-calculus. While the $\mu$-calculus is often considered the "gold standard" for expressiveness in temporal logic, there are properties in Cycle-CTL* (like those involving even/odd state repetitions) that the $\mu$-calculus cannot capture, and vice versa.
  • Complexity Parity: Despite the added expressive power, the model-checking problem remains PSPACE-complete, the same as standard CTL*. This suggests that the ability to talk about cycles comes at no extra computational cost for verification tasks.
  • Handling Non-Regularity: The authors demonstrate that Cycle-CTL* can express complex non-regular properties, such as the "prompt-parity condition," which is used to reason about systems where responses must occur in bounded time.

Key Results

  • Model Checking: Proven to be PSPACE-complete with respect to formula complexity and NLOGSPACE-complete with respect to data complexity.
  • Satisfiability:
  • For the full logic, the authors established a 3EXPTIME upper bound.
  • For the existential-cycle fragment (which forbids the universal cycle quantifier and certain negations), the problem is 2EXPTIME-complete, matching the complexity of standard CTL*.
  • Invariance: The logic is proven to be invariant under the newly defined cycle-bisimulation.

Limitations and Future Work

The primary limitation is the gap in satisfiability complexity for the full logic. While the existential fragment is 2EXPTIME-complete, the full logic currently sits at a 3EXPTIME upper bound. The authors suspect it might also be 2EXPTIME-complete, but a proof remains elusive.

Additionally, the authors explored a more general logic, ECTL, which can test if any state (not just the starting one) repeats infinitely. However, they found that ECTL is less well-behaved, losing invariance under cycle-bisimulation and lacking a clear tree-like model property.

Future research directions include applying these cycle constructs to multi-agent logics like ATL and Strategy Logic*, where reasoning about cyclic interactions between players is crucial for finding equilibria in games.

Summary updated

BibTeX
@misc{fontaine2016cycle,
  author = {Gaëlle Fontaine and Fabio Mogavero and Aniello Murano and Giuseppe Perelli and Loredana Sorrentino},
  title = {{Cycle Detection in Computation Tree Logic}},
  year = {2016},
  eprint = {1609.04095},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1609.04095},
}
Figure