The language preservation problem is undecidable for parametric event-recording automata
\'Etienne Andr\'e, Shang-Wei Lin

TL;DR
This paper proves that the language preservation problem remains undecidable for parametric event-recording automata, even under various restrictions and different definitions of the language, highlighting fundamental computational limits.
Contribution
It extends the undecidability results from parametric timed automata to the more restricted class of PERAs, showing the problem's robustness.
Findings
Language preservation problem is undecidable for PERAs.
Undecidability persists under various language definitions.
Results highlight fundamental limits in parametric automata analysis.
Abstract
Parametric timed automata (PTA) extend timed automata with unknown constants ("parameters"), at the price of undecidability of most interesting problems. The (untimed) language preservation problem ("given a parameter valuation, can we find at least one other valuation with the same untimed language?") is undecidable for PTAs. We prove that this problem remains undecidable for parametric event-recording automata (PERAs), a subclass of PTAs that considerably restrains the way the language can be used; we also show it remains undecidable even for slightly different definitions of the language, i.e., finite sequences of actions ending in or passing infinitely often through accepting locations, or just all finite untimed words (without accepting locations).
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
The language preservation problem is undecidable for parametric event-recording automata111This is the author version of the article of the same name published in Information Processing Letters, volume 136, pages 17–20 (2018).
The final version is available at 10.1016/j.ipl.2018.03.013.
Étienne André
Shang-Wei Lin
Université Paris 13, LIPN, CNRS, UMR 7030, F-93430, Villetaneuse, France
Nanyang Technological University, 50 Nanyang Avenue, Singapore, 639798
Abstract
Parametric timed automata (PTA) extend timed automata with unknown constants (“parameters”), at the price of undecidability of most interesting problems. The (untimed) language preservation problem (“given a parameter valuation, can we find at least one other valuation with the same untimed language?”) is undecidable for PTAs. We prove that this problem remains undecidable for parametric event-recording automata (PERAs), a subclass of PTAs that considerably restrains the way the language can be used; we also show it remains undecidable even for slightly different definitions of the language, i. e., finite sequences of actions ending in or passing infinitely often through accepting locations, or just all finite untimed words (without accepting locations).
keywords:
parametric timed automata, event-recording automata
MSC:
[2010] 68Q45, 68Q60
††journal: Information Processing Letters
url]https://lipn.univ-paris13.fr/ andre/
1 Introduction
Timed automata (TAs) [1] are a useful formalism to model and formally verify systems involving timing hard constraints and concurrency. TAs benefit from numerous decidability results, including the emptiness of the accepted language. However, the universality and the language inclusion are undecidable for timed automata [1]. Therefore, subclasses have been proposed. The language inclusion becomes decidable for event-recording automata (ERAs) [2].
Parametric timed automata (PTAs) [3] extend TAs with timing parameters: this very expressive formalism can model systems where timing constants are uncertain or unknown, at the cost of most interesting problems to be undecidable [6]. The mere emptiness of the valuation set for which a given location is reachable (“reachability-emptiness”) is undecidable [3].
Restricting the syntax of a formalism may bring decidability: the language inclusion undecidable for TAs [1] becomes decidable for ERAs [2]. In contrast, the reachability emptiness problem for PTAs remains undecidable for a subclass of PTAs with only open inequalities [7].
In [4], we proposed parametric event-recording automata (PERAs), and showed that the reachability-emptiness problem remains undecidable for PERAs. Although it seems that our proof idea can be extended to most problems where the language (i. e., the transition labels) does not play a role (which would include unavoidability-emptiness [8]), it remains open whether language problems undecidable for PTAs become or not decidable for PERAs. In [5], we showed that the following language preservation problem is undecidable for PTAs: “given a PTA and a reference parameter valuation, does there exist another valuation with the same untimed language?”. This problem has connections with the robustness of timed systems, as it asks whether other valuations of the timing constants may lead to the same discrete behavior. The set of valuations with the same untimed language can also be used to perform optimization of some constants without impacting the system’s (untimed) behavior.
We show here that the language preservation problem is undecidable for PERAs, and remains undecidable for different definitions of the language. This quite surprising result comes in contrast with the difference of decidability between TAs and ERAs in the non-parametric setting.
2 Preliminaries
2.1 Clocks, parameters and constraints
Let , , and denote the sets of non-negative integers, integers, non-negative rational and non-negative real numbers respectively.
Throughout this paper, we assume a set of clocks, i. e., real-valued variables that evolve at the same rate. A clock valuation is a function . We write for the clock valuation that assigns [math] to all clocks. Given , denotes the valuation such that , for all . Given , we define the reset of a valuation , denoted by , as follows: if , and otherwise.
We assume a set of parameters, i. e., unknown rational-valued constants. A parameter valuation is a function .
A guard is a constraint over defined by a conjunction of inequalities of the form , where is either a parameter or a constant in , and . Given , denotes where all occurrences of each parameter have been replaced by .
2.2 Parametric Event-Recording Automata
Parametric event-recording automata (PTAs) extend event-recording automata with parameters within guards and invariants in place of integer constants [4]; they can also be seen as a syntactic subclass of parametric timed automata [3].
Definition 1** (PERA)**
*A parametric event-recording automaton (hereafter PERA) is a tuple , where:
i) is a finite set of actions,
ii) is a finite set of locations,
iii) is the initial location,
iv) is a finite set of parameters,
v) is the invariant, assigning to every a guard ,
vi) is a finite set of edges where are the source and target locations, , and is a guard.
A PERA has a one-to-one mapping between clocks and actions. Given a set of actions , let denote the set of associated clocks. Similarly, we denote by the clock associated with . On any transition labeled with , is implicitly reset.
Given a PERA and a parameter valuation , we denote by the non-parametric event-recording automaton where all occurrences of a parameter have been replaced by , for each .
Definition 2** (Concrete semantics of an ERA)**
Given a PERA , and a parameter valuation , the concrete semantics of is given by the timed transition system , with , , and consists of the discrete and (continuous) delay transition relations:
- •
discrete transitions: , if , there exists , , and .
- •
delay transitions: , with , if .
A run is a sequence such that . We consider as usual that runs strictly alternate delays and discrete transitions and we thus write runs in the form . The corresponding timed word is where is the action of and . The corresponding untimed word is . A maximal run is a run that is either infinite, or that cannot be extended by a discrete transition.
As in [5], we define the language of , denoted by as the set of all untimed words associated with a maximal run of .
3 Encoding a 2-counter machine into a PERA
We propose in this section an encoding of a 2-counter machine (2CM) into a PERA. This encoding is adapted from the PTA encoding of [5] to our setting of PERAs, and is therefore not a main contribution of this work.
Fix a deterministic 2CM . Recall that such a machine has two non-negative counters and (the value of which is initially 0), and a finite number of states and of transitions of the form:
- •
when in state , increment and go to ;
- •
when in state , if then go to else decrement and go to .
The machine starts in state and halts when it reaches a particular state . The halting problem for 2-counter machines is undecidable [9].
Our encoding requires a single parameter and four actions , , , and (associated with clocks , , and respectively). Clock serves as a tick (it is reset exactly every time units). We encode a configuration of the 2CM as follows: whenever , then and , where are the current values of . Finally, is used to count the number of steps of the 2CM: we use to bound the length of the computation of the 2CM. The PERA associated with is defined as follows:
- •
its set of locations has two copies of the set of states of : for each , there is a main location , and an intermediary location named ;
- •
Each location of carries three self-loops, associated with each of the three clocks , , and , and resetting that clock when it reaches value , i. e., associated with actions , , and respectively. This requires a global invariant enforcing that all four clocks , , , and remain below .
Then each transition incrementing counter in gives rise to a transition from location to , with guard , and labeled with (therefore resetting ) (see Fig. 1(a)). Each transition of the form is handled similarly, but gives rise to two transitions: one transition from to with guard (the actual 0-test for ), and one transition from to with guard and labeled with (therefore resetting ). Then, from each location of , there is a transition to the corresponding location with guard and resetting due to action (see Fig. 1(b)).
Clock counts the number of steps (when considering the value of this clock when , it encodes a counter that is incremented at every transition of ). Notice that clock counts, but for the moment, it does not impose any constraint on the length of the simulation. Let us now add condition to the guards of the transitions leaving the intermediary locations. This way, when (seen as a counter) has value (when or ), no transition is available from any location , so that the encoding stops after mimicking steps of the execution of . As a consequence, our encoding only encodes properly the first steps of , and then blocks (therefore steps beyond steps are not encoded at all).
4 Undecidability of the language preservation
4.1 Main result
We now show our main result below.
Theorem 1
The language preservation problem for PERAs is undecidable.
The proof of undecidability of [5] for PTAs strongly relies on the fact that all transitions were labeled with the same action . This reasoning cannot be kept here, as the transitions of our modified encoding in Section 3 are labeled with different actions so as to reset different clocks. Therefore, it is not possible to know in advance the language of the accepting run of the 2CM (if any).
For example, assume a run of the 2CM made of the following two instructions: when in state , increment and go to ; when in state , if then go to else decrement and go to . The sequence of states and actions in our PERA will be , for some . (In this sequence, we write instead of to make clear the action used in edge ). Therefore, the untimed language corresponding to these two instructions is .
In order to prove Theorem 1, we reduce from the halting problem of a 2CM, using the encoding of Section 3. We will allow all possible infinite (untimed) words for the reference valuation, and will rely on the difference between finite and infinite words to perform a distinction between the halting or the non-halting case.
Our proof relies on the PERA given in Fig. 2, that contains the encoding of a 2CM , denoted by . A transition labeled with denotes 4 transitions labeled with respectively. Let be the valuation s.t. . Given and , we will show that there exists s.t. iff halts. First, let us study : this TA can take the transitions to either (which is ungarded) or (which requires ), but not that to as the guard requires . Therefore, , i. e., the language made of exactly all infinite words, hereafter .
Now, assume the machine halts after steps. There exists a parameter valuation (typically s.t. ) s.t. the machine is correctly simulated. The (unique) run going through the gadget is non-blocking and reaches location , from which it goes to and can perform any action an infinite number of times. The corresponding possible runs are therefore included into . Since this valuation can also take the transition from to , then the language is . Hence there exists s.t. .
Assume the machine does not halt, and consider any valuation . As in the previous case, the transition from to can be taken, giving (at least) . In addition, for this valuation, the transition to can be taken (since ), and the 2CM starts to be simulated. However, from our encoding in Section 3, this run will stop after steps, and will block (without reaching as the 2CM does not halt). This blocking run is a finite blocking run, therefore is a maximal run, and is therefore part of the language. Hence the language contains all infinite runs () plus one finite blocking run—which was not part of . Therefore, for all , .
This gives that there exists s.t. iff halts.
4.2 Varying the definition of language
We can wonder whether the undecidability comes from our definition of the language (consistent with [5]). We briefly discuss other cases to show that it does not. To prove undecidability of the three cases below, we need to perform a common modification to the 2CM encoding. From any intermediary location of , we add a transition guarded with leading to a new location with actions . This transition can only be taken after exactly steps of the 2CM, i. e., instead of blocking after steps, the run goes to .
4.2.1 Büchi condition or reachability condition
Let us redefine the untimed language as the set of all words associated with a run passing infinitely often through an accepting location. In that case, our scheme in Fig. 2 can be kept with only mild modifications: let , and be the accepting locations. Let us add a self-loop on with a new action, say . For , the untimed language is (the notation remains unchanged, i. e., does not contain ). If the 2CM halts, some valuations will reach , and the untimed language is . If the 2CM does not halt, is part of the language but, for all , the run will block, and end in where it will perform an infinite word with suffix , which differs from the discrete behavior of .
The case of the language defined as the set of finite words ending in an accepting location is similar.
4.2.2 Safety untimed language
Finally, let us redefine the untimed language as the set of untimed words associated with any finite run (no accepting locations are considered). In that case, we relabel the transitions to with the fresh action . For , the language becomes . If the 2CM halts, the language is again for some valuations. However, if the 2CM does not halt, for the (unique) run will block, and end in with as suffix—yielding a word not part of .
5 Conclusion
We proved that the language preservation remains undecidable for a subclass of PTAs, namely parametric event-recording automata. We believe that the L/U-automata restrictions considered in the additional undecidability results of [5] could apply to our setting, and undecidability would still hold for “L/U-PERAs”. A more challenging future work is to study the trace preservation problem of [5] that considers not only the actions but also the locations.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1AD [94] Rajeev Alur and David L. Dill. A theory of timed automata. Theoretical Computer Science , 126(2):183–235, April 1994.
- 2AFH [99] Rajeev Alur, Limor Fix, and Thomas A. Henzinger. Event-clock automata: A determinizable class of timed automata. Theoretical Computer Science , 211(1-2):253–273, 1999.
- 3AHV [93] Rajeev Alur, Thomas A. Henzinger, and Moshe Y. Vardi. Parametric real-time reasoning. In STOC , pages 592–601, New York, NY, USA, 1993. ACM.
- 4AL [17] Étienne André and Shang-Wei Lin. Learning-based compositional parameter synthesis for event-recording automata. In FORTE , volume 10321 of Lecture Notes in Computer Science , pages 17–32. Springer, 2017.
- 5AM [15] Étienne André and Nicolas Markey. Language preservation problems in parametric timed automata. In FORMATS , volume 9268 of Lecture Notes in Computer Science , pages 27–43. Springer, 2015.
- 6And [18] Étienne André. What’s decidable about parametric timed automata? International Journal on Software Tools for Technology , 2018. To appear.
- 7Doy [07] Laurent Doyen. Robust parametric reachability for timed automata. Information Processing Letters , 102(5):208–213, 2007.
- 8JLR [15] Aleksandra Jovanović, Didier Lime, and Olivier H. Roux. Integer parameter synthesis for timed automata. IEEE Transactions on Software Engineering , 41(5):445–461, 2015.
