Non-elementary Lower Bound for Propositional Duration. Calculus. A. Rabinovich. Department of Computer Science. Tel Aviv University

Similar documents
Declarative modelling for timing

In a second part, we concentrate on interval models similar to the traditional ITL models presented in [, 5]. By making various assumptions about time

Duration Calculus Introduction

From Duration Calculus. (Extended Abstract) zu Kiel, Preuerstr. 1-9, D Kiel, Germany.

2 PLTL Let P be a set of propositional variables. The set of formulae of propositional linear time logic PLTL (over P) is inductively dened as follows

A Theory of Duration Calculus with Application

Model theory of bounded arithmetic with applications to independence results. Morteza Moniri

for Propositional Temporal Logic with Since and Until Y. S. Ramakrishna, L. E. Moser, L. K. Dillon, P. M. Melliar-Smith, G. Kutty

7. F.Balarin and A.Sangiovanni-Vincentelli, A Verication Strategy for Timing-

of acceptance conditions (nite, looping and repeating) for the automata. It turns out,

LTL is Closed Under Topological Closure

02917 Advanced Topics in Embedded Systems. Michael R. Ha. Brief Introduction to Duration Calculus. Michael R. Hansen

On Real-time Monitoring with Imprecise Timestamps

ACKNOWLEDGEMENT: The work of the second author was supported in part by NSF grant MCS G.

A Preference Semantics. for Ground Nonmonotonic Modal Logics. logics, a family of nonmonotonic modal logics obtained by means of a

Query Reasoning on Data Trees with Counting

Computability and Complexity

Introduction to Automata

On Modal Logics of Partial Recursive Functions

Lecture 8: Introduction to Game Logic

Non-emptiness Testing for TMs

From Constructibility and Absoluteness to Computability and Domain Independence

Linking Duration Calculus and TLA

Automata, Logic and Games: Theory and Application

A Mixed Decision Method for Duration Calculus

of concurrent and reactive systems is now well developed [2] as well as a deductive methodology for proving their properties [3]. Part of the reason f

Discrete Mathematics and Logic II. Regular Sets

Optimal Tableau Systems for Propositional Neighborhood Logic over All, Dense, and Discrete Linear Orders

arxiv: v2 [cs.fl] 3 Jan 2015

3. Only sequences that were formed by using finitely many applications of rules 1 and 2, are propositional formulas.

Wojciech Penczek. Polish Academy of Sciences, Warsaw, Poland. and. Institute of Informatics, Siedlce, Poland.

On-line Bin-Stretching. Yossi Azar y Oded Regev z. Abstract. We are given a sequence of items that can be packed into m unit size bins.

Tecniche di Verifica. Introduction to Propositional Logic

Operational and Logical Semantics. for Polling Real-Time Systems? Vaandrager 1. Abstract. PLC-Automata are a class of real-time automata suitable

Theoretical Foundations of the UML

Extending temporal logic with!-automata Thesis for the M.Sc. Degree by Nir Piterman Under the Supervision of Prof. Amir Pnueli Department of Computer

Functional Database Query Languages as. Typed Lambda Calculi of Fixed Order. Gerd G. Hillebrand and Paris C. Kanellakis

Combining Propositional Dynamic Logic with Formal Concept Analysis

Nested Epistemic Logic Programs

An optimal tableau-based decision algorithm for Propositional Neighborhood Logic

Fall 1999 Formal Language Theory Dr. R. Boyer. 1. There are other methods of nding a regular expression equivalent to a nite automaton in

Towards a formal language for systemic requirements

Splitting a Default Theory. Hudson Turner. University of Texas at Austin.

Propositional logic (revision) & semantic entailment. p. 1/34

On Controllability and Normality of Discrete Event. Dynamical Systems. Ratnesh Kumar Vijay Garg Steven I. Marcus

Sampled Semantics of Timed Automata

Neighborhood Semantics for Modal Logic Lecture 5

FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY

7. Propositional Logic. Wolfram Burgard and Bernhard Nebel

Interval Temporal Logics over Strongly Discrete Linear Orders: the Complete Picture

A Polynomial Time Algorithm for Parsing with the Bounded Order Lambek Calculus

Adding a temporal dimension to a logic. Abstract. We introduce a methodology whereby an arbitrary logic system L can be enriched

1 Introduction A general problem that arises in dierent areas of computer science is the following combination problem: given two structures or theori

Finite Automata and Languages

Partial Collapses of the Σ 1 Complexity Hierarchy in Models for Fragments of Bounded Arithmetic

On 3-valued paraconsistent Logic Programming

A Duration Calculus with Infinite Intervals

