A Mixed Decision Method for Duration Calculus

Size: px
Start display at page:

Download "A Mixed Decision Method for Duration Calculus"

Transcription

1 A Mixed Decision Method for Duration Calculus NATHALIE CHETCUTI-SERANDIO and LUIS FARIÑAS DEL CERRO, Institut de Recherche en Informatique de Toulouse, 118, route de Narbonne, F Toulouse cedex 04, France. Abstract The Duration Calculus is an interval logic with an additional notion of duration. It became one of the main references of real-time system specification for which it was introduced. From a practical point of view an important challenge is to define automated proof procedures for this calculus. Since the propositional Duration Calculus is undecidable, in this paper we isolate a fragment and we define a mixed decision method combining standard tableau techniques with temporal constraint network resolution algorithms. This method gives a natural procedure to decide whether a given formula is satisfiable. This fragment is strong enough to embed Allen s Interval Algebra. Keywords: Automated deduction, representation of time, software engineering. 1 Introduction The Duration Calculus [14] is an interval logic introduced for specifying real-time systems. This calculus is able to capture important real-time problems like the specification of the behaviour of schedulers [11]; it has also been used, to specify the requirements of the classical gas burner [8], to give a semantics to communicating processes sharing a processor and to specify their scheduler [12], to specify controllers automatically synthesized from these specifications [3], etc. From a practical point of view an important challenge is to define automated proof procedures for this calculus. Since the propositional Duration Calculus is undecidable, we are interested in isolating decidable fragments of this calculus. A first fragment was given [13] and its decidability proved via regular languages. In this paper we isolate another fragment and we define a decision method combining standard tableau techniques with temporal constraint network resolution algorithms. This method gives a natural procedure to decide whether a given formula is satisfiable. This fragment is strong enough to embed Allen s Interval Algebra [1]. This paper is organized as follows: first we introduce the fragment of propositional Duration Calculus we isolated, then the tableau method we defined which we prove to be sound, complete and decidable before concluding. 2 Duration Calculus: an interval fragment Duration Calculus [14] is a temporal logic based on Interval Temporal Logic [7] with an additional notion of duration in a state, i.e. the duration for which a system stays in a particular state. Given that this calculus is undecidable, we shall consider only a fragment of propositional J. Logic Computat., Vol. 10 No. 6, pp cfl Oxford University Press

2 878 A Mixed Decision Method for Duration Calculus Duration Calculus; nevertheless this new fragment is rich enough to embed Interval Algebra [1] (cf. Apendix A). Furthermore that fragment is a decidable subset of Duration Calculus. In this section we introduce formally the syntax and the semantics of propositional Duration Calculus restricted to the fragment we are interested in then we give some results of decidability for Duration Calculus. The reader interested in a thorough presentation of Duration Calculus can refer to [6] for the logical aspects. 2.1 Syntax Three types of expressions are considered: 1. State expressions, built from state variables and classical logic operators: the states of a system are modelled as state expressions, state variables being basic states. State expressions are defined by induction in the following way: (a) state variables are state expressions, (b) if ff is a state expression then :ff is a state expression, (c) if ff 1 and ff 2 are state expressions then ff 1 ^ ff 2 is a state expression. 2. Terms, defined in the following way: (a) R 1 is a term, denoted by `; ` is the length of the current interval, (b) if ff is a state expression then R ff is a term; R ff is the duration for which the system is in state ff within a given temporal interval, (c) there are only function symbols of arity 0: ifk is a function symbol of arity 0 then k is a term, called constant; a constant k is interpreted as the real number k. 3. Formulae are defined, still by induction, in the following way: (a)? and > are formulae, (b) if k is a constant then ` S k, wheres 2f<;»; =; 6=; ;>g, is a formula; the binary predicate symbols f<;»; =; 6=; ;>g are interpreted as binary Boolean functions over the set of the real numbers: IR 2!ftrue; falseg, (c) if ff is a state expression then R ff = ` is a formula, (d) if ffi 1 and ffi 2 are formulae then ffi 1 _ ffi 2, ffi 1 ^ ffi 2 and ffi 1 ; ffi 2 are formulae. ffi 1 ; ffi 2 is true in a given interval if this one can be split into two subintervals, ffi 1 being true in the former and ffi 2 in the latter; this special operator is called chop. Another modal logic based on a chop operator is considered by Venema [10]. Abbreviations. Apart from classical abbreviations, standard modal operators can be defined in Duration Calculus: ffl}ffi >; ffi ; > ffi is true for some subinterval of the current interval. ffl Note that the operator cannot be defined in our fragment since we cannot express the negation of a formula. More typical abbreviations: fflde (` R =0) the current interval is a point interval. ffldffe ( ff = `) ^ `>0 state expression ff is 1 almost everywhere on the current interval and this one is not a point interval.

3 A Mixed Decision Method for Duration Calculus Semantics Time is modelled by the set of the real numbers called Time. For each b, e 2 Time such that b» e, the closed interval [b; e] denotes the set ft 2 Time : b» t» eg and IInt will denote the set of closed intervals. In the sequel let I be an interpretation, t a temporal point and [b; e] a temporal interval. State expressions. An interpretation I associates with each state variable, a Boolean function over temporal points: Time! f0; 1g. The semantics of a state expression is a Boolean function over temporal points: Time! f0; 1g, defined by induction in the following way: ffl if s is a state variable then I[[s]](t) =I(s)(t), ffl if ff is a state expression then I[[:ff]](t) =1 I[[ff]](t), ffl if ff 1 and ff 2 are state expressions then I[[ff 1 ^ ff 2 ]](t) =I[[ff 1 ]](t) I[[ff 2 ]](t). State variables, hence state expressions, are finitely varied, i.e. they may have only a finite number of discontinuities on a bounded interval, state expressions being thus Riemannintegrable on all bounded interval. Terms. A term is interpreted as a real-valued function: IInt! IR, giving for all temporal interval the duration of a given state expression. The semantics of a term is defined in the following way: R e ffli[[`]]([b; e]) = 1dt = e b, b R R e ffl if ff is a state expression then I[[ ff]]([b; e]) = b I[[ff]](t)dt, ffli[[k]]([b; e]) = k. Formulae. A formula is interpreted as a Boolean function over intervals: IInt! ff alse; trueg. The semantics of a formula is defined by induction in the following way: ffli[[?]]([b; e]) = false, ffli[[>]]([b; e]) = true, ffl if k is a constant and S is a binary predicate symbol such that S 2 f<;»; =; 6=; ;>g then I[[` S k]]([b; e]) = true if, and only if, I[[`]]([b; e]) S k, ffl if ff is a state expression then I[[ R ff = `]]([b; e]) = true if, and only if, I[[ R ff]]([b; e]) = I[[`]]([b; e]), ffl if ffi 1 and ffi 2 are formulae then I[[ffi 1 _ ffi 2 ]]([b; e]) = true if, and only if, I[[ffi 1 ]]([b; e]) = true or I[[ffi 2 ]]([b; e]) = true, ffl if ffi 1 and ffi 2 are formulae then I[[ffi 1 ^ ffi 2 ]]([b; e]) = true if, and only if, I[[ffi 1 ]]([b; e]) = true and I[[ffi 2 ]]([b; e]) = true, ffl if ffi 1 and ffi 2 are formulae then I[[ffi 1 ; ffi 2 ]]([b; e]) = true if, and only if, 9m 2 [b; e] such that I[[ffi 1 ]]([b; m]) = true and I[[ffi 2 ]]([m; e]) = true. Let I be an interpretation, let [b; e] be a Time interval and let ffi be a formula. Semantically, M =(I; [b; e]) satisfies ffi (or M is a model of ffi), denoted M j= ffi, ifi[[ffi]]([b; e]) = true. Likewise, (I; [b; e]) 6j= ffi if I[[ffi]]([b; e]) = false. REMARK 2.1 R ffl In formulae, state expressions only appear within a.

4 880 A Mixed Decision Method for Duration Calculus ffl Let ff 1 and ff 2 be two state expressions R and let I[[ff R 1 ]] be I[[ff 2 ]] except for a finite number e of points then 8[b; e] 2 IInt, b I[[ff e 1]](t)dt = b I[[ff 2]](t)dt. Therefore for all state expression we can drop a finite number of discontinuity points without altering the truth value of formulae. R b ffl Let ff be a state expression. On any point interval [b; b], b I[[ff]] (t)dt =0= R b b I[[:ff]](t)dt. So(I; [b; b]) j= (R ff = `), (I; [b; b]) j= ( R :ff = `). 2.3 Fragments of Duration Calculus Michael R. Hansen and Zhou Chaochen give an axiomatization of Duration Calculus in [5]. Some subsets have been identified to be decidable while others are undecidable [13]. In a certain decidable subset of Duration Calculus, a regular language L(ffi) can be generated from aformulaffi. L(ffi) represents a set of strings corresponding to interpretations satisfying ffi, such that ffi is satisfiable if, and only if, L(ffi) is not empty. The emptiness of a regular language being decidable, so is the satisfiability of a formula. A decision algorithm for checking the validity of formulae of a decidable Duration Calculus subset was implemented in [9]. Our decidable Duration Calculus fragment is not comparable with the dense-time decidable fragment of [13]: both are included in propositional Duration Calculus but none is included in the other one, they only intersects one another. Below are some examples of formulae characteristic of each language: the second formula is not expressible in our fragment and the third one does not belong to the dense-time decidable fragment of [13]. Formula Language 1. (( R s 1 = R s 2 ) ^ ( R s 1 6=5))) ( R s 2 6=5) Propositional Duration Calculus 2. (ds 1 e; ds 1 e) )ds 1 e Dense-Time Decidable Duration Calculus Fragment from [13] 3. (` 4) ^ (( R s 1 = ` _ `» 1); ( R s 2 = `)) Our Decidable Duration Calculus Fragment In the next section we define a deduction method based on tableau techniques extended with constraint resolution algorithms. 3 Tableau construction In this section we give a tableau-based method characterized by a set of extension rules. A step-by-step procedure applies these rules to a tree initially possessing an only node, called root, to which a single formula is attached; the final tree thus constructed is called a tableau. If the original formula is consistent, there exists a model associated with its tableau satisfying it.

5 A Mixed Decision Method for Duration Calculus 881 Since we need to deal explicitly with interval bounds, we shall call bounded formula (respectively bounded state expression) an interval-stamped formula (respectively intervalstamped state expression), e.g. ffi [b;e]. Intuitively ffi [b;e] means that there should be a (I; [b; e])- like model which satisfies ffi. Tableaux are built by means of extension rules: an extension rule constructs a new tree T i+1 from a tree T i by adding sons to a terminal node of T i. It is represented as a tree pattern: S 1 S 2 or S 2 S 3 where S 1, S 2 and S 3 are conjunctions (expressed in the form of sets) of bounded formulae, bounded state expressions and constraints and where branching expresses disjunction. The intended meaning of an extension rule is as follows: if a terminal node n of T i contains a set of bounded formulae, bounded state expressions and constraints matching S 1 then the rule applies to n and adds one or two sons to n, each son containing the corresponding instantiation of S 2 or S 3. EXAMPLE 3.1 Let T i be S k ffl If S k matches S 1 of rule S 1 then the rule applies and T i+1 is identical to T a (see below) S 2 where S k+1 is the corresponding instantiation of S 2. ffl If S k matches S 0 1 of rule S S 0 2 S 0 3 then the rule applies and T i+1 is identical to T b (see below) where S 0 k+1 and S0 k+2 are the corresponding instantiation of S0 2 and S0 3 respectively.

