Metric temporal logic (MTL) is a special case of temporal logic. It is an extension of temporal logic in which temporal operators are replaced by time-constrained versions like until, next, since and previous operators. It is a linear-time logic that assumes both the interleaving and fictitious-clock abstractions. It is defined over a point-based weakly-monotonic integer-time semantics.
MTL has been described as a prominent specification formalism for real-time systems.[1] Full MTL over infinite timed words is undecidable.[2]
The full metric temporal logic is defined similarly to linear temporal logic, where a set of non-negative real number is added to temporal modal operators U and S. Formally, MTL is built up from:
When the subscript is omitted, it is implicitly equal to
[0,infty)
Note that the next operator N is not considered to be a part of MTL syntax. It will instead be defined from other operators.
The past fragment of metric temporal logic, denoted as past-MTL is defined as the restriction of the full metric temporal logic without the until operator. Similarly, the future fragment of metric temporal logic, denoted as future-MTL is defined as the restriction of the full metric temporal logic without the since operator.
Depending on the authors, MTL is either defined as the future fragment of MTL, in which case full-MTL is called MTL+Past.[1] Or MTL is defined as full-MTL.
In order to avoid ambiguity, this article uses the names full-MTL, past-MTL and future-MTL. When the statements holds for the three logic, MTL will simply be used.
Let
T\subseteqR+
\gamma:T\toA
t\inT
\gamma
\gamma
T
Let
T
\gamma
t\in T
\phi
t
\gamma,t\models\phi
Let
I\subseteqR+
\phi,\psi\in MTL
\phil UI\psi
\gamma,t\models\philUI\psi
t'\inI+t
\gamma,t'\models\psi
t''\inT
t<t''< t'
\gamma,t''\models\phi
We now consider the formula
\phil SI\psi
\phi
I
\psi
\gamma,t\models\philSI\psi
t'\inI-t
\gamma,t'\models\psi
t''\inT
t'<t''< t
\gamma,t''\models\phi
The definitions of
\gamma,t\models\phi
\phi
Some formulas are so often used that a new operator is introduced forthem. These operators are usually not considered to belong to thedefinition of MTL, but are syntactic sugar which denote morecomplex MTL formula. We first consider operators which also exists in LTL. Inthis section, we fix
\phi,\psi
I\subseteqR+
We denote by
\philRI\psi
\phi
I
\psi
\neg\philUI\neg\psi
t
t'\int+I
\phi
\psi
(t,t')\cap(t+I)
t'\int+I
\phi
The name "release" come from the LTL case, where this formula simplymeans that
\phi
\psi
The past counterpart of release is denote by
\philBI\psi
\phi
I
\psi
\neg\philSI\neg\psi
We denote by
\DiamondI\phi
l FI\phi
I
\phi
I
\phi
\topl UI\phi
t
t'\int+I
\phi
We denote by
\BoxI\phi
l GI\phi
I
\phi
\neg\DiamondI\neg\phi
t
t'\in t+I
\phi
We denote by
\overleftarrow\BoxI\phi
\overleftarrow\DiamondI\phi
\BoxI\phi
\DiamondI\phi
lU
l S
This case is slightly different from the previous ones, because the intuitive meaning of the "Next" and "Previously" formulas differs depending on the kind of function
\gamma
We denote by
circI\phi
lNI\phi
I
\phi
\botlUI\phi
\ominusI\phi
I
\phi
\botlSI\phi
\gamma:T\to A
T
\phi
I
\gamma
\gamma,t\models\circ\phi
I
(0,\epsilon)
t'\in(t,t+\epsilon)
\gamma,t'\models\phi
We now consider operators which are not similar to any standard LTL operators.
We denote by
\uparrow\phi
\phi
\phi
\phi
\uparrow\phi
(\phi\land(\neg\philS\top))\lor(\neg\phi\land(\philU\top))
Over timed words, this formula always hold. Indeed
\philU\top
\neg\philS\top
\phi\lor\neg\phi
By symmetry, we denote by
\downarrow\phi
\phi
\phi
(\neg\phi\land(\philS\top))\land(\phi\land(\neg\philU\top))
We now introduce the prophecy operator, denoted by
\triangleright
\trianglerightI\phi
\neg\philUI\phi
\phi
I
We now consider this formula over timed words and over signals. We consider timed words first. Assume that
I=\mida,b\mid'
\mid
\mid'
\gamma
t
\gamma,t\models\trianglerightI\phi
\gamma,t\models\Box]0,b[\setminus\neg\phi\land\DiamondI\phi
t+I
\phi
\phi
t+I
t''\int+I
\gamma,t''\models\phi
t'\int+I
t'<t''
\gamma,t'\models\phi
t''
Let us now consider signal. The equivalence mentioned above does not hold anymore over signal. This is due to the fact that, using the variables introduced above, there may exists an infinite number of correct values for
t'
\trianglerightI\phi
\phi
By temporal symmetry, we define the history operator, denoted by
\triangleleft
\triangleleftI\phi
\neg\philSI\phi
\phi
I
The semantic of operators until and since introduced do not consider the current time. That is, in order for
\phi1l{U}\phi2
t
\phi1
\phi2
t
\overline{lU}
We denote by
\phi1\overline{lU}I\phi2
\phi1\overline{lS}I\phi2
\phi2\lor(\phi1\land(\phi1lUI\phi2))
\phi2\lor(\phi1\land(\phi1lSI\phi2))
0\inI
\phi1\land(\phi1lUI\phi2)
\phi1\land(\phi1lSI\phi2)
For any of the operators
lO
\overline{lO}
\overline\Diamondp
\top\overline{lU}p
Strict operator can not be defined using non-strict operator. That is, there is no formula equivalent to
circIp
\botlUIp
t
\bot
t
We now give examples of MTL formulas. Some more example can be found on article of fragments of MITL, such as metric interval temporal logic.
\Box(p\implies\Diamond\{1\
p
q
\Box(p\implies\neg\Diamond\{1\
p
A standard (untimed) infinite word
w=a0,a1,...,
N
A
T=N
\gamma(i)=ai
\phi
w,i\models\phi
\gamma,i\models\phi
\phi
[0,infty)
For this reason, a formula using only non-strict operator with
[0,infty)
The satisfiability of ECL over signals is EXPSPACE-complete.[5]
We now consider some fragments of MTL.
See main article: Metric interval temporal logic. An important subset of MTL is the Metric Interval Temporal Logic (MITL). This is defined similarly to MTL, with therestriction that the sets
I
l U
lS
Some other subsets of MITL are defined in the article MITL.
Future-MTL was already introduced above. Both over timed-words and over signals, it is less expressive than Full-MTL.
The fragment Event-Clock Temporal Logic[5] of MTL, denoted EventClockTL or ECL, allows only the following operators:
Over signals, ECL is as expressive as MITL and as MITL0. The equivalence between the two last logics is explained in the article MITL0. We sketch the equivalence of those logics with ECL.
If
I
\phi
\trianglerightI\phi
I=\{i\}
\trianglerightI\phi
\Box]0,i[\neg\phi\land\Diamond]0,i]\phi
\psi
I
\BoxI\psi
\neg\trianglerightI\neg\psi
The satisfiability of ECL over signals is PSPACE-complete.[5]
A MTL-formula in positive normal form is defined almost as any MTL formula, with the two following change:
Any MTL formula is equivalent to formula in normal form. This can be shown by an easy induction on formulas. For example, the formula
\neg(\philUS\psi)
(\neg\phi)lRS(\neg\psi)
Strictly speaking, the set of formulas in positive normal form is not a fragment of MTL.