CS 154, Lecture 2: Finite Automata, Closure Properties Nondeterminism,

Logic Part I: Classical Logic and Its Semantics

Foundations of Artificial Intelligence

Foundations of Artificial Intelligence

Fuzzy and Rough Sets Part I

Chapter 0 Introduction. Fourth Academic Year/ Elective Course Electrical Engineering Department College of Engineering University of Salahaddin

Counter Automata and Classical Logics for Data Words

Yet Another Proof of the Strong Equivalence Between Propositional Theories and Logic Programs

COMP4141 Theory of Computation

Weak ω-automata. Shaked Flur

Computation Histories

CS256/Spring 2008 Lecture #11 Zohar Manna. Beyond Temporal Logics

What You Must Remember When Processing Data Words

Halting and Equivalence of Program Schemes in Models of Arbitrary Theories

Deciding Safety and Liveness in TPTL

2 C. A. Gunter ackground asic Domain Theory. A poset is a set D together with a binary relation v which is reexive, transitive and anti-symmetric. A s

An Algebra of Hybrid Systems

Automata Theory and Formal Grammars: Lecture 1

Chapter 1. Comparison-Sorting and Selecting in. Totally Monotone Matrices. totally monotone matrices can be found in [4], [5], [9],

Chapter 2 Background. 2.1 A Basic Description Logic

Extremal problems in logic programming and stable model computation Pawe l Cholewinski and Miros law Truszczynski Computer Science Department Universi

On the Complexity of the Reflected Logic of Proofs

Applied Logic. Lecture 1 - Propositional logic. Marcin Szczuka. Institute of Informatics, The University of Warsaw

PDL and its relation to PDL

1 CHAPTER 1 INTRODUCTION 1.1 Background One branch of the study of descriptive complexity aims at characterizing complexity classes according to the l

Model Checking for Modal Intuitionistic Dependence Logic

Automated Support for the Investigation of Paraconsistent and Other Logics

On the Myhill-Nerode Theorem for Trees. Dexter Kozen y. Cornell University

Subsumption of concepts in FL 0 for (cyclic) terminologies with respect to descriptive semantics is PSPACE-complete.

Benefits of Interval Temporal Logic for Specification of Concurrent Systems

CS156: The Calculus of Computation

2 Real-Time Systems Real-time systems will be modeled by timed transition systems [7, 15]. A timed transition system S = hv; ; ; T ; L; Ui consists of

Pushdown timed automata:a binary reachability characterization and safety verication

Course Runtime Verification

Compositionality in SLD-derivations and their abstractions Marco Comini, Giorgio Levi and Maria Chiara Meo Dipartimento di Informatica, Universita di

SAMPLED SEMANTICS OF TIMED AUTOMATA

An Algebraic Semantics for Duration Calculus

On the use of guards for logics with data

How to Pop a Deep PDA Matters

Finite-Delay Strategies In Infinite Games

DISTINGUING NON-DETERMINISTIC TIMED FINITE STATE MACHINES

Probabilistic Neighbourhood Logic

The Importance of Being Formal. Martin Henz. February 5, Propositional Logic

Transcription:

Non-elementary Lower Bound for Propositional Duration Calculus A. Rabinovich Department of Computer Science Tel Aviv University Tel Aviv 69978, Israel 1 Introduction The Duration Calculus (DC) [5] is a formalism for the specication of real time systems. DC is based on interval logic [6] and uses real numbers to model time. DC was successfully applied in case studies of software embedded systems, e.g., a gas burner [10], a railway crossing [12] and was used to dene the real time semantics of other languages. Peter Sestoft [11] has shown that the satisability problem for the Propositional fragment of Duration Calculus (PDC) under non-standard discrete time interpretation has a non-elementary complexity. We show that PDC under the standard continuous time interpretation has also a non-elementary complexity. In order to prove this lower bound we provide a linear time reduction from the equivalence problem for star free expressions to the equivalence problem for PDC. Meyer and Stockmeyer proved in [14] that the equivalence problem for star free expressions is non-elementary. In our proof we rely on the relationship between PDC under the standard continuous time interpretation and star-free expressions under (nonstandard) stuttering free interpretation [9]. 2 Star free expressions The (extended) star free regular expressions over an alphabet [8] are dened by the following grammar: E ::= l j E + E j E; E j :E; where l ranges over. In this paper we will use \star free expression" for \extended star free regular expression". The standard interpretation assigns to a star free expression a set of string (language) over. In this interpretation sum (+) is interpreted as union, sequential composition (;) is interpreted as concatenation and negation (:) is interpreted as the complementation relative to the set of all nite strings (excluding the empty string ). We use [[E]] for the language assigned to the star free expression E under the standard interpretation. Expressions E 1 and E 2 are said to be equivalent (under the standard interpretation) if [[E 1 ]] = [[E 2 ]]. Theorem 1 [14] The equivalence problem for star free expressions over the alphabet f0; 1g has a nonelementary complexity. 1

