On the Decidability of Metric Temporal Logic

On the Decidability of Metric Temporal Logic

On the Decidability of Metric Temporal Logic Joel¨ Ouaknine James Worrell Oxford University Computing Laboratory, Oxford, UK Department of Mathematics, Tulane University, USA Email: [email protected] Email: [email protected] Abstract 15 years ago by Koymans [20], is a prominent and success- 2 Metric Temporal Logic (MTL) is a prominent specification formal- ful instance of this approach. MTL extends Linear Temporal ism for real-time systems. In this paper, we show that the satisfiabil- Logic by constraining the temporal operators by (bounded or ity problem for MTL over finite timed words is decidable, with non- unbounded) intervals of the real numbers. For example, the primitive recursive complexity. We also consider the model-checking formula ♦[3;4]' means that ' will become true within 3 to 4 problem for MTL: whether all words accepted by a given Alur-Dill time units from now. timed automaton satisfy a given MTL formula. We show that this prob- lem is decidable over finite words. Over infinite words, we show that Unfortunately, over the interval-based semantics, the satis- model checking the safety fragment of MTL—which includes invari- fiability and model checking problems for MTL are undecid- ance and time-bounded response properties—is also decidable. These able [13]. This has led some researchers to consider various re- results are quite surprising in that they contradict various claims to strictions on MTL to recover decidability; see, e.g., [16], [28], the contrary that have appeared in the literature. The question of the [5]. Undecidability arises from the fact that MTL formulas can decidability of MTL over infinite words remains open. capture the computations of a Turing machine: configurations of the machine can be encoded within a single unit-duration time interval, since the density of time can accommodate ar- 1. Introduction bitrarily large amounts of information. An MTL formula can then specify that the configurations be accurately propagated In the linear-temporal-logic approach to verification, an ex- from one time interval to the next, in such a way that the timed ecution of a system is modelled by a sequence of states or words satisfying the formula correspond precisely to the halting events. This representation abstracts away from the precise computations of the Turing machine. times of the observations, retaining only their relative order. It turns out that the key ingredient required for this proce- Such an approach is inadequate to express specifications for dure to go through is punctuality: the ability to specify that a systems whose correct behaviour depends on quantitative tim- particular event is always followed exactly one time unit later ing requirements. To address this deficiency, much work has by another one: (p ! ♦=1q). It has in fact been claimed gone into adapting linear temporal logic to the real-time set- that, in the interval-based and the point-based semantics alike, ting; see, e.g., [5], [7], [8], [20], [23], [25], [28]. any logic strong enough to express the above requirement will Real-time logics feature explicit time references, usually by automatically be undecidable—see [6], [7], [15], among others. recording timestamps throughout computations. In this paper, While the claim is correct over the interval-based semantics, we concentrate exclusively on the dense-time, or real-time, se- we show in this paper that it is erroneous in the point-based mantics, in which the timestamps are drawn from the set of real semantics. Indeed, we show that both satisfiability and model 1 numbers. checking for MTL over finite timed words are decidable, albeit An important distinction among real-time models is whether with non-primitive recursive complexity. Over infinite words, one assumes that the system of interest is observed at every we show that model checking the safety fragment of MTL— instant in time, leading to an interval-based semantics [5], [17], which includes invariance and punctual time-bounded response [25], or whether one only sees a (possibly countably infinite) properties—is also decidable. sequence of snapshots of the system, leading to a point-based Upon careful analysis, one sees that the undecidability argu- semantics [13], [7], [8], [15], [16], [28]. In this paper, we take ment breaks down because, over a point-based semantics, MTL the latter view: we model the executions of a system as a set of is only able to encode faulty Turing machines, namely Turing timed state sequences. machines suffering from insertion errors. Indeed, while the for- One of the earliest and most popular suggestions for extend- mula (p ! ♦=1q) ensures that every p is followed exactly ing temporal logic to the real-time setting is to replace the one time unit later by a q, there might be some q’s that were not temporal operators by time-constrained versions; see [6] and preceded one time unit earlier by a p. Intuitively, this problem references therein. Metric Temporal Logic (MTL), introduced does not occur over the interval-based semantics because the system there is assumed to be under observation at all instants 1By contrast, in discrete-time settings timestamps are usually integers, which yields more tractable theories that however correspond less closely to physical 2http://scholar.google.com lists over two hundred papers on the reality [16], [4]. subject! in time, and therefore any insertion error will automatically be A timed word over finite alphabet Σ is a pair ρ = (σ; τ), detected thanks to the above formula. where σ = σ0σ1 : : : is a word over Σ and τ is a time sequence MTL is also genuinely undecidable over a point-based se- of the same length. We also represent such a timed word as mantics if in addition past temporal operators are allowed [7], a sequence of timed events by writing ρ = (σ0; τ0)(σ1; τ1) : : :. [13]. Indeed, in this setting insertion errors can be detected Given a timed word ρ = (σ; τ), let ρ[0 : : : i] denote the subword ∗ by going backwards in time, and MTL formulas are therefore (σ0; τ0) : : : (σi; τi). Finally, we write T Σ for the set of finite able to precisely capture the computations of perfect Turing ma- timed words over alphabet Σ, and T Σ! for the set of infinite chines.3 timed words over Σ. The requirement that the first event of a Existing decidability results for MTL involve restrictions ei- timed word occur at time 0 is quite natural in the present context ther on the semantics or the syntax of the logic to circumvent since MTL formulas are insensitive to this time value. the problem of punctuality. Alur and Henzinger [7] showed that A timed language is a set of timed words. A standard way of the satisfiability and model checking problems for MTL relative defining timed languages is via Alur-Dill timed automata [4]. to a discrete-time semantics are EXPSPACE-complete. Alur, A given Alur-Dill automaton A accepts a finite timed word iff Feder, and Henzinger [5] introduced Metric Interval Temporal it has a run over the word that ends in an accepting state. We Logic (MITL) as a fragment of MTL in which the temporal op- write Lf (A) for the language of finite timed words accepted by erators may only be constrained by nonsingular intervals. They A. We also define the language L!(A) of infinite timed words showed that the satisfiability and model checking problems for accepted by A. In this case we assume a Buchi¨ acceptance MITL relative to a dense-time semantics are also EXPSPACE- condition: the automaton accepts a word iff it has an infinite complete. run over the word that visits an accepting state infinitely often. The decidability results that we present in this paper are ob- tained by translating MTL formulas into timed alternating au- 3. Timed Alternating Automata tomata. These generalize Alur-Dill timed automata, and in par- ticular are closed under complementation. Building on some of In this section we define timed alternating automata. These our previous work [24], we show that the finite-word language arise by extending alternating automata [9], [11], [27] with emptiness problem for one-clock timed alternating automata is clock variables, in much the same way that Alur-Dill timed decidable, which then entails the decidability of MTL satisfi- automata extend nondeterministic finite automata. A simi- ability over finite timed words. We furthermore show how to lar notion has independently been investigated by Lasota and extend these results to the model checking problems discussed Walukiewicz in a recent paper [21]. earlier. In addition, we show that MTL formulas can capture Timed alternating automata can in general be defined to have the computations of insertion channel machines; using a result any number of clocks. Our goal, however, is to use them of Schnoebelen about the complexity of reachability for lossy to represent metric temporal logic formulas, for which one clock suffices. Accordingly, we shall exclusively focus on one- channel machines [26], we are then able to give a non-recursive 4 primitive lower bound for the complexity of MTL satisfiability. clock timed alternating automata in this paper. Note also that We note that a very similar notion of timed alternating au- we only consider timed alternating automata over finite timed tomaton has recently and independently been introduced by La- words. sota and Walukiewicz [21]. They also prove that the finite-word Let S a finite set of (control) locations. The set of formulas language emptiness problem is decidable for one-clock timed Φ(S) is generated by the grammar: alternating automata, and likewise establish a non-primitive re- ' ::= > j ? j ' ^ ' j ' _ ' j s j x ./ k j x:'; cursive complexity bound for this procedure.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    10 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us