6 882 A Mixed Decision Method for Duration Calculus ffl stop 1 : ffl stop 2 : S;? [b0 ;e 0 ] S; b 0 <e 0 ;b 0 = e 0 stop stop FIGURE 1. Extension rules for Duration Calculus: stop rules Let T a be and let T b be S k S k+1 S 0 k+1 S 0 k+2 DEFINITION 3.2 Let b and e be constraint variables and k 2 IR. ffl b R e,wherer 2 f<; =;»g,isaqualitative constraint, ffl (e b) S k,wheres 2f<;»; =; 6=; ;>g,isaquantitative constraint. DEFINITION 3.3 Let n be a node and b, b 0 constraint variables. b and b 0 are connected in n, denoted by b./ b 0 2 n, if9 b 1 ;:::;b m constraint variables such that the set of qualitative constraints fb R 1 b 1 ;b 1 R 2 b 2 ;:::;b m R m+1 b 0 : R i 2f<;»; =gg belongs to n. The extension rules for Duration Calculus are presented in Figures 1, 2 and 3. DEFINITION 3.4 (Tableau) Let ffi be a formula and ft 0, T 1,...,T i, T i+1, :::g be a series of trees such that ffl T 0 is a single node containing solely ffi [b;e],whereb and e are constraint variables, ffl T i+1 is obtained by applying an extension rule to T i. If this series has a limit, 1 it is called a tableau for formula ffi. Note that in such a series of trees any rule applicable to some T i is eventually applied to T j, where j i (fairness hypothesis). 1 Such a series reaches a limit when no more extension rule is applicable.

7 A Mixed Decision Method for Duration Calculus 883 ffl>: S; > [b0 ;e 0 ] S; b 0» e 0 ffl double negation: ff is a state expression. S; (::ff) [b0 ;e 0 ] S; ff [b0 ;e 0 ] ffl and negation: ff 1 and ff 2 are state expressions. S; :(ff 1 ^ ff 2 ) [b0 ;e 0 ], b 0./m./e 0 S; :(ff 1 ^ ff 2 ) [b0 ;m], :(ff 1 ^ ff 2 ) [m;e0 ], b 0./m./e 0 ffl last and negation: ff 1 and ff 2 are state expressions. S; :(ff 1 ^ ff 2 ) [b0 ;e S; :ff 1[b0 ;e 0 ] S; :ff 2[b0 ;e 0 ] Rule last and negation applies when the rules applying to formulae and rule and negation no longer apply. ffl interval length S: k is a constant. S; (` S k) [b0 ;e 0 ] S; b 0» e 0 ; (e 0 b 0 ) S k where S 2f<;»; =; 6=; ;>g FIGURE 2. Extension rules for Duration Calculus: building rules (1)

8 884 A Mixed Decision Method for Duration Calculus ffl maximal length: S; ( R ff = `) [b0 ;e 0 ] S; ff [b0 ;e 0 ];b 0» e 0 ffl and: S; (x ^ y) [b0 ;e 0 ] S; x [b0 ;e 0 ];y [b0 ;e 0 ] ffl or: ffi 1 and ffi 2 are formulae. S; (ffi 1 _ ffi 2 ) [b0 ;e S; ffi 1[b0 ;e 0 ] S; ffi 2[b0 ;e 0 ] ffl subinterval sequence: S; (ffi 1 ; ffi 2 ) [b0 ;e 0 ] S; ffi 1[b0 ;b 1] ;ffi 2[b1;e 0 ] b 1 new constraint variable ffl interval disjunction: S; ff [b1;e1] ; S; ff [b1;e1] ; :ff [b2;e2] ;e 1» b 2 S; ff [b1;e1] ; :ff [b2;e2] ;e 2» b 1 Rule interval disjunction does not apply if constraints e 1» b 2 or e 2» b 1 belong to the father. FIGURE 3. Extension rules for Duration Calculus: building rules (2)

9 A Mixed Decision Method for Duration Calculus 885 DEFINITION 3.5 A tableau branch is a path from the root to a terminal node. DEFINITION 3.6 ffl A terminal node is open if it is stop-free and the set of its constraints is consistent, otherwise it is closed. ffl A tableau branch is open if its terminal node is open, otherwise it is closed. ffl A tableau is open if one of its branches is open, otherwise it is closed. OBSERVATION 3.7 Any constraint belonging to a node also belongs to its stop-free descendants (if it has any). Since the aim of our work is to define a decision procedure, a first step is to prove that the tableau construction terminates, hence the following lemmas and theorem: LEMMA 3.8 Let ffi be a formula. The series of trees constructed to find a tableau for ffi is not empty. PROOF. ThefirsttreeT 0 of the series of trees constructed to find a tableau for ffi is a single node containing the only formula ffi [b;e],whereb and e are constraint variables. LEMMA 3.9 Let ffi be a formula. In the series of trees constructed to find a tableau for ffi, each extension rule can apply finitely often in a given branch. PROOF. ffl Rules stop 1 and stop 2 stop the construction of the current branch, so they apply finitely often. ffl Rule > just generates a constraint in the son of the current node. Formulae being finite, rule > applies finitely often. ffl Rules double negation and last and negation generate bounded state subexpressions of the bounded state expression to which they apply in the sons of the current node. State expressions being finite, the number of their subexpressions is also finite, so rules double negation and last and negation apply finitely often. ffl Rule and negation generates the state expression to which it applies twice in the son of the current node but those state expressions are stamped by already known subintervals of the current interval. The only rule making new constraint variables appear is rule subinterval sequence which applies finitely often (see farther on) consequently only a finite number of intervals can be generated. So rule and negation applies finitely often. ffl Rule interval length S just generates two constraints in the son of the current node. Formulae being finite, this rule applies only finitely often. ffl Rule maximal length generatesaboundedstatesubexpressionandaconstraint. Formulae being finite, the number of their state subexpressions is also finite, thus rule maximal length applies finitely often. ffl Rules or and subinterval sequence generateboundedsubformulaeoftheboundedformula to which they apply in the sons of the current node. Formulae being finite, the number of their subformulae is also finite, so rules or and subinterval sequence apply finitely often.

10 886 A Mixed Decision Method for Duration Calculus ffl Rule and generates bounded subformulae or state subexpressions of, respectively, the bounded formula or state expression to which it applies in the sons of the current node. Formulae and state expressions being finite, the number of their subformulae is also finite, so rule and applies finitely often. ffl Rule interval disjunction carries both bounded state expressions to which it applies and generates a b» e-like constraint in both sons of the current node. Rule interval disjunction cannot apply twice to the same pair of state expressions in a given branch because of the application condition on rule interval disjunction and because of Observation 3.7. Furthermore formulae being finite, the number of state expressions, hence the number of pairs of state expressions, is finite so rule interval disjunction applies finitely often. LEMMA 3.10 Let ffi be a formula. The series of trees constructed to find a tableau for ffi reaches a limit. PROOF. Each element of the series of trees constructed to find a tableau for ffi is built by applying an extension rule to its predecessor; as the application of an extension rule to a node creates two sons at most and as each extension rule applies finitely often in a given branch (Lemma 3.9), that series of trees is finite. THEOREM 3.11 (Existence of a tableau) For all formula ffi, there exists a tableau for ffi. PROOF. First, the series of trees constructed to find a tableau for ffi is never empty (Lemma 3.8). Secondly, owing to Lemma 3.10, this series of trees is finite, yielding thus a tableau. 4 Definitions and preliminary lemmas In this section we introduce first an extension of the notion of satisfiability, called t-satisfiability, with the aim of giving a precise meaning to the stamped formulae, stamped state expressions and constraints of a node; from that definition the classical satisfiability for a Duration Calculus formula is derived. Next we present how to associate a model with a tableau, then we give some fundamental properties of the tableau construction. 4.1 Model associated with a tableau DEFINITION 4.1 (T-model) A t-model is a triplet (V; I; [b; e]) such that ffl V : fconstraint variablesg! Time, ffli: fstate variablesg! ( Time! f0; 1g), ffl [b; e] is a Time-interval. DEFINITION 4.2 (T-satisfiability) T-satisfiability is defined by structural induction on bounded expressions and constraints: ffl Let ffi [b0 ;e 0 ] be a bounded formula. A t-model M = (V; I; [b; e]) t-satisfies ffi [b0 ;e 0 ] if [V(b 0 ); V(e 0 )] [b; e] and (I; [V(b 0 ); V(e 0 )]) j= ffi. ffl Let ff [b0 ;e 0 ] be a bounded state expression. A t-model M =(V; I; [b; e]) t-satisfies ff [b0 ;e 0 ] if [V(b 0 ); V(e 0 )] [b; e] and 8t 2 [V(b 0 ); V(e 0 )), I(ff)(t) =1.

11 A Mixed Decision Method for Duration Calculus 887 ffl Let b 0 R e 0 be a qualitative constraint with R 2f<; =;»g. A t-model M =(V; I; [b; e]) t-satisfies b 0 R e 0 if V(b 0 ) 2 [b; e], V(e 0 ) 2 [b; e] and the constraint V(b 0 ) R V(e 0 ) is satisfied. ffl Let (e 0 b 0 ) S k be a quantitative constraint with S 2f<;»; =; 6=; ;>gand k 2 IR. A t-model M =(V; I; [b; e]) t-satisfies (e 0 b 0 ) S k if V(b 0 ) 2 [b; e], V(e 0 ) 2 [b; e] and the constraint (V(e 0 ) V(b 0 )) S k is satisfied. LEMMA 4.3 (Equivalence between satisfiability and t-satisfiability) For all constraint variables b 0 and e 0, bounded formula ffi [b0 ;e 0 ] is t-satisfiable if, and only if, formula ffi is satisfiable. PROOF. ()) Let b 0 and e 0 be constraint variables. ffi [b0 ;e 0 ] is t-satisfiable,9(v; I; [b; e]) : [V(b 0 ); V(e 0 )] [b; e] and (I; [V(b 0 ); V(e 0 )]) j= ffi )9(I 00 ; [b 00 ;e 00 ]) : (I 00 ; [b 00 ;e 00 ]) j= ffi (just take I 00 = I, b 00 = V(b 0 ) and e 00 = V(e 0 )), ffi is satisfiable. (() ffi is satisfiable,9(i; [b; e]) : (I; [b; e]) j= ffi )8b 0 ;e 0 interval bounds, 9(V; I 00 ; [b 00 ;e 00 ]): [V(b 0 ); V(e 0 )] [b 00 ;e 00 ] and (I 00 ; [V(b 0 ); V(e 0 )]) j= ffi (just take V(b 0 )=b = b 00, V(e 0 )=e = e 00 and I 00 = I), for all constraint variables b 0 and e 0, ffi [b0 ;e 0 ] is t-satisfiable. DEFINITION 4.4 (T-model associated with an open tableau) Let n be an open terminal node of some open tableau then the t-model (V; I; [b; e]) associated with n is constructed in the following way: ffl Let B = fb 1 ;:::;b m g be the set of constraint variables occurring in the constraints of n. V : B! Time associates with all variable of B a Time value such that the order on fv(b 1 );:::;V(b m )g complies with the constraints of n, i.e. if b i R b j 2 n then V(b i ) R V(b j ),wherer 2f<;»; =g and if (b j b i ) S k 2 n then (V(b j ) V(b i )) S k, where S 2f<;»; =; 6=; ;>gand k 2 IR. Let b = minfv(b i ):i 2f1;:::;mgg and e = maxfv(b i ):i2f1;:::;mgg. ffl Let fs 1 ;:::;s p g be the set of state variables occurring in node n. 8j 2f1;:::;pgI(s j ) 2 Time!f0; S 1g such that if s j [b0 ;e belongs to node n then 8t 2 0 ] [V(b 0 ); V(e 0 )), I(s j )(t) = 1 and 8t 62 f[v(b 0 ); V(e 0 )) : s j [b0 ;e 2 ng, I(s 0 ] j)(t) = Tableau fundamental properties Here are given some essential tools for the soundness and completeness proof: for instance the first lemma (Lemma 4.5) concerns the preservation of t-satisfiability by extension rules. LEMMA 4.5 (T-satisfiability preservation) For all rule, the father s bounded formulae, bounded state expressions and constraints are t-satisfiable if, and only if, the bounded formulae, bounded state expressions and constraints in one of the sons are t-satisfiable. PROOF. First, let us prove that for all stop rules, the father s bounded formulae are not t-satisfiable: concerning rule stop 1 the proof is quite obvious and as far as rule stop 2 is concerned, let M =(V; I; [b; e]) be a model of the father s bounded formulae then V(b 0 ) 2 [b; e], V(e 0 ) 2 [b; e], V(b 0 ) < V(e 0 ) and V(b 0 )=V(e 0 ) which is impossible.

