TEMPORAL LOGIC

In logic, the term 'temporal logic' is used to describe any system of rules and symbolism for representing, and reasoning about, propositions qualified in terms of time. It is sometimes also used to refer to tense logic, a particular modal logic-based system of temporal logic introduced by Arthur Prior in the 1960s. Subsequently it has been developed further by computer scientists, notably Amir Pnueli, and logicians.
Temporal logic was first studied in depth by Aristotle, whose writings are filled with a crude form of first-order temporal modal binary logic. Any logic which uses the existential quantifier or the universal quantifier is said to be a first-order logic. Any logic which views time as a sequence of states is a temporal logic, and any logic which uses only two truth values is a binary logic.
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 handle statements whose truth value is constant in 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 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.
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.
Two early contenders in formal verifications were Linear Temporal Logic (a linear time logic by Amir Pnueli and Zohar Manna) and Computation Tree Logic, a branching time logic by Edmund Clarke and E. Allen Emerson. The fact that the second logic is more efficient 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.

Contents
Temporal operators
Temporal logics
See also
References
External links

Temporal operators


Temporal logic has two kinds of operators: logical operators and modal operators[1]. Logical operators are usual truth-functional operators (
eg,or,nd,
ightarrow). The modal operators used in Linear Temporal Logic and Computation Tree Logic are defined as follows.
{| border="1" cellspacing="0" cellpadding="2" style="border-collapse: collapse;"
|-
| style="background:#efefef;" | Textual
| style="background:#efefef;" | Symbolic
| style="background:#efefef;" | Definition
| style="background:#efefef;" | Explanation
| style="background:#efefef;" | Diagram
|-
| colspan="4" align="center" | Binary operators
|-
|phi 'U' psi
|phi ~mathcal{U}~ psi
|egin{matrix}(Bmathcal{U}C)(phi)= \ (exists i:C(phi_i))land( orall j
|'U'ntil: 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.
|
ImageSize = width:240 height:94
PlotArea = left:30 bottom:30 top:0 right:20
DateFormat = x.y
Period = from:0 till:6
TimeAxis = orientation:horizontal
AlignBars = justify
ScaleMajor = gridcolor:black increment:1 start:0
ScaleMinor = gridcolor:black increment:1 start:0
PlotData=
bar:p color:red width:10 align:left fontsize:S
from:1 till:3
bar:q color:red width:10 align:left fontsize:S
from:3 till:5
bar:pUq color:red width:10 align:left fontsize:S
from:1 till:5

|-
|phi 'R' psi
|phi ~mathcal{R}~ psi
|egin{matrix}(Bmathcal{R}C)(phi)= \ ( orall i:C(phi_i))lor(exists j
|'R'elease: 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).
|
ImageSize = width:240 height:100
PlotArea = left:30 bottom:30 top:0 right:20
DateFormat = x.y
Period = from:0 till:6
TimeAxis = orientation:horizontal
AlignBars = justify
ScaleMajor = gridcolor:black increment:1 start:0
ScaleMinor = gridcolor:black increment:1 start:0
PlotData=
bar:p color:red width:10 align:left fontsize:S
from:2 till:4
bar:q color:red width:10 align:left fontsize:S
from:1 till:3
from:5 till:6
bar:pRq color:red width:10 align:left fontsize:S
from:1 till:3
from:5 till:6

|-
| colspan="4" align="center" | Unary operators
|-
|'N' phi
|circ phi
|mathcal{N}B(phi_i)=B(phi_{i+1})
|'N'ext: phi has to hold at the next state. ('X' is used synonymously.)
|
ImageSize = width:240 height:60
PlotArea = left:30 bottom:30 top:0 right:20
DateFormat = x.y
Period = from:0 till:6
TimeAxis = orientation:horizontal
AlignBars = justify
ScaleMajor = gridcolor:black increment:1 start:0
ScaleMinor = gridcolor:black increment:1 start:0
PlotData=
bar:p color:red width:10 align:left fontsize:S
from:2 till:3
from:5 till:6
bar:Np color:red width:10 align:left fontsize:S
from:1 till:2
from:4 till:5

|-
|'F' phi
|Diamond phi
|mathcal{F}B(phi)=(truemathcal{U}B)(phi)
|'F'inally: phi eventually has to hold (somewhere on the subsequent path).
|
ImageSize = width:240 height:60
PlotArea = left:30 bottom:30 top:0 right:20
DateFormat = x.y
Period = from:0 till:6
TimeAxis = orientation:horizontal
AlignBars = justify
ScaleMajor = gridcolor:black increment:1 start:0
ScaleMinor = gridcolor:black increment:1 start:0
PlotData=
bar:p color:red width:10 align:left fontsize:S
from:2 till:3
from:4 till:5
bar:Fp color:red width:10 align:left fontsize:S
from:0 till:5

|-
|'G' phi
|Box phi
|mathcal{G}B(phi)=
egmathcal{F}
eg B(phi)
|'G'lobally: phi has to hold on the entire subsequent path.
|
ImageSize = width:240 height:60
PlotArea = left:30 bottom:30 top:0 right:20
DateFormat = x.y
Period = from:0 till:6
TimeAxis = orientation:horizontal
AlignBars = justify
ScaleMajor = gridcolor:black increment:1 start:0
ScaleMinor = gridcolor:black increment:1 start:0
PlotData=
bar:p color:red width:10 align:left fontsize:S
from:1 till:3
from:4 till:6
bar:Gp color:red width:10 align:left fontsize:S
from:4 till:6

|-
|'A' phi
|
|egin{matrix}(mathcal{A}B)(psi)= \ ( orall phi:phi_0=psi o B(phi))end{matrix}
|'A'll: phi has to hold on all paths starting from the current state.
|
|-
|'E' phi
|
|egin{matrix}(mathcal{E}B)(psi)= \ (exists phi:phi_0=psiland B(phi))end{matrix}
|'E'xists: 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 opearators 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

CTL
, which includes as a subset


Computation Tree Logic (CTL)


Linear temporal logic (LTL)

Interval temporal logic (ITL)

μ calculus. which includes as a subset


Hennessy-Milner Logic (HML)

See also



Duration Calculus (DC)

Hybrid logic

Temporal logic in finite-state verification

Temporal Logic of Actions (TLA)

Important publications in formal verification (including the use of temporal logic in formal verification)

References



★ Venema, Yde, 2001, "Temporal Logic," in Goble, Lou, ed., ''The Blackwell Guide to Philosophical Logic''. Blackwell.

★ E. A. Emerson and C. Lei, modalities for model checking: branching time logic strikes back, in ''Science of Computer Programming'' 8, p 275-306, 1987.

★ E.A. Emerson, Temporal and modal logic, ''Handbook of Theoretical Computer Science'', Chapter 16, the MIT Press, 1990

External links



Stanford Encyclopedia of Philosophy: "Temporal Logic" -- by Anthony Galton.

Temporal Logic by Yde Venema, formal description of syntax and semantics, questions of axiomatization. Treating also Kamp's dyadic temporal operators (since, until)

Notes on games in temporal logic by Ian Hodkinson, including a formal description of first-order temporal logic

This article provided by Wikipedia. To edit the contents of this article, click here for original source.

psst.. try this: add to faves