Table of Contents
Fetching ...

Parametric Timed Pattern Matching

Masaki Waga, Étienne André, Ichiro Hasuo

TL;DR

This work addresses parametric timed pattern matching: identifying, for a concrete timed log, the intervals (t, t′) and parameter valuations v for which a timing specification holds on the log. It presents two frameworks: (i) a model-checking-based approach using parametric timed automata (PTAs) and reachability synthesis, and (ii) a dedicated online method (ParamMONAA) with skip-based optimizations to improve efficiency and enable runtime monitoring. The first approach provides general decidability via EF_synth and OptParamSynth, while the second delivers significant performance gains in practice through skipping techniques inspired by string matching. Experimental results on automotive-like benchmarks (Gear, Accel, Blowup, and OnlyTiming) show the dedicated method often far outperforms the model-checking route, though both enable online analysis and output rich parametric results. The work also introduces MakeSymbolic and TW2PTA constructions to transform the problem into a synchronized product whose parameter-synthesis yields the complete match set, and provides correctness and termination proofs alongside practical optimizations and future directions for expressivity and visualization of parametric matches.

Abstract

Given a log and a specification, timed pattern matching aims at exhibiting for which start and end dates a specification holds on that log. For example, "a given action is always followed by another action before a given deadline". This problem has strong connections with monitoring real-time systems. We address here timed pattern matching in the presence of an uncertain specification, i.e., that may contain timing parameters (e.g., the deadline can be uncertain or unknown). We want to know for which start and end dates, and for what values of the timing parameters, a property holds. For instance, we look for the minimum or maximum deadline (together with the corresponding start and end dates) for which the property holds. We propose two frameworks for parametric timed pattern matching. The first one is based on parametric timed model checking. In contrast to most parametric timed problems, the solution is effectively computable. The second one is a dedicated method; not only we largely improve the efficiency compared to the first method, but we further propose optimizations with skipping. Our experiment results suggest that our algorithms, especially the second one, are efficient and practically relevant.

Parametric Timed Pattern Matching

TL;DR

This work addresses parametric timed pattern matching: identifying, for a concrete timed log, the intervals (t, t′) and parameter valuations v for which a timing specification holds on the log. It presents two frameworks: (i) a model-checking-based approach using parametric timed automata (PTAs) and reachability synthesis, and (ii) a dedicated online method (ParamMONAA) with skip-based optimizations to improve efficiency and enable runtime monitoring. The first approach provides general decidability via EF_synth and OptParamSynth, while the second delivers significant performance gains in practice through skipping techniques inspired by string matching. Experimental results on automotive-like benchmarks (Gear, Accel, Blowup, and OnlyTiming) show the dedicated method often far outperforms the model-checking route, though both enable online analysis and output rich parametric results. The work also introduces MakeSymbolic and TW2PTA constructions to transform the problem into a synchronized product whose parameter-synthesis yields the complete match set, and provides correctness and termination proofs alongside practical optimizations and future directions for expressivity and visualization of parametric matches.

Abstract

Given a log and a specification, timed pattern matching aims at exhibiting for which start and end dates a specification holds on that log. For example, "a given action is always followed by another action before a given deadline". This problem has strong connections with monitoring real-time systems. We address here timed pattern matching in the presence of an uncertain specification, i.e., that may contain timing parameters (e.g., the deadline can be uncertain or unknown). We want to know for which start and end dates, and for what values of the timing parameters, a property holds. For instance, we look for the minimum or maximum deadline (together with the corresponding start and end dates) for which the property holds. We propose two frameworks for parametric timed pattern matching. The first one is based on parametric timed model checking. In contrast to most parametric timed problems, the solution is effectively computable. The second one is a dedicated method; not only we largely improve the efficiency compared to the first method, but we further propose optimizations with skipping. Our experiment results suggest that our algorithms, especially the second one, are efficient and practically relevant.

Paper Structure

This paper contains 47 sections, 7 theorems, 17 equations, 14 figures, 9 tables, 4 algorithms.

Key Result

Theorem 1

Let $\mathcal{A}$ be a PTA encoding a parametric pattern, and $\textcolor{colorok}{w}$ be a timed word. Then $\textsf{PTPM}(\mathcal{A},\textcolor{colorok}{w})$ terminates.

Figures (14)

  • Figure 1: An example of parametric timed pattern matching WHS17
  • Figure 2: A parametric timed automaton to monitor a sequence of requests and approvals
  • Figure 3: Example of parametric timed pattern matching
  • Figure 4: Our transformations exemplified on \ref{['figure:example']}
  • Figure 5: Projections of the result of parametric timed pattern matching on \ref{['figure:example']}
  • ...and 9 more figures

Theorems & Definitions (35)

  • Example 1
  • Example 2
  • Definition 1: PTA
  • Definition 2
  • Definition 3: Semantics of a TA
  • Example 3
  • Definition 4
  • Example 4
  • Definition 5
  • Example 5
  • ...and 25 more