Remark 2 (1) The lower bound given in [14] for the space complexity of the equivalence problem for star free expressions is explog 2 (n) (1), where expm(k) is the m-times iterated exponential function (e.g. exp 2 (k) = 2 2k ). This lower bound was improved in [4] to exp (1). The straightforward decision algorithm translates the expressions to nite state automata and then tests the equivalence of the languages log(n) n dened by these automata. The complexity of this algorithm is expn(1). An excellent survey of lower bounds is provided in [3]. (2) The star free expressions dened above do not contain a symbol for the empty string. Also, the languages assigned to the expressions do not contain the empty string. The star free expressions considered in [14] contain a symbol for the empty word; their complementation is dened relatively to the set of all nite strings including the empty string. Remark 4.23 in [13] shows that these dierences do not inuence the lower bound. 3 Stuttering Free Interpretation Denition 3 (Stuttering [7]) A string l 0 l 1 : : : ln is stuttering free if li 6= li+1 stuttering free if it contains only stuttering free strings. for i < n. A language is Let us consider stuttering free interpretations of negation and of sequential composition symbols. Namely, let : be the complementation relative to the set of stuttering free strings and let the sequential composition be interpreted as the following operation? on strings: l 0 : : : lp? m 0 : : : mk = l 0 : : : lpm 1 : : : mk if lp = m 0 otherwise: l 0 : : : lpm 0 : : : mk Sum, like before, is interpreted as union. The stuttering free interpretation assigns to a star free expression E the stuttering free string language which will be denoted by [[E]] stut. Expressions E 1 and E 2 are said to be equivalent under the stuttering free interpretation if [[E 1 ]] stut = [[E 2 ]] stut. Proposition 4 There exists a linear time reduction from the equivalence problem for star free expressions over the alphabet f0; 1g under the standard interpretation to the equivalence problem for star free expressions over the alphabet f0; 1; 2g under the stuttering free interpretation. Proof: Given a star free expression E over f0; 1g, we construct (in linear time) a star free expression Esf over f0; 1; 2g such that l 0 l 1 : : : lp 2 [[E]] if and only if l 0 2l 1 2 : : : lp2 2 [[Esf]] stut (1) Let ALL be the star free expression :0 + :1. It is clear that under the stuttering free interpretation ALL describes the set of all stuttering free strings over the alphabet f0; 1; 2g. We say that a string is well-formed if it has the form l 0 2l 1 2 : : : lp2, where li 2 f0; 1g. Let W F be the star free expression :((ALL; 0; 1; ALL) + (ALL; 1; 0; ALL) + (2; ALL) + (ALL; 0) + (ALL; 1)). It is clear that under the stuttering free interpretation W F describes the set of all well-formed strings. We dene Esf by the structural induction as follows: 1. 0 sf = 0; 2. 2. 1 sf = 1; 2. 2

3. (E 1 + E 2 ) sf = (E 1 ) sf + (E 2 ) sf. 4. (E 1 ; E 2 ) sf = (E 1 ) sf ; (E 2 ) sf. 5. (:E) sf = :((E) sf + :W F ), i.e., (:E) sf denotes the complementation of (E) sf with respect to the set of well formed strings. By the structural induction on the expressions it is easy to show that (1) indeed holds and that all strings in [[(E) sf ]] stut are well-formed. Hence, [[E 1 ]] = [[E 2 ]] if and only if [[(E 1 ) sf ]] stut = [[(E 2 ) sf ]] stut. It is also clear that Esf is computable from E in the time proportional to the size of E. 2 We do not know whether, the reductions in Proposition 4 can be \reversed", i.e., whether there exists a polynomial reduction from the equivalence problem for star free expressions under the stuttering free interpretation to the equivalence problem for star free expressions under the standard interpretation. 4 Propositional Duration Calculus The Duration Calculus [5] is a formalism for the specication of real time systems. The Propositional Duration Calculus (called the restricted duration calculus in [1, 2]) is a fragment of the duration calculus where metric properties are ignored. A run of a real time system is represented by a function from non-negative reals into a set of values - the instantaneous states of a system. Such a function will be called a signal. Usually, there is a further restriction on the behavior of continuous time systems. For example, a function that gives value q 0 for the rationals and value q 1 for the irrationals is not accepted as a `legal' signal. A requirement that is often imposed in the literature is that in every nite length time interval a system can change its state only nitely many times. This requirement is called nite variability requirement. Below we rst describe a connection between nite variability functions and stuttering free strings. Then we recall the syntax and the semantics of the Propositional fragment of Duration Calculus (PDC). Finally, we give a linear time reduction from the equivalence problem for star free expressions under the stuttering free interpretation to the equivalence problem for PDC. 4.1 Finite variability functions A function from a subinterval [a; b] of the reals into a nite set has nite variability if there exists a nite increasing sequence a = a 0 < a 1 < a 2 : : : < an = b such that is constant on every interval (ai; ai+1). The restriction of on an interval [c, d] is denoted by [c; d]. Notice that if : [a; b]! has nite variability and [c; d] [a; b], then [c; d] has nite variability. The following lemma is straightforward. Lemma 5 Suppose that : [a; b]! has nite variability, then there exists a unique increasing sequence a = a 0 < a 1 < a 2 : : : < an = b such that 1. is almost constant on every interval (ai; ai+1), i.e., for every i there is li 2 such that the set fx 2 (ai; ai+1) : (x) 6= lig is nite. 2. For every i < n? 1, the value of on (ai; ai+1) diers from the value of on (ai+1; ai+2). 3

