Linear temporal logic
In logic, linear temporal logic or linear-time temporal logic is a modal temporal logic with modalities referring to time. In LTL, one can encode formulae about the future of paths, e.g., a condition will eventually be true, a condition will be true until another fact becomes true, etc. It is a fragment of the more complex CTL*, which additionally allows branching time and quantifiers. LTL is sometimes called propositional temporal logic.
In terms of expressive power, LTL is a fragment of first-order logic.
LTL was first proposed for the formal verification of computer programs by Amir Pnueli in 1977.
Syntax
LTL is built up from a finite set of propositional variables AP, the logical operators ¬ and ∨, and the temporal modal operators X and U.Formally, the set of LTL formulas over AP is inductively defined as follows:
- if then p is an LTL formula;
- if and are LTL formulas then, and are LTL formulas.
Other than these fundamental operators, there are additional logical and temporal operators defined in terms of the fundamental operators, in order to write LTL formulas succinctly.
The additional logical operators are ∧, →, ↔, true, and false.
Following are the additional temporal operators.G for always F for finallyR for releaseW for weak untilM for mighty release
The context-free grammar of LTL is as follows:
Semantics
An LTL formula can be satisfied by an infinite sequence of truth valuations of variables in AP.These sequences can be viewed as a word on a path of a Kripke structure.
Let w = a0,a1,a2,... be such an ω-word. Let w = ai. Let wi = ai,''ai''+1,..., which is a suffix of w. Formally, the satisfaction relation ⊨ between a word and an LTL formula is defined as follows:w ⊨ p if p ∈ ww ⊨ ¬ if w ⊭ w ⊨ ∨ if w ⊨ or w ⊨
- if w1 ⊨
- if there exists i ≥ 0 such that wi ⊨ and for all 0 ≤ k < i, wk ⊨
The ω-language L defined by is, which is the set of ω-words that satisfy.
A formula is satisfiable if there exist an ω-word w such that w ⊨.
A formula is valid if for each ω-word w over alphabet 2AP, we have w ⊨.
The additional logical operators are defined as follows:
- ∧ ≡ ¬
- → ≡ ¬ ∨
- ↔ ≡ ∧ true ≡ p ∨ ¬p, where p ∈ APfalse ≡ ¬true
- G ≡ false 'R ≡ ¬F' ¬
Weak until and strong release
Some authors also define a weak until binary operator, denoted W, with semantics similar to that of the until operator but the stop condition is not required to occur. It is sometimes useful since both U and R can be defined in terms of the weak until:The strong release binary operator, denoted M, is the dual of weak until. It is defined similar to the until operator, so that the release condition has to hold at some point. Therefore, it is stronger than the release operator.
The semantics for the temporal operators are pictorially presented as follows.
Equivalences
Let φ, ψ, and ρ be LTL formulas. The following tables list some of the useful equivalences that extend standard equivalences among the usual logical operators.Negation normal form
All the formulas of LTL can be transformed into negation normal form, where- all negations appear only in front of the atomic propositions,
- only the logical operators true, false, ∧, and ∨ can appear, and
- only the temporal operators X, U, and R can appear.
Relations with other logics
LTL can be shown to be equivalent to the monadic first-order logic of order, FO—a result known as Kamp's theorem— or equivalently to star-free languages.Computation tree logic and linear temporal logic are both a subset of CTL*, but are incomparable. For example,
- No formula in CTL can define the language that is defined by the LTL formula F.
- No formula in LTL can define the language that is defined by the CTL formulas AG or AG.
Computational problems
Model checking and satisfiability against an LTL formula are PSPACE-complete problems. LTL synthesis and the problem of verification of games against an LTL winning condition is 2EXPTIME-complete.Applications
;Automata-theoretic linear temporal logic model checking;Expressing important properties in formal verification
;Specification language