NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Modal Scenarios as Automata

David Harel, Amir KantorLanguage, Culture, Computation 2014

TL;DR

This paper introduces Modal State Structures (MSS) as an intermediate representation for Live Sequence Charts (LSC), offering a more abstract and general way to model multi-modal system behavior. MSS bridges the gap between high-level scenario specifications and low-level automata, enabling richer modeling of mandatory, possible, and forbidden behaviors, including loops and breaks.

What Problem Does This Paper Address?

Reactive systems, where components interact with each other and their environment, are often specified using scenario-based formalisms like Live Sequence Charts (LSC). LSCs visually represent interactions, distinguishing between mandatory ("hot") and possible ("cold") events. While LSCs are powerful, translating them directly into traditional automata can be complex. The authors aim to provide a more abstract and flexible intermediate representation that captures the essence of modal scenarios, including more complex patterns than directly supported by LSC syntax, and to formalize their semantics in terms of automata.

Methods

The core contribution is the introduction of Modal State Structures (MSS). An MSS is defined as a tuple $( \Sigma, S, s_0, \rightarrow, C, R)$, where:

  • $\Sigma$ is the alphabet of events.
  • $S$ is a finite set of states.
  • $s_0 \in S$ is the initial state.
  • $\rightarrow \subseteq S \times \Sigma \times S$ is the transition relation.
  • $C \subseteq S$ are the "cold" (stable) states; all other states are "hot" (unstable).
  • $R \subseteq \Sigma$ is a set of "restricted" events that can cause violations if not handled correctly.

The paper describes how LSCs are "unwound" into MSSs. This unwinding process transforms the visual chart into a state-based structure where states represent "cuts" in the scenario and transitions represent enabled events. The "temperature" of states (hot/cold) is preserved, and the set of restricted events $R$ allows for different interpretations of scenario violations (immediate, strict, tolerant).

The paper then formalizes the semantics of MSS by translating them into Büchi automata over infinite words. This translation involves constructing a Büchi automaton $B(M)$ where accepting states correspond to cold states in the MSS, and a special "reject" state is introduced for violations. Different interpretations of MSS (initial, universal, iterative) are also discussed and related to specific Büchi automaton constructions.

Datasets

Not discussed in the paper.

Key Insights and Ideas

  • MSS as a Generalization of Modal Scenarios: MSSs provide a more abstract and general framework for modal scenarios than LSCs themselves, capable of encoding patterns like loops and breaks that might require advanced LSC constructs.
  • Temperature as a Core Modality: The distinction between "hot" and "cold" states in MSS is crucial for capturing the mandatory vs. possible nature of events and for defining acceptance/rejection conditions in the automata translation.
  • Restricted Events for Violation Semantics: The set $R$ of restricted events is key to defining different violation semantics (e.g., immediate, strict, tolerant), allowing for flexible interpretation of scenario failures.
  • Bridging High-Level and Low-Level: MSSs serve as a vital intermediate step, connecting high-level, intuitive scenario specifications (LSCs) with formal, low-level automata theory (Büchi automata).
  • Universality and Iteration: The paper extends the semantics beyond simple initial acceptance to include universal (invariant) and iterative interpretations, which are important for modeling system properties that must hold at all times or restart after completion.

Key Results

  • The paper formally defines Modal State Structures (MSS) as an abstract representation of modal scenarios.
  • It provides a method for translating Live Sequence Charts (LSC) into MSS.
  • It establishes a formal semantics for MSS by translating them into Büchi automata, enabling the analysis of their expressive power (w-regular languages).
  • It demonstrates that MSSs with different interpretations (immediate, strict, weak) are as expressive as Büchi automata.
  • It introduces and formalizes universal and iterative semantics for MSS, showing their relationship to initial semantics and Büchi automata.

Limitations and Future Work

  • Bounded Loops: MSS do not explicitly support bounded loops; they must be modeled by "unraveling" them into finite segments.
  • State Independence: Specifying transitions for each state separately can be cumbersome when only a partial change in behavior is required (e.g., after an event, some required events are no longer needed, while others still are). This independence, while powerful, affects ease of use.
  • Open Systems and Adversaries: The presented MSS semantics do not explicitly model interactions between open systems and adversaries, a concept addressed in LSC play-out semantics.
  • Future Work: The authors suggest extending MSS to explicitly handle open systems and adversaries, and exploring how to relate them to safety and liveness properties. They also mention the potential of multi-modal extensions of Petri nets as an alternative for specifying modal scenarios.

Summary updated

BibTeX
@inproceedings{harel2014modal,
  author = {David Harel and Amir Kantor},
  title = {{Modal Scenarios as Automata}},
  booktitle = {Language, Culture, Computation},
  year = {2014},
  doi = {10.1007/978-3-642-45321-2\_7},
}

Loading related content...

Figure