Linear temporal logic
Linear temporal logic (LTL) is a modal temporal logic with modalities referring to time. In LTL, one can encode formulae about the future of paths such as that a condition will be eventually be true, that a condition will be true until another fact becomes true, etc.
Syntax
LTL is built up from a set of proposition variables , the usual logic connectives and the following temporal modal operators:
- N for next;
- G for always;
- F for eventually;
- U for until;
- R for release.
The first three operators are unary, so that N is a well-formed formula whenever is a well-formed formula. The last two operators are binary, so that U is a well-formed formula whenever and are well-formed formulas.
Semantics
An LTL formula can be evaluated over a sequence of truth evaluations and a position on that path. An LTL formula is satisfied by a path if and only if it is satisfied for position 0 on that path. The semantics for the modal operators is given as follows.
Textual | Symbolic | Explanation | Diagram |
---|---|---|---|
Unary operators: | |||
N | Next: has to hold at the next state. (X is used synonymously.) | ![]() | |
G | Globally: has to hold on the entire subsequent path. | ![]() | |
F | Finally: eventually has to hold (somewhere on the subsequent path). | ![]() | |
Binary operators: | |||
U | Until: holds at the current or a future position, and has to hold until that position. At that position does not have to hold any more. | ![]() | |
R | Release: releases if is true until the first position in which is true (or forever if such a position does not exist). | ![]() |
One can reduce to two of those operators since the following is always satisfied:
- F = true U
- G = F
- R = (U)
LTL can be shown to be equivalent to the first-order logic over one successor and the smaller relation, FO[S,<] as well as star-free regular expressions or deterministic finite automata with loop complexity 0.
See also
- Temporal logic in finite-state verification
- Computational tree logic (CTL)
- Interval temporal logic (ITL)