12 888 A Mixed Decision Method for Duration Calculus Let us prove now that for all rule (but stop 1 and stop 2 ) a model M t-satisfies the father s boundedformulae, boundedstate expressionsandconstraintsif, andonlyif, M t-satisfies the bounded formulae, bounded state expressions and constraints in one of the child nodes. ffl>: M t-satisfies > [b0 ;e 0 ], [V(b 0 ); V(e 0 )] [b; e] and (I; [V(b 0 ); V(e 0 )]) j= >, V(b 0 ) 2 [b; e], V(e 0 ) 2 [b; e] and V(b 0 )» V(e 0 ), M t-satisfies b 0» e 0. ffl double negation: M t-satisfies (::ff) [b0 ;e 0 ], [V(b 0 ); V(e 0 )] [b; e] and 8t 2 [V(b 0 ); V(e 0 )), I(::ff)(t) =1, [V(b 0 ); V(e 0 )] [b; e] and 8t 2 [V(b 0 ); V(e 0 )), I(:ff)(t) =1 I(::ff)(t) =0, [V(b 0 ); V(e 0 )] [b; e] and 8t 2 [V(b 0 ); V(e 0 )), I(ff)(t) =1 (1 I(::ff)(t)) = 1, M t-satisfies ff [b0 ;e 0 ]. ffl and negation: M t-satisfies :(ff 1 ^ ff 2 ) [b0 ;e 0 ] and M t-satisfies b 0./m./e 0, [V(b 0 ); V(e 0 )] [b; e] and 8t 2 [V(b 0 ); V(e 0 )), I(:(ff 1 ^ ff 2 ))(t) =1and V(b 0 ) 2 [b; e] and V(m) 2 [b; e] and V(e 0 ) 2 [b; e] and V(b 0 )» V(m) and V(m)» V(e 0 ), [V(b 0 ); V(m)] [b; e] and 8t 2 [V(b 0 ); V(m)), I(:(ff 1 ^ ff 2 ))(t) = 1 and [V(m); V(e 0 )] [b; e] and 8t 2 [V(m); V(e 0 )), I(:(ff 1 ^ ff 2 ))(t) =1and V(b 0 ) 2 [b; e] and V(m) 2 [b; e] and V(e 0 ) 2 [b; e] and V(b 0 )» V(m) and V(m)» V(e 0 ), M t-satisfies :(ff 1 ^ ff 2 ) [b0 ;m] and M t-satisfies :(ff 1 ^ ff 2 ) [m;e0 ] and M t-satisfies b 0./m./e 0. ffl last and negation: M t-satisfies S and M t-satisfies :(ff 1 ^ ff 2 ) [b0 ;e 0 ], M t-satisfies S; [V(b 0 ); V(e 0 )] [b; e] and 8t 2 [V(b 0 ); V(e 0 )), I(:(ff 1 ^ ff 2 ))(t) =1 The rules applying to formulae, in particular rule subinterval sequence, do not apply anymore, consequently no new constraint variable may appear. Moreover as rule and negation do not apply to :(ff 1 ^ ff 2 ) [b0 ;e 0 ] either, there is and there will be no constraint variable m such that b 0./m./e 0.Soff 1[b1;e 1] and ff 2[b2;e 2],whereb 0./b 1./e 1./e 0 and b 0./b 2./e 2./e 0, do not belong to S neither does ff 0 [b 3;e 3],whereb 0./b 3./e 3./ e 0 and ff 0 is a state subexpression of :(ff 1 ^ ff 2 ). Nevertheless ff 1[b0 ;e 0 ] or ff 2[b0 ;e 0 ] can belong to S. If ff 2[b0 ;e 0 ] 2 S then let M 0 = (V; I 0 ; [b; e]) be a model such that I 0 is I except that 8t 2 [V(b 0 ); V(e 0 )), I(ff 1 )(t) =0else let M 0 =(V; I 0 ; [b; e]) be a model such that I 0 is I except that 8t 2 [V(b 0 ); V(e 0 )), I(ff 2 )(t) =0 ) M 0 t-satisfies S and (M 0 t-satisfies :ff 1[b0 ;e 0 ] or M 0 t-satisfies :ff 2[b0 ;e 0 ]). M t-satisfies :ff 1[b0 ;e 0 ] or M t-satisfies :ff 2[b0 ;e 0 ], [V(b 0 ); V(e 0 )] [b; e] and (8t 2 [V(b 0 ); V(e 0 )), I(:ff 1 )(t) =1or 8t 2 [V(b 0 ); V(e 0 )), I(:ff 2 )(t) =1) ) [V(b 0 ); V(e 0 )] [b; e] and 8t 2 [V(b 0 ); V(e 0 )), (I(:ff 1 )(t) =1or I(:ff 2 )(t) =1), [V(b 0 ); V(e 0 )] [b; e] and 8t 2 [V(b 0 ); V(e 0 )), I(:(ff 1 ^ ff 2 ))(t) =1, M t-satisfies :(ff 1 ^ ff 2 ) [b0 ;e 0 ]. ffl interval length S: M t-satisfies (` S k) [b0 ;e 0 ] where S 2f<;»; =; 6=; ;>g, [V(b 0 ); V(e 0 )] [b; e] and (I; [V(b 0 ); V(e 0 )]) j= ` S k

13 A Mixed Decision Method for Duration Calculus 889, V(b 0 ) 2 [b; e], V(e 0 ) 2 [b; e], V(b 0 )» V(e 0 ) and (V(e 0 ) V(b 0 )) S k, M t-satisfies b 0» e 0 and M t-satisfies (e 0 b 0 ) S k. ffl maximal length: M t-satisfies ( R ff = `) [b0 ;e 0 ], [V(b 0 ); V(e 0 )] [b; e] and (I; [V(b 0 ); V(e 0 )]) j= R ff = `, [V(b 0 ); V(e 0 )] [b; e] and I[[ R ff]]([b; e]) = I[[`]]([b; e]), [V(b 0 ); V(e 0 )] [b; e] and R V(e 0 ) V(b 0 ) I[[ff]](t)dt = R V(e 0 ) V(b 0 ) 1dt, [V(b 0 ); V(e 0 )] [b; e] and R V(e 0 ) V(b 0 ) I[[ff]](t)dt = V(e0 ) V(b 0 ), [V(b 0 ); V(e 0 )] [b; e] and 8t 2 [V(b 0 ); V(e 0 )), I[[ff]](t) =1except for a finite number of points ) [V(b 0 ); V(e 0 )] [b; e] and by remark 2.1 8t 2 [V(b 0 ); V(e 0 )), I[[ff]](t) =1, V(b 0 ) 2 [V(b 0 ); V(e 0 )], V(e 0 ) 2 [V(b 0 ); V(e 0 )], V(b 0 )» V(e 0 ), [V(b 0 ); V(e 0 )] [b; e] and 8t 2 [V(b 0 ); V(e 0 )), I[[ff]](t) =1, M t-satisfies ff [b0 ;e 0 ] and M t-satisfies b 0» e 0. M t-satisfies ff [b0 ;e 0 ] and b 0» e 0, [V(b 0 ); V(e 0 )] [b; e], 8t 2 [V(b 0 ); V(e 0 )), I[[ff]](t) = 1, V(b 0 ) 2 [V(b 0 ); V(e 0 )], V(e 0 ) 2 [V(b 0 ); V(e 0 )] and V(b 0 )» V(e 0 ), [V(b 0 ); V(e 0 )] [b; e] and 8t 2 [V(b 0 ); V(e 0 )), I[[ff]](t) =1 ) [V(b 0 ); V(e 0 )] [b; e] and R V(e 0 ) V(b 0 ) I[[ff]](t)dt = R V(e 0 ) V(b 0 ) 1dt, [V(b 0 ); V(e 0 )] [b; e] and R V(e 0 ) V(b 0 ) I[[ff]](t)dt = R V(e 0 ) V(b 0 ) I[[1]](t)dt, [V(b 0 ); V(e 0 )] [b; e] and I[[ R ff]]([v(b 0 ); V(e 0 )]) = I[[ R 1]]([V(b 0 ); V(e 0 )]), [V(b 0 ); V(e 0 )] [b; e] and I[[ R ff]]([v(b 0 ); V(e 0 )]) = I[[`]]([V(b 0 ); V(e 0 )]), [V(b 0 ); V(e 0 )] [b; e] and (I; [V(b 0 ); V(e 0 )]) j= R ff = `, M t-satisfies ( R ff = `) [b0 ;e 0 ]. ffl or: ffi 1 and ffi 2 are formulae. M t-satisfies (ffi 1 _ ffi 2 ) [b0 ;e 0 ], [V(b 0 ); V(e 0 )] [b; e] and (I; [V(b 0 ); V(e 0 )]) j= (ffi 1 _ ffi 2 ), [V(b 0 ); V(e 0 )] [b; e] and ((I; [V(b 0 ); V(e 0 )]) j= ffi 1 or (I; [V(b 0 ); V(e 0 )]) j= ffi 2 ), ([V(b 0 ); V(e 0 )] [b; e] and (I; [V(b 0 ); V(e 0 )]) j= ffi 1 )or([v(b 0 ); V(e 0 )] [b; e] and (I; [V(b 0 ); V(e 0 )]) j= ffi 2 ), M t-satisfies ffi 1[b0 ;e 0 ] or M t-satisfies ffi 2[b0 ;e 0 ]. ffl and: if x and y are state expressions then M t-satisfies (x ^ y) [b0 ;e 0 ], [V(b 0 ); V(e 0 )] [b; e] and 8t 2 [V(b 0 ); V(e 0 )), I(x ^ y)(t) =1, [V(b 0 ); V(e 0 )] [b; e] and 8t 2 [V(b 0 ); V(e 0 )), (I(x)(t) =1and I(y)(t) =1), ([V(b 0 ); V(e 0 )] [b; e] and 8t 2 [V(b 0 ); V(e 0 )), I(x)(t) =1)and([V(b 0 ); V(e 0 )] [b; e] and 8t 2 [V(b 0 ); V(e 0 )), I(y)(t) =1), M t-satisfies x [b0 ;e 0 ] and M t-satisfies y [b0 ;e 0 ] if x and y are formulae then M t-satisfies (x ^ y) [b0 ;e 0 ], [V(b 0 ); V(e 0 )] [b; e] and (I; [V(b 0 ); V(e 0 )]) j= (x ^ y), [V(b 0 ); V(e 0 )] [b; e], (I; [V(b 0 ); V(e 0 )]) j= x and (I; [V(b 0 ); V(e 0 )]) j= y, ([V(b 0 ); V(e 0 )] [b; e] and (I; [V(b 0 ); V(e 0 )]) j= x) and([v(b 0 ); V(e 0 )] [b; e] and

14 890 A Mixed Decision Method for Duration Calculus (I; [V(b 0 ); V(e 0 )]) j= y), M t-satisfies x [b0 ;e 0 ] and M t-satisfies y [b0 ;e 0 ]. ffl subinterval sequence: M t-satisfies (ffi 1 ; ffi 2 ) [b0 ;e 0 ], [V(b 0 ); V(e 0 )] [b; e] and (I; [V(b 0 ); V(e 0 )]) j= (ffi 1 ; ffi 2 ), [V(b 0 ); V(e 0 )] [b; e] and there exists b 2 2 [V(b 0 ); V(e 0 )] such that (I; [V(b 0 );b 2 ]) j= ffi 1 and (I; [b 2 ; V(e 0 )]) j= ffi 2 ) let b 1 be a new constraint variable such that V(b 1 ) = b 2, [V(b 0 ); V(e 0 )] [b; e], V(b 1 ) 2 [V(b 0 ); V(e 0 )], (I; [V(b 0 ); V(b 1 )]) j= ffi 1 and (I; [V(b 1 ); V(e 0 )]) j= ffi 2, ([V(b 0 ); V(b 1 )] [b; e] and (I; [V(b 0 ); V(b 1 )]) j= ffi 1 )and([v(b 1 ); V(e 0 )] [b; e] and (I; [V(b 1 ); V(e 0 )]) j= ffi 2 ), M t-satisfies ffi 1 [b 0 ;b 1] and M t-satisfies ffi 2 [b 1;e 0 ]. M t-satisfies ffi 1[b0 ;b 1] and M t-satisfies ffi 2[b1;e 0 ], ([V(b 0 ); V(b 1 )] [b; e] and (I; [V(b 0 ); V(b 1 )]) j= ffi 1 )and([v(b 1 ); V(e 0 )] [b; e] and (I; [V(b 1 ); V(e 0 )]) j= ffi 2 ) ) [V(b 0 ); V(e 0 )] [b; e] and there exists b 2 2 [V(b 0 ); V(e 0 )] such that (I; [V(b 0 );b 2 ]) j= ffi 1 and (I; [b 2 ; V(e 0 )]) j= ffi 2, [V(b 0 ); V(e 0 )] [b; e] and (I; [V(b 0 ); V(e 0 )]) j= (ffi 1 ; ffi 2 ), M t-satisfies (ffi 1 ;) [b0 ;e 0 ]. ffl interval disjunction: Additional hypothesis: e 1» b 2 does not belong to the father and neither does e 2» b 1. M t-satisfies ff [b1;e 1] and M t-satisfies :ff [b2;e 2], [V(b 1 ); V(e 1 )] [b; e], 8t 2 [V(b 1 ); V(e 1 )), I(ff)(t) =1, [V(b 2 ); V(e 2 )] [b; e] and 8t 2 [V(b 2 ); V(e 2 )], I(:ff)(t) =1, [V(b 1 ); V(e 1 )] [b; e], [V(b 2 ); V(e 2 )] [b; e], 8t 2 [V(b 1 ); V(e 1 )), I(ff)(t) =1and 8t 2 [V(b 2 ); V(e 2 )], I(ff)(t) =0, ([V(b 1 ); V(e 1 )] [b; e], 8t 2 [V(b 1 ); V(e 1 )), I(ff)(t) =1and [V(b 2 ); V(e 2 )] [b; e], 8t 2 [V(b 2 ); V(e 2 )], I(ff)(t) = 0 and V(e 1 ) 2 [b; e], V(b 2 ) 2 [b; e], V(e 1 )» V(b 2 ))or ([V(b 1 ); V(e 1 )] [b; e], 8t 2 [V(b 1 ); V(e 1 )], I(ff)(t) = 1 and [V(b 2 ); V(e 2 )] [b; e], 8t 2 [V(b 2 ); V(e 2 )], I(ff)(t) =0and V(e 1 ) 2 [b; e], V(b 2 ) 2 [b; e], V(e 2 )» V(b 1 )), (M t-satisfies ff [b1;e 1] and M t-satisfies :ff [b2;e 2] and M t-satisfies e 1» b 2 )or(m t-satisfies ff [b1;e 1] and M t-satisfies :ff [b2;e 2] and M t-satisfies e 2» b 1 ). DEFINITION 4.6 χ is a partial order relation defined on tree nodes by: ffl n 0 χ n if n 0 is a descendant of n, ffl n 0 ν n if n 0 is a descendant of n or is the same node as n. OBSERVATION 4.7 ffl Thebinaryrelation./ is transitive. ffl If b./b 0 is t-satisfiable then so is b» b 0. Now we have the following fundamental lemma. LEMMA 4.8 Let ffi [b;e] be a bounded formula or bounded state expression in a node n. In any stop-free terminal node such that n 0 ν n, b./e.