Denition 6 (Trace of a nite variability function.) Let be a nite variability function over [a; b] and let a 0 ; : : : ; an be as in lemma 5. Let li be the values of on (ai; ai+1). The trace of (notations trace()) is the stuttering free string l 0 l 1 : : : ln?1. Lemma 7 Suppose : [a; b]! and c 2 (a; b). Then trace()= trace( [a; c])?trace( [c; b]), where? is stuttering free concatenation (see section 3). Remark 8 (Trace of a tuple.) Let h 1 ; : : : ; ni be an n-tuple of nite variability functions from [a; b] into f0; 1g. With this n-tuple we associate a function from [a; b] into f0; 1; : : :; 2 n? 1g dened as (t) = i if h 1 (t); : : : ; n(t)i is the binary representation of i. The above mapping denes a one-to-one correspondence between the set of n-tuple of nite variability functions from [a; b] into f0; 1g and nite variability functions from [a; b] into f0; : : : ; 2 n?1g. The trace of an n-tuple (notations trace( 1 ; : : : ; n)) is dened as the trace of the corresponding function. 4.2 Syntax of PDC PDC has two syntactical categories: state expressions and formulas. The state expressions and the formulas over a set VAR of variables are dened as follows: State Expressions: The state expressions are constructed from the state variables by propositional connectives. We will use S to range over the state expressions which are dened by the following grammar: S ::= X j S _ S j :S; where X is a state variable: Atomic Formulas of PDC: if S is a state expression, then dse is an atomic formula of PDC. Formulas: The formulas of PDC are dened by the following grammar: D ::= At jd _ D j :D j D _ D, where At ranges over the atomic formulas of PDC. The binary operation _ is called chop. 4.3 Semantics of PDC A valuation over an interval [a; b] is a function that assigns to every state variable X a nite variability function from [a; b] into f0; 1g. A valuation straightforwardly extends to state expressions using the meaning of the propositional connectives pointwise. We use the notation [[S]] DC for the function assigned to the state expression S under the valuation. It is clear that [[S]] DC has nite variability. The satisfaction relation j= between PDC formulas and valuations over a positive length interval [a; b] is dened as follows: PDC Atomic Formulas: ; [a; b] j= dse if there is no positive length subinterval of [a; b] where [[S]] DC is constant and equal to 0. The meaning for disjunctions and negation is dened as usual. ; [a; b] j= D 1 _ D 2 i ; [a; b] j= D 1 or ; [a; b] j= D 2. ; [a; b] j= :D i not ; [a; b] j= D. 4

