 #jsDisabledContent { display:none; } My Account | Register | Help Flag as Inappropriate This article will be permanently flagged as inappropriate and made unaccessible to everyone. Are you certain this article is inappropriate?          Excessive Violence          Sexual Content          Political / Social Email this Article Email Address:

# Temporal logic

Article Id: WHEBN0000321481
Reproduction Date:

 Title: Temporal logic Author: World Heritage Encyclopedia Language: English Subject: Collection: Temporal Logic Publisher: World Heritage Encyclopedia Publication Date:

### Temporal logic

In logic, temporal logic is any system of rules and symbolism for representing, and reasoning about, propositions qualified in terms of time. In a temporal logic we can then express statements like "I am always hungry", "I will eventually be hungry", or "I will be hungry until I eat something". Temporal logic is sometimes also used to refer to tense logic, a particular modal logic-based system of temporal logic introduced by Arthur Prior in the late 1950s, and important results were obtained by Hans Kamp. Subsequently it has been developed further by computer scientists, notably Amir Pnueli, and logicians.

Temporal logic has found an important application in formal verification, where it is used to state requirements of hardware or software systems. For instance, one may wish to say that whenever a request is made, access to a resource is eventually granted, but it is never granted to two requestors simultaneously. Such a statement can conveniently be expressed in a temporal logic.

## Contents

• Motivation 1
• History 2
• Temporal operators 3
• Temporal logics 4
• Notes 6
• References 7

## Motivation

Consider the statement: "I am hungry." Though its meaning is constant in time, the truth value of the statement can vary in time. Sometimes the statement is true, and sometimes the statement is false, but the statement is never true and false simultaneously. In a temporal logic, statements can have a truth value which can vary in time. Contrast this with an atemporal logic, which can only discuss statements whose truth value is constant in time. This treatment of truth values over time differentiates temporal logic from computational verb logic.

Temporal logic always has the ability to reason about a time line. So-called linear time logics are restricted to this type of reasoning. Branching logics, however, can reason about multiple time lines. This presupposes an environment that may act unpredictably. To continue the example, in a branching logic we may state that "there is a possibility that I will stay hungry forever." We may also state that "there is a possibility that eventually I am no longer hungry." If we do not know whether or not I will ever get fed, these statements are both true some times.

## History

Although Aristotle's logic is almost entirely concerned with the theory of the categorical syllogism, there are passages in his work that are now seen as anticipations of temporal logic, and may imply an early, partially developed form of first-order temporal modal binary logic. Aristotle was particularly concerned with the problem of future contingents, where he could not accept that the principle of bivalence applies to statements about future events, i.e. that we can presently decide if a statement about a future event is true or false, such as "there will be a sea battle tomorrow".

There was little development for millennia, Charles Sanders Peirce noted in the 19th century:

Arthur Prior was concerned with the philosophical matters of free will and predestination. According to his wife, he first considered formalizing temporal logic in 1953. He gave lectures on the topic at the University of Oxford in 1955-6, and in 1957 published a book, Time and Modality, in which he introduced a propositional modal logic with two temporal connectives (modal operators), F and P, corresponding to "sometime in the future" and "sometime in the past". In this early work, Prior considered time to be linear. In 1958 however, he received a letter from Saul Kripke, who pointed out that this assumption is perhaps unwarranted. In a development that foreshadowed a similar one in computer science, Prior took this under advisement, and developed two theories of branching time, which he called "Ockhamist" and "Peircean". Between 1958 and 1965 Prior also corresponded with Charles Leonard Hamblin, and a number of early developments in the field can be traced to this correspondence, for example Hamblin implications. Prior published his most mature work on the topic, the book Past, Present, and Future in 1967. He died two years later.

The binary temporal operators Since and Until were introduced by Hans Kamp in his 1968 Ph. D. thesis, which also contains an important result relating temporal logic to first order logic—a result now known as Kamp's theorem.

Two early contenders in formal verifications were Linear Temporal Logic (a linear time logic by Amir Pnueli) and Computation Tree Logic, a branching time logic by Mordechai Ben-Ari, Zohar Manna and Amir Pnueli. An almost equivalent formalism to CTL was suggested around the same time by E.M. Clarke and E.A. Emerson. The fact that the second logic can be decided more efficiently than the first does not reflect on branching and linear logics in general, as has sometimes been argued. Rather, Emerson and Lei show that any linear logic can be extended to a branching logic that can be decided with the same complexity.

## Temporal operators

Temporal logic has two kinds of operators: logical operators and modal operators . Logical operators are usual truth-functional operators (\neg,\or,\and,\rightarrow). The modal operators used in Linear Temporal Logic and Computation Tree Logic are defined as follows.

Textual Symbolic Definition Explanation Diagram
Binary operators
\phi U \psi \phi ~\mathcal{U}~ \psi \begin{matrix}(B\,\mathcal{U}\,C)(\phi)= \\ (\exists i:C(\phi_i)\land(\forall j Until: \psi holds at the current or a future position, and \phi has to hold until that position. At that position \phi does not have to hold any more.
\phi R \psi \phi ~\mathcal{R}~ \psi \begin{matrix}(B\,\mathcal{R}\,C)(\phi)= \\ (\forall i:C(\phi_i)\lor(\exists j Release: \phi releases \psi if \psi is true until the first position in which \phi is true (or forever if such a position does not exist).
Unary operators
N \phi \bigcirc \phi \mathcal{N}B(\phi_i)=B(\phi_{i+1}) Next: \phi has to hold at the next state. (X is used synonymously.)
F \phi \Diamond \phi \mathcal{F}B(\phi)=(true\,\mathcal{U}\,B)(\phi) Future: \phi eventually has to hold (somewhere on the subsequent path).
G \phi \Box \phi \mathcal{G}B(\phi)=\neg\mathcal{F}\neg B(\phi) Globally: \phi has to hold on the entire subsequent path.
A \phi \forall \phi \begin{matrix}(\mathcal{A}B)(\psi)= \\ (\forall \phi:\phi_0=\psi\to B(\phi))\end{matrix} All: \phi has to hold on all paths starting from the current state.
E \phi \exists \phi \begin{matrix}(\mathcal{E}B)(\psi)= \\ (\exists \phi:\phi_0=\psi\land B(\phi))\end{matrix} Exists: there exists at least one path starting from the current state where \phi holds.

Alternate symbols:

• operator R is sometimes denoted by V
• The operator W is the weak until operator: f W g is equivalent to f U g \or G f

Unary operators are well-formed formulas whenever B(\phi) is well-formed. Binary operators are well-formed formulas whenever B(\phi) and C(\phi) are well-formed.

In some logics, some operators cannot be expressed. For example, N operator cannot be expressed in Temporal Logic of Actions.

## Temporal logics

Temporal logics include

A variation, closely related to Temporal or Chronological or Tense logics, are Modal logics based upon "topology", "place", or "spatial position".