15 A Mixed Decision Method for Duration Calculus 891 PROOF. ffl If ffi is a formula, we prove the lemma by structural induction on ffi: base case: ffi =?, ffi = >, ` S k or R ff = `, wheres 2f<;»; =; 6=; ;>g, k is a real number and ff is a state expression. Λ If ffi =? then applying rule stop 1 generates stop in the only son, the requirements of the lemma are not met: it does not apply to?. Λ If ffi = > then applying rule > generates constraint b» e in the only son of n. By Observation 3.7, this constraint propagates to the stop-free terminal descendants of n,ifn is not terminal itself. Thus the lemma is true for >. Λ If ffi =(` S k),wheres 2f<;»; =; 6=; ;>g and k 2 IR, then applying rule interval length generates constraints b» e and (e b) S k in the only son of n. ByObservation 3.7, these constraints propagate to the stop-free terminal descendants of n,ifn is not terminal itself. Thus the lemma is true for ` S k, wheres 2f<;»; =; 6=; ;>g and k is a real number. Λ If ffi =( R ff = `), whereff is a state expression, then applying rule maximal length generates the constraint b» e in the only son of n. By Observation 3.7, that constraint propagatesto the stop-free terminal descendantsof n, if n is not terminal itself. Thus the lemma is true for R ff = `,whereff is a state expression. Induction hypothesis: the lemma is true for all subformulae of ffi; let us prove that it is true then for ffi if ffi = ffi 1 _ ffi 2, ffi 1 ^ ffi 2 or ffi 1 ; ffi 2. Λ If ffi = ffi 1 _ ffi 2 then applying rule or generates respectively ffi 1[b;e] and ffi 2[b;e] in the two sons of n, n 0 and 1 n0. By induction hypothesis the lemma is true for 2 ffi 1[b;e] and ffi 2[b;e] hence in all stop-free terminal node n 00 1 such that n 00 1 χ n 10 (so n 00 1 χ n), b./e and in all stop-free terminal node n 00 2 such that n 00 2 χ n 0 2 (so n 00 2 χ n), b./e. Thus the lemma is true for ffi 1 _ ffi 2. Λ If ffi = ffi 1 ^ ffi 2 then applying rule and generates bounded formulae ffi 1[b;e] and ffi 2[b;e] in the only son of n, n 0. By induction hypothesis the lemma is true for ffi and 1 [b;e] ffi 2[b;e] hence in all stop-free terminal node n 00 such that n 00 χ n 0 (so n 00 χ n), b./e. Thus the lemma is true for ffi 1 ^ ffi 2. Λ If ffi = ffi 1 ; ffi 2 then applying rule subinterval sequence generates bounded formulae ffi 1[b;b0 ] and ffi 2[b0 ;e], whereb 0 is a new constraint variable, in the only son of n, n 0. By induction hypothesis the lemma is true for ffi 1[b;b0 ] and ffi 2[b0 ;e] hence in all stop-free terminal node n 00 such that n 00 χ n 0 (so n 00 χ n), b./b 0 and b 0./e.By Observation 4.7, b./e2 n 00. Thus the lemma is true for ffi 1 ; ffi 2. Therefore the lemma is true for all formula. ffl Suppose now that ffi is a state expression. The root contains a formula ffi 0 so any state expression belonging to a descendant comes from a subformula of ffi 0, more precisely from a ( R ff = `)-like subformula of ffi 0 because rule maximal length is the only one to generate a state expression from a formula. Given that from a bounded formula ( R ff = `[b0 ;e 0 ] rule maximal length generates a bounded state expression ff [b0 ;e 0 ], if state expression ffi [b;e] comes from ( R ff = `) [b0 ;e 0 ] and if rule and negation has not been applied meanwhile then actually b is b 0 and e is e 0. Moreover applying rule maximal length to ( R ff = k) [b0 ;e 0 ] generates the constraint b 0» e 0 and by Observation 3.7, this constraint propagates to n and to its stop-free terminal descendants. On the other hand, whenever rule and negation is applied the node to which it applies

16 892 A Mixed Decision Method for Duration Calculus contains the set of constraints b./m./eso by Observation 4.7 it also contains b./e. By observation 3.7, this set of constraints propagates to n and to its stop-free terminal descendants. Thus the lemma is true for all state expression. 5 Constraint resolution Given that constraints with a special shape appear in the nodes of tableaux, we need to consider a mechanism able to solve these particular temporal constraints. The constraints of a given terminal node n can be represented as a Simple Temporal Problem with inequations (STP 6= [4], a generalization of the well-known STPs [2]): ffl the set of variables is the set of the constraint variables appearing in n, ffl each constraint is a pair: the second element is the set of excluded points: each (e b 6= k)-like constraint is translated as the excluded point k, the first element is a binary constraint composed of a single interval: the constraint between two variables b and e is the intersection of all the constraints involving b and e given that each (b R e)-like constraint is translated as a constraint between b and e: Λ (0; +1) if R is <, Λ [0; +1) if R is», Λ or [0; 0] if R is =, and each ((e b) S k)-like constraint is translated as a constraint between b and e: Λ ( 1;k) if S is <, Λ ( 1;k] if S is», Λ [k; k] if S is =, Λ [k; +1) if S is, Λ or (k; +1) if S is >. EXAMPLE 5.1 Let fb <e;(e b) 6= 5; (e b) 3g be the set of constraints of a terminal node of some tableau. The set of variables of the corresponding STP 6= is fb; eg. The first element of the constraint between b and e is the intersection of (0; +1) (corresponding to constraint b < e) and [3; +1) (corresponding to constraint (e b) 3), that is to say interval [3; +1); the second element of the constraint between b and e is the set of excluded points f5g (corresponding to constraint (e b) 6= 5). Consequently the STP 6= corresponding to the set of constraints fb <e;(e b) 6= 5; (e b) ([3; +1); f5g) 3g is bffl -ffle Computing an STP 6= consistency is in O(n 3 + p) time and O(n 2 + p) space, where n is the number of variables and p is the number of inequations. A solution (if there is any) can be found in O(n 3 + p) time too [4].

17 6 Soundness, completeness and decidability A Mixed Decision Method for Duration Calculus 893 The main result of this note is presented in this section, where we have as a corollary the decidability of our fragment. THEOREM 6.1 (Soundness and completeness) There exists an open tableau for a formula ffi if, and only if, ffi is satisfiable. PROOF. ()) Soundness. Let n be an open terminal node of an open tableau for ffi and let (V; I; [b; e]) be the t- model associated with n. First, let us prove that t-model (V; I; [b; e]) t-satisfies all bounded state expression and all constraint of node n: ffl If b i R b j 2 n with R 2f<;»; =g then, by Definition 4.4, V(b i ) 2 [b; e], V(b j ) 2 [b; e] and V(b i ) R V(b j ). ffl If (b j b i ) S k 2 n with S 2f<;»; =; 6=; ;>gand k 2 IR then, by Definition 4.4, V(b i ) 2 [b; e], V(b j ) 2 [b; e] and (V(b j ) V(b i )) S k. ffl If ff [b0 ;e 0 ] 2 n then, by Lemma 4.8, as n is an open terminal node b 0./ e 0 thus b 0 2 B, e 0 2 B and b 0» e 0 (by Observation 4.7) so, by Definition 4.4, V(b 0 ) 2 [b; e], V(e 0 ) 2 [b; e] and V(b 0 )» V(e 0 ). Owing to the construction of (V; I; [b; e]), 8t 2 [V(b 0 ); V(e 0 )), I(ff)(t) = 1 hence (V; I; [b; e]) t-satisfies ff [b0 ;e 0 ]. ffl If :ff [b0 ;e 0 ] 2 n then, by Lemma 4.8, since n is an open terminal node b 0./e 0 thus b 0 2 B, e 0 2 B and b 0» e 0 (by Observation 4.7) so V(b 0 ) 2 [b; e], V(e 0 ) 2 [b; e] and V(b 0 )» V(e 0 ). Rule interval disjunction applied to all ff [b 00 ;e 00 ] 2 n ) for all ff [b 00 ;e 00 ] 2 n, e 00» b 0 or e 0» b 00 ) for all ff [b 00 ;e 00 ] 2 n, b 00 2 B, e 00 2 B and (V(e 00 )» V(b 0 ) or V(e 0 )» V(b 00 )) ) for all ff [b 00 ;e 00 ] 2 n, [V(b 0 ); V(e 0 )) [V(b 00 ); V(e 00 )) = ; ) [V(b 0 ); V(e 0 )) S f[v(b 00 ); V(e 00 )) : ff [b 00 ;e 00 ] 2 ng = ; )8t 2 [V(b 0 ); V(e 0 )), t 62 S f[v(b 00 ); V(e 00 )) : ff [b 00 ;e 00 ] 2 ng. Moreover, by Definition 4.4, 8t 62 S f[v(b 00 ); V(e 00 )): ff [b 00 ;e 00 ] 2 ng, I(ff)(t) = 0, so 8t 2 [V(b 0 ); V(e 0 )), I(ff)(t) = 0, thus 8t 2 [V(b 0 ); V(e 0 )), I(:ff)(t) = 1. Hence (V; I; [b; e]) t-satisfies :ff [b0 ;e 0 ]. Furthermore, by Lemma 4.5, for all rules, the father s bounded formulae, bounded state expressions and constraints are t-satisfiable if the bounded formulae, bounded state expressions and constraints in one of the sons are t-satisfiable. Consequently (V; I; [b; e]) t-satisfies ffi [fi;ffl]. Accordingly, by Lemma 4.3, ffi is satisfiable. (() Completeness. Let ffi [fi;ffl] be the root bounded formula. If ffi is satisfiable then ffi [fi;ffl] is t-satisfiable (Lemma 4.3). According to Lemma 4.5, for all rule if the father s bounded formulae are t-satisfiable then the bounded formulae of one of the sons are t-satisfiable too. This entails the existence of an open tableau for ffi. Finally, given that Lemma 3.10 provides the ending of the tableau construction we conclude that our Duration Calculus fragment is decidable.

18 894 A Mixed Decision Method for Duration Calculus 7 Conclusion In this note a new decidable fragment of Duration Calculus was isolated. This fragment is rich enough to embed Allen s Interval Algebra. Moreover in this fragment we can express quantitative constraints, i.e. constraints about the duration of actions, which is essential to reason in the field of real-time systems. On the other hand we defined a deduction method for that fragment; this tableau-based method is sound, complete and terminates. Work in progress concerns the extension of our methodology to richer fragments as for example fragments including negation or any duration of actions. The implementation of our method is also currently under way. References [1] J. F. Allen. Maintaining knowledge about temporal intervals. Communications of the ACM, 26, , [2] R. Dechter, I. Meiri and J. Pearl. Temporal constraint networks. Artificial Intelligence, 49, 61 95, [3] M. Fränzle. Synthesizing Controllers from Duration Calculus. In Formal Techniques in Real-Time and Fault- Tolerant Systems, 4th International Symposium, Uppsala, Sweden, B. Jonsson and J. Parrow, eds., pp Vol of Lecture Notes in Computer Science, Springer-Verlag, [4] A. Gerevini and M. Cristani. On finding a solution in temporal constraint satisfaction problem. In Proceedings of the Fifteenth International Joint Conference on Artificial Intelligence, IJCAI 97, Nagoya, Japan, Volume 2, pp , Morgan Kaufmann, [5] M. R. Hansen and C. Zhou. Semantics and completeness of duration calculus. In Real-Time: Theory in Practice, REX Workshop, W.-P. de Roever, J. W. de Bakker, C. Huizing and G. Rozenberg, eds., pp Volume 600 of Lecture Notes in Computer Science, Springer-Verlag, [6] M. R. Hansen and C. Zhou. Duration Calculus: logical foundations. Formal Aspects of Computing, 9, , [7] B. Moszkowski. A temporal logic for multilevel reasoning about hardware. Computer, 18, 10 19, [8] A. P. Ravn, H. Rischel and K. M. Hansen. Specifying and verifying requirements of real-time systems. IEEE Transactions on Software Engineering, Special Issue on Software for Critical Systems, 19, 41 55, [9] J. U. Skakkebæk and P. Sestoft. Checking validity of duration calculus formulas. Technical Report ID/DTH JUS 3/1, Department of Computer Science, Technical University of Denmark, 2800 Lyngby, Denmark, March available at ftp://ftp.it.dtu.dk/pub/procos/jens.u.skakkebaek /IDDTH-JUS-3-1.ps.Z. [10] Y. Venema. A modal logic for chopping intervals. Journal of Logic and Computation, 1, , [11] Z. Yuhua and C. Zhou. A formal proof of the deadline driven scheduler. In Formal Techniques in Real-Time and Fault-Tolerant Systems, Third International Symposium, H. Langmaack, W.-P. de Roever, and J. Vytopil, eds., pp Volume 863 of Lecture Notes in Computer Science, Springer-Verlag, [12] C. Zhou, M. R. Hansen, A. P. Ravn and H. Rischel. Duration specifications for shared processors. In Formal Techniques in Real-Time and Fault-Tolerant Systems, Second International Symposium, J. Vytopil, editor, pp Volume 571 of Lecture Notes in Computer Science, Springer-Verlag, [13] C Zhou, M. R. Hansen and P. Sestoft. Decidability and undecidability results for duration calculus. In STACS 93, 10th Annual Symposium on Theoretical Aspects of Computer Science, P. Enjalbert, A. Finkel and K. W. Wagner, eds., pp Volume 665 of Lecture Notes in Computer Science, Springer-Verlag, [14] C. Zhou, C. A. R. Hoare and A. P. Ravn. A calculus of durations. Information Processing Letters, 40, , North Holland, Appendix A Interval Algebra Interval Algebra is an interval-based temporal logic introduced by Allen [1]. The basic entities are time intervals linked by qualitative temporal relations; there are thirteen possible relations between two intervals, listed hereafter. A set of temporal information is represented as a temporal network, the aim being to find whether this network is

19 A Mixed Decision Method for Duration Calculus 895 consistent. A network corresponds to a conjunction of disjunctions of atomic relations: ^ni=1 _p j=1 u ijr ij v ij, where R ij is an atomic relation and u ij, v ij are time intervals. An Interval Algebra formula F IA = ^ni=1 _p j=1 u ij R ij v ij is satisfiable by a total order R on the interval bounds if for all i 2 f1;:::;ng, there exists j 2 f1;:::;pg such that R satisfies the interval bound constraints entailed by u ij R ij v ij. The Interval Fragment formula corresponding to a network is obtained by translating each formula u R v (where R is an atomic relation) by its Interval Fragment counterpart from Figure 4, where state variable x (respectively y) corresponds to interval u (respectively v). IntervalAlgebra u before v u meets v u overlaps v u starts v u during v u finishes v u equals v u finished by v u during by v u started by v u overlapped by v u met by v u after v Duration Calculus d:x ^:ye; dx ^:ye; d:x ^:ye; d:x ^ ye; d:x ^:ye d:x ^:ye; dx ^:ye; d:x ^ ye; d:x ^:ye d:x ^:ye; dx ^:ye; dx ^ ye; d:x ^ ye; d:x ^:ye d:x ^:ye; dx ^ ye; d:x ^ ye; d:x ^:ye d:x ^:ye; d:x ^ ye; dx ^ ye; d:x ^ ye; d:x ^:ye d:x ^:ye; d:x ^ ye; dx ^ ye; d:x ^:ye d:x ^:ye; dx ^ ye; d:x ^:ye d:x ^:ye; dx ^:ye; dx ^ ye; d:x ^:ye d:x ^:ye; dx ^:ye; dx ^ ye; dx ^:ye; d:x ^:ye d:x ^:ye; dx ^ ye; dx ^:ye; d:x ^:ye d:x ^:ye; d:x ^ ye; dx ^ ye; dx ^:ye; d:x ^:ye d:x ^:ye; d:x ^ ye; dx ^:ye; d:x ^:ye d:x ^:ye; d:x ^ ye; d:x ^:ye; dx ^:ye; d:x ^:ye FIGURE 4. Translation of Interval Algebra atomic relations into Duration Calculus EXAMPLE A.1 (u starts v _ u equals v) ^ w met by v 7! (d:x ^:ye; dx ^ ye; d:x ^ ye; d:x ^:ye_d:x ^:ye; dx ^ ye; d:x ^:ye) ^d:z ^:ye; d:z ^ ye; dz ^:ye; d:z ^:ye. THEOREM A.2 Let F IA be an Interval Algebra formula and let G DC be its translation into the Interval Fragment. F IA is satisfiable in Interval Algebra if, and only if, G DC is satisfiable in the Interval Fragment. PROOF. [Sketch] ()) From a total order R satisfying F IA, one can construct a model M =(I; [b; e]) of G DC in the following way: ffl for all state variable x corresponding to an interval u of F IA, I(x) 2 Time! f0; 1g is such that 9x ;x + 2 Time such that x(i) =1if i 2 [x ;x + ], x(i) =0if i 2 [ 1;x ] [ [x + ; +1],sothatR is respected, ffl b 2 Time such that b<minfx jx is a state variableg and e 2 Time such that e>maxfx + jx is a state variableg. (() If G D is satisfiable then there exists M = (I; [b; e]) a model of G D such that for all state variable x k, I(x k ) 2 Time!f0; 1g such that 9x k ;x+ k 2 Time such that x k (i) =1if i 2 [x k ;x+ k ], x k (i) =0if i 2 [ 1;x k ] [ [x+ k ; +1]. There exists a total order R on all the bounds x k ;x+ k of state variables x k which satisfies F IA. Received 4 November 1999

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

Non-elementary Lower Bound for Propositional Duration. Calculus. A. Rabinovich. Department of Computer Science. Tel Aviv University 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

More information

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

In a second part, we concentrate on interval models similar to the traditional ITL models presented in [, 5]. By making various assumptions about time Complete Proof Systems for First Order Interval Temporal Logic Bruno Dutertre Department of Computer Science Royal Holloway, University of London Egham, Surrey TW0 0EX, United Kingdom Abstract Dierent

More information

Optimal Tableaux for Right Propositional Neighborhood Logic over Linear Orders

Optimal Tableaux for Right Propositional Neighborhood Logic over Linear Orders Optimal Tableaux for Right Propositional Neighborhood Logic over Linear Orders Davide Bresolin 1, Angelo Montanari 2, Pietro Sala 2, and Guido Sciavicco 3 1 Department of Computer Science, University of

More information

An optimal tableau-based decision algorithm for Propositional Neighborhood Logic

An optimal tableau-based decision algorithm for Propositional Neighborhood Logic An optimal tableau-based decision algorithm for Propositional Neighborhood Logic Davide Bresolin, Angelo Montanari, and Pietro Sala Department of Mathematics and Computer Science, University of Udine,

More information

A Duration Calculus with Infinite Intervals

A Duration Calculus with Infinite Intervals A Duration Calculus with Infinite Intervals Zhou Chaochen, Dang Van Hung, and Li Xiaoshan The United Nations University International Institute for Software Technology UNU/IIST, P.O.Box 3058, Macau e-mail:

More information

Tableau-based decision procedures for the logics of subinterval structures over dense orderings

Tableau-based decision procedures for the logics of subinterval structures over dense orderings Tableau-based decision procedures for the logics of subinterval structures over dense orderings Davide Bresolin 1, Valentin Goranko 2, Angelo Montanari 3, and Pietro Sala 3 1 Department of Computer Science,

More information

Duration Calculus Introduction

Duration Calculus Introduction Duration Calculus Introduction Michael R. Hansen mrh@imm.dtu.dk Informatics and Mathematical Modelling Technical University of Denmark 02240 Computability and Semantics, Spring 05, c Michael R. Hansen

More information

Introduction to Logic in Computer Science: Autumn 2006

Introduction to Logic in Computer Science: Autumn 2006 Introduction to Logic in Computer Science: Autumn 2006 Ulle Endriss Institute for Logic, Language and Computation University of Amsterdam Ulle Endriss 1 Plan for Today Today s class will be an introduction

More information

Declarative modelling for timing

Declarative modelling for timing Declarative modelling for timing The real-time logic: Duration Calculus Michael R. Hansen mrh@imm.dtu.dk Informatics and Mathematical Modelling Technical University of Denmark 02153 Declarative Modelling,

More information

Decision procedure for Default Logic

Decision procedure for Default Logic Decision procedure for Default Logic W. Marek 1 and A. Nerode 2 Abstract Using a proof-theoretic approach to non-monotone reasoning we introduce an algorithm to compute all extensions of any (propositional)

More information

Lecture 03: Duration Calculus I

Lecture 03: Duration Calculus I Real-Time Systems Lecture 03: Duration Calculus I 2014-05-08 Dr. Bernd Westphal 03 2014-05-08 main Albert-Ludwigs-Universität Freiburg, Germany Contents & Goals Last Lecture: Model of timed behaviour:

More information

A Tableau Calculus for Minimal Modal Model Generation

A Tableau Calculus for Minimal Modal Model Generation M4M 2011 A Tableau Calculus for Minimal Modal Model Generation Fabio Papacchini 1 and Renate A. Schmidt 2 School of Computer Science, University of Manchester Abstract Model generation and minimal model

More information

A Resolution Method for Modal Logic S5

A Resolution Method for Modal Logic S5 EPiC Series in Computer Science Volume 36, 2015, Pages 252 262 GCAI 2015. Global Conference on Artificial Intelligence A Resolution Method for Modal Logic S5 Yakoub Salhi and Michael Sioutis Université

More information

3 Propositional Logic

3 Propositional Logic 3 Propositional Logic 3.1 Syntax 3.2 Semantics 3.3 Equivalence and Normal Forms 3.4 Proof Procedures 3.5 Properties Propositional Logic (25th October 2007) 1 3.1 Syntax Definition 3.0 An alphabet Σ consists

More information

A Theory of Duration Calculus with Application

A Theory of Duration Calculus with Application A Theory of Duration Calculus with Application Michael R. Hansen 1 and Dang Van Hung 2 1 Informatics and Math. Modelling, Technical University of Denmark Ricard Petersens Plads, DK-2800 Lyngby, Denmark

More information

Computational Logic. Davide Martinenghi. Spring Free University of Bozen-Bolzano. Computational Logic Davide Martinenghi (1/30)

Computational Logic. Davide Martinenghi. Spring Free University of Bozen-Bolzano. Computational Logic Davide Martinenghi (1/30) Computational Logic Davide Martinenghi Free University of Bozen-Bolzano Spring 2010 Computational Logic Davide Martinenghi (1/30) Propositional Logic - sequent calculus To overcome the problems of natural

More information

On Modal Logics of Partial Recursive Functions

On Modal Logics of Partial Recursive Functions arxiv:cs/0407031v1 [cs.lo] 12 Jul 2004 On Modal Logics of Partial Recursive Functions Pavel Naumov Computer Science Pennsylvania State University Middletown, PA 17057 naumov@psu.edu June 14, 2018 Abstract

More information

Propositional and Predicate Logic - V

Propositional and Predicate Logic - V Propositional and Predicate Logic - V Petr Gregor KTIML MFF UK WS 2016/2017 Petr Gregor (KTIML MFF UK) Propositional and Predicate Logic - V WS 2016/2017 1 / 21 Formal proof systems Hilbert s calculus

More information

Hypersequent Calculi for some Intermediate Logics with Bounded Kripke Models

Hypersequent Calculi for some Intermediate Logics with Bounded Kripke Models Hypersequent Calculi for some Intermediate Logics with Bounded Kripke Models Agata Ciabattoni Mauro Ferrari Abstract In this paper we define cut-free hypersequent calculi for some intermediate logics semantically

More information

On the Complexity of the Reflected Logic of Proofs

On the Complexity of the Reflected Logic of Proofs On the Complexity of the Reflected Logic of Proofs Nikolai V. Krupski Department of Math. Logic and the Theory of Algorithms, Faculty of Mechanics and Mathematics, Moscow State University, Moscow 119899,

More information

PSPACE-completeness of LTL/CTL model checking

PSPACE-completeness of LTL/CTL model checking PSPACE-completeness of LTL/CTL model checking Peter Lohmann April 10, 2007 Abstract This paper will give a proof for the PSPACE-completeness of LTLsatisfiability and for the PSPACE-completeness of the

More information

Automated Solution of the Riddle of Dracula and Other Puzzles

Automated Solution of the Riddle of Dracula and Other Puzzles Automated Solution of the Riddle of Dracula and Other Puzzles László Aszalós IRIT, Universite Paul Sabatier, 118 route de Narbonne F-31062 Toulouse Cedex 4, France, aszalos@irit.fr Abstract. The Door of

More information

KE/Tableaux. What is it for?

KE/Tableaux. What is it for? CS3UR: utomated Reasoning 2002 The term Tableaux refers to a family of deduction methods for different logics. We start by introducing one of them: non-free-variable KE for classical FOL What is it for?

More information

Semantics and Pragmatics of NLP

Semantics and Pragmatics of NLP Semantics and Pragmatics of NLP Alex Ewan School of Informatics University of Edinburgh 28 January 2008 1 2 3 Taking Stock We have: Introduced syntax and semantics for FOL plus lambdas. Represented FOL

More information

Classical Propositional Logic

Classical Propositional Logic The Language of A Henkin-style Proof for Natural Deduction January 16, 2013 The Language of A Henkin-style Proof for Natural Deduction Logic Logic is the science of inference. Given a body of information,

More information

The Calculus of Computation: Decision Procedures with Applications to Verification. Part I: FOUNDATIONS. by Aaron Bradley Zohar Manna

The Calculus of Computation: Decision Procedures with Applications to Verification. Part I: FOUNDATIONS. by Aaron Bradley Zohar Manna The Calculus of Computation: Decision Procedures with Applications to Verification Part I: FOUNDATIONS by Aaron Bradley Zohar Manna 1. Propositional Logic(PL) Springer 2007 1-1 1-2 Propositional Logic(PL)

More information

Automata theory. An algorithmic approach. Lecture Notes. Javier Esparza

Automata theory. An algorithmic approach. Lecture Notes. Javier Esparza Automata theory An algorithmic approach Lecture Notes Javier Esparza July 2 22 2 Chapter 9 Automata and Logic A regular expression can be seen as a set of instructions ( a recipe ) for generating the words

More information

Expressiveness, decidability, and undecidability of Interval Temporal Logic

Expressiveness, decidability, and undecidability of Interval Temporal Logic University of Udine Department of Mathematics and Computer Science Expressiveness, decidability, and undecidability of Interval Temporal Logic ITL - Beyond the end of the light Ph.D. Defence Dario Della

More information

Introduction to Temporal Logic. The purpose of temporal logics is to specify properties of dynamic systems. These can be either

Introduction to Temporal Logic. The purpose of temporal logics is to specify properties of dynamic systems. These can be either Introduction to Temporal Logic The purpose of temporal logics is to specify properties of dynamic systems. These can be either Desired properites. Often liveness properties like In every infinite run action

More information

Decision Procedures for Satisfiability and Validity in Propositional Logic

Decision Procedures for Satisfiability and Validity in Propositional Logic Decision Procedures for Satisfiability and Validity in Propositional Logic Meghdad Ghari Institute for Research in Fundamental Sciences (IPM) School of Mathematics-Isfahan Branch Logic Group http://math.ipm.ac.ir/isfahan/logic-group.htm

More information

CHAPTER 10. Gentzen Style Proof Systems for Classical Logic

CHAPTER 10. Gentzen Style Proof Systems for Classical Logic CHAPTER 10 Gentzen Style Proof Systems for Classical Logic Hilbert style systems are easy to define and admit a simple proof of the Completeness Theorem but they are difficult to use. By humans, not mentioning

More information

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

Optimal Tableau Systems for Propositional Neighborhood Logic over All, Dense, and Discrete Linear Orders Optimal Tableau Systems for Propositional Neighborhood Logic over All, Dense, and Discrete Linear Orders Davide Bresolin 1, Angelo Montanari 2, Pietro Sala 1, and Guido Sciavicco 34 1 Department of Computer

More information

Chapter 2 Background. 2.1 A Basic Description Logic

Chapter 2 Background. 2.1 A Basic Description Logic Chapter 2 Background Abstract Description Logics is a family of knowledge representation formalisms used to represent knowledge of a domain, usually called world. For that, it first defines the relevant

More information

Description Logics. Deduction in Propositional Logic. franconi. Enrico Franconi

Description Logics. Deduction in Propositional Logic.   franconi. Enrico Franconi (1/20) Description Logics Deduction in Propositional Logic Enrico Franconi franconi@cs.man.ac.uk http://www.cs.man.ac.uk/ franconi Department of Computer Science, University of Manchester (2/20) Decision

More information

Introduction to Logic in Computer Science: Autumn 2006

Introduction to Logic in Computer Science: Autumn 2006 Introduction to Logic in Computer Science: Autumn 2006 Ulle Endriss Institute for Logic, Language and Computation University of Amsterdam Ulle Endriss 1 Plan for Today The first part of the course will

More information

Introduction to Artificial Intelligence Propositional Logic & SAT Solving. UIUC CS 440 / ECE 448 Professor: Eyal Amir Spring Semester 2010

Introduction to Artificial Intelligence Propositional Logic & SAT Solving. UIUC CS 440 / ECE 448 Professor: Eyal Amir Spring Semester 2010 Introduction to Artificial Intelligence Propositional Logic & SAT Solving UIUC CS 440 / ECE 448 Professor: Eyal Amir Spring Semester 2010 Today Representation in Propositional Logic Semantics & Deduction

More information

Modal Dependence Logic

Modal Dependence Logic Modal Dependence Logic Jouko Väänänen Institute for Logic, Language and Computation Universiteit van Amsterdam Plantage Muidergracht 24 1018 TV Amsterdam, The Netherlands J.A.Vaananen@uva.nl Abstract We

More information

Chapter 11: Automated Proof Systems

Chapter 11: Automated Proof Systems Chapter 11: Automated Proof Systems SYSTEM RS OVERVIEW Hilbert style systems are easy to define and admit a simple proof of the Completeness Theorem but they are difficult to use. Automated systems are

More information

Mathematical Logic Propositional Logic - Tableaux*

Mathematical Logic Propositional Logic - Tableaux* Mathematical Logic Propositional Logic - Tableaux* Fausto Giunchiglia and Mattia Fumagalli University of Trento *Originally by Luciano Serafini and Chiara Ghidini Modified by Fausto Giunchiglia and Mattia

More information

Propositional Logic Language

Propositional Logic Language Propositional Logic Language A logic consists of: an alphabet A, a language L, i.e., a set of formulas, and a binary relation = between a set of formulas and a formula. An alphabet A consists of a finite

More information

First-Order Logic. Chapter Overview Syntax

First-Order Logic. Chapter Overview Syntax Chapter 10 First-Order Logic 10.1 Overview First-Order Logic is the calculus one usually has in mind when using the word logic. It is expressive enough for all of mathematics, except for those concepts

More information

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

Propositional logic (revision) & semantic entailment. p. 1/34 Propositional logic (revision) & semantic entailment p. 1/34 Reading The background reading for propositional logic is Chapter 1 of Huth/Ryan. (This will cover approximately the first three lectures.)

More information

A brief introduction to Logic. (slides from

A brief introduction to Logic. (slides from A brief introduction to Logic (slides from http://www.decision-procedures.org/) 1 A Brief Introduction to Logic - Outline Propositional Logic :Syntax Propositional Logic :Semantics Satisfiability and validity

More information

Computation and Logic Definitions

Computation and Logic Definitions Computation and Logic Definitions True and False Also called Boolean truth values, True and False represent the two values or states an atom can assume. We can use any two distinct objects to represent

More information

Marie Duží

Marie Duží Marie Duží marie.duzi@vsb.cz 1 Formal systems, Proof calculi A proof calculus (of a theory) is given by: 1. a language 2. a set of axioms 3. a set of deduction rules ad 1. The definition of a language

More information

Part 1: Propositional Logic

Part 1: Propositional Logic Part 1: Propositional Logic Literature (also for first-order logic) Schöning: Logik für Informatiker, Spektrum Fitting: First-Order Logic and Automated Theorem Proving, Springer 1 Last time 1.1 Syntax

More information

Learning Goals of CS245 Logic and Computation

Learning Goals of CS245 Logic and Computation Learning Goals of CS245 Logic and Computation Alice Gao April 27, 2018 Contents 1 Propositional Logic 2 2 Predicate Logic 4 3 Program Verification 6 4 Undecidability 7 1 1 Propositional Logic Introduction

More information

Characterization of Semantics for Argument Systems

Characterization of Semantics for Argument Systems Characterization of Semantics for Argument Systems Philippe Besnard and Sylvie Doutre IRIT Université Paul Sabatier 118, route de Narbonne 31062 Toulouse Cedex 4 France besnard, doutre}@irit.fr Abstract

More information

7. Propositional Logic. Wolfram Burgard and Bernhard Nebel

7. Propositional Logic. Wolfram Burgard and Bernhard Nebel Foundations of AI 7. Propositional Logic Rational Thinking, Logic, Resolution Wolfram Burgard and Bernhard Nebel Contents Agents that think rationally The wumpus world Propositional logic: syntax and semantics

More information

Relational dual tableaux for interval temporal logics *

Relational dual tableaux for interval temporal logics * Relational dual tableaux for interval temporal logics * Davide Bresolin * Joanna Golińska-Pilarek ** Ewa Orłowska ** * Department of Mathematics and Computer Science University of Udine (Italy) bresolin@dimi.uniud.it

More information

Propositional Logic: Part II - Syntax & Proofs 0-0

Propositional Logic: Part II - Syntax & Proofs 0-0 Propositional Logic: Part II - Syntax & Proofs 0-0 Outline Syntax of Propositional Formulas Motivating Proofs Syntactic Entailment and Proofs Proof Rules for Natural Deduction Axioms, theories and theorems

More information

Introduction to Metalogic

Introduction to Metalogic Philosophy 135 Spring 2008 Tony Martin Introduction to Metalogic 1 The semantics of sentential logic. The language L of sentential logic. Symbols of L: Remarks: (i) sentence letters p 0, p 1, p 2,... (ii)

More information

Foundations of Artificial Intelligence

Foundations of Artificial Intelligence Foundations of Artificial Intelligence 7. Propositional Logic Rational Thinking, Logic, Resolution Wolfram Burgard, Maren Bennewitz, and Marco Ragni Albert-Ludwigs-Universität Freiburg Contents 1 Agents

More information

Foundations of Artificial Intelligence

Foundations of Artificial Intelligence Foundations of Artificial Intelligence 7. Propositional Logic Rational Thinking, Logic, Resolution Joschka Boedecker and Wolfram Burgard and Bernhard Nebel Albert-Ludwigs-Universität Freiburg May 17, 2016

More information

Deductive Systems. Lecture - 3

Deductive Systems. Lecture - 3 Deductive Systems Lecture - 3 Axiomatic System Axiomatic System (AS) for PL AS is based on the set of only three axioms and one rule of deduction. It is minimal in structure but as powerful as the truth

More information

Proving Completeness for Nested Sequent Calculi 1

Proving Completeness for Nested Sequent Calculi 1 Proving Completeness for Nested Sequent Calculi 1 Melvin Fitting abstract. Proving the completeness of classical propositional logic by using maximal consistent sets is perhaps the most common method there

More information

Warm-Up Problem. Is the following true or false? 1/35

Warm-Up Problem. Is the following true or false? 1/35 Warm-Up Problem Is the following true or false? 1/35 Propositional Logic: Resolution Carmen Bruni Lecture 6 Based on work by J Buss, A Gao, L Kari, A Lubiw, B Bonakdarpour, D Maftuleac, C Roberts, R Trefler,

More information

An Efficient Decision Procedure for Functional Decomposable Theories Based on Dual Constraints

An Efficient Decision Procedure for Functional Decomposable Theories Based on Dual Constraints An Efficient Decision Procedure for Functional Decomposable Theories Based on Dual Constraints Khalil Djelloul Laboratoire d Informatique Fondamentale d Orléans. Bat. 3IA, rue Léonard de Vinci. 45067 Orléans,

More information

Design of Distributed Systems Melinda Tóth, Zoltán Horváth

Design of Distributed Systems Melinda Tóth, Zoltán Horváth Design of Distributed Systems Melinda Tóth, Zoltán Horváth Design of Distributed Systems Melinda Tóth, Zoltán Horváth Publication date 2014 Copyright 2014 Melinda Tóth, Zoltán Horváth Supported by TÁMOP-412A/1-11/1-2011-0052

More information

From Constructibility and Absoluteness to Computability and Domain Independence

From Constructibility and Absoluteness to Computability and Domain Independence From Constructibility and Absoluteness to Computability and Domain Independence Arnon Avron School of Computer Science Tel Aviv University, Tel Aviv 69978, Israel aa@math.tau.ac.il Abstract. Gödel s main

More information

Probabilistic Neighbourhood Logic

Probabilistic Neighbourhood Logic Probabilistic Neighbourhood Logic Dimitar P. Guelev International Institute for Software Technology of the United Nations University (UNU/IIST), Macau, P.O.Box 3058. E-mail: dg@iist.unu.edu Abstract. This

More information

MONADIC FRAGMENTS OF INTUITIONISTIC CONTROL LOGIC

MONADIC FRAGMENTS OF INTUITIONISTIC CONTROL LOGIC Bulletin of the Section of Logic Volume 45:3/4 (2016), pp. 143 153 http://dx.doi.org/10.18778/0138-0680.45.3.4.01 Anna Glenszczyk MONADIC FRAGMENTS OF INTUITIONISTIC CONTROL LOGIC Abstract We investigate

More information

Linking Duration Calculus and TLA

Linking Duration Calculus and TLA Linking Duration Calculus and TLA Yifeng Chen and Zhiming Liu Department of Computer Science, University of Leicester, Leicester LE1 7RH, UK Email: {Y.Chen, Z.Liu}@mcs.le.ac.uk Abstract. Different temporal

More information

Propositional logic. First order logic. Alexander Clark. Autumn 2014

Propositional logic. First order logic. Alexander Clark. Autumn 2014 Propositional logic First order logic Alexander Clark Autumn 2014 Formal Logic Logical arguments are valid because of their form. Formal languages are devised to express exactly that relevant form and

More information

Redundancy for rigid clausal tableaux

Redundancy for rigid clausal tableaux Proceedings of the 7 th International Conference on Applied Informatics Eger, Hungary, January 28 31, 2007. Vol. 1. pp. 65 74. Redundancy for rigid clausal tableaux Gergely Kovásznai Faculty of Informatics,

More information

CS 486: Applied Logic Lecture 7, February 11, Compactness. 7.1 Compactness why?

CS 486: Applied Logic Lecture 7, February 11, Compactness. 7.1 Compactness why? CS 486: Applied Logic Lecture 7, February 11, 2003 7 Compactness 7.1 Compactness why? So far, we have applied the tableau method to propositional formulas and proved that this method is sufficient and

More information

Chapter 4: Computation tree logic

Chapter 4: Computation tree logic INFOF412 Formal verification of computer systems Chapter 4: Computation tree logic Mickael Randour Formal Methods and Verification group Computer Science Department, ULB March 2017 1 CTL: a specification

More information

Projections: A Technique for Verifying Real-Time Programs in Duration Calculus

Projections: A Technique for Verifying Real-Time Programs in Duration Calculus Projections: A Technique for Verifying Real-Time Programs in Duration Calculus Dang Van Hung The United Nations University International Institute for Software Technology P.O.Box 3058, Macau Abstract.

More information

COMP9414: Artificial Intelligence Propositional Logic: Automated Reasoning

COMP9414: Artificial Intelligence Propositional Logic: Automated Reasoning COMP9414, Monday 26 March, 2012 Propositional Logic 2 COMP9414: Artificial Intelligence Propositional Logic: Automated Reasoning Overview Proof systems (including soundness and completeness) Normal Forms

More information

Nested Epistemic Logic Programs

Nested Epistemic Logic Programs Nested Epistemic Logic Programs Kewen Wang 1 and Yan Zhang 2 1 Griffith University, Australia k.wang@griffith.edu.au 2 University of Western Sydney yan@cit.uws.edu.au Abstract. Nested logic programs and

More information

Propositional Calculus - Semantics (3/3) Moonzoo Kim CS Dept. KAIST

Propositional Calculus - Semantics (3/3) Moonzoo Kim CS Dept. KAIST Propositional Calculus - Semantics (3/3) Moonzoo Kim CS Dept. KAIST moonzoo@cs.kaist.ac.kr 1 Overview 2.1 Boolean operators 2.2 Propositional formulas 2.3 Interpretations 2.4 Logical Equivalence and substitution

More information

THE LANGUAGE OF FIRST-ORDER LOGIC (FOL) Sec2 Sec1(1-16)

THE LANGUAGE OF FIRST-ORDER LOGIC (FOL) Sec2 Sec1(1-16) THE LANGUAGE OF FIRST-ORDER LOGIC (FOL) Sec2 Sec1(1-16) FOL: A language to formulate knowledge Logic is the study of entailment relationslanguages, truth conditions and rules of inference. FOL or Predicate

More information

Propositional logic. Programming and Modal Logic

Propositional logic. Programming and Modal Logic Propositional logic Programming and Modal Logic 2006-2007 4 Contents Syntax of propositional logic Semantics of propositional logic Semantic entailment Natural deduction proof system Soundness and completeness

More information

CS156: The Calculus of Computation

CS156: The Calculus of Computation CS156: The Calculus of Computation Zohar Manna Winter 2010 It is reasonable to hope that the relationship between computation and mathematical logic will be as fruitful in the next century as that between

More information

An Algebraic Semantics for Duration Calculus

An Algebraic Semantics for Duration Calculus An Algebraic Semantics for Duration Calculus Peter Höfner Institut für Informatik, Universität Augsburg D-86135 Augsburg, Germany hoefner@informatik.uni-augsburg.de Abstract. We present an algebraic semantics

More information

Principles of Knowledge Representation and Reasoning

Principles of Knowledge Representation and Reasoning Principles of Knowledge Representation and Reasoning Modal Logics Bernhard Nebel, Malte Helmert and Stefan Wölfl Albert-Ludwigs-Universität Freiburg May 2 & 6, 2008 Nebel, Helmert, Wölfl (Uni Freiburg)

More information

Description Logics. Foundations of Propositional Logic. franconi. Enrico Franconi

Description Logics. Foundations of Propositional Logic.   franconi. Enrico Franconi (1/27) Description Logics Foundations of Propositional Logic Enrico Franconi franconi@cs.man.ac.uk http://www.cs.man.ac.uk/ franconi Department of Computer Science, University of Manchester (2/27) Knowledge

More information

Chapter 11: Automated Proof Systems (1)

Chapter 11: Automated Proof Systems (1) Chapter 11: Automated Proof Systems (1) SYSTEM RS OVERVIEW Hilbert style systems are easy to define and admit a simple proof of the Completeness Theorem but they are difficult to use. Automated systems

More information

A Tableau-Based Decision Procedure for Right Propositional Neighborhood Logic (RPNL )

A Tableau-Based Decision Procedure for Right Propositional Neighborhood Logic (RPNL ) A Tableau-Based Decision Procedure for Right Propositional Neighborhood Logic (RPNL ) Davide Bresolin Angelo Montanari Dipartimento di Matematica e Informatica Università degli Studi di Udine {bresolin,

More information

Encoding formulas with partially constrained weights in a possibilistic-like many-sorted propositional logic

Encoding formulas with partially constrained weights in a possibilistic-like many-sorted propositional logic Encoding formulas with partially constrained weights in a possibilistic-like many-sorted propositional logic Salem Benferhat CRIL-CNRS, Université d Artois rue Jean Souvraz 62307 Lens Cedex France benferhat@criluniv-artoisfr

More information

Lecture 3: Semantics of Propositional Logic

Lecture 3: Semantics of Propositional Logic Lecture 3: Semantics of Propositional Logic 1 Semantics of Propositional Logic Every language has two aspects: syntax and semantics. While syntax deals with the form or structure of the language, it is

More information

Foundations of Artificial Intelligence

Foundations of Artificial Intelligence Foundations of Artificial Intelligence 7. Propositional Logic Rational Thinking, Logic, Resolution Joschka Boedecker and Wolfram Burgard and Frank Hutter and Bernhard Nebel Albert-Ludwigs-Universität Freiburg

More information

Přednáška 12. Důkazové kalkuly Kalkul Hilbertova typu. 11/29/2006 Hilbertův kalkul 1

Přednáška 12. Důkazové kalkuly Kalkul Hilbertova typu. 11/29/2006 Hilbertův kalkul 1 Přednáška 12 Důkazové kalkuly Kalkul Hilbertova typu 11/29/2006 Hilbertův kalkul 1 Formal systems, Proof calculi A proof calculus (of a theory) is given by: A. a language B. a set of axioms C. a set of

More information

Logic: Propositional Logic (Part I)

Logic: Propositional Logic (Part I) Logic: Propositional Logic (Part I) Alessandro Artale Free University of Bozen-Bolzano Faculty of Computer Science http://www.inf.unibz.it/ artale Descrete Mathematics and Logic BSc course Thanks to Prof.

More information

Nonmonotonic Reasoning in Description Logic by Tableaux Algorithm with Blocking

Nonmonotonic Reasoning in Description Logic by Tableaux Algorithm with Blocking Nonmonotonic Reasoning in Description Logic by Tableaux Algorithm with Blocking Jaromír Malenko and Petr Štěpánek Charles University, Malostranske namesti 25, 11800 Prague, Czech Republic, Jaromir.Malenko@mff.cuni.cz,

More information

Classical First-Order Logic

Classical First-Order Logic Classical First-Order Logic Software Formal Verification Maria João Frade Departmento de Informática Universidade do Minho 2008/2009 Maria João Frade (DI-UM) First-Order Logic (Classical) MFES 2008/09

More information

From Bi-facial Truth to Bi-facial Proofs

From Bi-facial Truth to Bi-facial Proofs S. Wintein R. A. Muskens From Bi-facial Truth to Bi-facial Proofs Abstract. In their recent paper Bi-facial truth: a case for generalized truth values Zaitsev and Shramko [7] distinguish between an ontological

More information

Logic for Computer Scientists

Logic for Computer Scientists Logic for Computer Scientists Pascal Hitzler http://www.pascal-hitzler.de CS 499/699 Lecture, Winter Quarter 2011 Wright State University, Dayton, OH, U.S.A. [final version: 03/10/2011] Contents 1 Propositional

More information

Propositional Logic: Models and Proofs

Propositional Logic: Models and Proofs Propositional Logic: Models and Proofs C. R. Ramakrishnan CSE 505 1 Syntax 2 Model Theory 3 Proof Theory and Resolution Compiled at 11:51 on 2016/11/02 Computing with Logic Propositional Logic CSE 505

More information

Propositional and Predicate Logic - IV

Propositional and Predicate Logic - IV Propositional and Predicate Logic - IV Petr Gregor KTIML MFF UK ZS 2015/2016 Petr Gregor (KTIML MFF UK) Propositional and Predicate Logic - IV ZS 2015/2016 1 / 19 Tableau method (from the previous lecture)

More information

Metric Propositional Neighborhood Logics

Metric Propositional Neighborhood Logics Metric Propositional Neighborhood Logics D. Bresolin, D. Della Monica, V. Goranko, A. Montanari, and G. Sciavicco University of Murcia guido@um.es Please notice: these slides have been mostly produced

More information

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

Applied Logic. Lecture 1 - Propositional logic. Marcin Szczuka. Institute of Informatics, The University of Warsaw Applied Logic Lecture 1 - Propositional logic Marcin Szczuka Institute of Informatics, The University of Warsaw Monographic lecture, Spring semester 2017/2018 Marcin Szczuka (MIMUW) Applied Logic 2018

More information

Critical Reading of Optimization Methods for Logical Inference [1]

Critical Reading of Optimization Methods for Logical Inference [1] Critical Reading of Optimization Methods for Logical Inference [1] Undergraduate Research Internship Department of Management Sciences Fall 2007 Supervisor: Dr. Miguel Anjos UNIVERSITY OF WATERLOO Rajesh

More information

First-Order Logic First-Order Theories. Roopsha Samanta. Partly based on slides by Aaron Bradley and Isil Dillig

First-Order Logic First-Order Theories. Roopsha Samanta. Partly based on slides by Aaron Bradley and Isil Dillig First-Order Logic First-Order Theories Roopsha Samanta Partly based on slides by Aaron Bradley and Isil Dillig Roadmap Review: propositional logic Syntax and semantics of first-order logic (FOL) Semantic

More information

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

Splitting a Default Theory. Hudson Turner. University of Texas at Austin. Splitting a Default Theory Hudson Turner Department of Computer Sciences University of Texas at Austin Austin, TX 7872-88, USA hudson@cs.utexas.edu Abstract This paper presents mathematical results that

More information

An Independence Relation for Sets of Secrets

An Independence Relation for Sets of Secrets Sara Miner More Pavel Naumov An Independence Relation for Sets of Secrets Abstract. A relation between two secrets, known in the literature as nondeducibility, was originally introduced by Sutherland.

More information

On Sequent Calculi for Intuitionistic Propositional Logic

On Sequent Calculi for Intuitionistic Propositional Logic On Sequent Calculi for Intuitionistic Propositional Logic Vítězslav Švejdar Jan 29, 2005 The original publication is available at CMUC. Abstract The well-known Dyckoff s 1992 calculus/procedure for intuitionistic

More information

02 Propositional Logic

02 Propositional Logic SE 2F03 Fall 2005 02 Propositional Logic Instructor: W. M. Farmer Revised: 25 September 2005 1 What is Propositional Logic? Propositional logic is the study of the truth or falsehood of propositions or

More information

First Order Logic (FOL) 1 znj/dm2017

First Order Logic (FOL) 1   znj/dm2017 First Order Logic (FOL) 1 http://lcs.ios.ac.cn/ znj/dm2017 Naijun Zhan March 19, 2017 1 Special thanks to Profs Hanpin Wang (PKU) and Lijun Zhang (ISCAS) for their courtesy of the slides on this course.

More information

Discrete Mathematics

Discrete Mathematics Discrete Mathematics Yi Li Software School Fudan University March 13, 2017 Yi Li (Fudan University) Discrete Mathematics March 13, 2017 1 / 1 Review of Lattice Ideal Special Lattice Boolean Algebra Yi

More information