Let us denote by [c; d] the valuation that maps every state variable X to the restriction of (X) on [c; d]. Chop: ; [a; b] j= D 1 _ D2 if [a; m]; [a; m] j= D 1 and [m; b]; [m; b] j= D 2 for some m 2 (a; b). PDC formulas D 1 and D 2 are said to be equivalent if for every interval [a; b]: ; [a; b] j= D 1 whenever ; [a; b] j= D 2. The decision algorithm from [1] for the equivalence (satisability) of PDC formulas is not elementary and has the space complexity expn(1). 4.4 Reduction A non-elementary lower bound for the equivalence (as well as for the satisability) problem for PDC follows from theorem 1, proposition 4 and the following Proposition 9 There exists a linear time reduction from the equivalence problem for star free expressions over the alphabet f0; 1; 2g under the stuttering free interpretation to the equivalence problem for PDC. Proof: Given a star free expression E over the alphabet f0; 1; 2g, we construct (in linear time) a PDC formula EDC which will contain two state variables X 0 and X 1. Hence, to a valuation for EDC corresponds a pair h(x 0 ); (X 1 )i of nite variability functions. The trace of is a string over f0; 1; 2; 3g dened as the trace of h(x 0 ); (X 1 )i (see Remark 8 in Section 4.1). Our translation will guarantee that ; [a; b] j= EDC if and only if trace() 2 [[E]] stut : (2) Let T RU E be the PDC formula dx 0 _ :X 0 e. Let Legal be the formula :(T RU E _ dx 0 ^ X 1 e _ T RU E _ T RU E _ dx 0 ^ X 1 e _ dx 0 ^ X 1 e _ T RU E). Observe that ; [a; b] j= Legal if trace() is a stuttering free string over f0; 1; 2g. Dene EDC by the structural induction on the expressions: 1. 0 DC = d:x 0 ^ :X 1 e. Hence ; [a; b] j= 0 DC i trace() = 0. 2. 1 DC = d:x 0 ^ X 1 e. Hence ; [a; b] j= 1 DC i trace() = 1. 3. 2 DC = dx 0 ^ :X 1 e Hence ; [a; b] j= 2 DC i trace() = 2. 4. (E 1 + E 2 ) DC = (E 1 ) DC _ (E 2 ) DC. 5. (:E) DC = :(E) DC ^ Legal. Hence, satises (:E) DC if it does not satisfy (E) DC and trace() is a stuttering free string over f0; 1; 2g. 6. (E 1 ; E 2 ) DC = D _ 1 D 2, where Di = (E i ) DC for i = 1; 2. 5

By the structural induction it is easy to establish that condition (2) indeed holds; The only non-immediate case is the case for sequential composition which follows from lemma 7. It is also clear that EDC is computable from E in the time proportional to the size of E. From the observation that for every stuttering free string s there exists a valuation such that trace() = s and from (2) above, it follows that [[E 1 ]] stut = [[E 2 ]] stut if and only if (E 1 ) DC is equivalent to (E 1 ) DC. This completes the proof of the proposition. 2 Finally, let us note that the reduction in Proposition 9 can be \reversed". Namely, there exists a linear reduction from from the equivalence problem for PDC to the equivalence problem for star free expressions under the stuttering free interpretation. Acknowledgments I would like to thank the anonymous referees for their helpful comments. References [1] Zhou Chaochen, M. R. Hansen and P. Sestoft. Decidability and undecidablity results for Duration Calculus. In STACS'93, Lect. Notes in Comp. Sci. vol 665, pages 58-68, 1993. [2] Zhou Chaochen and M. R. Hansen. M. Hansen and Zhou Chaochen. Duration Calculus: Logical Foundations. In Formal Aspects of Computing, 9:283-330, 1997. [3] K. Compton and C. W. Henson. A uniform method for proving lower bounds on the computational complexity of logical theories, Annals of Pure and Applied Logic, 48:1-79, 1990. [4] M. Furer. Nicht-elementare untere Schranken in der Automaten-theorie. Doctoral Thesis, ETH, Zurich, 1978. [5] Zhou Chaochen, C.A.R. Hoare and A. P. Ravn. A calculus of Duration. Information processing Letters, 40(5):269-279, 1991. [6] J. Halperin, B. Moszkowski and Z. Manna. A propositional modal logic of time intervals. In LICS, 1986, pp. 279-292. [7] L. Lamport. The Temporal Logic of Actions. ACM Transactions on Programming Languages and Systems, 16(3), pp. 872-923, 1994. [8] R. McNaughton and S. Papert. Counter-free automata. The MIT Press, 1971. [9] A. Rabinovich. On expressive completeness of Duration and Mean Value Calculi. In Proceedings of EXPRESS, Electronic Notes in Theoretical Computer Science, Vol. 7, 1997. [10] A. Ravn, H. Richel and K. Hansen. Specifying and verifying requirement of real time systems. IEEE Transaction on Software Eng., 1993. [11] P. Sestoft. Personal communication. [12] J. Skakkebak, A. Ravn, H. Richel, Zhou Chaochen. Specication of Embedded Real time Systems. In Proc. Workshop on Real Time Systems. IEEE Computer Society Press, 1992. [13] L. Stockmeyer. The complexity of decision problems in automata and logic, Ph.D. Thesis, MIT, 1974. 6

[14] L. Stockmeyer and A. R. Meyer. Word Problems Requiring Exponential Time: Preliminary Report. In Proc. 5th AMS Symposium on Theory of Computing, 1973. 7