English

On Synthesis of Timed Regular Expressions

Formal Languages and Automata Theory 2025-09-12 v2 Artificial Intelligence

Abstract

Timed regular expressions serve as a formalism for specifying real-time behaviors of Cyber-Physical Systems. In this paper, we consider the synthesis of timed regular expressions, focusing on generating a timed regular expression consistent with a given set of system behaviors including positive and negative examples, i.e., accepting all positive examples and rejecting all negative examples. We first prove the decidability of the synthesis problem through an exploration of simple timed regular expressions. Subsequently, we propose our method of generating a consistent timed regular expression with minimal length, which unfolds in two steps. The first step is to enumerate and prune candidate parametric timed regular expressions. In the second step, we encode the requirement that a candidate generated by the first step is consistent with the given set into a Satisfiability Modulo Theories (SMT) formula, which is consequently solved to determine a solution to parametric time constraints. Finally, we evaluate our approach on benchmarks, including randomly generated behaviors from target timed models and a case study.

Keywords

Cite

@article{arxiv.2509.06262,
  title  = {On Synthesis of Timed Regular Expressions},
  author = {Ziran Wang and Jie An and Naijun Zhan and Miaomiao Zhang and Zhenya Zhang},
  journal= {arXiv preprint arXiv:2509.06262},
  year   = {2025}
}

Comments

15 pages, 5 figures, 7 tables

R2 v1 2026-07-01T05:25:30.534Z