Lecture 14: Temporal Logic Today's Lecture Temporal Logic Example

Total Page:16

File Type:pdf, Size:1020Kb

Lecture 14: Temporal Logic Today's Lecture Temporal Logic Example Today’s Lecture • Discuss Temporal Logic in depth Lecture 14: Temporal Logic Kenneth M. Anderson Foundations of Software Engineering CSCI 5828 - Spring Semester, 1999 Lecture 14 1 Lecture 14 2 Temporal Logic Example • In classical logic, a predicate’s truth value is static; • P: “the train is approaching the gate” for a given interpretation it is always true or •P ⇒ Q: “if the train approaches the gate, the gate is always false lowered” • In real-life situations, implications are causal • Q: “the gate is lowered before the train is in the gate • R: “the gate remains closed until the train crosses the gate” – if P and P ⇒ Q then Q • We cannot formalize these statements in propositional or – We need P to be true at one point, then if an event predicate logic causes P ⇒ Q to be true, then at the next point, we need P to be false and Q to be true • Think of it in terms of states. S1: P is true, S2: Q is true Lecture 14 3 Lecture 14 4 Concurrent and Reactive Systems Relevant properties • A reactive program is one that continuously • safety: “something bad • liveness: “something good maintains an ongoing interaction with the will not happen” will eventually happen” • Example • Example environment controlled by it. – “the gate will remain closed – “whenever the gate is – Reactive systems may be concurrent and may while a train crosses the directed to raise, it will gate” eventually do so” have to obey strict timing constraints • safety properties • liveness properties – For example, “train approaching gate” and – partial correctness – program termination “gate lowering” are concurrent activities – mutual exclusion – starvation-freedom – deadlock-freedom Lecture 14 5 Lecture 14 6 Notions of Time Discrete or Continuous • Underlying model for time must match the • When operations are continuously varying, a system’s requirements dense model of time is appropriate – The topology of time in this instance is typically a • Temporal logic does not try to define time, proper subset of real numbers only operators that denote change and • If properties are only present at certain time ordering instants, then a discrete model of time is chosen • Types of Time • In this case, the topology is mapped into a subset of the natural numbers – Discrete or Continuous • These models can be bounded and can also be – Linear and Branching broken into distinct intervals Lecture 14 7 Lecture 14 8 Linear and Branching Time Models The specification hierarchy • for any given moment in time • Temporal logic can be used to specify – one may postulate one future time (linear) or requirements, design, and programs several possible future times (branching) – Requirements • branching • behavior model; time constraints between predicates – useful for modeling uncertainty – Design (i.e. alternatives can be considered) • state changes within objects can be specified • We are going to study discrete linear – Programs temporal logic • state changes for entire programs Lecture 14 9 Lecture 14 10 Common techniques Temporal Logic: Syntax • After an object’s state is specified • Vocabulary – Specify formulas for properties that hold over – constants, functions, propositions, states, and predicates • (a) all sequences of all states • It also includes • (b) some sequence of states – constant values • (c) some future state in some sequence of states • boolean constants, natural numbers, ε (empty string or list), ∅ (empty set) • With respect to program states – function symbols – Temporal logic formulas can specify properties • +, −, ∪, ∩ • that hold over (subsets of) executions of the program – predicate symbols • >, ≤, ⊂, ∈ Lecture 14 11 Lecture 14 12 Syntax and Semantics, continued Syntax and Semantics, continued • = (assumed defined for all types) • Additional Well-Formed Formula Rules • A well-formed formula of predicate logic is also a – If f is a well-formed formula, then so are well-formed formula of temporal logic • ¬(f), ¨(f), ²(f), and ¡(f) – Temporal Logic adds – If f and g are well-formed formulas, then so are ∧ ∨ ⇒ ≡ • a sequence of states: S1, S2, …, Sn • (f g), (f g), (f g), and (f g) • a function that assigns to each state, a set of predicates that are • Examples true for that state – ¨(f ⇒ ¡(g)) – Temporal Logic defines three new operators ∃ ∧ • ¨ (always), ² (eventually), and ¡ (next) – q•(head(s) = q) ²(head(s) = q + 1) – ¨(p) ∧ ²(q) ⇒ ¨(p ⇒ ¡(r)) Lecture 14 13 Lecture 14 14 Types of Temporal Logic Interpretation of Temporal Logic • Use of only propositions • An atomic action causes a state change – propositional linear temporal logic • A state history is notated: – σ : S , S , …, S • Use of quantifiers and predicates 1 2 n – It represents the behavior of an object. – first-order linear temporal logic • These states can correspond to either abstract object states in a design or to concrete states in a program. – In order to verify whether the behavior has a property as represented by a formula f, we interpret the formula over the given state history. Lecture 14 15 Lecture 14 16 Interpretation, continued Interpretation, continued • The value of a variable (expression, predicate, …) • To evaluate formulas without temporal operators – for a given state is notated – Step 3: evaluate quantified formulas •s[∀ x • p] = ∀ x • s[p] • s[x], s[e], s[p], s[f] •s[∃ x • p] = ∃ x • s[p] • To evaluate formulas without temporal operators • Example – Step 1: evaluate expressions – state s = (x=-1, y=3, z=1) • Assign values to all free variables – formula (x+y>z) ⇒ (y ≤ 2 * z) – Step 2: evaluate predicates – s[(x+y>z) ⇒ (y ≤ 2 * z)] • For a predicate P(t1, t2, …), define s[P] = P(s[t1], s[t2], …) – = (s[x]+s[y]>s[z]) ⇒ (s[y] ≤ 2 * s[z]) • For formulas, s[¬p] = ¬s[p], s[p ∧ q] = s[p] ∧ s[q], etc. – = (-1 + 3 > 1) ⇒ (3 ≤ 2 * 1) – = (true ⇒ false) (This expression thus evaluates to false for state s) Lecture 14 17 Lecture 14 18 Semantics of Temporal Formulas Examples • ¨P • ¨(lost(x) ⇒ ¬instacks(x)) – P always hold – A lost book is not on the stacks ≥ • ¨P holds at Sj iff P holds at all states Sk, k j • ¨(inc(x) ⇒ ¨inc(x)) • ²P – Once x is incremented, then it is incremented in every – P holds sometimes state thereafter ≥ • ²P holds at Sj iff P holds at some state Sk, k j • ¡ ¨(x = 1) ⇒ (² ¨(y=0) ∧ ²(z = 1)) • ¡P – If at the next step, x becomes permanently 1, then – P holds at the next instant eventually y becomes permanently zero and z • ¡P holds at Sj iff P holds at state Sj+1 eventually becomes 1 Lecture 14 19 Lecture 14 20 Returning to the Train example Train example, continued • Propositions • Assume – G1: the gate is lowered – σ: S0, S1, … where – G2: the gate is closed • S0: G1 ∧ T1 is true (Gate is lowered) – G3: the gate is raised • S1: G2 ∧ T1 is true (Gate is closed) – G4: the gate is open • S2, S3: G2 ∧ T2 is true (Train is crossing) – T1: the train is approaching • S4: G2 ∧ T3 is true (Gate is closed) – T2: the train is crossing the gate • S5: G3 ∧ T3 is true (Gate is raised) – T3: the train has crossed the gate • S6, …: G4 ∧ T3 is true (Gate is open) Lecture 14 21 Lecture 14 22 Train example, continued Additional Temporal Operators • We can conclude the following • Until • ²(G2) is true for states 0, 1, 2, 3, 4; otherwise not – P holds continuously at least until the first occurrence of Q • ¡(G2) is true for states 0, 1, 2, 3; otherwise not • Waiting-For • ¨(G4) is false for states 0-5, and true thereafter – P holds forever or until the first occurrence of Q • Since • ¨(T3) is true for all states ≥ 4 ⇒ – Q has happened at sometime in the past and P has continuously held ever • ¨(T3 ²G4) since – The gate will eventually open, after the train has crossed • Once • ¨²(G4) – P has happened at sometime in the past – There are an infinite number of states where the gate is open • I don’t have the correct font for the symbols of these operations, • ²¨(¬T1 ⇒ G4) instead I will use their name in place of their symbol in formulas – There exists a state where the proposition holds for all later states Lecture 14 23 Lecture 14 24 Frequently used Formulas Examples •f ⇒²g • We will now work through some examples – If f at one state, then eventually g on paper • ¨(f ⇒²g) – Holds for all states – Library Books • ¨(f ⇒¡g) – Communication Channels – If f is true at state n, then g is true in state n+1, f is true at state 0 – A thread-safe queue • ¨(f ⇒ f Until g) – Where f is true, f continues to remain true until g becomes true • ¨(f ⇒ Once g) – In every state where f is true, it was preceded by a state where g is true Lecture 14 25 Lecture 14 26.
Recommended publications
  • DRAFT: Final Version in Journal of Philosophical Logic Paul Hovda
    Tensed mereology DRAFT: final version in Journal of Philosophical Logic Paul Hovda There are at least three main approaches to thinking about the way parthood logically interacts with time. Roughly: the eternalist perdurantist approach, on which the primary parthood relation is eternal and two-placed, and objects that persist persist by having temporal parts; the parameterist approach, on which the primary parthood relation is eternal and logically three-placed (x is part of y at t) and objects may or may not have temporal parts; and the tensed approach, on which the primary parthood relation is two-placed but (in many cases) temporary, in the sense that it may be that x is part of y, though x was not part of y. (These characterizations are brief; too brief, in fact, as our discussion will eventually show.) Orthogonally, there are different approaches to questions like Peter van Inwa- gen's \Special Composition Question" (SCQ): under what conditions do some objects compose something?1 (Let us, for the moment, work with an undefined notion of \compose;" we will get more precise later.) One central divide is be- tween those who answer the SCQ with \Under any conditions!" and those who disagree. In general, we can distinguish \plenitudinous" conceptions of compo- sition, that accept this answer, from \sparse" conceptions, that do not. (van Inwagen uses the term \universalist" where we use \plenitudinous.") A question closely related to the SCQ is: under what conditions do some objects compose more than one thing? We may distinguish “flat” conceptions of composition, on which the answer is \Under no conditions!" from others.
    [Show full text]
  • The Rise and Fall of LTL
    The Rise and Fall of LTL Moshe Y. Vardi Rice University Monadic Logic Monadic Class: First-order logic with = and monadic predicates – captures syllogisms. • (∀x)P (x), (∀x)(P (x) → Q(x)) |=(∀x)Q(x) [Lowenheim¨ , 1915]: The Monadic Class is decidable. • Proof: Bounded-model property – if a sentence is satisfiable, it is satisfiable in a structure of bounded size. • Proof technique: quantifier elimination. Monadic Second-Order Logic: Allow second- order quantification on monadic predicates. [Skolem, 1919]: Monadic Second-Order Logic is decidable – via bounded-model property and quantifier elimination. Question: What about <? 1 Nondeterministic Finite Automata A = (Σ,S,S0,ρ,F ) • Alphabet: Σ • States: S • Initial states: S0 ⊆ S • Nondeterministic transition function: ρ : S × Σ → 2S • Accepting states: F ⊆ S Input word: a0, a1,...,an−1 Run: s0,s1,...,sn • s0 ∈ S0 • si+1 ∈ ρ(si, ai) for i ≥ 0 Acceptance: sn ∈ F Recognition: L(A) – words accepted by A. 1 - - Example: • • – ends with 1’s 6 0 6 ¢0¡ ¢1¡ Fact: NFAs define the class Reg of regular languages. 2 Logic of Finite Words View finite word w = a0,...,an−1 over alphabet Σ as a mathematical structure: • Domain: 0,...,n − 1 • Binary relation: < • Unary relations: {Pa : a ∈ Σ} First-Order Logic (FO): • Unary atomic formulas: Pa(x) (a ∈ Σ) • Binary atomic formulas: x < y Example: (∃x)((∀y)(¬(x < y)) ∧ Pa(x)) – last letter is a. Monadic Second-Order Logic (MSO): • Monadic second-order quantifier: ∃Q • New unary atomic formulas: Q(x) 3 NFA vs. MSO Theorem [B¨uchi, Elgot, Trakhtenbrot, 1957-8 (independently)]: MSO ≡ NFA • Both MSO and NFA define the class Reg.
    [Show full text]
  • On Constructive Linear-Time Temporal Logic
    Replace this file with prentcsmacro.sty for your meeting, or with entcsmacro.sty for your meeting. Both can be found at the ENTCS Macro Home Page. On Constructive Linear-Time Temporal Logic Kensuke Kojima1 and Atsushi Igarashi2 Graduate School of Informatics Kyoto University Kyoto, Japan Abstract In this paper we study a version of constructive linear-time temporal logic (LTL) with the “next” temporal operator. The logic is originally due to Davies, who has shown that the proof system of the logic corre- sponds to a type system for binding-time analysis via the Curry-Howard isomorphism. However, he did not investigate the logic itself in detail; he has proved only that the logic augmented with negation and classical reasoning is equivalent to (the “next” fragment of) the standard formulation of classical linear-time temporal logic. We give natural deduction and Kripke semantics for constructive LTL with conjunction and disjunction, and prove soundness and completeness. Distributivity of the “next” operator over disjunction “ (A ∨ B) ⊃ A ∨ B” is rejected from a computational viewpoint. We also give a formalization by sequent calculus and its cut-elimination procedure. Keywords: constructive linear-time temporal logic, Kripke semantics, sequent calculus, cut elimination 1 Introduction Temporal logic is a family of (modal) logics in which the truth of propositions may depend on time, and is useful to describe various properties of state transition systems. Linear-time temporal logic (LTL, for short), which is used to reason about properties of a fixed execution path of a system, is temporal logic in which each time has a unique time that follows it.
    [Show full text]
  • A Unifying Field in Logics: Neutrosophic Logic
    University of New Mexico UNM Digital Repository Faculty and Staff Publications Mathematics 2007 A UNIFYING FIELD IN LOGICS: NEUTROSOPHIC LOGIC. NEUTROSOPHY, NEUTROSOPHIC SET, NEUTROSOPHIC PROBABILITY AND STATISTICS - 6th ed. Florentin Smarandache University of New Mexico, [email protected] Follow this and additional works at: https://digitalrepository.unm.edu/math_fsp Part of the Algebra Commons, Logic and Foundations Commons, Other Applied Mathematics Commons, and the Set Theory Commons Recommended Citation Florentin Smarandache. A UNIFYING FIELD IN LOGICS: NEUTROSOPHIC LOGIC. NEUTROSOPHY, NEUTROSOPHIC SET, NEUTROSOPHIC PROBABILITY AND STATISTICS - 6th ed. USA: InfoLearnQuest, 2007 This Book is brought to you for free and open access by the Mathematics at UNM Digital Repository. It has been accepted for inclusion in Faculty and Staff Publications by an authorized administrator of UNM Digital Repository. For more information, please contact [email protected], [email protected], [email protected]. FLORENTIN SMARANDACHE A UNIFYING FIELD IN LOGICS: NEUTROSOPHIC LOGIC. NEUTROSOPHY, NEUTROSOPHIC SET, NEUTROSOPHIC PROBABILITY AND STATISTICS (sixth edition) InfoLearnQuest 2007 FLORENTIN SMARANDACHE A UNIFYING FIELD IN LOGICS: NEUTROSOPHIC LOGIC. NEUTROSOPHY, NEUTROSOPHIC SET, NEUTROSOPHIC PROBABILITY AND STATISTICS (sixth edition) This book can be ordered in a paper bound reprint from: Books on Demand ProQuest Information & Learning (University of Microfilm International) 300 N. Zeeb Road P.O. Box 1346, Ann Arbor MI 48106-1346, USA Tel.: 1-800-521-0600 (Customer Service) http://wwwlib.umi.com/bod/basic Copyright 2007 by InfoLearnQuest. Plenty of books can be downloaded from the following E-Library of Science: http://www.gallup.unm.edu/~smarandache/eBooks-otherformats.htm Peer Reviewers: Prof. M. Bencze, College of Brasov, Romania.
    [Show full text]
  • A Unifying Field in Logics: Neutrosophic Logic. Neutrosophy, Neutrosophic Set, Neutrosophic Probability and Statistics
    FLORENTIN SMARANDACHE A UNIFYING FIELD IN LOGICS: NEUTROSOPHIC LOGIC. NEUTROSOPHY, NEUTROSOPHIC SET, NEUTROSOPHIC PROBABILITY AND STATISTICS (fourth edition) NL(A1 A2) = ( T1 ({1}T2) T2 ({1}T1) T1T2 ({1}T1) ({1}T2), I1 ({1}I2) I2 ({1}I1) I1 I2 ({1}I1) ({1} I2), F1 ({1}F2) F2 ({1} F1) F1 F2 ({1}F1) ({1}F2) ). NL(A1 A2) = ( {1}T1T1T2, {1}I1I1I2, {1}F1F1F2 ). NL(A1 A2) = ( ({1}T1T1T2) ({1}T2T1T2), ({1} I1 I1 I2) ({1}I2 I1 I2), ({1}F1F1 F2) ({1}F2F1 F2) ). ISBN 978-1-59973-080-6 American Research Press Rehoboth 1998, 2000, 2003, 2005 FLORENTIN SMARANDACHE A UNIFYING FIELD IN LOGICS: NEUTROSOPHIC LOGIC. NEUTROSOPHY, NEUTROSOPHIC SET, NEUTROSOPHIC PROBABILITY AND STATISTICS (fourth edition) NL(A1 A2) = ( T1 ({1}T2) T2 ({1}T1) T1T2 ({1}T1) ({1}T2), I1 ({1}I2) I2 ({1}I1) I1 I2 ({1}I1) ({1} I2), F1 ({1}F2) F2 ({1} F1) F1 F2 ({1}F1) ({1}F2) ). NL(A1 A2) = ( {1}T1T1T2, {1}I1I1I2, {1}F1F1F2 ). NL(A1 A2) = ( ({1}T1T1T2) ({1}T2T1T2), ({1} I1 I1 I2) ({1}I2 I1 I2), ({1}F1F1 F2) ({1}F2F1 F2) ). ISBN 978-1-59973-080-6 American Research Press Rehoboth 1998, 2000, 2003, 2005 1 Contents: Preface by C. Le: 3 0. Introduction: 9 1. Neutrosophy - a new branch of philosophy: 15 2. Neutrosophic Logic - a unifying field in logics: 90 3. Neutrosophic Set - a unifying field in sets: 125 4. Neutrosophic Probability - a generalization of classical and imprecise probabilities - and Neutrosophic Statistics: 129 5. Addenda: Definitions derived from Neutrosophics: 133 2 Preface to Neutrosophy and Neutrosophic Logic by C.
    [Show full text]
  • Aristotelian Temporal Logic: the Sea Battle
    Aristotelian temporal logic: the sea battle. According to the square of oppositions, exactly one of “it is the case that p” and “it is not the case that p” is true. Either “it is the case that there will be a sea battle tomorrow” or “it is not the case that there will be a sea battle tomorrow”. Problematic for existence of free will, and for Aristotelian metaphysics. Core Logic – 2005/06-1ab – p. 3/34 The Master argument. Diodorus Cronus (IVth century BC). Assume that p is not the case. In the past, “It will be the case that p is not the case” was true. In the past, “It will be the case that p is not the case” was necessarily true. Therefore, in the past, “It will be the case that p” was impossible. Therefore, p is not possible. Ergo: Everything that is possible is true. Core Logic – 2005/06-1ab – p. 4/34 Megarians and Stoics. Socrates (469-399 BC) WWW WWWWW WWWWW WWWWW WW+ Euclides (c.430-c.360 BC) Plato (c.427-347 BC) WWW WWWWW WWWWW WWWWW WW+ Eubulides (IVth century) Stilpo (c.380-c.300 BC) Apollonius Cronus Zeno of Citium (c.335-263 BC) gg3 ggggg ggggg ggggg ggg Diodorus Cronus (IVth century) Cleanthes of Assos (301-232 BC) Chrysippus of Soli (c.280-207 BC) Core Logic – 2005/06-1ab – p. 5/34 Eubulides. Strongly opposed to Aristotle. Source of the “seven Megarian paradoxes”, among them the Liar. The Liar is attributed to Epimenides the Cretan (VIIth century BC); (Titus 1:12).
    [Show full text]
  • Artificial Intelligence Dynamic Reasoning with Qualified Syllogisms
    Artificial Intelligence ELSEVIER Artificial Intelligence 93 ( 1997 ) 105 167 Dynamic reasoning with qualified syllogisms Daniel G. Schwartz’ Department of Computer Science, Florida State University, Tallahassee. FL 32306-4019, USA Received January 1996: revised January 1997 Abstract A gualij%e~ syllogism is a classical Aristoteiean syllogism that has been “qualified” through the use of fuzzy quantifiers, likelihood modifiers, and usuality modifiers, e.g., “Most birds can Ry; Tweety is a bird; therefore, it is likely that Tweety can fly.” This paper introduces a formal logic Q of such syllogisms and shows how this may be employed in a system of nonmonotonj~ reasoning. In process are defined the notions of path logic and dynamic reasoning system (DRS) The former is an adaptation of the conventional formal system which explicitly portrays reasoning as an activity that takes place in time. The latter consists of a path logic together with a multiple- inhe~tance hierarchy. The hierarchy duplicates some of the info~ation recorded in the path logic, but additionally provides an extralogical spec#icity relation. The system uses typed predicates to formally distinguish between properties and kinds of things. The effectiveness of the approach is demonstrated through analysis of several “puzzles” that have appeared previously in the literature, e.g., Tweety the Bird, Clyde the Elephant, and the Nixon Diamond. It is also outlined how the DRS framework accommodates other reasoning techniques-in particular, predicate circumscription, a “localized” version of default logic, a variant of nonmonotonic logic, and reason maintenance. Furthermore it is seen that the same framework accomodates a new formulation of the notion of unless.
    [Show full text]
  • Explaining Multi-Stage Tasks by Learning Temporal Logic Formulas from Suboptimal Demonstrations
    Robotics: Science and Systems 2020 Corvalis, Oregon, USA, July 12-16, 2020 Explaining Multi-stage Tasks by Learning Temporal Logic Formulas from Suboptimal Demonstrations Glen Chou, Necmiye Ozay, and Dmitry Berenson Electrical Engineering and Computer Science, University of Michigan, Ann Arbor, MI 48109 Email: gchou, necmiye, dmitryb @umich.edu f g Abstract—We present a method for learning to perform multi- stage tasks from demonstrations by learning the logical structure and atomic propositions of a consistent linear temporal logic (LTL) formula. The learner is given successful but potentially suboptimal demonstrations, where the demonstrator is optimizing a cost function while satisfying the LTL formula, and the cost function is uncertain to the learner. Our algorithm uses Fig. 1. Multi-stage manipulation: first fill the cup, then grasp it, and then the Karush-Kuhn-Tucker (KKT) optimality conditions of the deliver it. To avoid spills, a pose constraint is enforced after the cup is grasped. demonstrations together with a counterexample-guided falsifi- In this paper, our insight is that by assuming that demonstra- cation strategy to learn the atomic proposition parameters and tors are goal-directed (i.e. approximately optimize an objective logical structure of the LTL formula, respectively. We provide function that may be uncertain to the learner), we can regu- theoretical guarantees on the conservativeness of the recovered atomic proposition sets, as well as completeness in the search larize the LTL learning problem without being given
    [Show full text]
  • Post-Defense Draft with Corrections
    THE A-THEORY: A THEORY BY MEGHAN SULLIVAN A dissertation submitted to the Graduate School—New Brunswick Rutgers, The State University of New Jersey in partial fulfillment of the requirements for the degree of Doctor of Philosophy Graduate Program in Philosophy Written under the direction of Dean Zimmerman and approved by New Brunswick, New Jersey October, 2011 © 2011 Meghan Sullivan ALL RIGHTS RESERVED ABSTRACT OF THE DISSERTATION The A-Theory: A Theory by Meghan Sullivan Dissertation Director: Dean Zimmerman A-theories of time postulate a fundamental distinction between the present and other times. This distinction manifests in what A-theorists take to exist, their accounts of property change, and their views about the appropriate temporal logic. In this dissertation, I argue for a particular formulation of the A-theory that dispenses with change in existence and makes tense operators an optional formal tool for expressing the key theses. I call my view the minimal A-theory. The first chapter introduces the debate. The second chapter offers an extended, logic-based argument against more traditional A-theories. The third and fourth chapters develop my alternative proposal. The final chapter considers a problem for A-theorists who think the contents of our attitudes reflect changes in the world. ii Acknowledgements I’ve loved working on this project over the past few years, largely because of the ex- citing philosophers I’ve been fortunate to work alongside. Tim Williamson first intro- duced me to tense logic while I was at Oxford. He helped me through some confused early stages, and his work on modality inspires the minimal A-theory.
    [Show full text]
  • Tense Or Temporal Logic Gives a Glimpse of a Number of Related F-Urther Topics
    TI1is introduction provi'des some motivational and historical background. Basic fonnal issues of propositional tense logic are treated in Section 2. Section 3 12 Tense or Temporal Logic gives a glimpse of a number of related f-urther topics. 1.1 Motivation and Terminology Thomas Miiller Arthur Prior, who initiated the fonnal study of the logic of lime in the 1950s, called lus logic tense logic to reflect his underlying motivation: to advance the philosophy of time by establishing formal systems that treat the tenses of nat­ \lrallanguages like English as sentence-modifying operators. While many other Chapter Overview formal approaches to temporal issues have been proposed h1 the meantime, Pri­ orean tense logic is still the natural starting point. Prior introduced four tense operatm·s that are traditionally v.rritten as follows: 1. Introduction 324 1.1 Motiv<Jtion and Terminology 325 1.2 Tense Logic and the History of Formal Modal Logic 326 P it ·was the case that (Past) 2. Basic Formal Tense Logic 327 H it has always been the case that 2.1 Priorean (Past, Future) Tense Logic 328 F it will be the case that (Future) G it is always going to be the case that 2.1.1 The Minimal Tense Logic K1 330 2.1 .2 Frame Conditions 332 2.1.3 The Semantics of the Future Operator 337 Tims, a sentence in the past tense like 'Jolm was happy' is analysed as a temporal 2.1.4 The lndexicai'Now' 342 modification of the sentence 'John is happy' via the operator 'it was the case thai:', 2.1.5 Metric Operators and At1 343 and can be formally expressed as 'P HappyO'olm)'.
    [Show full text]
  • Temporal Description Logics Over Finite Traces
    Temporal Description Logics over Finite Traces Alessandro Artale, Andrea Mazzullo, Ana Ozaki KRDB Research Centre, Free University of Bozen-Bolzano, Italy [email protected] Abstract. Linear temporal logic interpreted over finite traces (LTLf ) has been used as a formalism for temporal specification in automated planning, process modelling and (runtime) verification. In this paper, we lift some results from the propositional case to a decidable fragment of first-order temporal logic obtained by combining the description logic ALC f with LTLf , denoted as TU ALC. We show that the satisfiability problem f in TU ALC is ExpSpace-complete, as already known for the infinite trace case, while it decreases to NExpTime when we consider finite traces with a fixed number of instants, and even to ExpTime when additionally restricting to globally interpreted TBoxes. Moreover, we investigate two f model-theoretical notions for TU ALC: we show that, differently from the infinite trace case, it enjoys the bounded model property; we also discuss the notion of insensitivity to infiniteness, providing characterisations and sufficient conditions to preserve it. 1 Introduction Since the introduction of linear temporal logic (LTL) by Pnueli [33], several (propositional and first-order) LTL-based formalisms have been developed for applications such as automated planning [11, 12, 15–17], process modelling [1, 31] and (runtime) verification of programs [14, 24, 32–35]. Related research in knowledge representation has focussed on decidable fragments of first-order LTL [28], many of them obtained by combining LTL with description logics (DLs), and for this reason called temporal description logics (TDLs) [3, 4, 30, 36].
    [Show full text]
  • Temporal Logic 11
    Temporal Logic 11 In classical logic, the predicate P in “if P ∧ (P ⇒ Q) then Q” retains its truth value even after Q has been derived. In other words, in classical logic the truth of a formula is static. However, real-life implications are causal and temporal. To handle these, it must be possible to specify that “an event happened when P was true, moments after that Q became true, and now “P is not true and Q is true”. This may also be stated using “states”. We associate predicates with states such that a predicate is true in some state S and false in some other states. For example, the statements P the train is approaching the gate, P ⇒ Q if the train approaches the gate, the gate is lowered, Q the gate is lowered before the train is in the gate, and R the gate remains closed until the train crosses the gate describe changes to the states of a control system that continuously maintains an ongoing interaction with the environmental objects train and gate. The program controlling the train and the gate, according to the specification stated above, is a reactive program. Reactive system refers to the reactive program together with its environment. Such systems are typ- ically non-terminating, read input and produce output on a continuous basis at different system states, interact with other systems and devices in its environment, exhibit concur- rent behavior and may have to obey strict timing constraints. For example, the statements P and R denote continuous activities, the statement Q involves the temporal ordering of the actions “gate closing” and “train arriving at the crossing”, and the statements P and Q imply concurrency.
    [Show full text]