Metric Integer Interval Temporal Logic. Mathematics and Applications
|
|
- Cuthbert Booth
- 5 years ago
- Views:
Transcription
1 Metric Integer Interval Temporal Logic Samuel Lukas Vogel Thesis to obtain the Master of Science Degree in Mathematics and Applications Supervisor(s): Prof. João Rasga Examination Committee Chairperson: Prof. Maria Cristina de Sales Viana Serôdio Sernadas Supervisor: Prof. João Filipe Quintas dos Santos Rasga Member of the Committee: Prof. Manuel António Gonçalves Martins April 2016
2 ii
3 iii Dedicated to Catarina Pinheiro.
4 iv
5 Acknowledgments Deepest gratitude and appreciation for the help, support, advices, guidance, suggestions and valuable comments are extended to João Rasga, my thesis adviser. v
6 vi
7 Resumo Em computação, raciocinar sobre tempo real é fundamental, dadas as numerosas aplicações que dependem disso. Recentemente a lógica temporal tem desempenhado um papel cada vez mais importante na solução deste problema, como se comprova pelo sucesso da Metric Interval Temporal Logic (MITL). Nesta tese tentamos preencher a lacuna que existe entre a lógica temporal discreta e a lógica temporal densa, propondo e estudando uma nova lógica, Metric Integer Interval Temporal Logic (MIIT L), com intervalos explícitos como em MIT L, mas em tempo discreto como Propositional Linear Temporal Logic (PLT L). Com este objetivo em mente, mostramos que o problema da satisfação em MIITL é decidível e provamos que PLTL é equivalente a MIITL. Apresentamos também um sistema axiomático fortemente completo para um fragmento de MIIT L. Por fim reduzimos um fragmento de MITL a MIITL, o que pode ser útil, dado o salto de complexidade entre as duas lógicas. Palavras-chave: Lógica Temporal sobre Tempo Discreto, Lógica Temporal sobre Tempo Real, MITL, PLTL. vii
8 viii
9 Abstract In computer science, reasoning about real-time is an important issue, given that numerous applications depend on it. In recent years temporal logic has been found to be very useful in the matter, as can be seen by the success of Metric Interval Temporal Logic (MITL). In this thesis we try to bridge the gap between discrete and explicit dense time logics by introducing a new logic, Metric Integer Interval Temporal Logic (MIIT L), with explicit intervals as MIT L but over discrete time as Propositional Linear Temporal Logic (PLTL). We propose an algorithm for the satisfiability problem of MIITL and show that PLTL is equivalent to MIITL. Moreover we provide a strongly complete axiom system for a bounded fragment of MIITL. Finally, we reduce a bounded MITL fragment to MIITL, which can be useful, given the leap of complexity from reasoning in discrete-time to reasoning in dense-time. Keywords: Temporal Logics for Dicrete Time Reasoning, Temporal Logics for Dense Time Reasoning, MITL, PLTL. ix
10 x
11 Contents Acknowledgments v Resumo vii Abstract ix 1 Introduction 1 2 MIT L 3 3 MIIT L 5 4 PLT L 15 5 Equivalence between PLT L and MIIT L PLTL Equivalence Strongly complete deductive calculus for MIITL 21 7 Relation between MITL and MIITL 31 8 Conclusions 37 Bibliography 39 xi
12 xii
13 Chapter 1 Introduction Temporal logics constitute a well-known topic of study in theoretical computer science. They are a special type of modal logic widely used for reasoning about hardware and software systems. Motivated by philosophical matters, Arthur Prior in 1955 formalized temporal logics by developing tense logics from modal logics. In his book [Pri55] he enriched propositional modal logic with two temporal operators F (future) and P (past) initializing the modern era of temporal logics. Later, in 1968 Kamp [Kam68] proposed the until U and since S operators, extending the expressiveness of temporal logics. The original philosophical motivation of temporal logics was then overshadowed by the wide range of applications introduced by the work of Amir Pnueli [Pnu77]. He revolutionized temporal logics and program verification by realizing that the work of Prior could be applied to computer programs. In [Pnu77] Pnueli introduced Propositional Linear Temporal Logic PLT L (or Linear Time Temporal Logic - LT L) which is a reference for reasoning in discrete, linear time. Since then, PLT L has been widely studied. For example its satisfiability problem has been shown to be PSPACE-complete. Even though PLTL had a profound impact in computer science, it has some shortcomings in time reasoning. Systems can be modeled in PLT L by a sequence of states, by specifying their order, but PLTL cannot specify their precise times. In an attempt to expand the expressiveness of PLTL to real time, Alur, Feder and Henziger introduced Metric Interval Temporal Logic MIT L [AFH96], which is the standard for reasoning in dense time. MITL semantics consist of a sequence of states and a sequence of intervals, where each state is associated to an interval over the reals. MITL formulas are built from a timed-constrained version of the until operator U I, where I is a non-singular interval. The resulting logic can constrain the time derence between events only with finite precision and its satisfiability problem is EXPSPACE-complete. Temporal logics continue to be a current subject of investigation in computer science, as can be seen by the research in reasoning about quantum systems [MRSS10]. 1
14 Contributions This thesis has two main goals: to explore the expressiveness of a discrete linear temporal logic with explicit Until operators and to relate MIT L with discrete linear temporal logics. The main original contributions of this thesis are: a new linear temporal logic with explicit constrained Until operators, MIT L; an algorithm for the satisfiability problem in MIIT L; the proof that MIITL is equivalent to PLTL; a complete axiom system for MIITL, a fragment of MIITL; the reduction of a fragment of MITL to MIITL, proving that not all formulas in MITL require a dense time domain. Overview The remainder of the thesis is organized as follows: in section 2, we recall the syntax and semantics of MITL, as well as some results of [AFH96]. In section 3, we introduce MIITL a new linear time logic, with constrained Until operators and show its decidability. In section 4, we recall the syntax and semantics of PLTL. In section 5, we show the equivalence between PLTL and MIITL. In section 6, we introduce MIITL, a fragment of MIITL and propose a strongly complete axiom system for it. And finally, in section 7, we show that indeed a fragment of MITL is reducible to MIITL. 2
15 Chapter 2 MITL As mentioned in the introduction, the development of linear temporal logic and its applications in model checking revolutionized temporal logics, albeit its biggest shortcoming, the inability to express quantitative timing requirements. In PLT L, systems can be modeled by a sequence of states, by specifying their order, but PLTL cannot specify their precise times. In recent years much work has been done into expanding the expressiveness of PLT L to real time. Koymans was one of the first to tackle this issue. In [Koy90] he introduced Metric Temporal Logic (MTL). MTL temporal operators are constrained by intervals over the reals, for example [1,2] p means that p will be true at all instants in the interval [1, 2]. Unfortunately, later in [Hen91], Henziger proved that the satisfiability problem in MT L is undecidable. This is due to the expressiveness and density of the logic, which allow reducing the halting problem to the satisfiability problem. The halting computations of a Turing Machine can be specified by a MTL formula, so deciding the satisfiability of such a formula is the same as solving the halting problem. Metric Interval Temporal Logic rises from the attempt to find a decidable real-time logic. In the paper [AFH96] Alur, Feder and Henziger propose MITL as a relaxation of MTL. By prohibiting singular time intervals from constraining temporal operators in MTL (e.g. {2} p, which means that p will be true exactly at time 2) the authors obtained a decidable logic. Further research provided a weakly complete axiomatization for MIT L [SRHF02]. Here we recall the syntax and semantics of MITL as in [AFH96], as well as some relevant results for our work presented in that paper. Given a finite set P of propositions, formulas in MITL are inductively defined as follows. ϕ ::= p ϕ ϕ ϕ ϕ U I ϕ where p P and I is a nonsingular interval, with positive integer endpoints. We introduce some standard abbreviations for additional temporal operators. I ϕ abv (ϕ ϕ) U I ϕ (timed constrained eventually) and I ϕ abv ((ϕ ϕ) U I ϕ) (timed constrained always). A time interval is a nonempty convex subset of R 0. Intervals have one of the following forms: [a, b], [a, b[, [a, [, ]a, b], ]a, b[, ]a, [, where a b and a, b R 0. For an interval I of the above form, 3
16 l(i) = a and for a bounded I, r(i) = b. An interval I is singular if it is of the form [a, a]. Two intervals are adjacent if their union is a convex subset of R and their intersection is empty. Definition 1. A set s is said to be a state if s P. Moreover s satisfies a proposition p, written s = p, if p s. Definition 2. A state sequence s = (s 0, s 1, s 2,...) is an infinite sequence of states. An interval sequence Ī = (I 0, I 1, I 2,...) is an infinite sequence of time intervals such that: I 0 is left-closed and l(i 0 ) = 0; for all i, the intervals I i and I i+1 are adjacent; for all t R 0, t belongs to some interval I i. Definition 3. A timed state sequence σ = ( s, Ī) is a tuple formed by an infinite sequence of states and an infinite interval sequence. For t 0 and t I i, by σ (t) we refer to the state s i. Definition 4. Given a timed state sequence σ and t I i, we denote by σ t the timed state sequence ( s, Ī ), s.t s = (s i, s i+1,...) and Ī = ((I i t) [0, [, I i+1 t,...) Definition 5. The satisfaction relation σ = ϕ is inductively defined as follows: σ = p p s 0 ; σ = ϕ σ = ϕ; σ = ϕ 1 ϕ 2 σ = ϕ 1 and σ = ϕ 2 ; σ = ϕ 1 U I ϕ 2 t I : σ t = ϕ 2 and t ]0, t[ σ t = ϕ 1. The paper [AFH96] also shows that MITL cannot distinguish the time domain R 0 from the time domain Q 0. This means that replacing the time domain over the reals by a time domain over the rationals does not change the satisfiability of any formula in MIT L. We recall here those results. Definition 6. The timed state sequence σ = ( s, Ī) is rational for all intervals in Ī, their endpoints are rational. Definition 7. Given a rational timed state sequence σ and a MITL-formula ϕ, we denote by = Q the satisfaction relation = of definition 5 redefined so that all time quantifiers range over Q 0 only. We say that σ Q-satisfies ϕ σ = Q ϕ. Definition 8. The MIT L-formula ϕ is Q-satisfiable there is a rational timed state sequence that Q- satisfies ϕ. Theorem 1. Given a MITL-formula ϕ, ϕ is Q-satisfiable ϕ is satisfiable. The paper [AFH96] also provides an algorithm for reducing the problem of satisfiability in MIT L to the problem of the emptiness of timed automata. Theorem 2. The satisfiability problem for MIT L is EXPSPACE-complete. 4
17 Chapter 3 MIITL In this section we introduce a new logic, MIITL, similar to MITL, where time state sequences are defined over the naturals. This new formalism tries to bridge the discreteness of PLT L and the explicit intervals of MIT L by capturing the constrained temporal operators of MIT L as well as the discreteness of PLTL. We also provide an algorithm that reduces the problem of satisfiability of MIITL to the problem of Büchi automata emptiness. Definition 9. We define integer intervals as follows: {i N : a i b} a N, b N { } and a b [a : b] = otherwise In the sequel given an integer interval I = [a : b] and i N with i a, we denote by I i the integer interval [a i : b i]. And given j N, we denote by I + j the integer interval [a + j : b + j]. Given a finite set P of propositions, formulas in MIITL are inductively defined as follows. ϕ ::= p ϕ ϕ ϕ ϕ U I ϕ where p P, U is the time constrained Until operator and I is an integer interval. Now we define the semantics of MIITL. Definition 10. A set s is said to be a state if s P. And s satisfies a proposition p, written s = p if p s. Definition 11. A state sequence τ is an infinite sequence of states. In the sequel given a state sequence τ = (s 0, s 1,...) and i N, we denote by τ i the timed state sequence (s i, s i+1,...). Definition 12. The satisfaction relation τ = ϕ is inductively defined as follows: τ = p p s 0 ; τ = ϕ τ = ϕ; τ = ϕ 1 ϕ 2 τ = ϕ 1 and τ = ϕ 2 ; 5
18 τ = ϕ 1 U I ϕ 2 t I τ t = ϕ 2 and t [1 : t 1] τ t = ϕ 1. Definition 13. A formula ϕ is entailed by a set Γ of formulas, written Γ = ϕ, if for every state sequence τ, τ = ϕ whenever τ = γ, for each γ Γ. Definition 14. Given a formula ϕ and t N, ϕ t is defined as (ϕ ϕ) U [t:t] ϕ. Proposition 1. Given a state sequence τ, a formula ϕ and a natural i, τ = ϕ i τ i = ϕ. Proof. Indeed: τ = ϕ i τ = (ϕ ϕ) U [i:i] ϕ t [i : i] τ t = ϕ and t [1 : i 1] τ t = ϕ ϕ τ i = ϕ Proposition 2 (Non-Compactness of MIITL). There is an infinite set Γ, such that and a ϕ, Γ = ϕ and there is no finite subset Γ f Γ such that Γ f = ϕ. Proof. Let p P, Γ = {p i : i N} and ϕ = ((p p) U [0: ] p). Observe that τ = ((p p) U [0: ] p) there is no t [0 : ] τ t = p and t [1 : t 1] τ t = p p there is no t [0 : ] τ t = p τ i = p, i N Hence, for all state sequences τ that satisfy Γ, by proposition 1, τ i = p for all i N, so τ = ϕ. Hence Γ = ϕ. Now take any finite subset Γ f Γ, Γ f = {p i : i {i 0,..., i n }}. There is τ = Γ f s.t. τ = p j, i.e. τ j = p by prop. 1 where j {i 0,..., i n }, which implies that τ = ϕ. Hence Γ f = ϕ. The absence of compactness for satisfiability implies that there is no sound, strongly complete deductive system for MIIT L. Decidability Now we show that the problem of satisfiability in MIITL can be reduced to the problem of the emptiness of Büchi automata. We begin by defining a normal form of the formulas of MIITL. Definition 15. We define the Unless operator by abbreviation, ϕ 1 W I ϕ 2 abv (( ϕ 2 ) U I ( ϕ 1 )). Proposition 3. Let τ be a state sequence, then τ i = ϕ 1 W I ϕ 2 t I τ i+t = ϕ 1 or t > 0 : τ t+i = ϕ 2 and t I, t t τ t +i = ϕ 1. 6
19 Proof. τ i = (( ϕ 2 ) U I ( ϕ 1 )) τ i = ( ϕ 2 ) U I ( ϕ 1 ) t I τ i+t = ϕ 1 or t > 0 : τ t+i = ϕ 2 and t I, t t τ t +i = ϕ 1 t I τ i+t = ϕ 1 or t > 0 : τ t+i = ϕ 2 and t I, t t τ t +i = ϕ 1 Proposition 4. Let ϕ 1 and ϕ 2 be formulas. Then: 1. Let τ be a state sequence and I s.t. l(i) > 1. Then τ i = ϕ 1 U I ϕ 2 τ i+1 = ϕ 1 and τ i+1 = ϕ 1 U I 1 ϕ Let τ be a state sequence and b s.t. b > 1. Then τ i = ϕ 1 U [1:b] ϕ 2 τ i+1 = ϕ 2 or τ i+1 = ϕ 1 (ϕ 1 U [1:b 1] ϕ 2 ). 3. Let τ be a state sequence. Then τ i = ϕ 1 U [1:1] ϕ 2 τ i+1 = ϕ Let τ be a state sequence and I s.t. l(i) > 1. Then τ i = ϕ 1 W I ϕ 2 τ i+1 = ϕ 2 or τ i+1 = ϕ 1 W I 1 ϕ Let τ be a state sequence and b s.t. b > 1. Then τ i = ϕ 1 W [1:b] ϕ 2 τ i+1 = ϕ 2 ϕ 1 or τ i+1 = ϕ 1 (ϕ 1 W [1:b 1] ϕ 2 ). 6. Let τ be a state sequence. Then τ i = ϕ 1 W [1:1] ϕ 2 τ i+1 = ϕ Let τ be a state sequence. Then τ i = ϕ 1 U [1: ] ϕ 2 either τ i+1 = ϕ 2 or τ i+1 = ϕ 1 (ϕ 1 U [1: ] ϕ 2 ). 8. Let τ be a state sequence. Then τ i = ϕ 1 W [1: ] ϕ 2 either τ i+1 = ϕ 1 ϕ 2 or τ i+1 = ϕ 1 (ϕ 1 W [1: ] ϕ 2 ). Proof. 1. τ i = ϕ 1 U I ϕ 2, l(i) > 1 t I : τ i+t = ϕ 2 and t [1 : t 1] τ i+t = ϕ 1 τ i+1 = ϕ 1 and t I 1 : τ i+t+1 = ϕ 2 and t [1 : t 1] τ i+t +1 = ϕ 1 τ i+1 = ϕ 1 and τ i+1 = ϕ 1 U I 1 ϕ 2 7
20 2. τ i = ϕ 1 U [1:b] ϕ 2, b > 1 t [1 : b] : τ i+t = ϕ 2 and t [1 : t 1] τ i+t = ϕ 1 τ i+1 = ϕ 2 or t [1 : b 1] : τ i+t+1 = ϕ 2 and t [0 : t 1] τ i+t +1 = ϕ 1 τ i+1 = ϕ 2 or t [1 : b 1] : τ i+t+1 = ϕ 2, t [1 : t 1] τ i+t +1 = ϕ 1 and τ i+1 = ϕ 1 τ i+1 = ϕ 2 or τ i+1 = ϕ 1 (ϕ 1 U [1:b 1] ϕ 2 ) 3. τ i = ϕ 1 U [1:1] ϕ 2 τ i+1 = ϕ 2 4. τ i = ϕ 1 W I ϕ 2, l(i) > 1 t I τ i+t = ϕ 1 or t > 0 : τ t+i = ϕ 2 and t I, t t τ t +i = ϕ 1 τ i+1 = ϕ 2 or t I 1 τ i+t+1 = ϕ 1 or t > 1 : τ t+i = ϕ 2 and t I, t t τ t +i = ϕ 1 τ i+1 = ϕ 2 or t I 1 τ i+t+1 = ϕ 1 or t > 0 : τ t+i+1 = ϕ 2 and t I 1, t t τ t +i+1 = ϕ 1 τ i+1 = ϕ 2 or τ i+1 = ϕ 1 W I 1 ϕ 2 5. τ i = ϕ 1 W [1:b] ϕ 2, b > 1 t [1 : b] τ i+t = ϕ 1 or t > 0 : τ t+1 = ϕ 2 and t [1 : b], t t τ t +i = ϕ 1 t [1 : b] τ i+t = ϕ 1 or t > 1 : τ t+i = ϕ 2 and t [1 : b], t t τ t +i = ϕ 1 or τ i+1 = ϕ 1 ϕ 2 τ i+1 = ϕ 1 ϕ 2 or τ i = ϕ 1 and ( t [1 : b] τ i+t+1 = ϕ 1 or t > 0 : τ t+i+1 = ϕ 2 and t [1 : b 1], t t τ t +i+1 = ϕ 1 ) τ i+1 = ϕ 1 ϕ 2 or τ i+1 = ϕ 1 (ϕ 1 W [1:b 1] ϕ 2 ) 8
21 6. τ i = ϕ 1 W [1:1] ϕ 2 τ i+1 = ϕ 1 7. τ i = ϕ 1 U [1: ] ϕ 2 t [1 : ] : τ i+t = ϕ 2 and t [1 : t 1] τ i+t = ϕ 1 τ i+1 = ϕ 2 or τ i+1 = ϕ 1 (ϕ 1 U [1: ] ϕ 2 ) 8. τ i = ϕ 1 W [1: ] ϕ 2 t [1 : ] τ i+t = ϕ 1 or t > 0 : τ t+i = ϕ 2 and t [1 : ], t t τ t +i = ϕ 1 τ i+1 = ϕ 1 ϕ 2 or τ i+1 = ϕ 1 (ϕ 1 W [1: ] ϕ 2 ) Proposition 5. Given a formula in MIITL there is an equivalent formula with until and unless operators, conjunctions and disjunctions and where all negations are in front of propositions. Proof. First we prove that each formula of the form ϕ, where the head of ϕ is not, is equivalent to a formula ϕ with until and unless operators, conjunctions and disjunctions where all negations are in front of propositions. Proof is done by induction on the complexity of ϕ. Let τ be any state sequence such that τ = ϕ. [Base] ϕ P: let ϕ be ϕ which is the negation of a proposition. [Step] ϕ is ϕ 1 ϕ 2 : let ϕ be ϕ 1 ϕ 2. Then τ = ϕ τ = (ϕ 1 ϕ 2 ) τ = ϕ 1 or τ = ϕ 2 (IH) τ = ϕ 1 or τ = ϕ 2 τ = ϕ 1 ϕ 2 ; ϕ is ϕ 1 U I ϕ 2 : let ϕ be ϕ 2 W I ϕ 1. Then τ = ϕ τ = (ϕ 1 U I ϕ 2 ) (def. of the unless operator) τ = ( ϕ 2 ) W I ( ϕ 1 ) (IH) τ = ϕ 2 W I ϕ 1. Now it is clear how one can obtain the pretended formula from MIITL. Definition 16. A formula ϕ is in normal form it is built from propositions and negated propositions using conjunction, disjunction and temporal formulas of the following two types: ϕ 1 U I ϕ 2, l(i) 1; 9
22 ϕ 1 W I ϕ 2, l(i) 1. Proposition 6. For any given formula ϕ of MIITL there is an equivalent formula ϕ in normal form. Proof. By proposition 5, given a formula ϕ there is an equivalent formula ϕ with until and unless operators, conjunctions and disjunctions and where all negations are in front of propositions. Using the following equivalences ϕ can be transformed into ϕ. 1. (ϕ 1 U [0:b] ϕ 2 ) (ϕ 2 (ϕ 1 U [1:b] ϕ 2 )), b N { }; 2. (ϕ 1 W [0:b] ϕ 2 ) (ϕ 1 (ϕ 1 W [1:b] ϕ 2 )), b N { }. The equivalence 1. is immediate. For the equivalence 2. assume that τ = ϕ 1 W [0:b] ϕ 2 for a given state sequence τ. Then either t [0 : b] τ t = ϕ 1 or t > 0 : τ t = ϕ 2 and t [0 : b], t t τ t = ϕ 1. We consider two cases: t [0 : b] τ t = ϕ 1. Then τ = ϕ 1 and τ t = ϕ 1, t [1 : b]. Thus τ = (ϕ 1 (ϕ 1 W [1:b] ϕ 2 )); t > 0 : τ t = ϕ 2 and t [0 : b], t t τ t = ϕ 1. Then τ = ϕ 1 and t > 0 : τ t = ϕ 2 and t [1 : b], t t τ t = ϕ 1. Thus τ = (ϕ 1 (ϕ 1 W [1:b] ϕ 2 )). For the other direction if τ = ϕ 1 (ϕ 1 W [1:b] ϕ 2 ) then we have two possibilities: τ = ϕ 1 and τ t = ϕ 1 t [1 : b] thus τ = ϕ 1 W [0:b] ϕ 2 ; τ = ϕ 1 and t > 0 : τ t = ϕ 2 and t [1 : b], t t τ t = ϕ 1 thus τ = ϕ 1 W [0:b] ϕ 2. Hence τ = ϕ 1 W [0:b] ϕ 2 τ = ϕ 1 (ϕ 1 W [1:b] ϕ 2 ). Definition 17. Let φ be a formula in normal form, we define Closure(φ) as the smallest set satisfying the following conditions: if ψ is a subformula of φ then ψ Closure(φ); if ψ Closure(φ) and ψ is a proposition then ψ Closure(φ); if ϕ 1 U I ϕ 2 Closure(φ), l(i) > 1 then ϕ 1 U I 1 ϕ 2 Closure(φ); if ϕ 1 W I ϕ 2 Closure(φ), l(i) > 1 then ϕ 1 W I 1 ϕ 2 Closure(φ); if ϕ 1 U [1:b] ϕ 2 Closure(φ), b 1 and b N then ϕ 1 U [1:b 1] ϕ 2 Closure(φ); if ϕ 1 W [1:b] ϕ 2 Closure(φ), b 1 and b N then ϕ 1 W [1:b 1] ϕ 2 Closure(φ). Now we define the Generalized Büchi Automaton ([RR11]) A φ for every formula φ of MIITL in the normal form. Definition 18. Let φ be a formula in normal form, over the set of propositions P, we define the generalized nondeterministic Büchi automaton A φ = Q, Σ, δ, Q 0, F as follows. The set of states Q has all the subsets q of Closure(φ) such that: if ϕ 1 ϕ 2 q then {ϕ 1, ϕ 2 } q, if ϕ 1 ϕ 2 q then ϕ 1 or ϕ 2 q and for all propositions p in φ, p q p / q; 10
23 Σ is 2 P ; δ is defined as follows, (q i, s, q i+1 ) δ, for all s Σ, q i, q i+1 Q such that s is the set of propositions in q i and if ϕ 1 U I ϕ 2 q i and l(i) > 1 then {ϕ 1, ϕ 1 U I 1 ϕ 2 } q i+1 ; if ϕ 1 U [1:b] ϕ 2 q i then either ϕ 2 q i+1 or {ϕ 1, ϕ 1 U [1:b 1] ϕ 2 } q i+1 ; if ϕ 1 U [1:1] ϕ 2 q i then ϕ 2 q i+1 ; if ϕ 1 W I ϕ 2 q i, l(i) > 1 then either ϕ 2 q i+1 or ϕ 1 W I 1 ϕ 2 q i+1. if ϕ 1 W [1:b] ϕ 2 q i then either {ϕ 1, ϕ 2 } q i+1 or {ϕ 1, ϕ 1 W [1:b 1] ϕ 2 } q i+1 ; if ϕ 1 W [1:1] ϕ 2 q i then ϕ 1 q i+1 ; if ϕ 1 U [1: ] ϕ 2 q i then either ϕ 2 q i+1 or {ϕ 1, ϕ 1 U [1: ] ϕ 2 } q i+1 ; if ϕ 1 W [1: ] ϕ 2 q i then either {ϕ 1, ϕ 2 } q i+1 or {ϕ 1, ϕ 1 W [1: ] ϕ 2 } q i+1 ; Q 0 = {q Q : φ q}; F = {F ψ : ψ is ϕ 1 U [1: ] ϕ 2 Closure(φ)}, and F ψ = {q Q : ϕ 2 q or ψ / q}. If there is no formula of the form ϕ 1 U [1: ] ϕ 2 Closure(φ) then F = {Q}. Note that the infinite words in Σ of A φ coincide with the definition of state sequences. Proposition 7. Given a formula φ in the normal form, φ is satisfiable if L(A φ ). Proof. Suppose L(A φ ) and τ L(A φ ). Let q i be the i th state of the respective run. For all ϕ Closure(φ), we prove by induction on the complexity of ϕ, that if ϕ q i then τ i = ϕ. [Base 1 ] ϕ P: ϕ q i then ϕ s i of τ then τ i = ϕ. [Step 1 ] The Induction Hypothesis (IH 1 ) states that if ϕ q i then τ i = ϕ, for all ϕ Closure(φ) with less complexity than ϕ. ϕ is ψ and ψ P. ϕ q i, then by definition of Q, ψ / q i then ψ / s i thus τ i = ψ hence τ i = ϕ; ϕ is ϕ 1 ϕ 2 ϕ q i, by def. of Q, {ϕ 1, ϕ 2 } q i thus by IH 1 τ i = ϕ 1 and τ i = ϕ 2 thus τ i = ϕ 1 ϕ 2 ; ϕ is ϕ 1 ϕ 2 ϕ q i, by def. of Q, ϕ 1 q i or ϕ 2 q i thus by IH 1 τ i = ϕ 1 or τ i = ϕ 2 thus τ i = ϕ 1 ϕ 2 ; ϕ is ϕ 1 U [1:b] ϕ 2 ϕ q i, we prove this by induction on b. [Base 2 ] ϕ 1 U [1:1] ϕ 2 q i, by def. of δ ϕ 2 q i+1 then by IH 1 τ i+1 = ϕ 2 and by prop. 4.3 τ i = ϕ 1 U [1:1] ϕ 2. [Step 2 ] The Induction Hypothesis (IH 2 ) states that for all b b, if ϕ 1 U [1:b ] ϕ 2 q i then τ i = ϕ 1 U [1:b ] ϕ 2. If ϕ 1 U [1:b+1] ϕ 2 q i then by def. of δ either ϕ 2 q i+1 or {ϕ 1, ϕ 1 U [1:b] ϕ 2 } q i+1. if ϕ 2 q i+1 then by IH 1 τ i+1 = ϕ 2 and by prop. 4.2 τ i = ϕ 1 U [1:b+1] ϕ 2 ; 11
24 if {ϕ 1, ϕ 1 U [1:b] ϕ 2 } q i+1 then by the first IH 1 τ i+1 = ϕ 1 and by IH2 2 τ i+1 = ϕ 1 U [1:b] ϕ 2. Thus by prop. 4.2 τ i = ϕ 1 U [1:b+1] ϕ 2 ; ϕ is ϕ 1 U I ϕ 2 ϕ q i, and l(i) 1 we prove this by induction on l(i). [Base 3 ] l(i) = 1 is the previous case. [Step 3 ] The Induction Hypothesis (IH 3 ) states that for all I s.t. l(i) b, if ϕ 1 U I ϕ 2 q i then τ i = ϕ 1 U I ϕ 2. If ϕ 1 U I ϕ 2 q i then by def. of δ {ϕ 1, ϕ 1 U I 1 ϕ 2 } q i+1. By IH 1 τ i+1 = ϕ 1 and by IH 3 τ i+1 = (ϕ 1 U I 1 ϕ 2 ). Thus by prop. 4.1 τ i = ϕ 1 U I ϕ 2 ; ϕ is ϕ 1 W [1:b] ϕ 2 ϕ q i, we prove this by induction on b. [Base 4 ] ϕ 1 W [1:1] ϕ 2 q i then by def. of δ ϕ 1 q i+1, then by IH 1 τ i+1 = ϕ 1 and by prop. 4.6 τ i = ϕ 1 W [1:1] ϕ 2. [Step 4 ] The Induction Hypothesis (IH 4 ) states that for all b b, if ϕ 1 W [1:b ] ϕ 2 q i then τ i = ϕ 1 W [1:b ] ϕ 2. If ϕ 1 W [1:b+1] ϕ 2 q i then by def. of δ either {ϕ 1, ϕ 2 } q i+1 or {ϕ 1, ϕ 1 W [1:b] ϕ 2 } q i+1. if {ϕ 1, ϕ 2 } q i+1 then by IH 1 τ i+1 = ϕ 1 ϕ 2 and thus by prop. 4.5 τ i = ϕ 1 W [1:b+1] ϕ 2 ; if {ϕ 1, ϕ 1 W [1:b] ϕ 2 } q i+1 then by IH 1 τ i+1 = ϕ 1 and by IH 4 τ i+1 = ϕ 1 W [1:b] ϕ 2. Thus by prop. 4.5 τ i = ϕ 1 W [1:b+1] ϕ 2 ; ϕ is ϕ 1 W I ϕ 2 ϕ q i, and l(i) 1 we prove this by induction on l(i). [Base 5 ] l(i) = 1 is the previous case. [Step 5 ] The Induction Hypothesis (IH 5 ) states that for all I s.t. l(i) b, if ϕ 1 W I ϕ 2 q i then τ i = ϕ 1 W I ϕ 2. If ϕ 1 W I ϕ 2 q i then by def. of δ either ϕ 2 q i+1 or ϕ 1 W I 1 ϕ 2 q i+1. if ϕ 2 q i+1 by IH 1 τ i+1 = ϕ 2 and by prop. 4.4 τ i = ϕ 1 W I ϕ 2 ; if ϕ 1 W I 1 ϕ 2 q i+1 by IH 5 τ i+1 = ϕ 1 W I 1 ϕ 2. Thus by prop. 4.4 τ i = ϕ 1 W I ϕ 2 ; ϕ is ϕ 1 U [1: ] ϕ 2 ϕ q i, then F ϕ F and either ϕ 2 q i+1 or {ϕ 1, ϕ 1 U [1: ] ϕ 2 } q i+1. If ϕ 2 q i+1 then by IH 1 τ i+1 = ϕ 2 and by prop. 4.7 τ i = ϕ 1 U [1: ] ϕ 2. Suppose ϕ 2 / q j j > i then ϕ 1 U [1: ] ϕ 2 q j j > i. This would mean that the automaton A φ does not accept τ. Because the respective run of τ does not infinitely often visit the states of F ϕ. Thus there is always j > i such that ϕ 2 q j and for all i < j < j ϕ 1 q j, using IH 1 τ i = ϕ 1 U [1: ] ϕ 2. ϕ is ϕ 1 W [1: ] ϕ 2 ϕ q i, then either {ϕ 2, ϕ 1 } q i+1 or {ϕ 1, ϕ 1 W [1: ] ϕ 2 } q i+1. Then by IH 1 either τ j = ϕ 1 and τ j = ϕ 2 for some j > i and τ j = ϕ 1, i < j < j. Or τ j = ϕ 1 j > i in both cases τ i = ϕ 1 W [1: ] ϕ 2. By definition of A φ φ q 0 thus τ = φ and φ is satisfiable. Proposition 8. Given a state sequence τ and a formula φ in the normal form, if τ = φ then τ L(A φ ). 12
25 Proof. Suppose τ = φ, let ρ be our potential run in A φ, such that q i = {ϕ Closure(φ) : τ i = ϕ}. It is easy to check that q i Q. Let q i be the i th state of ρ, q i+1 be the next state and s i the set of propositions in q i. We prove that (q i, s i, q i+1 ) δ. Suppose ϕ q i ϕ P: τ i = ϕ then ϕ s i ϕ is ϕ 1 U I ϕ 2 : and l(i) > 1, τ i = ϕ then by prop. 4.1 τ i+1 = ϕ 1 (ϕ 1 U I 1 ϕ 2 ) thus {ϕ 1, ϕ 1 U I 1 ϕ 2 } q i+1 ; ϕ is ϕ 1 U [1:b] ϕ 2 : τ i = ϕ, by prop. 4.2 either τ i+1 = ϕ 2 or τ i+1 = ϕ 1 (ϕ 1 U [1:b 1] ϕ 2 ) thus ϕ 2 q i+1 or {ϕ 1, ϕ 1 U [1:b 1] ϕ 2 } q i+1 ; ϕ is ϕ 1 U [1:1] ϕ 2 : τ i = ϕ, by prop. 4.3 τ i+1 = ϕ 2 thus ϕ 2 q i+1 ; ϕ is ϕ 1 W I ϕ 2 : and l(i) > 1, τ i = ϕ, by prop. 4.4 either τ i+1 = ϕ 2 or τ i+1 = ϕ 1 W I 1 ϕ 2 thus either ϕ 2 q i+1 or ϕ 1 W I 1 ϕ 2 q i+1 ; ϕ is ϕ 1 W [1:b] ϕ 2 : τ i = ϕ, by prop. 4.5 either τ i+1 = ϕ 1 ϕ 2 or τ i+1 = ϕ 1 (ϕ 1 W [1:b 1] ϕ 2 ), thus either {ϕ 1, ϕ 2 } q i+1 or {ϕ 1, ϕ 1 W [1:b 1] ϕ 2 } q i+1 ; ϕ is ϕ 1 W [1:1] ϕ 2 : τ i = ϕ, by prop. 4.6 τ i+1 = ϕ 1 thus ϕ 1 q i+1 ; ϕ is ϕ 1 U [1: ] ϕ 2 : τ i = ϕ, by prop. 4.7 either τ i+1 = ϕ 2 or τ i+1 = ϕ 1 (ϕ 1 U [1: ] ϕ 2 ), thus either ϕ 2 q i+1 or {ϕ 1, ϕ 1 U [1: ] ϕ 2 } q i+1 ; ϕ is ϕ 1 W [1: ] ϕ 2 : τ i = ϕ, by prop. 4.8 either τ i+1 = ϕ 2 ϕ 1 or τ i+1 = ϕ 1 (ϕ 1 W [1: ] ϕ 2 ), thus either {ϕ 2, ϕ 1 } q i+1 or {ϕ 1, ϕ 1 W [1: ] ϕ 2 } q i+1. So we can conclude that ρ is indeed an infinite run over the states of A φ. Now we have to prove that τ is accepted by A φ, that is ρ is an accepting run. τ = φ so φ q 0, by definition of Q 0, q 0 Q 0. Thus ρ starts with an initial state. Suppose there is a formula ψ Closure(φ) such that ψ is ϕ 1 U [1: ] ϕ 2, then F ψ F. Suppose ρ does not visit the states of F ψ infinitely often. Then i : j i ϕ 2 / q j and ψ q j. Thus i : j i τ j = ϕ 2 and τ j = ψ. But by definition of the satisfaction relation, if τ i = ψ then there is j > i s.t. τ j = ϕ 2. So we conclude that ρ visits the states F ψ infinitely often. Finally, suppose there is no formula of the form ϕ 1 U [1: ] ϕ 2 Closure(φ), then A φ accepts all infinite runs and, in this case, ρ. Theorem 3. The proposed algorithm for checking the satisfiability of a formula φ of MIITL is O(2 N K ), where K is the biggest integer constant appearing in the formula and N is the number of propositions, conjunctions, disjunctions and temporal operators. Proof. The algorithm starts by transforming φ into the equivalent formula φ. Note that all transformations only create a constant number of new subformulas, thus φ is linear in the length of φ. Since the size of Closure(φ ) is O(N K) the number of states in A φ is O(2 N K ). 13
26 14
27 Chapter 4 PLTL PLT L (or LT L) was first introduced by Amir Pnueli [Pnu77] for program verification. This pioneer work brought numerous applications, such as model checking, temporal reasoning in medicine and in natural language processing, temporal databases, etc. Since then, there has been an extensive research on this subject. For instance in [GPSS80], Gabbay shows the decidability of PLT L and provides a sound and complete Hilbert-style axiom system, as well as a PSPACE-complete algorithm for the satisfiability problem. We now recall the syntax and semantics of PLTL as in [GHLN08]. Given a finite set P of propositions, formulas in PLTL are inductively defined as follows. ϕ ::= p ϕ ϕ ϕ ϕ Uϕ ϕ where p P, U is the Until operator and is the Next operator. Definition 19. A PLTL-structure M is a pair (N, V M ) where N is the set of natural numbers and V M : N 2 P maps each state n N into a subset of P. Definition 20. The truth of a formula ϕ in the state j of a PLTL-structure M, which is denoted by M, j = ϕ, is inductively defined as follows: M, j = ϕ, with ϕ P, ϕ V M (j); M, j = ϕ M, j = ϕ; M, j = ϕ ψ M, j = ϕ and M, j = ψ; M, j = ϕ M, j + 1 = ϕ; M, j = ϕ Uψ there is k j M, k = ψ and for every j i < k M, i = ϕ. Given a formula ϕ in the context of PLTL, we denote by n ϕ the formula that results by applying the operator n-times to ϕ. Note that given a PLTL-structure M and a formula ϕ, M, j = n ϕ M, j + n = ϕ. 15
28 16
29 Chapter 5 Equivalence between PLTL and MIITL 5.1 PLT L PLT L (or LT L) was first introduced by Amir Pnueli [Pnu77] for program verification. This pioneer work brought numerous applications, such as model checking, temporal reasoning in medicine and in natural language processing, temporal databases, etc. Since then, there has been an extensive research on this subject. For instance in [GPSS80], Gabbay shows the decidability of PLT L and provides a sound and complete Hilbert-style axiom system, as well as a PSPACE-complete algorithm for the satisfiability problem. We now recall the syntax and semantics of PLTL as in [GHLN08]. Given a finite set P of propositions, formulas in PLTL are inductively defined as follows. ϕ ::= p ϕ ϕ ϕ ϕ Uϕ ϕ where p P, U is the Until operator and is the Next operator. Definition 21. A PLTL-structure M is a pair (N, V M ) where N is the set of natural numbers and V M : N 2 P maps each state n N into a subset of P. Definition 22. The truth of a formula ϕ in the state j of a PLTL-structure M, which is denoted by M, j = ϕ, is inductively defined as follows: M, j = ϕ, with ϕ P, ϕ V M (j); M, j = ϕ M, j = ϕ; M, j = ϕ ψ M, j = ϕ and M, j = ψ; M, j = ϕ M, j + 1 = ϕ; M, j = ϕ Uψ there is k j M, k = ψ and for every j i < k M, i = ϕ. Given a formula ϕ in the context of PLTL, we denote by n ϕ the formula that results by applying the operator n-times to ϕ. 17
30 Note that given a PLTL-structure M and a formula ϕ, M, j = n ϕ M, j + n = ϕ. 5.2 Equivalence In this section we prove the equivalence between PLTL and our new logic MIITL, proving that both have the same expressive power. Proposition 9. In the context of MIITL we have that ϕ U [a:b] ψ, with a, b N, is equivalent to i 1 j=1 ϕ j). b i=a ( ψ i Proof. τ = (ϕ U [a:b] ψ) t [a : b] : τ t = ψ and t [1 : t 1] τ t = ϕ τ = b i=a i 1 ( ψ i ϕ j) j=1 Definition 23. Let ϕ be a formula of MIITL, over the set of propositions P, we define the formula ϕ in PLTL over the same set of propositions as follows: ϕ, if ϕ P ϕ is (ψ ) if ϕ is ψ (ϕ 1 ) (ϕ 2 ) if ϕ is ϕ 1 ϕ 2 b ( ( i (ϕ i 1 2 )) ( j (ϕ 1 ))) if ϕ is ϕ 1 U [a:b] ϕ 2 i=a j=1 ( a 1 ( ( ( i (ϕ 1 )) ( a (ϕ 2 )))) a+1 ( (ϕ 1 ) U(ϕ 2 )) a ) ( i (ϕ 1 )) if ϕ is ϕ 1 U [a: ] ϕ 2 i=1 i=1 Definition 24. Let ϕ be a formula of PLTL, over the set of propositions P, we define the formula ϕ in MIITL over the same set of propositions as follows: ϕ, if ϕ P ϕ is (ψ ) if ϕ is ψ (ϕ 1 ) (ϕ 2 ) if ϕ is ϕ 1 ϕ 2 (ψ ) 1, if ϕ is ψ (ϕ 1 ) ((ϕ 1 ) U [0: ] (ϕ 2 )) if ϕ is ϕ 1 Uϕ 2 Definition 25. Given a state sequence τ over the set of propositions P, we define the PLT L-structure M τ over the same set of propositions as follows: V Mτ (i) is the i th state of τ. Definition 26. Given a PLTL-structure M the state sequence τ M is (V M (0), V M (1), V M (2),...). Note that τ is τ Mτ and M is M τm. 18
31 Theorem 4. Let ϕ be a formula of PLTL and M a PLTL-structure, M, t = ϕ τ t M = ϕ. Proof. Proof done by induction on the complexity of ϕ. [Base] ϕ P: M, t = ϕ ϕ V M (t) ϕ s t τ t M = ϕ. [Step] ϕ is ψ: M, t = ϕ M, t = ψ M, t = ψ (IH) τ t M = ψ τ t M = (ψ ) τ t M = ϕ ; ϕ is ϕ 1 ϕ 2 : M, t = ϕ M, t = ϕ 1 and M, t = ϕ 2 (IH) τ t M = ϕ 1 and τt M = ϕ 2 τ t M = ϕ ; ϕ is ψ: M, t = ϕ M, t + 1 = ψ (IH) τ t+1 M = ψ τ t M = (ψ ) 1 τ t M = ϕ ; ϕ is ϕ 1 Uϕ 2 : M, t = ϕ there is k t M, k = ϕ 2 and for every t i < k M, i = ϕ 1 (IH) there is k t τ k M = ϕ 2 and for every t i < k τi M = ϕ 1 τt M = (ϕ 1 ) ((ϕ 1 ) U [0: ] (ϕ 2 )) τ t M = ϕ. Theorem 5. Let ϕ be a formula of MIITL and τ a state sequence, τ t = ϕ M τ, t = ϕ. Proof. Proof done by induction on the complexity of ϕ. [Base] ϕ P: τ t = ϕ ϕ s t ϕ V Mτ (t) M τ, t = ϕ. [Step] ϕ is ψ: τ t = ϕ τ t = ψ (IH) M τ, t = ψ M τ, t = (ψ ) M τ, t = ϕ ; ϕ is ϕ 1 ϕ 2 : τ t = ϕ τ t = ϕ 1 and τ t = ϕ 2 (IH) M τ, t = ϕ 1 and M τ, t = ϕ 2 M τ, t = ϕ ; ( b ϕ is ϕ 1 U [a:b] ϕ 2 : τ t = ϕ (prop. 9) τ t = i=a ( ϕ i 2 i 1 j=1 ϕ j 1) ) for some i {a,..., b} τ t = ϕ i 2 and for every j {1,..., i 1} τt = ϕ j 1 for some i {a,..., b} τt+i = ϕ 2 and for every j {1,..., i 1} τ t+j = ϕ 1 (IH) for some i {a,..., b} M τ, t + i = ϕ 2 and for every j {1,..., i 1} M τ, t + j = ϕ 1 M τ, t = b ( ( i (ϕ i 1 2 )) ( j (ϕ 1 ))) M τ, t = ϕ ; i=a ϕ is ϕ 1 U [a: ] ϕ 2 : τ t = ϕ s [a : ] : τ s+t = ϕ 2 and s [1 : t 1] τ s +t = ϕ 1 either 1. or 2. holds 1. τ a+t = ϕ 2 and τ t+s = ϕ 1 for all 0 < s < a (IH) M, t + a = ϕ 2 and M, t + s = ϕ 1 for all 0 < s < a M, t = a 1 i (ϕ 1 ) ( a (ϕ 2 )); i=1 2. s a + 1 : τ s+t = ϕ 2 and for all 0 < s < s τ s +t = ϕ 1 (IH) s a + 1 : M τ, s + t = ϕ 2 and for all 0 < s < s M τ, t + s = ϕ 1 s a t : M τ, s = ϕ 2, for all a t s < s M τ, s = ϕ 1 and for all 0 < s a M τ, t + s = ϕ 1 M, t + a + 1 = (ϕ 1 ) U (ϕ 2 ) and M, t = a i (ϕ 1 ) M, t = a i (ϕ 1 ) ( a+1 ((ϕ 1 ) U(ϕ 2 ))). i=1 i=1 j=1 19
32 Proposition 10. Let ϕ be a formula of MIITL, ϕ is equivalent to (ϕ ). Reciprocally let ψ be a formula of PLTL, ψ is equivalent to (ψ ). Proof. Let ϕ be a formula of MIITL and τ any state sequence. By theorem 5 τ = ϕ M τ, 0 = ϕ (theorem 4) τ Mτ = (ϕ ) (τ Mτ is τ) τ = (ϕ ). Let ψ be a formula of PLTL and M a PLTL-structure. By theorem 4 M, 0 = ψ τ M = ψ (theorem 5) M τm, 0 = (ψ ) (M τm is M) M, 0 = (ψ ). Corollary 1. Given a formula ϕ in the context of MIITL, ϕ is satisfiable in MIITL ϕ is satisfiable in PLTL. Proof. Suppose ϕ is satisfiable in the context of MIITL. Then there is τ, such that τ = ϕ. By theorem 5 M τ, 0 = ϕ, thus ϕ is satisfiable in the context of PLTL. Now suppose ϕ is satisfiable in the context of PLTL then there is a PLTL-structure M such that M, 0 = ϕ. By theorem 4 τ M = (ϕ ) and by proposition 10 τ M = ϕ. Corollary 2. Given a formula ϕ in the context of PLTL, ϕ is satisfiable in PLTL ϕ is satisfiable in MIIT L. Proof. Suppose ϕ is satisfiable in the context of PLTL then there is a PLTL-structure M such that M, 0 = ϕ. By theorem 4 τ M = ϕ. Now suppose ϕ is satisfiable in the context of MIITL then there is a state sequence τ such that τ = ϕ. By theorem 5 M τ, 0 = (ϕ ) and by proposition 10 M τ, 0 = ϕ. 20
33 Chapter 6 Strongly complete deductive calculus for MIITL In this section we explore the fragment MIITL of MIITL, where all Until operators are constrained over bounded intervals and having the same semantics as MIIT L. We propose a strongly complete Hylbert-style axiom system for this fragment. Let L be the set of all formulas in MIITL. Deduction We present the axioms and the rules of the axiom system for MIITL : a) (ϕ (ψ ϕ)); b) ((ϕ (ψ δ)) ((ϕ ψ) (ϕ δ))); c) ((( ϕ) ( ψ)) (ψ ϕ)); ( b 1. (ϕ U [a:b] ψ) k 2. ( (ϕ i ) ( ϕ) i ); i=a ( ψ i+k i 1 j=1 ϕ j+k)) ; 3. ((ϕ ψ) i (ϕ i ψ i )); 4. (ϕ 0 ϕ); for each ϕ, ψ, δ L and a, b, i, k N; together with Modus Ponens (MP) i.e the rule: ϕ (ϕ ψ) ψ. Definition 27. Given a formula ϕ L, a derivation sequence for Γ ϕ is a sequence (ψ 1, J 1 )...(ψ n, J n ) such that: 21
34 ψ i L; J i is a justification for ψ i, i.e. J i is either: Hyp, in which case ψ i Γ or; Ax j, in which case ψ i is an axiom of type j or; MP k 1, k 2, in which case k 1, k 2 < i, and ψ k1 is α and ψ k2 is (α ψ i ) for some α L ψ n is ϕ. In order to prove the completeness of the axiom system we need some auxiliary results. Theorem 6 (Metatheorem of deduction (MTD)). Let Γ be a set of formulas, if Γ {ψ} ϕ then Γ (ψ ϕ). Proof. Let w = (ψ 1, J 1 )...(ψ n, J n ) be a derivation sequence for Γ {ψ} ϕ. We show by induction on the length of w that there exists a derivation sequence w = (ψ 1, J 1 )...(ψ n, J n ) for Γ (ψ ϕ). [Base] J 1 is an hypothesis or an axiom. J 1 is an hypothesis and ϕ is not ψ. Then let w be: 1 ϕ Hyp 2 (ϕ (ψ ϕ)) Ax a) 3 (ψ ϕ) MP 1, 2 J 1 is an hypothesis and ϕ is ψ. Then let w be: 1 (ψ (ψ ψ)) Ax a) 2 (ψ ((ψ ψ) ψ)) Ax a) 3 ((ψ ((ψ ψ) ψ)) ((ψ (ψ ψ)) (ψ ψ))) Ax b) 4 ((ψ (ψ ψ)) (ψ ψ)) MP 2, 3 5 (ψ ψ) MP 1, 4 22
35 J 1 is an axiom. Then let w be: 1 ϕ Ax 2 (ϕ (ψ ϕ)) Ax a) 3 (ψ ϕ) MP 1, 2 [Step] J n is an hypothesis or an axiom, then the proof is similar as before. J n is MP i,k, then k is such that ψ k = (ψ i ϕ). Take the derivation sequences (ψ 1, J 1 )...(ψ i, J i ) and (ψ 1, J 1 )...(ψ k, J k ). Then by induction hypothesis there are derivation sequences w with length u and w with length v for Γ (ψ ψ i ) and Γ (ψ (ψ i ϕ)), respectively. Let w be the concatenation of w and w concatenated with the following steps: u + v + 1 ((ψ (ψ i ϕ)) ((ψ ψ i ) (ψ ϕ))) Ax b) u + v + 2 ((ψ ψ i ) (ψ ϕ)) MP u + v, u + v + 1 u + v + 3 (ψ ϕ) MP u, u + v + 2 Definition 28. Given a set of formulas Γ, Γ is said to be consistent if there is no formula ϕ L such that Γ ϕ and Γ ( ϕ). Proposition 11. Let Γ be a set of formulas, if Γ is inconsistent, then Γ ψ, for all ψ L. Proof. Γ is inconsistent so Γ ϕ and Γ ( ϕ), for some ϕ L. Let ψ L and consider the following derivation sequence for Γ {ϕ, ϕ} ψ. 23
36 1 ϕ Hyp 2 ( ϕ) Hyp 3 ( ( ψ)) ψ Thm 4 ( ϕ) (ϕ ( ϕ)) Ax a) 5 ϕ ( ϕ) MP 2, 4 6 ϕ (( ψ) ϕ) Ax a) 7 (( ψ) ϕ) MP 1, 6 8 (( ψ) ϕ) (( ϕ) ( ( ψ))) Ax c) 9 ( ϕ) ( ( ψ)) MP 7, 8 10 ( ( ψ)) MP 2, 9 11 ψ MP 10, 3 Then, since Γ ϕ and Γ ( ϕ), we conclude that Γ ψ. Proposition 12. Let Γ be a set of formulas and ϕ L, if Γ ( ϕ) then Γ {ϕ} is consistent. Proof. The proof is done by contraposition. Assume that Γ {ϕ} is not consistent, then by proposition 11 Γ {ϕ} ( ϕ). Using MTD, it follows that Γ (ϕ ( ϕ)). It is easy to check that ((ϕ ( ϕ)) ( ϕ)) is a theorem. So by applying MP, Γ ( ϕ). Proposition 13. Let Γ be a consistent set of formulas and ϕ L, if Γ ϕ then Γ {ϕ} is consistent. Proof. Suppose that Γ is consistent, Γ ϕ and Γ {ϕ} is not consistent. Thus there is a formula ψ such that Γ {ϕ} ψ and Γ {ϕ} ( ψ). So by MTD Γ (ϕ ψ) and Γ (ϕ ( ψ)). Γ ϕ is a hypothesis thus Γ ψ and Γ ( ψ) that is Γ is inconsistent. Definition 29. A set Γ L is said to be maximal consistent (MCS) if it is consistent and none of its proper extensions is consistent. Proposition 14. Let Γ be an MCS, then ϕ Γ ϕ / Γ, for all ϕ L. Proof. ( ) ϕ Γ, suppose that ϕ Γ, then Γ would be inconsistent. ( ) ϕ / Γ. Suppose that Γ ( ϕ) then by proposition 13, Γ { ϕ} is consistent. This would mean that Γ has a proper consistent extension, which contradicts the hypothesis that Γ is an MCS. So Γ ( ϕ) and by proposition 12 Γ {ϕ} is consistent. Hence ϕ Γ since Γ has no proper consistent extensions. Proposition 15. Let Γ be an MCS, then ϕ Γ Γ ϕ, for all ϕ L. Proof. ( ) ϕ Γ then clearly Γ ϕ using hypothesis as derivation sequence. 24
37 ( ) Γ ϕ then by proposition 13 Γ {ϕ} is consistent. Suppose ϕ / Γ then there would exist a proper consistent extension of Γ. Soundness We want to prove that all axioms are valid, that is, for each axiom, all state sequences satisfy it. Proposition 16. Axioms a), b) and c) are sound. These three axioms are the classical propositional calculus axioms. So we omit the proof of proposition 16 since it is standard. Proposition 17. Axiom 1. is sound. Proof. Let τ be any state sequence. Observe that τ = (ϕ U [a:b] ψ) k (prop. 1) τ k = ϕ U [a:b] ψ t [a : b] : τ t+k = ψ and t [1 : t 1] τ t +k = ϕ for some i {a,..., b} τ i+k = ψ and for every j {1,..., i 1} τ j+k = ϕ (prop. 1) for some i {a,..., b} τ = ψ i+k and for every j {1,..., i 1} τ = ϕ j+k τ = b i=a i 1 ( ψ i+k j=1 ϕ j+k) Proposition 18. Axiom 2. is sound. Proof. Let τ be any state sequence. Observe that τ = (ϕ i ) τ = ϕ i (prop. 1) τ i = ϕ τ i = ( ϕ) (prop. 1) τ = ( ϕ) i Proposition 19. Axiom 3. is sound. 25
38 Proof. Let τ be any state sequence. Observe that τ = (ϕ 1 ϕ 2 ) i (prop. 1) τ i = ϕ 1 ϕ 2 τ i = ϕ 1 and τ i = ϕ 2 (prop. 1) τ = ϕ i 1 and τ = ϕi 2 τ = (ϕ i 1 ϕi 2 ) Proposition 20. Axiom 4. is sound. Proof. Let τ be any state sequence. Observe that τ = ϕ 0 (prop. 1) τ 0 = ϕ τ = ϕ Proposition 21. The Modus Ponens rule is sound. We omit the proof of proposition 21, since it follows a standard way. Corollary 3. The Calculus for MIITL is sound. Completeness In order to prove completeness we build an MCS from any consistent set of formulas, as well as a state sequence that satisfies it. Definition 30. Let g : N L be a enumeration of all formulas in MIITL. Definition 31. Let Γ be a set of formulas, Γ + is defined as follows: Γ 0 = Γ. Γ i {g(i)} Γ i+1 = Γ + = Γ i i=0 Γ i Γ i ( g(i)) otherwise Proposition 22. Let Γ be a consistent set of formulas, then Γ + is a maximal consistent set. 26
39 Proof. First we prove by induction that Γ i is consistent, for i N. [Base] Γ 0 is consistent by hypothesis. [Step] If Γ i+1 = Γ i, by induction hypothesis Γ i+1 is consistent. If Γ i+1 = Γ i {g(i)}, Γ i ( g(i)), so by proposition 12, Γ i+1 is consistent. Now we prove by contradiction that Γ + is consistent. Suppose Γ + is not consistent. Then there is a finite set Ψ Γ s.t., for some ϕ, Ψ ϕ and Ψ ( ϕ). Let m be such that Ψ Γ m. But we proved that Γ m is consistent and Ψ Γ m, so Ψ is consistent, which contradicts the assumption. As before, we prove by contradiction that Γ + is an MCS. Suppose that it is not an MCS. Then there is ϕ Γ + and {ϕ} Γ + is consistent. Let m be such that ϕ = g(m), ϕ / Γ m+1, thus Γ m ( ϕ). That would mean that {ϕ} Γ + ϕ and {ϕ} Γ + ϕ, which implies that {ϕ} Γ + is inconsistent, contradicting what we proved before. Lemma 1. Let Γ be a maximal consistent set of formulas and k N, then: 1. ϕ k Γ ( ϕ) k / Γ. 2. (ϕ 1 ϕ 2 ) k Γ {ϕ k 1, ϕk 2 } Γ. 3. (ϕ U [a:b] ψ) k Γ for some t [a : b] : ψ t+k Γ and for all t [1 : t 1] ϕ t +k Γ. Proof. Property 1. ( ) Suppose ϕ k Γ, then by consistency (ϕ k ) / Γ. Now suppose ( ϕ) k Γ, using axiom 2. (ϕ k ) Γ contradicting the assumption. So ( ϕ) k / Γ. ( ) Suppose ( ϕ) k / Γ. If ϕ k / Γ then by maximal consistency (ϕ k ) Γ and using axiom 2. ( ϕ) k Γ, contradiction. So ϕ k Γ, For property 2. ( ) Suppose (ϕ 1 ϕ 2 ) k Γ, then by axiom 3. ϕ k 1 ϕk 2 Γ. Which implies that {ϕk 1, ϕk 2 } Γ. ( ) Suppose {ϕ k 1, ϕk 2 } Γ, then ϕk 1 ϕk 2 Γ. Using axiom 3. (ϕ 1 ϕ 2 ) k Γ. For property 3. ( ) Suppose (ϕ U [a:b] ψ) k Γ. Axiom 1. states that (ϕ U [a:b] ψ) k by MP Γ b i=a ( ψ i+k i 1 j=1 ϕ j+k). By proposition 15 b i=a b i=a ( ψ i+k i 1 j=1 ϕ j+k) thus ( ψ i+k i 1 ϕ j+k) Γ. Γ is an MCS, hence ψ i+k i 1 ϕ j+k Γ for some i [a : b]. Thus there is i [a : b] : ψ i+k Γ and j=1 j [1 : i 1] ϕ j+k Γ. ( ) Suppose that t [a : b] : ψ t+k Γ and t [1 : t 1] ϕ t +k Γ. Take the least t s.t. ψ t+k Γ and t [a : b] then ϕ t +k Γ t [1 : t 1]. Γ is an MCS, thus ψ t+k t 1 ϕ j+k Γ, so, clearly b i=a (ϕ 1 U [a:b] ϕ 2 ) k Γ. ( ψ i+k i 1 j=1 ϕ j+k) Γ. By axiom 1. Γ (ϕ 1 U [a:b] ϕ 2 ) k and by proposition 15 j=1 j=1 27
40 Now we define a state sequence for every MCS. Definition 32. p(γ, i) = {ϕ : ϕ i Γ, ϕ P}. Definition 33. Let τ Γ be the state sequence, s.t. τ Γ = (p(γ, 0), p(γ, 1), p(γ, 2),...). Theorem 7. Let Γ be an MCS then τ i Γ = ϕ ϕi Γ, for all ϕ L. Proof. Proof done by strong induction on the complexity of ϕ. [Base] ϕ is a proposition: τ i Γ = ϕ ϕ s i ϕ p(γ, i) ϕ i Γ [Step] ϕ is ψ: τ i Γ = ψ τ i Γ = ψ ψ i / Γ ( ψ) i Γ (IH) (property 1. of lemma 1) ϕ i Γ ϕ is ϕ 1 ϕ 2 : τ i Γ = ϕ 1 ϕ 2 τ i Γ = ϕ 1 and τ i Γ = ϕ 2 ϕ i 1 Γ and ϕi 2 Γ (IH) (property 2. of lemma 1) (ϕ 1 ϕ 2 ) i Γ ϕ is ϕ 1 U I ϕ 2 and I = [a : b]: τ i Γ = ϕ 1 U I ϕ 2 t [a : b] : τ i+t Γ = ϕ 2 and t [1 : t 1] τ i+t Γ = ϕ 1 (IH) t [a : b] : ϕ i+t 2 Γ and t [1 : t 1] ϕ i+t 1 Γ (property 3. of lemma 1) (ϕ 1 U I ϕ 2 ) i Γ 28
41 Corollary 4. Let Γ L, if Γ is consistent, then Γ + ϕ τ Γ + = ϕ, for every formula ϕ L. Proof. Suppose Γ is consistent. By proposition 22 Γ + is a maximal consistent set. By theorem 7 τ i Γ + = ϕ ϕ i Γ +, for all ϕ L. Thus for i = 0 and using axiom 4., τ Γ + = ϕ ϕ Γ +. By proposition 15 τ Γ + = ϕ Γ + ϕ, for all ϕ L. Now we are able to prove that the given axiom system is strongly complete. Theorem 8 (Strong Completeness). If Γ = ϕ, then Γ ϕ. Proof. Suppose Γ = ϕ, assume by contradiction that Γ ϕ then Γ ( ( ϕ)) then (prop. 12) Γ { ϕ} is consistent then (cor. 4) Let Ψ = Γ { ϕ} τ Ψ + = Γ τ Ψ + = ϕ then (def. entailed satisfaction) Hence Γ = ϕ 29
42 30
43 Chapter 7 Relation between MITL and MIITL MITL MITL is the fragment of MITL where all the Until operators are constrained by bounded intervals of the type [a, b]. Relationship In this section we show that MITL and MIITL have many similarities. Indeed, we prove that for every formula ϕ in MITL there is a formula ϕ in MIITL, such that ϕ is satisfiable in the context of MITL ϕ is satisfiable in the context of MIITL. Definition 34. Given a rational timed state sequence σ = (s, I), D σ = {n N : for all I i in I there is k Z s.t. l(i i ) = k n }. Note that given a rational timed state sequence σ = (s, I), for all I i in I, r(i i ) = l(i i+1 ). This is the reason why the definition of D σ only considers the left endpoints of intervals. Definition 35. Given a rational timed state sequence σ = (s, I), we define its least common multiple (LCM σ ) as the minimum of D σ, if D σ ;, if D σ =. Intuitively, for every rational timed state sequence σ with finite LCM σ, its LCM σ is the smallest natural number such that for every interval I i in σ s interval sequence, l(i i ) = j/lcm σ, for some j N and r(i i ) = k/lcm σ, for some k N. Recall the definition of σ in definition 3. Proposition 23. Let σ be a rational timed state sequence with LCM σ equal to m. For all a N and for all t, t ] a m, a+1 [ m, σ (t) = σ (t ). 31
44 Proof. t ] a m, a+1 [ m thus t = a+ɛ m, ɛ ]0, 1[. Suppose t I i. By definition of least common multiple l(i i ) = m k and l(i i+1) = k m for some k, k N. If k = k then I i = { } k m, which contradicts the hypothesis, because a+ɛ m I i. Hence k > k and thus ] a m, a+1 [ m Ii. Definition 36. Given a formula ϕ in the context of MITL, we define its least common multiple (LCM ϕ ) as the minimum of the LCM σ of all rational timed state sequences σ that satisfy ϕ. It is important to note that not every rational timed state sequence σ has a finite least common multiple. For example, suppose p P and let σ = (s, I), s = ({p}, {p},...) and I = ([0, 1.1[, [1.1, 2.01[, [2.01, 3.001[, [3.001, [,...). σ clearly has an infinite least common multiple. Imposing that all formulas in the context of MITL have a finite least common multiple would be a very bold statement. Lemma 2. Let σ = (s, I) be a rational timed state sequence with least common multiple equal to m, let r and r be two rationals s.t. r, r ] a m, a+1 [ m, for some a N. Then σ r = Q ϕ σ r = Q ϕ, for any formula ϕ in MITL. Proof. Proof done by induction on the complexity of ϕ. [Base] ϕ is a proposition: σ r = Q ϕ ϕ σ (r) (prop. 23) ϕ σ (r ) σ r = Q ϕ. [Step] ϕ is ψ: σ r = Q ϕ σ r = Q ψ (IH) σ r = Q ψ σ r = Q ψ σ r = Q ϕ; ϕ is ϕ 1 ϕ 2 : σ r = ϕ σ r = Q ϕ 1 and σ r = ϕ 2 (IH) σ r = Q ϕ 1 and σ r = Q ϕ 2 σ r = Q ϕ; ϕ is ϕ 1 U [c,d] ϕ 2 : σ r = Q ϕ t [c, d] : σ r+t = Q ϕ 2 and t ]0, t[ σ r+t t [c, d] + r : σ t = Q ϕ 2 and t ]r, t[ σ t = Q ϕ 1 either 1., 2. or 3. holds = Q ϕ 1 there is 1. t [c, d] + r then (IH) t [c, d] + r : σ t = Q ϕ 2 and t ]r, t[ σ t = Q ϕ 1 ; 2. t < c + r. t [c, d] + r then t c + r and thus t [c + r, c + r [. c is an integer thus [c + r, c + r [ ] b m, b+1 [ m, for some b N. By IH σ c+r = Q ϕ 2 and σ t = Q ϕ 1 t ]r, c + r [; 3. t > d + r. t [c, d] + r then t d + r and thus t ]d + r, d + r]. d is an integer thus ]d + r, d + r] ] b m, b+1 [ m, for some b N. By IH σ d+r = Q ϕ 2 and σ t = Q ϕ 1 t ]r, d + r [. Clearly 1., 2. or 3. hold σ r = Q ϕ. Definition 37. In the context of MITL, given a timed state sequence σ = (s, I) and a natural n with n I i, σ /n is the following state sequence ( s, Ī ), s = (s 0, s 1,..., s i 1, s i, s i, s i...) and Ī = (I 0, I 1,..., I i 1, I i [0, n], ]n, n + 1], ]n + 1, n + 2],...). Proposition 24. Let ϕ be a formula in the context of MITL and σ a rational timed state sequence such that σ /n = Q ϕ, for some n N. Then ϕ has a finite least common multiple. Proof. Suppose σ /n = (s, I ), n I j and for all I i in I l(i i ) = a i b i. Let m = Thus D σ/n and the least common multiple of σ /n is finite. j b i, clearly m D σ/n. i=0 32
45 Definition 38. Given a natural number m we define: 2a, i = m a h m : R 0 N, s.t. h m (i) =, a N 2 im + 1, otherwise Definition 39. Given an interval I and m N, we extend the definition of h m as follows: h m (I) = {j N : j = h m (i) and i I}. Definition 40. Given a formula ϕ in the context of MITL and natural numbers n and m, we define the formula g n m(ϕ) in the context of MIITL as follows: g n m(ϕ) is ( g i+n m 2bm (ϕ 2 ) i n+i n i=2am j=n n n 1, n is even where for all n N, n = n n is odd ϕ, ϕ P g n m(ψ), ϕ is ψ g n m(ϕ 1 ) g n m(ϕ 2 ), ϕ is ϕ 1 ϕ 2 g j+n m (ϕ 1 ) j) ϕ is ϕ 1 U [a,b] ϕ 2 Proposition 25. Given a formula ϕ 1 U [a,b] ϕ 2, a state sequence τ and two natural numbers n, m. We have that τ n = g n m(ϕ 1 U [a,b] ϕ 2 ) t [2am : 2bm] + n s.t. τ t = g t m(ϕ 2 ) and if n and t are even then t [n + 1 : t 1] τ t = g t m(ϕ 1 ); if n is even and t is odd then t [n + 1 : t] τ t = g t m(ϕ 1 ); if n and t are odd then t [n : t] τ t = g t m(ϕ 1 ); if n is odd and t is even then t [n : t 1] τ t = g t m(ϕ 1 ). Proof. We consider 2 cases. n is even, thus n n = 1. τ n = g n m(ϕ) τ n = i [2am : 2bm] s.t. τ n = g i+n m s.t. τ t = g t m(ϕ 2 ) and τ = t j=n+1 2bm i=2am (ϕ 2 ) i and τ n = i+n n j=1 ( g i+n m g j m(ϕ 1 ) j, 1. or 2. holds (ϕ 2 ) i i+n n j=1 g j+n m (ϕ 1 ) j) there is g j+n m (ϕ 1 ) j there is t [2am : 2bm] + n 1. if t is even, then t = t 1. t [2am : 2bm] + n s.t. τ t = g t m(ϕ 2 ) and t [n + 1 : t 1] τ t = g t m(ϕ 1 ); g t m(ϕ 1 ). 2. if t is odd, then t = t. t [2am : 2bm] + n s.t. τ t = g t m(ϕ 2 ) and t [n + 1 : t] τ t = n is odd, thus n n = 0. τ n = g n m(ϕ) τ n = i [2am : 2bm] s.t. τ n = g i+n m s.t. τ t = g t m(ϕ 2 ) and τ = t j=n 2bm i=2am (ϕ 2 ) i and τ n = i+n n j=0 g j m(ϕ 1 ) j, 1. or 2. holds 33 ( g i+n m (ϕ 2 ) i i+n n j=0 gm j+n (ϕ 1 ) j) there is g j+n m (ϕ 1 ) j there is t [2am : 2bm] + n
Chapter 3: Propositional Calculus: Deductive Systems. September 19, 2008
Chapter 3: Propositional Calculus: Deductive Systems September 19, 2008 Outline 1 3.1 Deductive (Proof) System 2 3.2 Gentzen System G 3 3.3 Hilbert System H 4 3.4 Soundness and Completeness; Consistency
More informationAn On-the-fly Tableau Construction for a Real-Time Temporal Logic
#! & F $ F ' F " F % An On-the-fly Tableau Construction for a Real-Time Temporal Logic Marc Geilen and Dennis Dams Faculty of Electrical Engineering, Eindhoven University of Technology P.O.Box 513, 5600
More informationApplied 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 informationClassical 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 informationSocratic Proofs for Some Temporal Logics RESEARCH REPORT
Section of Logic and Cognitive Science Institute of Psychology Adam Mickiewicz University in Poznań Mariusz Urbański Socratic Proofs for Some Temporal Logics RESEARCH REPORT Szamarzewskiego 89, 60-589
More informationInformal Statement Calculus
FOUNDATIONS OF MATHEMATICS Branches of Logic 1. Theory of Computations (i.e. Recursion Theory). 2. Proof Theory. 3. Model Theory. 4. Set Theory. Informal Statement Calculus STATEMENTS AND CONNECTIVES Example
More information02 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 informationPropositional Dynamic Logic
Propositional Dynamic Logic Contents 1 Introduction 1 2 Syntax and Semantics 2 2.1 Syntax................................. 2 2.2 Semantics............................... 2 3 Hilbert-style axiom system
More informationPř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 informationInterpolation via translations
Interpolation via translations Walter Carnielli 2,3 João Rasga 1,3 Cristina Sernadas 1,3 1 DM, IST, TU Lisbon, Portugal 2 CLE and IFCH, UNICAMP, Brazil 3 SQIG - Instituto de Telecomunicações, Portugal
More informationPropositional 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 informationMadhavan Mukund Chennai Mathematical Institute
AN INTRODUCTION TO LOGIC Madhavan Mukund Chennai Mathematical Institute E-mail: madhavan@cmiacin Abstract ese are lecture notes for an introductory course on logic aimed at graduate students in Computer
More informationIntroduction 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 informationHandbook of Logic and Proof Techniques for Computer Science
Steven G. Krantz Handbook of Logic and Proof Techniques for Computer Science With 16 Figures BIRKHAUSER SPRINGER BOSTON * NEW YORK Preface xvii 1 Notation and First-Order Logic 1 1.1 The Use of Connectives
More informationModal and temporal logic
Modal and temporal logic N. Bezhanishvili I. Hodkinson C. Kupke Imperial College London 1 / 83 Overview Part II 1 Soundness and completeness. Canonical models. 3 lectures. 2 Finite model property. Filtrations.
More informationPropositional 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 informationSyntactic Characterisations in Model Theory
Department of Mathematics Bachelor Thesis (7.5 ECTS) Syntactic Characterisations in Model Theory Author: Dionijs van Tuijl Supervisor: Dr. Jaap van Oosten June 15, 2016 Contents 1 Introduction 2 2 Preliminaries
More informationOn 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 informationFirst-Order Logic. 1 Syntax. Domain of Discourse. FO Vocabulary. Terms
First-Order Logic 1 Syntax Domain of Discourse The domain of discourse for first order logic is FO structures or models. A FO structure contains Relations Functions Constants (functions of arity 0) FO
More informationClassical 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 informationClassical First-Order Logic
Classical First-Order Logic Software Formal Verification Maria João Frade Departmento de Informática Universidade do Minho 2009/2010 Maria João Frade (DI-UM) First-Order Logic (Classical) MFES 2009/10
More information3. Only sequences that were formed by using finitely many applications of rules 1 and 2, are propositional formulas.
1 Chapter 1 Propositional Logic Mathematical logic studies correct thinking, correct deductions of statements from other statements. Let us make it more precise. A fundamental property of a statement is
More information5-valued Non-deterministic Semantics for The Basic Paraconsistent Logic mci
5-valued Non-deterministic Semantics for The Basic Paraconsistent Logic mci Arnon Avron School of Computer Science, Tel-Aviv University http://www.math.tau.ac.il/ aa/ March 7, 2008 Abstract One of the
More informationLearning 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 informationTheoretical Foundations of the UML
Theoretical Foundations of the UML Lecture 17+18: A Logic for MSCs Joost-Pieter Katoen Lehrstuhl für Informatik 2 Software Modeling and Verification Group moves.rwth-aachen.de/teaching/ws-1718/fuml/ 5.
More informationMarie 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 informationExogenous Semantics Approach to Enriching Logics
Exogenous Semantics Approach to Enriching Logics Paulo Mateus, Amílcar Sernadas, and Cristina Sernadas Abstract. The exogenous semantics approach to enriching a logic consists in defining each model in
More informationMathematics 114L Spring 2018 D.A. Martin. Mathematical Logic
Mathematics 114L Spring 2018 D.A. Martin Mathematical Logic 1 First-Order Languages. Symbols. All first-order languages we consider will have the following symbols: (i) variables v 1, v 2, v 3,... ; (ii)
More informationThe Importance of Being Formal. Martin Henz. February 5, Propositional Logic
The Importance of Being Formal Martin Henz February 5, 2014 Propositional Logic 1 Motivation In traditional logic, terms represent sets, and therefore, propositions are limited to stating facts on sets
More informationTemporal logics and explicit-state model checking. Pierre Wolper Université de Liège
Temporal logics and explicit-state model checking Pierre Wolper Université de Liège 1 Topics to be covered Introducing explicit-state model checking Finite automata on infinite words Temporal Logics and
More informationNatural Deduction for Propositional Logic
Natural Deduction for Propositional Logic Bow-Yaw Wang Institute of Information Science Academia Sinica, Taiwan September 10, 2018 Bow-Yaw Wang (Academia Sinica) Natural Deduction for Propositional Logic
More information1. Propositional Calculus
1. Propositional Calculus Some notes for Math 601, Fall 2010 based on Elliott Mendelson, Introduction to Mathematical Logic, Fifth edition, 2010, Chapman & Hall. 2. Syntax ( grammar ). 1.1, p. 1. Given:
More informationOn some Metatheorems about FOL
On some Metatheorems about FOL February 25, 2014 Here I sketch a number of results and their proofs as a kind of abstract of the same items that are scattered in chapters 5 and 6 in the textbook. You notice
More informationOn 3-valued paraconsistent Logic Programming
Marcelo E. Coniglio Kleidson E. Oliveira Institute of Philosophy and Human Sciences and Centre For Logic, Epistemology and the History of Science, UNICAMP, Brazil Support: FAPESP Syntax Meets Semantics
More informationPSPACE-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 informationComplete Axiomatizations for Reasoning about Knowledge and Branching Time
Ron van der Meyden Ka-shu Wong Complete Axiomatizations for Reasoning about Knowledge and Branching Time Abstract Sound and complete axiomatizations are provided for a number of different logics involving
More informationExpressiveness, 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 informationCyclic Proofs for Linear Temporal Logic
Cyclic Proofs for Linear Temporal Logic Ioannis Kokkinis Thomas Studer Abstract Annotated sequents provide an elegant approach for the design of deductive systems for temporal logics. Their proof theory,
More informationLinear Temporal Logic and Büchi Automata
Linear Temporal Logic and Büchi Automata Yih-Kuen Tsay Department of Information Management National Taiwan University FLOLAC 2009 Yih-Kuen Tsay (SVVRL @ IM.NTU) Linear Temporal Logic and Büchi Automata
More informationCombining Propositional Dynamic Logic with Formal Concept Analysis
Proc. CS&P '06 Combining Propositional Dynamic Logic with Formal Concept Analysis (extended abstract) N.V. Shilov, N.O. Garanina, and I.S. Anureev A.P. Ershov Institute of Informatics Systems, Lavren ev
More informationChapter 5: Linear Temporal Logic
Chapter 5: Linear Temporal Logic Prof. Ali Movaghar Verification of Reactive Systems Spring 94 Outline We introduce linear temporal logic (LTL), a logical formalism that is suited for specifying LT properties.
More information3 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 informationContents Propositional Logic: Proofs from Axioms and Inference Rules
Contents 1 Propositional Logic: Proofs from Axioms and Inference Rules... 1 1.1 Introduction... 1 1.1.1 An Example Demonstrating the Use of Logic in Real Life... 2 1.2 The Pure Propositional Calculus...
More informationNotes for Math 601, Fall based on Introduction to Mathematical Logic by Elliott Mendelson Fifth edition, 2010, Chapman & Hall
Notes for Math 601, Fall 2010 based on Introduction to Mathematical Logic by Elliott Mendelson Fifth edition, 2010, Chapman & Hall All first-order languages contain the variables: v 0, v 1, v 2,... the
More informationPropositional 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 informationThe Logic of Proofs, Semantically
The Logic of Proofs, Semantically Melvin Fitting Dept. Mathematics and Computer Science Lehman College (CUNY), 250 Bedford Park Boulevard West Bronx, NY 10468-1589 e-mail: fitting@lehman.cuny.edu web page:
More informationOn Real-time Monitoring with Imprecise Timestamps
On Real-time Monitoring with Imprecise Timestamps David Basin 1, Felix Klaedtke 2, Srdjan Marinovic 1, and Eugen Zălinescu 1 1 Institute of Information Security, ETH Zurich, Switzerland 2 NEC Europe Ltd.,
More informationCompleteness Results for Memory Logics
Completeness Results for Memory Logics Carlos Areces Santiago Figueira Sergio Mera Abstract Memory logics are a family of modal logics in which standard relational structures are augmented with data structures
More informationPropositional 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 informationAutomata on Infinite words and LTL Model Checking
Automata on Infinite words and LTL Model Checking Rodica Condurache Lecture 4 Lecture 4 Automata on Infinite words and LTL Model Checking 1 / 35 Labeled Transition Systems Let AP be the (finite) set of
More informationFormal Epistemology: Lecture Notes. Horacio Arló-Costa Carnegie Mellon University
Formal Epistemology: Lecture Notes Horacio Arló-Costa Carnegie Mellon University hcosta@andrew.cmu.edu Logical preliminaries Let L 0 be a language containing a complete set of Boolean connectives, including
More informationFoundations of Mathematics MATH 220 FALL 2017 Lecture Notes
Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes These notes form a brief summary of what has been covered during the lectures. All the definitions must be memorized and understood. Statements
More informationPropositional Calculus - Hilbert system H Moonzoo Kim CS Division of EECS Dept. KAIST
Propositional Calculus - Hilbert system H Moonzoo Kim CS Division of EECS Dept. KAIST moonzoo@cs.kaist.ac.kr http://pswlab.kaist.ac.kr/courses/cs402-07 1 Review Goal of logic To check whether given a formula
More informationLogic, Sets, and Proofs
Logic, Sets, and Proofs David A. Cox and Catherine C. McGeoch Amherst College 1 Logic Logical Operators. A logical statement is a mathematical statement that can be assigned a value either true or false.
More informationOn Urquhart s C Logic
On Urquhart s C Logic Agata Ciabattoni Dipartimento di Informatica Via Comelico, 39 20135 Milano, Italy ciabatto@dsiunimiit Abstract In this paper we investigate the basic many-valued logics introduced
More informationMathematical Logic. Introduction to Reasoning and Automated Reasoning. Hilbert-style Propositional Reasoning. Chiara Ghidini. FBK-IRST, Trento, Italy
Introduction to Reasoning and Automated Reasoning. Hilbert-style Propositional Reasoning. FBK-IRST, Trento, Italy Deciding logical consequence Problem Is there an algorithm to determine whether a formula
More information03 Propositional Logic II
Martin Henz February 12, 2014 Generated on Wednesday 12 th February, 2014, 09:49 1 Review: Syntax and Semantics of Propositional Logic 2 3 Propositional Atoms and Propositions Semantics of Formulas Validity,
More informationCS 4700: Foundations of Artificial Intelligence
CS 4700: Foundations of Artificial Intelligence Bart Selman selman@cs.cornell.edu Module: Knowledge, Reasoning, and Planning Part 2 Logical Agents R&N: Chapter 7 1 Illustrative example: Wumpus World (Somewhat
More informationSyntax. Notation Throughout, and when not otherwise said, we assume a vocabulary V = C F P.
First-Order Logic Syntax The alphabet of a first-order language is organised into the following categories. Logical connectives:,,,,, and. Auxiliary symbols:.,,, ( and ). Variables: we assume a countable
More informationPropositional Logic: Syntax
4 Propositional Logic: Syntax Reading: Metalogic Part II, 22-26 Contents 4.1 The System PS: Syntax....................... 49 4.1.1 Axioms and Rules of Inference................ 49 4.1.2 Definitions.................................
More informationEquivalents of Mingle and Positive Paradox
Eric Schechter Equivalents of Mingle and Positive Paradox Abstract. Relevant logic is a proper subset of classical logic. It does not include among itstheoremsanyof positive paradox A (B A) mingle A (A
More informationSystems of modal logic
499 Modal and Temporal Logic Systems of modal logic Marek Sergot Department of Computing Imperial College, London utumn 2008 Further reading: B.F. Chellas, Modal logic: an introduction. Cambridge University
More informationAN EXTENSION OF THE PROBABILITY LOGIC LP P 2. Tatjana Stojanović 1, Ana Kaplarević-Mališić 1 and Zoran Ognjanović 2
45 Kragujevac J. Math. 33 (2010) 45 62. AN EXTENSION OF THE PROBABILITY LOGIC LP P 2 Tatjana Stojanović 1, Ana Kaplarević-Mališić 1 and Zoran Ognjanović 2 1 University of Kragujevac, Faculty of Science,
More informationCMPS 217 Logic in Computer Science. Lecture #17
CMPS 217 Logic in Computer Science https://courses.soe.ucsc.edu/courses/cmps217/spring13/01 Lecture #17 1 The Complexity of FO-Truth on a Structure Structure A Complexity of Th(A) Structure of the natural
More information1. Propositional Calculus
1. Propositional Calculus Some notes for Math 601, Fall 2010 based on Elliott Mendelson, Introduction to Mathematical Logic, Fifth edition, 2010, Chapman & Hall. 2. Syntax ( grammar ). 1.1, p. 1. Given:
More informationTemporal Logic with Past is Exponentially More Succinct
Temporal Logic with Past is Exponentially More Succinct Nicolas Markey Lab. Informatique Fondamentale d Orléans Univ. Orléans & CNRS FRE 2490 Rue Léonard de Vinci - BP 6759 45067 Orléans Cedex 2 - France
More informationAutomated Support for the Investigation of Paraconsistent and Other Logics
Automated Support for the Investigation of Paraconsistent and Other Logics Agata Ciabattoni 1, Ori Lahav 2, Lara Spendier 1, and Anna Zamansky 1 1 Vienna University of Technology 2 Tel Aviv University
More informationCS256/Spring 2008 Lecture #11 Zohar Manna. Beyond Temporal Logics
CS256/Spring 2008 Lecture #11 Zohar Manna Beyond Temporal Logics Temporal logic expresses properties of infinite sequences of states, but there are interesting properties that cannot be expressed, e.g.,
More informationAutomata 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 informationVAUGHT S THEOREM: THE FINITE SPECTRUM OF COMPLETE THEORIES IN ℵ 0. Contents
VAUGHT S THEOREM: THE FINITE SPECTRUM OF COMPLETE THEORIES IN ℵ 0 BENJAMIN LEDEAUX Abstract. This expository paper introduces model theory with a focus on countable models of complete theories. Vaught
More informationComplete Axiomatization of Discrete-Measure Almost-Everywhere Quantification
Complete Axiomatization of Discrete-Measure Almost-Everywhere Quantification Luís Cruz-Filipe 1 João Rasga 2 Amílcar Sernadas 2 Cristina Sernadas 2 1 LASIGE and Dep. Informática, FC, U Lisbon, Portugal
More informationPartial model checking via abstract interpretation
Partial model checking via abstract interpretation N. De Francesco, G. Lettieri, L. Martini, G. Vaglini Università di Pisa, Dipartimento di Ingegneria dell Informazione, sez. Informatica, Via Diotisalvi
More informationLogic: Propositional Logic Truth Tables
Logic: Propositional Logic Truth Tables Raffaella Bernardi bernardi@inf.unibz.it P.zza Domenicani 3, Room 2.28 Faculty of Computer Science, Free University of Bolzano-Bozen http://www.inf.unibz.it/~bernardi/courses/logic06
More informationSemantical study of intuitionistic modal logics
Semantical study of intuitionistic modal logics Department of Intelligence Science and Technology Graduate School of Informatics Kyoto University Kensuke KOJIMA January 16, 2012 Abstract We investigate
More informationCharacterizing the NP-PSPACE Gap in the Satisfiability Problem for Modal Logic
Characterizing the NP-PSPACE Gap in the Satisfiability Problem for Modal Logic Joseph Y. Halpern Computer Science Department Cornell University, U.S.A. e-mail: halpern@cs.cornell.edu Leandro Chaves Rêgo
More informationCOMP219: Artificial Intelligence. Lecture 19: Logic for KR
COMP219: Artificial Intelligence Lecture 19: Logic for KR 1 Overview Last time Expert Systems and Ontologies Today Logic as a knowledge representation scheme Propositional Logic Syntax Semantics Proof
More informationIntroduction 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 informationPropositional Logics and their Algebraic Equivalents
Propositional Logics and their Algebraic Equivalents Kyle Brooks April 18, 2012 Contents 1 Introduction 1 2 Formal Logic Systems 1 2.1 Consequence Relations......................... 2 3 Propositional Logic
More informationChapter 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 informationThe Countable Henkin Principle
The Countable Henkin Principle Robert Goldblatt Abstract. This is a revised and extended version of an article which encapsulates a key aspect of the Henkin method in a general result about the existence
More informationFrom Liveness to Promptness
From Liveness to Promptness Orna Kupferman Hebrew University Nir Piterman EPFL Moshe Y. Vardi Rice University Abstract Liveness temporal properties state that something good eventually happens, e.g., every
More informationCSE 20 DISCRETE MATH WINTER
CSE 20 DISCRETE MATH WINTER 2016 http://cseweb.ucsd.edu/classes/wi16/cse20-ab/ Today's learning goals Evaluate which proof technique(s) is appropriate for a given proposition Direct proof Proofs by contraposition
More informationKrivine s Intuitionistic Proof of Classical Completeness (for countable languages)
Krivine s Intuitionistic Proof of Classical Completeness (for countable languages) Berardi Stefano Valentini Silvio Dip. Informatica Dip. Mat. Pura ed Applicata Univ. Torino Univ. Padova c.so Svizzera
More informationCSE 20 DISCRETE MATH SPRING
CSE 20 DISCRETE MATH SPRING 2016 http://cseweb.ucsd.edu/classes/sp16/cse20-ac/ Today's learning goals Evaluate which proof technique(s) is appropriate for a given proposition Direct proof Proofs by contraposition
More informationcse371/mat371 LOGIC Professor Anita Wasilewska Fall 2018
cse371/mat371 LOGIC Professor Anita Wasilewska Fall 2018 Chapter 7 Introduction to Intuitionistic and Modal Logics CHAPTER 7 SLIDES Slides Set 1 Chapter 7 Introduction to Intuitionistic and Modal Logics
More informationCHAPTER 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 informationAn Introduction to Modal Logic III
An Introduction to Modal Logic III Soundness of Normal Modal Logics Marco Cerami Palacký University in Olomouc Department of Computer Science Olomouc, Czech Republic Olomouc, October 24 th 2013 Marco Cerami
More informationCHAPTER 2. FIRST ORDER LOGIC
CHAPTER 2. FIRST ORDER LOGIC 1. Introduction First order logic is a much richer system than sentential logic. Its interpretations include the usual structures of mathematics, and its sentences enable us
More informationChapter 3: Linear temporal logic
INFOF412 Formal verification of computer systems Chapter 3: Linear temporal logic Mickael Randour Formal Methods and Verification group Computer Science Department, ULB March 2017 1 LTL: a specification
More informationLecture Notes on Combinatory Modal Logic
Lecture Notes on Combinatory Modal Logic 15-816: Modal Logic Frank Pfenning Lecture 9 February 16, 2010 1 Introduction The connection between proofs and program so far has been through a proof term assignment
More informationAutomata, Logic and Games: Theory and Application
Automata, Logic and Games: Theory and Application 1. Büchi Automata and S1S Luke Ong University of Oxford TACL Summer School University of Salerno, 14-19 June 2015 Luke Ong Büchi Automata & S1S 14-19 June
More informationarxiv: v1 [cs.lo] 17 Jun 2014
On MITL and alternating timed automata over infinite words Thomas Brihaye 1, Morgane Estiévenart 1, and Gilles Geeraerts 2 1 UMons, Belgium, 2 U.L.B., Belgium arxiv:1406.4395v1 [cs.lo] 17 Jun 2014 Abstract.
More informationProof Theoretical Studies on Semilattice Relevant Logics
Proof Theoretical Studies on Semilattice Relevant Logics Ryo Kashima Department of Mathematical and Computing Sciences Tokyo Institute of Technology Ookayama, Meguro, Tokyo 152-8552, Japan. e-mail: kashima@is.titech.ac.jp
More informationS4LP and Local Realizability
S4LP and Local Realizability Melvin Fitting Lehman College CUNY 250 Bedford Park Boulevard West Bronx, NY 10548, USA melvin.fitting@lehman.cuny.edu Abstract. The logic S4LP combines the modal logic S4
More informationDesign 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 informationPropositional Calculus - Soundness & Completeness of H
Propositional Calculus - Soundness & Completeness of H Moonzoo Kim CS Dept. KAIST moonzoo@cs.kaist.ac.kr 1 Review Goal of logic To check whether given a formula Á is valid To prove a given formula Á `
More informationAgenda. Artificial Intelligence. Reasoning in the Wumpus World. The Wumpus World
Agenda Artificial Intelligence 10. Propositional Reasoning, Part I: Principles How to Think About What is True or False 1 Introduction Álvaro Torralba Wolfgang Wahlster 2 Propositional Logic 3 Resolution
More informationT Reactive Systems: Temporal Logic LTL
Tik-79.186 Reactive Systems 1 T-79.186 Reactive Systems: Temporal Logic LTL Spring 2005, Lecture 4 January 31, 2005 Tik-79.186 Reactive Systems 2 Temporal Logics Temporal logics are currently the most
More informationNeighborhood Semantics for Modal Logic Lecture 3
Neighborhood Semantics for Modal Logic Lecture 3 Eric Pacuit ILLC, Universiteit van Amsterdam staff.science.uva.nl/ epacuit August 15, 2007 Eric Pacuit: Neighborhood Semantics, Lecture 3 1 Plan for the
More informationTemporal Logic. Stavros Tripakis University of California, Berkeley. We have designed a system. We want to check that it is correct.
EE 244: Fundamental Algorithms for System Modeling, Analysis, and Optimization Fall 2016 Temporal logic Stavros Tripakis University of California, Berkeley Stavros Tripakis (UC Berkeley) EE 244, Fall 2016
More information